import { defineComponent as t, computed as c, createElementBlock as u, openBlock as l } from "vue";
import "@babylonjs/loaders";
import { useBabylonScene as f } from "./utils/useBabylonScene.mjs";
import { upgradeGSViewer as i } from "./version.mjs";
import { useWatch as m } from "./hooks/useWatch.mjs";
const p = t({ name: "ShjGSViewer" }), _ = /* @__PURE__ */ t({
  ...p,
  props: {
    option: {},
    sources: {},
    useEvents: {}
  },
  setup(e, { expose: s }) {
    const n = c(() => i(e.option)), { babylon: a, GsBabylonScene: r, canvasRef: o } = f(
      n.value,
      e.useEvents
    );
    return m(
      { option: n.value, useEvents: e.useEvents },
      null,
      a,
      r,
      o
    ), s({
      refresh: () => {
      },
      refreshView: () => {
      },
      refreshData: () => {
      }
    }), (v, b) => (l(), u("canvas", {
      ref_key: "canvasRef",
      ref: o,
      class: "babylon-canvas"
    }, null, 512));
  }
});
export {
  _ as default
};
