"use strict";
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;
};
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const chart = require("../../../../public/chart.js");
const publicConfig = require("../../../../public/publicConfig.js");
const index = require("./index.js");
const cloneDeep = require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/cloneDeep.js");
const data = require("./data.json.js");
const includes = ["legend"];
const RadarShapeEnumList = [
  { label: "多边形", value: "polygon" },
  { label: "圆形", value: "circle" }
];
const option = {
  tooltip: {
    show: true
  },
  legend: {
    data: data.default.seriesData.map((i) => i.name)
  },
  dataset: { ...data.default },
  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: data.default.radarIndicator
  },
  series: [
    {
      name: "radar",
      type: "radar",
      areaStyle: {
        opacity: 0.1
      },
      data: data.default.seriesData
    }
  ]
};
class Config extends publicConfig.PublicConfigClass {
  constructor() {
    super(...arguments);
    __publicField(this, "key", index.RadarConfig.key);
    __publicField(this, "chartConfig", cloneDeep.default(index.RadarConfig));
    // 图表配置项
    __publicField(this, "option", chart.echartOptionProfixHandle(option, includes));
  }
}
exports.RadarShapeEnumList = RadarShapeEnumList;
exports.default = Config;
exports.includes = includes;
exports.option = option;
