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 { RadarConfig } 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 RadarShapeEnumList = [
  { label: "多边形", value: "polygon" },
  { label: "圆形", value: "circle" }
];
const option = {
  tooltip: {
    show: true
  },
  legend: {
    data: dataJson.seriesData.map((i) => i.name)
  },
  dataset: { ...dataJson },
  radar: {
    shape: "polygon",
    radius: ["0%", "60%"],
    center: ["50%", "55%"],
    splitArea: { show: true },
    splitLine: { show: true },
    axisName: { show: true, color: "#eee", fontSize: 12 },
    axisLine: { show: true },
    axisTick: { show: true },
    indicator: dataJson.radarIndicator
  },
  series: [
    {
      name: "radar",
      type: "radar",
      areaStyle: {
        opacity: 0.1
      },
      data: dataJson.seriesData
    }
  ]
};
class Config extends PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", RadarConfig.key);
    __publicField(this, "chartConfig", cloneDeep(RadarConfig));
    // 图表配置项
    __publicField(this, "option", echartOptionProfixHandle(option, includes));
  }
}
export {
  RadarShapeEnumList,
  Config as default,
  includes,
  option
};
