leiting-bim 1.1.4 → 1.1.6
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/leitingbim.es.js +245 -113
- package/package.json +1 -1
- package/style.css +10 -10
package/leitingbim.es.js
CHANGED
|
@@ -195827,7 +195827,7 @@ class BaseTiles {
|
|
|
195827
195827
|
*/
|
|
195828
195828
|
setMapTileset({ key: key2, tileset }) {
|
|
195829
195829
|
this.mapTileset[key2] = tileset;
|
|
195830
|
-
tileset.lightColor = new this.cesium.Cartesian3(
|
|
195830
|
+
tileset.lightColor = new this.cesium.Cartesian3(1, 1, 1);
|
|
195831
195831
|
}
|
|
195832
195832
|
/**
|
|
195833
195833
|
* @description: 每个模型id对应模型
|
|
@@ -198196,6 +198196,8 @@ class BaseConstrctionProgressTracking {
|
|
|
198196
198196
|
__publicField(this, "setColor");
|
|
198197
198197
|
__publicField(this, "groupBatchIds", {});
|
|
198198
198198
|
__publicField(this, "recoverStaus", false);
|
|
198199
|
+
__publicField(this, "mapModelId", {});
|
|
198200
|
+
__publicField(this, "clearedModelIds", /* @__PURE__ */ new Set());
|
|
198199
198201
|
__publicField(this, "onTick", (clock2) => {
|
|
198200
198202
|
if (this.cesium && this.viewer) {
|
|
198201
198203
|
const currentTime = clock2.currentTime.secondsOfDay * 1e3;
|
|
@@ -198207,6 +198209,13 @@ class BaseConstrctionProgressTracking {
|
|
|
198207
198209
|
groups.forEach(([modelId2, batchIds]) => {
|
|
198208
198210
|
this.setTileSyltByConstructionProcessTracking({ modelId: modelId2, batchIds });
|
|
198209
198211
|
});
|
|
198212
|
+
Object.keys(this.mapModelId).forEach((modelId2) => {
|
|
198213
|
+
const list = this.mapModelId[modelId2];
|
|
198214
|
+
if (list.length && list.every((i2) => i2.finished) && !this.clearedModelIds.has(modelId2)) {
|
|
198215
|
+
this.setTileSyltByConstructionProcessTracking({ modelId: modelId2, batchIds: [] });
|
|
198216
|
+
this.clearedModelIds.add(modelId2);
|
|
198217
|
+
}
|
|
198218
|
+
});
|
|
198210
198219
|
if (this.recoverStaus) {
|
|
198211
198220
|
if (groups.length) {
|
|
198212
198221
|
this.recoverStaus = false;
|
|
@@ -198229,7 +198238,7 @@ class BaseConstrctionProgressTracking {
|
|
|
198229
198238
|
const currentTime = this.viewer.clock.currentTime.secondsOfDay * 1e3;
|
|
198230
198239
|
const curretGourpBatchIds = {};
|
|
198231
198240
|
this.data.forEach((animation) => {
|
|
198232
|
-
animation.
|
|
198241
|
+
animation.playCash = false;
|
|
198233
198242
|
this.processAnimation(animation, currentTime, curretGourpBatchIds);
|
|
198234
198243
|
});
|
|
198235
198244
|
const groups = Object.entries(curretGourpBatchIds);
|
|
@@ -198247,10 +198256,12 @@ class BaseConstrctionProgressTracking {
|
|
|
198247
198256
|
}
|
|
198248
198257
|
});
|
|
198249
198258
|
__publicField(this, "enableConstructionProgressTracking", () => {
|
|
198259
|
+
this.clearedModelIds.clear();
|
|
198250
198260
|
this.initTime();
|
|
198251
198261
|
this.data.forEach((animation) => {
|
|
198252
198262
|
animation.cash = false;
|
|
198253
198263
|
animation.playCash = false;
|
|
198264
|
+
animation.finished = false;
|
|
198254
198265
|
animation.groupData.forEach((group) => {
|
|
198255
198266
|
const { batchIds, modelId: modelId2, rgba } = group;
|
|
198256
198267
|
batchIds[0][1] = rgba;
|
|
@@ -198289,6 +198300,7 @@ class BaseConstrctionProgressTracking {
|
|
|
198289
198300
|
this.data.forEach((animation) => {
|
|
198290
198301
|
animation.cash = false;
|
|
198291
198302
|
animation.playCash = false;
|
|
198303
|
+
animation.finished = false;
|
|
198292
198304
|
animation.groupData = [];
|
|
198293
198305
|
animation.mergeCpts.forEach((mergeCpts) => {
|
|
198294
198306
|
const cpts = [];
|
|
@@ -198304,6 +198316,9 @@ class BaseConstrctionProgressTracking {
|
|
|
198304
198316
|
const colorRank = ColorRank.process;
|
|
198305
198317
|
const selectionRank = SelectionRank.color;
|
|
198306
198318
|
const { allElements, transform: transform3, box: box2 } = this.groupByModelId(cpts);
|
|
198319
|
+
const _modelId = animation.mergeCpts[0].modelId;
|
|
198320
|
+
this.mapModelId[_modelId] = this.mapModelId[_modelId] || [];
|
|
198321
|
+
this.mapModelId[_modelId].push(animation);
|
|
198307
198322
|
Object.entries(allElements).forEach(([key2, elementIds]) => {
|
|
198308
198323
|
var _a2, _b2, _c2, _d;
|
|
198309
198324
|
const [modelId2, color2] = this.splitKey(key2);
|
|
@@ -198362,7 +198377,7 @@ class BaseConstrctionProgressTracking {
|
|
|
198362
198377
|
this.viewer.scene.ambientLightIntensity = ambientLightIntensity;
|
|
198363
198378
|
}
|
|
198364
198379
|
animation.cash = false;
|
|
198365
|
-
animation.
|
|
198380
|
+
animation.playCash = true;
|
|
198366
198381
|
animation.groupData.forEach((group) => {
|
|
198367
198382
|
const { batchIds, playTimeColor, modelId: modelId2 } = group;
|
|
198368
198383
|
batchIds[0][1] = playTimeColor;
|
|
@@ -198373,12 +198388,17 @@ class BaseConstrctionProgressTracking {
|
|
|
198373
198388
|
}
|
|
198374
198389
|
});
|
|
198375
198390
|
}
|
|
198391
|
+
if (currentTime >= playtime) {
|
|
198392
|
+
animation.finished = true;
|
|
198393
|
+
}
|
|
198376
198394
|
}
|
|
198377
198395
|
reStartAnimation() {
|
|
198378
198396
|
let groupBatchIds = {};
|
|
198397
|
+
this.clearedModelIds.clear();
|
|
198379
198398
|
this.data.forEach((animation) => {
|
|
198380
198399
|
animation.cash = false;
|
|
198381
198400
|
animation.playCash = false;
|
|
198401
|
+
animation.finished = false;
|
|
198382
198402
|
animation.groupData.forEach((group) => {
|
|
198383
198403
|
const { batchIds, modelId: modelId2, rgba } = group;
|
|
198384
198404
|
batchIds[0][1] = rgba;
|
|
@@ -284838,152 +284858,194 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
284838
284858
|
return annotationsData;
|
|
284839
284859
|
}
|
|
284840
284860
|
}
|
|
284861
|
+
async function showHomeView(show2) {
|
|
284862
|
+
if (show2) {
|
|
284863
|
+
await baseViewerManagements.zoomToTileset({
|
|
284864
|
+
modelId: baseViewerManagements.getModelId()
|
|
284865
|
+
});
|
|
284866
|
+
}
|
|
284867
|
+
}
|
|
284868
|
+
function showComponentTree(show2) {
|
|
284869
|
+
var _a2, _b2;
|
|
284870
|
+
menuOpenStatus.componentTree = show2;
|
|
284871
|
+
if (show2) {
|
|
284872
|
+
(_a2 = componentTreeCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284873
|
+
} else {
|
|
284874
|
+
(_b2 = componentTreeCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284875
|
+
}
|
|
284876
|
+
}
|
|
284877
|
+
function showMeasurement(show2) {
|
|
284878
|
+
var _a2, _b2;
|
|
284879
|
+
menuOpenStatus.measurement = show2;
|
|
284880
|
+
if (show2) {
|
|
284881
|
+
(_a2 = measurementsToolRef.value) == null ? void 0 : _a2.openCard();
|
|
284882
|
+
} else {
|
|
284883
|
+
(_b2 = measurementsToolRef.value) == null ? void 0 : _b2.closeCard();
|
|
284884
|
+
}
|
|
284885
|
+
}
|
|
284886
|
+
function showSection(show2) {
|
|
284887
|
+
var _a2, _b2;
|
|
284888
|
+
menuOpenStatus.section = show2;
|
|
284889
|
+
if (show2) {
|
|
284890
|
+
const modelList = baseViewerManagements.getModelList();
|
|
284891
|
+
const modelIds = modelList.map((i2) => i2.modelId);
|
|
284892
|
+
const rowKey = [modelIds[0]];
|
|
284893
|
+
(_a2 = sectionCardRef.value) == null ? void 0 : _a2.openCard(cesiumMethods, "Box", modelList, rowKey, baseViewerManagements.getModelId());
|
|
284894
|
+
handleSelectedRowKeysBySectionCard({
|
|
284895
|
+
modelIds: rowKey
|
|
284896
|
+
});
|
|
284897
|
+
} else {
|
|
284898
|
+
(_b2 = sectionCardRef.value) == null ? void 0 : _b2.closeOpenCard();
|
|
284899
|
+
}
|
|
284900
|
+
}
|
|
284901
|
+
function showViewPointTour(show2) {
|
|
284902
|
+
var _a2, _b2;
|
|
284903
|
+
menuOpenStatus.viewPointTour = show2;
|
|
284904
|
+
if (show2) {
|
|
284905
|
+
(_a2 = viewpointTourCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284906
|
+
} else {
|
|
284907
|
+
(_b2 = viewpointTourCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284908
|
+
}
|
|
284909
|
+
}
|
|
284910
|
+
function showComponentInfo(show2) {
|
|
284911
|
+
var _a2, _b2;
|
|
284912
|
+
menuOpenStatus.componentInfo = show2;
|
|
284913
|
+
if (show2) {
|
|
284914
|
+
(_a2 = componentInfoCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284915
|
+
} else {
|
|
284916
|
+
(_b2 = componentInfoCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284917
|
+
}
|
|
284918
|
+
}
|
|
284919
|
+
function showSearchObjects(show2) {
|
|
284920
|
+
var _a2, _b2;
|
|
284921
|
+
menuOpenStatus.searchObjects = show2;
|
|
284922
|
+
if (show2) {
|
|
284923
|
+
(_a2 = searchObjectsCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284924
|
+
} else {
|
|
284925
|
+
(_b2 = searchObjectsCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284926
|
+
}
|
|
284927
|
+
}
|
|
284928
|
+
function showPersonPlayer(show2) {
|
|
284929
|
+
var _a2, _b2, _c2;
|
|
284930
|
+
menuOpenStatus.personPlayer = show2;
|
|
284931
|
+
if (show2) {
|
|
284932
|
+
(_a2 = personPlayerCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284933
|
+
personPlayerCardOpened.value = true;
|
|
284934
|
+
handleShowByPersonPlayerCard({
|
|
284935
|
+
gravityTest: true,
|
|
284936
|
+
collisionTest: true,
|
|
284937
|
+
transparentTest: true
|
|
284938
|
+
});
|
|
284939
|
+
} else {
|
|
284940
|
+
(_b2 = personPlayerCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284941
|
+
(_c2 = personPlayerCardRef.value) == null ? void 0 : _c2.closeOpenCard();
|
|
284942
|
+
}
|
|
284943
|
+
}
|
|
284944
|
+
function showSetting(show2) {
|
|
284945
|
+
menuOpenStatus.setting = show2;
|
|
284946
|
+
if (show2) {
|
|
284947
|
+
settingCardRef.value.openCard();
|
|
284948
|
+
} else {
|
|
284949
|
+
settingCardRef.value.closeCard();
|
|
284950
|
+
}
|
|
284951
|
+
}
|
|
284952
|
+
function showCadLayer(show2) {
|
|
284953
|
+
menuOpenStatus.cadLayer = show2;
|
|
284954
|
+
if (show2) {
|
|
284955
|
+
cadLayerCardRef.value.openCard(cesiumMethods, baseViewerManagements.getBaseDxf().getDxfModelsList(), baseViewerManagements.getBaseDxf().getModelId());
|
|
284956
|
+
} else {
|
|
284957
|
+
cadLayerCardRef.value.closeCard();
|
|
284958
|
+
}
|
|
284959
|
+
}
|
|
284960
|
+
function showMiniMap(show2) {
|
|
284961
|
+
menuOpenStatus.miniMap = show2;
|
|
284962
|
+
if (show2) {
|
|
284963
|
+
miniMapRef.value.openCard();
|
|
284964
|
+
} else {
|
|
284965
|
+
miniMapRef.value.closeCard();
|
|
284966
|
+
}
|
|
284967
|
+
}
|
|
284968
|
+
function showCadHomeView(show2) {
|
|
284969
|
+
if (show2) {
|
|
284970
|
+
cadHomeView();
|
|
284971
|
+
}
|
|
284972
|
+
}
|
|
284973
|
+
function showFlat(show2) {
|
|
284974
|
+
var _a2;
|
|
284975
|
+
menuOpenStatus.flat = show2;
|
|
284976
|
+
if (show2) {
|
|
284977
|
+
const modelList = baseViewerManagements.getModelList();
|
|
284978
|
+
const modelIds = modelList.map((i2) => i2.modelId);
|
|
284979
|
+
const rowKey = [modelIds[0]];
|
|
284980
|
+
(_a2 = flatCardRef.value) == null ? void 0 : _a2.openCard(cesiumMethods, "Box", modelList, rowKey, baseViewerManagements.getModelId());
|
|
284981
|
+
baseViewerManagements.getBaseCompt().setFlat(true);
|
|
284982
|
+
} else {
|
|
284983
|
+
flatCardRef.value.closeOpenCard();
|
|
284984
|
+
baseViewerManagements.getBaseCompt().setFlat(false);
|
|
284985
|
+
}
|
|
284986
|
+
settingCardRef.value.setShowGlobal(true);
|
|
284987
|
+
enableCesiumSceneConfig(true);
|
|
284988
|
+
}
|
|
284989
|
+
function showAnnotation(show2) {
|
|
284990
|
+
var _a2, _b2;
|
|
284991
|
+
menuOpenStatus.annotation = show2;
|
|
284992
|
+
if (show2) {
|
|
284993
|
+
(_a2 = annotationCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284994
|
+
} else {
|
|
284995
|
+
(_b2 = annotationCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284996
|
+
}
|
|
284997
|
+
}
|
|
284841
284998
|
async function handleMenu(key2) {
|
|
284842
|
-
var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
284843
284999
|
switch (key2) {
|
|
284844
285000
|
case menu.homeView:
|
|
284845
|
-
await
|
|
284846
|
-
modelId: baseViewerManagements.getModelId()
|
|
284847
|
-
});
|
|
285001
|
+
await showHomeView(true);
|
|
284848
285002
|
break;
|
|
284849
285003
|
case menu.componentTree:
|
|
284850
|
-
|
|
284851
|
-
menuOpenStatus.componentTree = true;
|
|
284852
|
-
(_a2 = componentTreeCardRef.value) == null ? void 0 : _a2.openCard();
|
|
284853
|
-
} else {
|
|
284854
|
-
menuOpenStatus.componentTree = false;
|
|
284855
|
-
(_b2 = componentTreeCardRef.value) == null ? void 0 : _b2.closeCard();
|
|
284856
|
-
}
|
|
285004
|
+
showComponentTree(!menuOpenStatus.componentTree);
|
|
284857
285005
|
break;
|
|
284858
285006
|
case menu.measurement:
|
|
284859
|
-
|
|
284860
|
-
menuOpenStatus.measurement = true;
|
|
284861
|
-
(_c2 = measurementsToolRef.value) == null ? void 0 : _c2.openCard();
|
|
284862
|
-
} else {
|
|
284863
|
-
menuOpenStatus.measurement = false;
|
|
284864
|
-
(_d = measurementsToolRef.value) == null ? void 0 : _d.closeCard();
|
|
284865
|
-
}
|
|
285007
|
+
showMeasurement(!menuOpenStatus.measurement);
|
|
284866
285008
|
break;
|
|
284867
285009
|
case menu.section:
|
|
284868
|
-
|
|
284869
|
-
menuOpenStatus.section = true;
|
|
284870
|
-
const modelList = baseViewerManagements.getModelList();
|
|
284871
|
-
const modelIds = modelList.map((i2) => i2.modelId);
|
|
284872
|
-
const rowKey = [modelIds[0]];
|
|
284873
|
-
(_e = sectionCardRef.value) == null ? void 0 : _e.openCard(cesiumMethods, "Box", modelList, rowKey, baseViewerManagements.getModelId());
|
|
284874
|
-
handleSelectedRowKeysBySectionCard({
|
|
284875
|
-
modelIds: rowKey
|
|
284876
|
-
});
|
|
284877
|
-
} else {
|
|
284878
|
-
menuOpenStatus.section = false;
|
|
284879
|
-
(_f = sectionCardRef.value) == null ? void 0 : _f.closeOpenCard();
|
|
284880
|
-
}
|
|
285010
|
+
showSection(!menuOpenStatus.section);
|
|
284881
285011
|
break;
|
|
284882
285012
|
case menu.viewPointTour:
|
|
284883
|
-
|
|
284884
|
-
menuOpenStatus.viewPointTour = true;
|
|
284885
|
-
(_g = viewpointTourCardRef.value) == null ? void 0 : _g.openCard();
|
|
284886
|
-
} else {
|
|
284887
|
-
menuOpenStatus.viewPointTour = false;
|
|
284888
|
-
(_h = viewpointTourCardRef.value) == null ? void 0 : _h.closeCard();
|
|
284889
|
-
}
|
|
285013
|
+
showViewPointTour(!menuOpenStatus.viewPointTour);
|
|
284890
285014
|
break;
|
|
284891
285015
|
case menu.componentInfo:
|
|
284892
|
-
|
|
284893
|
-
menuOpenStatus.componentInfo = true;
|
|
284894
|
-
(_i = componentInfoCardRef.value) == null ? void 0 : _i.openCard();
|
|
284895
|
-
} else {
|
|
284896
|
-
menuOpenStatus.componentInfo = false;
|
|
284897
|
-
(_j = componentInfoCardRef.value) == null ? void 0 : _j.closeCard();
|
|
284898
|
-
}
|
|
285016
|
+
showComponentInfo(!menuOpenStatus.componentInfo);
|
|
284899
285017
|
break;
|
|
284900
285018
|
case menu.fullscreen:
|
|
284901
285019
|
break;
|
|
284902
285020
|
case menu.searchObjects:
|
|
284903
|
-
|
|
284904
|
-
menuOpenStatus.searchObjects = true;
|
|
284905
|
-
(_k = searchObjectsCardRef.value) == null ? void 0 : _k.openCard();
|
|
284906
|
-
} else {
|
|
284907
|
-
menuOpenStatus.searchObjects = false;
|
|
284908
|
-
(_l = searchObjectsCardRef.value) == null ? void 0 : _l.closeCard();
|
|
284909
|
-
}
|
|
285021
|
+
showSearchObjects(!menuOpenStatus.searchObjects);
|
|
284910
285022
|
break;
|
|
284911
285023
|
case menu.adjustingModelPanel:
|
|
284912
285024
|
toggleadjustingModelPanel(!menuOpenStatus.adjustingModelPanel);
|
|
284913
285025
|
break;
|
|
284914
285026
|
case menu.personPlayer:
|
|
284915
|
-
|
|
284916
|
-
menuOpenStatus.personPlayer = true;
|
|
284917
|
-
(_m = personPlayerCardRef.value) == null ? void 0 : _m.openCard();
|
|
284918
|
-
personPlayerCardOpened.value = true;
|
|
284919
|
-
handleShowByPersonPlayerCard({
|
|
284920
|
-
gravityTest: true,
|
|
284921
|
-
collisionTest: true,
|
|
284922
|
-
transparentTest: true
|
|
284923
|
-
});
|
|
284924
|
-
} else {
|
|
284925
|
-
menuOpenStatus.personPlayer = false;
|
|
284926
|
-
(_n = personPlayerCardRef.value) == null ? void 0 : _n.closeCard();
|
|
284927
|
-
(_o = personPlayerCardRef.value) == null ? void 0 : _o.closeOpenCard();
|
|
284928
|
-
}
|
|
285027
|
+
showPersonPlayer(!menuOpenStatus.personPlayer);
|
|
284929
285028
|
break;
|
|
284930
285029
|
case menu.setting:
|
|
284931
|
-
|
|
284932
|
-
menuOpenStatus.setting = true;
|
|
284933
|
-
settingCardRef.value.openCard();
|
|
284934
|
-
} else {
|
|
284935
|
-
menuOpenStatus.setting = false;
|
|
284936
|
-
settingCardRef.value.closeCard();
|
|
284937
|
-
}
|
|
285030
|
+
showSetting(!menuOpenStatus.setting);
|
|
284938
285031
|
break;
|
|
284939
285032
|
case menu.cadModel:
|
|
284940
285033
|
toggleCadCard(!menuOpenStatus.cadModel);
|
|
284941
285034
|
break;
|
|
284942
285035
|
case menu.cadLayer:
|
|
284943
|
-
|
|
284944
|
-
menuOpenStatus.cadLayer = true;
|
|
284945
|
-
cadLayerCardRef.value.openCard(cesiumMethods, baseViewerManagements.getBaseDxf().getDxfModelsList(), baseViewerManagements.getBaseDxf().getModelId());
|
|
284946
|
-
} else {
|
|
284947
|
-
menuOpenStatus.cadLayer = false;
|
|
284948
|
-
cadLayerCardRef.value.closeCard();
|
|
284949
|
-
}
|
|
285036
|
+
showCadLayer(!menuOpenStatus.cadLayer);
|
|
284950
285037
|
break;
|
|
284951
285038
|
case menu.miniMap:
|
|
284952
|
-
|
|
284953
|
-
menuOpenStatus.miniMap = true;
|
|
284954
|
-
miniMapRef.value.openCard();
|
|
284955
|
-
} else {
|
|
284956
|
-
menuOpenStatus.miniMap = false;
|
|
284957
|
-
miniMapRef.value.closeCard();
|
|
284958
|
-
}
|
|
285039
|
+
showMiniMap(!menuOpenStatus.miniMap);
|
|
284959
285040
|
break;
|
|
284960
285041
|
case menu.cadHomeView:
|
|
284961
|
-
|
|
285042
|
+
showCadHomeView(true);
|
|
284962
285043
|
break;
|
|
284963
285044
|
case menu.flat:
|
|
284964
|
-
|
|
284965
|
-
menuOpenStatus.flat = true;
|
|
284966
|
-
const modelList = baseViewerManagements.getModelList();
|
|
284967
|
-
const modelIds = modelList.map((i2) => i2.modelId);
|
|
284968
|
-
const rowKey = [modelIds[0]];
|
|
284969
|
-
(_p = flatCardRef.value) == null ? void 0 : _p.openCard(cesiumMethods, "Box", modelList, rowKey, baseViewerManagements.getModelId());
|
|
284970
|
-
baseViewerManagements.getBaseCompt().setFlat(true);
|
|
284971
|
-
} else {
|
|
284972
|
-
menuOpenStatus.flat = false;
|
|
284973
|
-
flatCardRef.value.closeOpenCard();
|
|
284974
|
-
baseViewerManagements.getBaseCompt().setFlat(false);
|
|
284975
|
-
}
|
|
284976
|
-
settingCardRef.value.setShowGlobal(true);
|
|
284977
|
-
enableCesiumSceneConfig(true);
|
|
285045
|
+
showFlat(!menuOpenStatus.flat);
|
|
284978
285046
|
break;
|
|
284979
285047
|
case "annotation":
|
|
284980
|
-
|
|
284981
|
-
menuOpenStatus.annotation = true;
|
|
284982
|
-
(_q = annotationCardRef.value) == null ? void 0 : _q.openCard();
|
|
284983
|
-
} else {
|
|
284984
|
-
menuOpenStatus.annotation = false;
|
|
284985
|
-
(_r = annotationCardRef.value) == null ? void 0 : _r.closeCard();
|
|
284986
|
-
}
|
|
285048
|
+
showAnnotation(!menuOpenStatus.annotation);
|
|
284987
285049
|
break;
|
|
284988
285050
|
}
|
|
284989
285051
|
}
|
|
@@ -285810,6 +285872,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
285810
285872
|
updateAmbientOcclusion,
|
|
285811
285873
|
// 更新场景阴影
|
|
285812
285874
|
updateSceneShadow,
|
|
285875
|
+
// 显示主视图
|
|
285876
|
+
showHomeView,
|
|
285877
|
+
// 显示/隐藏构件树
|
|
285878
|
+
showComponentTree,
|
|
285879
|
+
// 显示/隐藏测量工具
|
|
285880
|
+
showMeasurement,
|
|
285881
|
+
// 显示/隐藏剖切
|
|
285882
|
+
showSection,
|
|
285883
|
+
// 显示/隐藏视点漫游
|
|
285884
|
+
showViewPointTour,
|
|
285885
|
+
// 显示/隐藏构件信息
|
|
285886
|
+
showComponentInfo,
|
|
285887
|
+
// 显示/隐藏搜索对象
|
|
285888
|
+
showSearchObjects,
|
|
285889
|
+
// 显示/隐藏第一人称漫游
|
|
285890
|
+
showPersonPlayer,
|
|
285891
|
+
// 显示/隐藏设置
|
|
285892
|
+
showSetting,
|
|
285893
|
+
// 显示/隐藏 CAD 图层
|
|
285894
|
+
showCadLayer,
|
|
285895
|
+
// 显示/隐藏鹰眼图
|
|
285896
|
+
showMiniMap,
|
|
285897
|
+
// 显示 CAD 主视图
|
|
285898
|
+
showCadHomeView,
|
|
285899
|
+
// 显示/隐藏压平
|
|
285900
|
+
showFlat,
|
|
285901
|
+
// 显示/隐藏标注
|
|
285902
|
+
showAnnotation,
|
|
285813
285903
|
// 设置模型信息(如:位置、旋转、缩放等)
|
|
285814
285904
|
setModelInfo,
|
|
285815
285905
|
// 加载 glTF 模型
|
|
@@ -286790,7 +286880,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
286790
286880
|
});
|
|
286791
286881
|
}
|
|
286792
286882
|
});
|
|
286793
|
-
const BaseCxBImGis = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
286883
|
+
const BaseCxBImGis = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d357d8dd"]]);
|
|
286794
286884
|
function useCesium(options2) {
|
|
286795
286885
|
const CesiumRef = ref(null);
|
|
286796
286886
|
function register4(instance2) {
|
|
@@ -287337,6 +287427,48 @@ function useCesium(options2) {
|
|
|
287337
287427
|
},
|
|
287338
287428
|
updateSceneShadow(shadow) {
|
|
287339
287429
|
return getCesiumInstance().updateSceneShadow(shadow);
|
|
287430
|
+
},
|
|
287431
|
+
showHomeView(show2) {
|
|
287432
|
+
return getCesiumInstance().showHomeView(show2);
|
|
287433
|
+
},
|
|
287434
|
+
showComponentTree(show2) {
|
|
287435
|
+
return getCesiumInstance().showComponentTree(show2);
|
|
287436
|
+
},
|
|
287437
|
+
showMeasurement(show2) {
|
|
287438
|
+
return getCesiumInstance().showMeasurement(show2);
|
|
287439
|
+
},
|
|
287440
|
+
showSection(show2) {
|
|
287441
|
+
return getCesiumInstance().showSection(show2);
|
|
287442
|
+
},
|
|
287443
|
+
showViewPointTour(show2) {
|
|
287444
|
+
return getCesiumInstance().showViewPointTour(show2);
|
|
287445
|
+
},
|
|
287446
|
+
showComponentInfo(show2) {
|
|
287447
|
+
return getCesiumInstance().showComponentInfo(show2);
|
|
287448
|
+
},
|
|
287449
|
+
showSearchObjects(show2) {
|
|
287450
|
+
return getCesiumInstance().showSearchObjects(show2);
|
|
287451
|
+
},
|
|
287452
|
+
showPersonPlayer(show2) {
|
|
287453
|
+
return getCesiumInstance().showPersonPlayer(show2);
|
|
287454
|
+
},
|
|
287455
|
+
showSetting(show2) {
|
|
287456
|
+
return getCesiumInstance().showSetting(show2);
|
|
287457
|
+
},
|
|
287458
|
+
showCadLayer(show2) {
|
|
287459
|
+
return getCesiumInstance().showCadLayer(show2);
|
|
287460
|
+
},
|
|
287461
|
+
showMiniMap(show2) {
|
|
287462
|
+
return getCesiumInstance().showMiniMap(show2);
|
|
287463
|
+
},
|
|
287464
|
+
showCadHomeView(show2) {
|
|
287465
|
+
return getCesiumInstance().showCadHomeView(show2);
|
|
287466
|
+
},
|
|
287467
|
+
showFlat(show2) {
|
|
287468
|
+
return getCesiumInstance().showFlat(show2);
|
|
287469
|
+
},
|
|
287470
|
+
showAnnotation(show2) {
|
|
287471
|
+
return getCesiumInstance().showAnnotation(show2);
|
|
287340
287472
|
}
|
|
287341
287473
|
};
|
|
287342
287474
|
return [register4, methods];
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1734,7 +1734,7 @@
|
|
|
1734
1734
|
margin: 4px 0 0 0;
|
|
1735
1735
|
}
|
|
1736
1736
|
@item-hover-bg :rgba (255, 255, 255, 0.08);
|
|
1737
|
-
.base-cx-BIM-gis[data-v-
|
|
1737
|
+
.base-cx-BIM-gis[data-v-d357d8dd] {
|
|
1738
1738
|
background-size: cover;
|
|
1739
1739
|
/* 调整背景图片大小以填充整个元素 */
|
|
1740
1740
|
background-position: center;
|
|
@@ -1747,28 +1747,28 @@
|
|
|
1747
1747
|
overflow: hidden;
|
|
1748
1748
|
position: relative;
|
|
1749
1749
|
}
|
|
1750
|
-
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-
|
|
1750
|
+
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-widget, .base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-viewer {
|
|
1751
1751
|
position: absolute;
|
|
1752
1752
|
inset: 0;
|
|
1753
1753
|
width: 100%;
|
|
1754
1754
|
height: 100%;
|
|
1755
1755
|
}
|
|
1756
|
-
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-
|
|
1756
|
+
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-widget canvas {
|
|
1757
1757
|
width: 100% !important;
|
|
1758
1758
|
height: 100% !important;
|
|
1759
1759
|
display: block;
|
|
1760
1760
|
touch-action: none;
|
|
1761
1761
|
}
|
|
1762
|
-
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-
|
|
1762
|
+
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-viewer-bottom, .base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-viewer-animationContainer, .base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-viewer-timelineContainer {
|
|
1763
1763
|
display: none;
|
|
1764
1764
|
}
|
|
1765
|
-
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-
|
|
1765
|
+
.base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .vc-viewer, .base-cx-BIM-gis .base-cx-BIM-gis[data-v-d357d8dd] .cesium-viewer {
|
|
1766
1766
|
position: absolute;
|
|
1767
1767
|
inset: 0;
|
|
1768
1768
|
width: 100%;
|
|
1769
1769
|
height: 100%;
|
|
1770
1770
|
}
|
|
1771
|
-
.base-cx-BIM-gis .LeiTingBIM[data-v-
|
|
1771
|
+
.base-cx-BIM-gis .LeiTingBIM[data-v-d357d8dd] {
|
|
1772
1772
|
background-size: cover;
|
|
1773
1773
|
/* 调整背景图片大小以填充整个元素 */
|
|
1774
1774
|
background-position: center;
|
|
@@ -1781,13 +1781,13 @@
|
|
|
1781
1781
|
overflow: hidden;
|
|
1782
1782
|
position: relative;
|
|
1783
1783
|
}
|
|
1784
|
-
.base-cx-BIM-gis .cadBackground[data-v-
|
|
1784
|
+
.base-cx-BIM-gis .cadBackground[data-v-d357d8dd] {
|
|
1785
1785
|
background: #000000;
|
|
1786
1786
|
}
|
|
1787
|
-
.base-cx-BIM-gis .tileBackground[data-v-
|
|
1787
|
+
.base-cx-BIM-gis .tileBackground[data-v-d357d8dd] {
|
|
1788
1788
|
background: linear-gradient(0deg, #eef7ffff 0%, #b2daf4ff 70%, #8dbeddff 100%);
|
|
1789
1789
|
}
|
|
1790
|
-
.base-cx-BIM-gis .context-menu ul[data-v-
|
|
1790
|
+
.base-cx-BIM-gis .context-menu ul[data-v-d357d8dd] {
|
|
1791
1791
|
background: rgba(5, 28, 51, 0.8);
|
|
1792
1792
|
border-radius: 2px;
|
|
1793
1793
|
-webkit-backdrop-filter: blur(5px);
|
|
@@ -1799,6 +1799,6 @@
|
|
|
1799
1799
|
color: #fff;
|
|
1800
1800
|
border-right: none;
|
|
1801
1801
|
}
|
|
1802
|
-
.base-cx-BIM-gis .context-menu ul li[data-v-
|
|
1802
|
+
.base-cx-BIM-gis .context-menu ul li[data-v-d357d8dd]:hover {
|
|
1803
1803
|
color: rgba(255, 255, 255, 0.6) !important;
|
|
1804
1804
|
}
|