import { defineComponent as o, ref as u, createBlock as c, openBlock as i, mergeProps as p } from "vue";
import f from "../../../../../commons/components/Chart/index.vue.mjs";
import { cloneDeep as m } from "lodash";
const l = o({ name: "ShjLabelGauge" }), g = /* @__PURE__ */ o({
  ...l,
  props: {
    option: {},
    sources: {},
    useEvents: {}
  },
  setup(h, { expose: t }) {
    const n = (e, r, a) => {
      e.dataset = {
        dimensions: ["score"],
        source: m(r[0].data)
      }, a(e, "canvas");
    }, s = u();
    return t({
      getEchartsInstance: () => {
        var e;
        return (e = s.value) == null ? void 0 : e.getEchartsInstance();
      },
      refresh: () => {
        var e;
        return (e = s.value) == null ? void 0 : e.refresh();
      },
      refreshView: () => {
        var e;
        return (e = s.value) == null ? void 0 : e.refreshView();
      },
      refreshData: () => {
        var e;
        return (e = s.value) == null ? void 0 : e.refreshData();
      }
    }), (e, r) => (i(), c(f, p({
      ref_key: "componentRef",
      ref: s,
      option: e.option,
      sources: e.sources,
      "use-events": e.useEvents,
      "is-multi-series": e.option.isMultiSeries,
      "custom-render-data": n
    }, e.$attrs), null, 16, ["option", "sources", "use-events", "is-multi-series"]));
  }
});
export {
  g as default
};
