sctj-components 1.0.53 → 1.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9400,8 +9400,8 @@ const _sfc_main$2 = {
9400
9400
  }
9401
9401
  };
9402
9402
  const SCTJBusinessMapDrawingDialog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-d0bea808"]]);
9403
- const BimViewer_vue_vue_type_style_index_0_scoped_89adda4f_lang = "";
9404
- const _withScopeId = (n) => (pushScopeId("data-v-89adda4f"), n = n(), popScopeId(), n);
9403
+ const BimViewer_vue_vue_type_style_index_0_scoped_89f55b38_lang = "";
9404
+ const _withScopeId = (n) => (pushScopeId("data-v-89f55b38"), n = n(), popScopeId(), n);
9405
9405
  const _hoisted_1 = {
9406
9406
  key: 0,
9407
9407
  class: "error-overlay"
@@ -9686,12 +9686,25 @@ const _sfc_main$1 = {
9686
9686
  model3D.clearIsolation();
9687
9687
  viewer3D.value.render();
9688
9688
  };
9689
+ const getModelTree = () => {
9690
+ new Promise((resolve, reject) => {
9691
+ const model3D = viewer3D.value.getModel();
9692
+ try {
9693
+ model3D.getModelTree(function(data) {
9694
+ resolve(data);
9695
+ });
9696
+ } catch (error) {
9697
+ reject(error);
9698
+ }
9699
+ });
9700
+ };
9689
9701
  const initBim = () => {
9690
9702
  nextTick(() => {
9691
9703
  loadModel();
9692
9704
  });
9693
9705
  };
9694
9706
  watch(() => props.viewToken, () => {
9707
+ cleanup();
9695
9708
  initBim();
9696
9709
  }, { immediate: true });
9697
9710
  onBeforeUnmount(() => {
@@ -9703,7 +9716,8 @@ const _sfc_main$1 = {
9703
9716
  hideComponent,
9704
9717
  showComponent,
9705
9718
  isolateComponent,
9706
- unIsolateComponent
9719
+ unIsolateComponent,
9720
+ getModelTree
9707
9721
  });
9708
9722
  return (_ctx, _cache) => {
9709
9723
  const _component_el_button = resolveComponent("el-button");
@@ -9735,7 +9749,7 @@ const _sfc_main$1 = {
9735
9749
  };
9736
9750
  }
9737
9751
  };
9738
- const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-89adda4f"]]);
9752
+ const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-89f55b38"]]);
9739
9753
  const DwgViewer_vue_vue_type_style_index_0_scoped_ab9c8ebd_lang = "";
9740
9754
  const _sfc_main = {
9741
9755
  __name: "DwgViewer",