import { defineComponent as t, ref as i, createBlock as c, openBlock as p, mergeProps as f } from "vue";
import "echarts-gl";
import { getPie3D as m } from "./renderPie3d.mjs";
import d from "../../../commons/components/common-chart/index.vue.mjs";
const l = t({ name: "zv-chart-pie-3d" }), E = /* @__PURE__ */ t({
  ...l,
  props: {
    basicOption: {},
    sources: {},
    useEvents: {},
    uuid: {}
  },
  setup(h, { expose: o }) {
    const n = (e, r, a) => {
      const u = m(r[0].data, e);
      a(u, "canvas");
    }, s = i();
    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) => (p(), c(d, f({
      ref_key: "componentRef",
      ref: s,
      option: e.basicOption,
      sources: e.sources,
      "use-events": e.useEvents,
      uuid: e.uuid,
      "is-multi-series": !1,
      "custom-render-data": n
    }, e.$attrs), null, 16, ["option", "sources", "use-events", "uuid"]));
  }
});
export {
  E as default
};
