import { defineComponent, toRefs, openBlock, createElementBlock, unref, createElementVNode } from "vue";
import "./index.vue_vue_type_style_index_0_scoped_true_lang.mjs";
import _export_sfc from "../../../../_virtual/plugin-vue_export-helper.mjs";
const _hoisted_1 = { class: "go-border-04" };
const _hoisted_2 = ["width", "height"];
const _hoisted_3 = ["stroke", "points"];
const _hoisted_4 = ["stroke", "points"];
const _hoisted_5 = ["stroke", "points"];
const __default__ = defineComponent({ name: "EDecorates04" });
const _sfc_main = /* @__PURE__ */ defineComponent({
  ...__default__,
  props: {
    chartConfig: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const { w, h } = toRefs(props.chartConfig.attr);
    const { colors, reverse } = toRefs(props.chartConfig.option);
    const xPos = (pos) => {
      if (!reverse.value)
        return pos;
      return w.value - pos;
    };
    return (_ctx, _cache) => {
      return openBlock(), createElementBlock("div", _hoisted_1, [
        (openBlock(), createElementBlock("svg", {
          width: unref(w),
          height: unref(h)
        }, [
          createElementVNode("polyline", {
            stroke: unref(colors)[0],
            "stroke-width": "2",
            fill: "transparent",
            points: `${xPos(0)}, 0 ${xPos(30)}, ${unref(h) / 2}`
          }, null, 8, _hoisted_3),
          createElementVNode("polyline", {
            stroke: unref(colors)[0],
            "stroke-width": "2",
            fill: "transparent",
            points: `${xPos(20)}, 0 ${xPos(50)}, ${unref(h) / 2} ${xPos(unref(w))}, ${unref(h) / 2}`
          }, null, 8, _hoisted_4),
          createElementVNode("polyline", {
            stroke: unref(colors)[1],
            fill: "transparent",
            "stroke-width": "3",
            points: `${xPos(0)}, ${unref(h) - 3}, ${xPos(200)}, ${unref(h) - 3}`
          }, null, 8, _hoisted_5)
        ], 8, _hoisted_2))
      ]);
    };
  }
});
var _EDecorates04 = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3e457794"]]);
export { _EDecorates04 as default };
