sctj-components 1.1.3 → 1.1.5
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 +101 -21
- package/lib/sctj-components.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -12265,26 +12265,26 @@ function useBimfaceGIS(options = {}) {
|
|
|
12265
12265
|
el.style.top = originalTop;
|
|
12266
12266
|
return { width, height };
|
|
12267
12267
|
}
|
|
12268
|
-
const
|
|
12269
|
-
|
|
12268
|
+
const textLabelGenerator = (options2) => {
|
|
12269
|
+
var _a;
|
|
12270
|
+
let config = new Glodon.Bimface.Earth.Plugins.Drawable.CustomItemConfig();
|
|
12270
12271
|
let html = document.createElement("div");
|
|
12271
12272
|
html.style = handleObj2style(options2.style);
|
|
12272
12273
|
html.style.width = "fit-content";
|
|
12273
12274
|
html.style.whiteSpace = "nowrap";
|
|
12274
12275
|
html.innerHTML = options2.text;
|
|
12275
12276
|
config.content = html;
|
|
12277
|
+
config.visibleDistance = (_a = options2.visibleDistance) != null ? _a : 501;
|
|
12276
12278
|
config.location = options2.location;
|
|
12277
12279
|
const { width, height } = getElementSizeOffscreen(html);
|
|
12278
|
-
|
|
12279
|
-
console.log("height", height);
|
|
12280
|
+
config.opacity = 1;
|
|
12280
12281
|
config.offsetX = -(width / 2);
|
|
12281
12282
|
config.offsetY = -height;
|
|
12282
|
-
|
|
12283
|
-
drawableMng.value.addItem(customItem);
|
|
12284
|
-
return customItem;
|
|
12283
|
+
return new Glodon.Bimface.Earth.Plugins.Drawable.CustomItem(config);
|
|
12285
12284
|
};
|
|
12286
|
-
const
|
|
12287
|
-
|
|
12285
|
+
const leadLabelGenerator = (options2) => {
|
|
12286
|
+
var _a;
|
|
12287
|
+
let config = new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabelConfig();
|
|
12288
12288
|
config.text = options2.text;
|
|
12289
12289
|
config.height = options2.style.height;
|
|
12290
12290
|
config.width = options2.style.width;
|
|
@@ -12301,20 +12301,73 @@ function useBimfaceGIS(options = {}) {
|
|
|
12301
12301
|
options2.style.lineColor.blue,
|
|
12302
12302
|
options2.style.lineColor.alpha
|
|
12303
12303
|
);
|
|
12304
|
+
config.visibleDistance = (_a = options2.visibleDistance) != null ? _a : 501;
|
|
12304
12305
|
config.worldPosition = options2.worldPosition;
|
|
12305
|
-
|
|
12306
|
-
drawableMng.value.addItem(customItem);
|
|
12307
|
-
return customItem;
|
|
12306
|
+
return new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabel(config);
|
|
12308
12307
|
};
|
|
12309
|
-
const
|
|
12308
|
+
const markerGenerator = (options2) => {
|
|
12310
12309
|
let config = new Glodon.Bimface.Earth.Plugins.Marker3D.Marker3DConfig();
|
|
12311
12310
|
config.src = options2.src;
|
|
12312
12311
|
config.location = options2.location;
|
|
12313
12312
|
config.size = options2.size;
|
|
12314
12313
|
config.tooltip = options2.text;
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12314
|
+
return new Glodon.Bimface.Earth.Plugins.Marker3D.Marker3D(config);
|
|
12315
|
+
};
|
|
12316
|
+
const hideAllLabels = () => {
|
|
12317
|
+
drawableMng.value.hideAllItems();
|
|
12318
|
+
};
|
|
12319
|
+
const showAllLabels = () => {
|
|
12320
|
+
drawableMng.value.showAllItems();
|
|
12321
|
+
};
|
|
12322
|
+
const hideAllMarkers = () => {
|
|
12323
|
+
markerMng.value.hideAllItems();
|
|
12324
|
+
};
|
|
12325
|
+
const showAllMarkers = () => {
|
|
12326
|
+
markerMng.value.showAllItems();
|
|
12327
|
+
};
|
|
12328
|
+
const hideAll = () => {
|
|
12329
|
+
hideAllLabels();
|
|
12330
|
+
hideAllMarkers();
|
|
12331
|
+
};
|
|
12332
|
+
const showAll = () => {
|
|
12333
|
+
showAllLabels();
|
|
12334
|
+
showAllMarkers();
|
|
12335
|
+
};
|
|
12336
|
+
const drawTextLabel = (options2) => {
|
|
12337
|
+
const item = textLabelGenerator(options2);
|
|
12338
|
+
drawableMng.value.addItem(item);
|
|
12339
|
+
return item;
|
|
12340
|
+
};
|
|
12341
|
+
const drawLeadLabel = (options2) => {
|
|
12342
|
+
const item = leadLabelGenerator(options2);
|
|
12343
|
+
drawableMng.value.addItem(item);
|
|
12344
|
+
return item;
|
|
12345
|
+
};
|
|
12346
|
+
const drawMarker = (options2) => {
|
|
12347
|
+
const item = markerGenerator(options2);
|
|
12348
|
+
markerMng.value.addItem(item);
|
|
12349
|
+
return item;
|
|
12350
|
+
};
|
|
12351
|
+
const drawTextLabels = (optionList) => {
|
|
12352
|
+
const items = optionList.map((option) => {
|
|
12353
|
+
return textLabelGenerator(option);
|
|
12354
|
+
});
|
|
12355
|
+
drawableMng.value.addItems(items);
|
|
12356
|
+
return items;
|
|
12357
|
+
};
|
|
12358
|
+
const drawLeadLabels = (optionList) => {
|
|
12359
|
+
const items = optionList.map((option) => {
|
|
12360
|
+
return leadLabelGenerator(option);
|
|
12361
|
+
});
|
|
12362
|
+
drawableMng.value.addItems(items);
|
|
12363
|
+
return items;
|
|
12364
|
+
};
|
|
12365
|
+
const drawMarkers = (optionList) => {
|
|
12366
|
+
const items = optionList.map((option) => {
|
|
12367
|
+
return markerGenerator(option);
|
|
12368
|
+
});
|
|
12369
|
+
markerMng.value.addItems(items);
|
|
12370
|
+
return items;
|
|
12318
12371
|
};
|
|
12319
12372
|
return {
|
|
12320
12373
|
viewer,
|
|
@@ -12383,13 +12436,22 @@ function useBimfaceGIS(options = {}) {
|
|
|
12383
12436
|
closeModelEditor,
|
|
12384
12437
|
clearAllEffects,
|
|
12385
12438
|
drawTextLabel,
|
|
12439
|
+
drawTextLabels,
|
|
12386
12440
|
drawLeadLabel,
|
|
12441
|
+
drawLeadLabels,
|
|
12387
12442
|
drawMarker,
|
|
12443
|
+
drawMarkers,
|
|
12388
12444
|
deleteLabelById,
|
|
12389
12445
|
deleteLabelByIds,
|
|
12390
12446
|
deleteMarkerById,
|
|
12391
12447
|
deleteMarkerByIds,
|
|
12392
12448
|
clearAllDraws,
|
|
12449
|
+
hideAllLabels,
|
|
12450
|
+
hideAllMarkers,
|
|
12451
|
+
showAllLabels,
|
|
12452
|
+
showAllMarkers,
|
|
12453
|
+
hideAll,
|
|
12454
|
+
showAll,
|
|
12393
12455
|
swipe,
|
|
12394
12456
|
isSwipeAdded,
|
|
12395
12457
|
openSwipe,
|
|
@@ -12400,8 +12462,8 @@ function useBimfaceGIS(options = {}) {
|
|
|
12400
12462
|
dispose
|
|
12401
12463
|
};
|
|
12402
12464
|
}
|
|
12403
|
-
const
|
|
12404
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
12465
|
+
const index_vue_vue_type_style_index_0_scoped_14806784_lang = "";
|
|
12466
|
+
const _withScopeId = (n) => (pushScopeId("data-v-14806784"), n = n(), popScopeId(), n);
|
|
12405
12467
|
const _hoisted_1 = {
|
|
12406
12468
|
key: 0,
|
|
12407
12469
|
class: "loading-mask"
|
|
@@ -12464,8 +12526,8 @@ const _sfc_main = {
|
|
|
12464
12526
|
setup(__props, { expose, emit }) {
|
|
12465
12527
|
const props = __props;
|
|
12466
12528
|
useCssVars((_ctx) => ({
|
|
12467
|
-
"
|
|
12468
|
-
"
|
|
12529
|
+
"7a506c38": __props.width,
|
|
12530
|
+
"9423be16": __props.height
|
|
12469
12531
|
}));
|
|
12470
12532
|
const containerRef = ref$1(null);
|
|
12471
12533
|
const {
|
|
@@ -12542,13 +12604,22 @@ const _sfc_main = {
|
|
|
12542
12604
|
toggleSwipe,
|
|
12543
12605
|
destroySwipe,
|
|
12544
12606
|
drawTextLabel,
|
|
12607
|
+
drawTextLabels,
|
|
12545
12608
|
drawLeadLabel,
|
|
12609
|
+
drawLeadLabels,
|
|
12546
12610
|
drawMarker,
|
|
12611
|
+
drawMarkers,
|
|
12547
12612
|
deleteLabelById,
|
|
12548
12613
|
deleteLabelByIds,
|
|
12549
12614
|
deleteMarkerById,
|
|
12550
12615
|
deleteMarkerByIds,
|
|
12551
12616
|
clearAllDraws,
|
|
12617
|
+
hideAllLabels,
|
|
12618
|
+
hideAllMarkers,
|
|
12619
|
+
showAllLabels,
|
|
12620
|
+
showAllMarkers,
|
|
12621
|
+
hideAll,
|
|
12622
|
+
showAll,
|
|
12552
12623
|
dispose
|
|
12553
12624
|
} = useBimfaceGIS({
|
|
12554
12625
|
onModelTransformEnd: (data) => emit("model-transform-end", data)
|
|
@@ -12859,13 +12930,22 @@ const _sfc_main = {
|
|
|
12859
12930
|
toggleSwipe,
|
|
12860
12931
|
destroySwipe,
|
|
12861
12932
|
drawTextLabel,
|
|
12933
|
+
drawTextLabels,
|
|
12862
12934
|
drawLeadLabel,
|
|
12935
|
+
drawLeadLabels,
|
|
12863
12936
|
drawMarker,
|
|
12937
|
+
drawMarkers,
|
|
12864
12938
|
deleteLabelById,
|
|
12865
12939
|
deleteLabelByIds,
|
|
12866
12940
|
deleteMarkerById,
|
|
12867
12941
|
deleteMarkerByIds,
|
|
12868
12942
|
clearAllDraws,
|
|
12943
|
+
hideAllLabels,
|
|
12944
|
+
hideAllMarkers,
|
|
12945
|
+
showAllLabels,
|
|
12946
|
+
showAllMarkers,
|
|
12947
|
+
hideAll,
|
|
12948
|
+
showAll,
|
|
12869
12949
|
dispose
|
|
12870
12950
|
});
|
|
12871
12951
|
return (_ctx, _cache) => {
|
|
@@ -12897,7 +12977,7 @@ const _sfc_main = {
|
|
|
12897
12977
|
};
|
|
12898
12978
|
}
|
|
12899
12979
|
};
|
|
12900
|
-
const SCTJGISViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
12980
|
+
const SCTJGISViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-14806784"]]);
|
|
12901
12981
|
const components = [
|
|
12902
12982
|
{ component: SCTJDictTag, name: "SCTJDictTag" },
|
|
12903
12983
|
{ component: SCTJTreeSelect, name: "SCTJTreeSelect" },
|