"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const merge = require("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/merge.js");
const pick = require("../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/pick.js");
const index = require("../../settings/chartThemes/index.js");
const mergeTheme = (option, themeSetting, includes) => {
  return option = merge.default({}, pick.default(themeSetting, includes), option);
};
const echartOptionProfixHandle = (option, includes) => {
  option["backgroundColor"] = "rgba(0,0,0,0)";
  return mergeTheme(option, index.globalThemeJson, includes);
};
const setOption = (instance, data) => {
  if (!instance)
    return;
  const option = instance.getOption();
  option.dataset = null;
  instance.setOption(data);
};
exports.echartOptionProfixHandle = echartOptionProfixHandle;
exports.mergeTheme = mergeTheme;
exports.setOption = setOption;
