var __defProp = Object.defineProperty;
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __publicField = (obj, key, value) => {
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
  return value;
};
import { echartOptionProfixHandle } from "../../../../public/chart.mjs";
import { PublicConfigClass } from "../../../../public/publicConfig.mjs";
import { FunnelConfig } from "./index.mjs";
import cloneDeep from "../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.mjs";
import dataJson from "./data.json.mjs";
const includes = ["legend"];
const FunnelOrderEnumList = [
  { label: "倒三角", value: "descending" },
  { label: "正三角", value: "ascending" }
];
const FunnelLabelPositionEnumList = [
  { label: "内部", value: "inside" },
  { label: "外部", value: "outside" },
  { label: "内部左侧", value: "insideLeft" },
  { label: "内部右侧", value: "insideRight" }
];
const option = {
  tooltip: {},
  legend: {},
  dataset: { ...dataJson },
  series: [
    {
      name: "Funnel",
      type: "funnel",
      top: 70,
      left: "10%",
      width: "80%",
      min: 0,
      minSize: "0%",
      maxSize: "100%",
      sort: "descending",
      // descending | ascending
      gap: 5,
      label: {
        show: true,
        position: "inside",
        fontSize: 12
      },
      itemStyle: {
        borderColor: "#fff",
        borderWidth: 0
      },
      emphasis: {
        label: {
          fontSize: 20
        }
      }
    }
  ]
};
class Config extends PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", FunnelConfig.key);
    __publicField(this, "chartConfig", cloneDeep(FunnelConfig));
    // 图表配置项
    __publicField(this, "option", echartOptionProfixHandle(option, includes));
  }
}
export {
  FunnelLabelPositionEnumList,
  FunnelOrderEnumList,
  Config as default,
  includes,
  option
};
