import "../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.mjs";
import { defineComponent, openBlock, createElementBlock, createElementVNode as createBaseVNode } from "../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.mjs";
import { toRefs, unref } from "../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.mjs";
const _hoisted_1 = { class: "go-border-box" };
const _hoisted_2 = ["width", "height"];
const _hoisted_3 = ["fill", "points"];
const _hoisted_4 = ["stroke", "points"];
const _hoisted_5 = ["stroke", "points"];
const _hoisted_6 = ["fill"];
const _hoisted_7 = ["fill", "cx"];
const _hoisted_8 = ["fill", "cx", "cy"];
const _hoisted_9 = ["fill", "cy"];
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "index",
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const { w, h } = toRefs(props.chartConfig.attr);
    const { colors, backgroundColor } = toRefs(props.chartConfig.option);
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        (openBlock(), createElementBlock("svg", {
          width: unref(w),
          height: unref(h)
        }, [
          createBaseVNode("polygon", {
            fill: unref(backgroundColor),
            points: `
        7, 7 ${unref(w) - 7}, 7 ${unref(w) - 7}, ${unref(h) - 7} 7, ${unref(h) - 7}
      `
          }, null, 8, _hoisted_3),
          createBaseVNode("polyline", {
            stroke: unref(colors)[0],
            points: `2, 2 ${unref(w) - 2} ,2 ${unref(w) - 2}, ${unref(h) - 2} 2, ${unref(h) - 2} 2, 2`
          }, null, 8, _hoisted_4),
          createBaseVNode("polyline", {
            stroke: unref(colors)[1],
            points: `6, 6 ${unref(w) - 6}, 6 ${unref(w) - 6}, ${unref(h) - 6} 6, ${unref(h) - 6} 6, 6`
          }, null, 8, _hoisted_5),
          createBaseVNode("circle", {
            fill: unref(colors)[0],
            cx: "11",
            cy: "11",
            r: "1"
          }, null, 8, _hoisted_6),
          createBaseVNode("circle", {
            fill: unref(colors)[0],
            cx: unref(w) - 11,
            cy: "11",
            r: "1"
          }, null, 8, _hoisted_7),
          createBaseVNode("circle", {
            fill: unref(colors)[0],
            cx: unref(w) - 11,
            cy: unref(h) - 11,
            r: "1"
          }, null, 8, _hoisted_8),
          createBaseVNode("circle", {
            fill: unref(colors)[0],
            cx: "11",
            cy: unref(h) - 11,
            r: "1"
          }, null, 8, _hoisted_9)
        ], 8, _hoisted_2))
      ]);
    };
  }
});
export {
  _sfc_main as default
};
