sctj-components 1.0.87 → 1.0.89
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.
- package/lib/sctj-components.es.js +31 -5
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -10140,8 +10140,8 @@ const _sfc_main$3 = {
|
|
|
10140
10140
|
}
|
|
10141
10141
|
};
|
|
10142
10142
|
const SCTJTrackPlayback = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-87a3abe5"]]);
|
|
10143
|
-
const
|
|
10144
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
10143
|
+
const BimViewer_vue_vue_type_style_index_0_scoped_5d1b1a03_lang = "";
|
|
10144
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-5d1b1a03"), n = n(), popScopeId(), n);
|
|
10145
10145
|
const _hoisted_1$1 = {
|
|
10146
10146
|
key: 0,
|
|
10147
10147
|
class: "error-overlay"
|
|
@@ -10451,8 +10451,20 @@ const _sfc_main$2 = {
|
|
|
10451
10451
|
model3D.clearIsolation();
|
|
10452
10452
|
viewer3D.value.render();
|
|
10453
10453
|
};
|
|
10454
|
+
const getComponentPropertyById = (id) => {
|
|
10455
|
+
return new Promise((resolve, reject) => {
|
|
10456
|
+
const model3D = viewer3D.value.getModel();
|
|
10457
|
+
try {
|
|
10458
|
+
model3D.getComponentProperty(id, function(data) {
|
|
10459
|
+
resolve(data);
|
|
10460
|
+
});
|
|
10461
|
+
} catch (error) {
|
|
10462
|
+
reject(error);
|
|
10463
|
+
}
|
|
10464
|
+
});
|
|
10465
|
+
};
|
|
10454
10466
|
const getModelTree = () => {
|
|
10455
|
-
new Promise((resolve, reject) => {
|
|
10467
|
+
return new Promise((resolve, reject) => {
|
|
10456
10468
|
const model3D = viewer3D.value.getModel();
|
|
10457
10469
|
try {
|
|
10458
10470
|
model3D.getModelTree(function(data) {
|
|
@@ -10463,6 +10475,17 @@ const _sfc_main$2 = {
|
|
|
10463
10475
|
}
|
|
10464
10476
|
});
|
|
10465
10477
|
};
|
|
10478
|
+
const clearSelectedComponents = () => {
|
|
10479
|
+
const model3D = viewer3D.value.getModel();
|
|
10480
|
+
model3D.clearSelectedComponents();
|
|
10481
|
+
viewer3D.value.render();
|
|
10482
|
+
};
|
|
10483
|
+
const zoomToComponent = (id) => {
|
|
10484
|
+
const model3D = viewer3D.value.getModel();
|
|
10485
|
+
model3D.clearSelectedComponents();
|
|
10486
|
+
model3D.setSelectedComponentsById([id]);
|
|
10487
|
+
model3D.zoomToSelectedComponents();
|
|
10488
|
+
};
|
|
10466
10489
|
const initBim = () => {
|
|
10467
10490
|
nextTick(() => {
|
|
10468
10491
|
loadModel();
|
|
@@ -10482,7 +10505,10 @@ const _sfc_main$2 = {
|
|
|
10482
10505
|
showComponent,
|
|
10483
10506
|
isolateComponent,
|
|
10484
10507
|
unIsolateComponent,
|
|
10485
|
-
getModelTree
|
|
10508
|
+
getModelTree,
|
|
10509
|
+
getComponentPropertyById,
|
|
10510
|
+
clearSelectedComponents,
|
|
10511
|
+
zoomToComponent
|
|
10486
10512
|
});
|
|
10487
10513
|
return (_ctx, _cache) => {
|
|
10488
10514
|
const _component_el_button = resolveComponent("el-button");
|
|
@@ -10514,7 +10540,7 @@ const _sfc_main$2 = {
|
|
|
10514
10540
|
};
|
|
10515
10541
|
}
|
|
10516
10542
|
};
|
|
10517
|
-
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
10543
|
+
const SCTJBimViewer = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-5d1b1a03"]]);
|
|
10518
10544
|
const DwgViewer_vue_vue_type_style_index_0_scoped_ab9c8ebd_lang = "";
|
|
10519
10545
|
const _sfc_main$1 = {
|
|
10520
10546
|
__name: "DwgViewer",
|