import { defineComponent as t, ref as u, createBlock as p, openBlock as c, mergeProps as f } from "vue";
import "echarts-gl";
import { getPie3D as m } from "./renderPie3d.mjs";
import l from "../../../../../commons/components/Chart/index.vue.mjs";
const h = t({ name: "ShjPie3d" }), E = /* @__PURE__ */ t({
  ...h,
  props: {
    option: {},
    sources: {},
    useEvents: {}
  },
  setup(d, { expose: o }) {
    const n = (e, r, a) => {
      const i = m(r[0].data, e);
      a(i, "canvas");
    }, s = u();
    return o({
      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) => (c(), p(l, f({
      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 {
  E as default
};
