sctj-components 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.
@@ -2652,8 +2652,8 @@ const _sfc_main$j = {
2652
2652
  }
2653
2653
  };
2654
2654
  const SCTJTableTopActionContainer = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-056cfdde"]]);
2655
- const index_vue_vue_type_style_index_0_scoped_753d67eb_lang = "";
2656
- const _withScopeId$8 = (n) => (pushScopeId("data-v-753d67eb"), n = n(), popScopeId(), n);
2655
+ const index_vue_vue_type_style_index_0_scoped_6419b31c_lang = "";
2656
+ const _withScopeId$8 = (n) => (pushScopeId("data-v-6419b31c"), n = n(), popScopeId(), n);
2657
2657
  const _hoisted_1$e = {
2658
2658
  key: 0,
2659
2659
  class: "search-container"
@@ -2838,8 +2838,6 @@ const _sfc_main$i = {
2838
2838
  );
2839
2839
  res = await response.json();
2840
2840
  }
2841
- if (res.code !== 200)
2842
- return;
2843
2841
  dataList.value = (_b = (_a = res == null ? void 0 : res.rows) != null ? _a : res.data) != null ? _b : [];
2844
2842
  total.value = (res == null ? void 0 : res.total) || 0;
2845
2843
  await nextTick();
@@ -3203,7 +3201,7 @@ const _sfc_main$i = {
3203
3201
  };
3204
3202
  }
3205
3203
  };
3206
- const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-753d67eb"]]);
3204
+ const SCTJDialogTable = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6419b31c"]]);
3207
3205
  const index_vue_vue_type_style_index_0_scoped_15a9a632_lang = "";
3208
3206
  const _sfc_main$h = {
3209
3207
  __name: "index",
@@ -12265,9 +12263,9 @@ function useBimfaceGIS(options = {}) {
12265
12263
  el.style.top = originalTop;
12266
12264
  return { width, height };
12267
12265
  }
12268
- const drawTextLabel = (options2) => {
12266
+ const textLabelGenerator = (options2) => {
12269
12267
  var _a;
12270
- let config = new Glodon.Bimface.Earth.Plugins.Drawable.CustomItemConfig({});
12268
+ let config = new Glodon.Bimface.Earth.Plugins.Drawable.CustomItemConfig();
12271
12269
  let html = document.createElement("div");
12272
12270
  html.style = handleObj2style(options2.style);
12273
12271
  html.style.width = "fit-content";
@@ -12277,17 +12275,14 @@ function useBimfaceGIS(options = {}) {
12277
12275
  config.visibleDistance = (_a = options2.visibleDistance) != null ? _a : 501;
12278
12276
  config.location = options2.location;
12279
12277
  const { width, height } = getElementSizeOffscreen(html);
12280
- console.log("width", width);
12281
- console.log("height", height);
12278
+ config.opacity = 1;
12282
12279
  config.offsetX = -(width / 2);
12283
12280
  config.offsetY = -height;
12284
- const customItem = new Glodon.Bimface.Earth.Plugins.Drawable.CustomItem(config);
12285
- drawableMng.value.addItem(customItem);
12286
- return customItem;
12281
+ return new Glodon.Bimface.Earth.Plugins.Drawable.CustomItem(config);
12287
12282
  };
12288
- const drawLeadLabel = (options2) => {
12283
+ const leadLabelGenerator = (options2) => {
12289
12284
  var _a;
12290
- let config = new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabelConfig({});
12285
+ let config = new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabelConfig();
12291
12286
  config.text = options2.text;
12292
12287
  config.height = options2.style.height;
12293
12288
  config.width = options2.style.width;
@@ -12306,19 +12301,71 @@ function useBimfaceGIS(options = {}) {
12306
12301
  );
12307
12302
  config.visibleDistance = (_a = options2.visibleDistance) != null ? _a : 501;
12308
12303
  config.worldPosition = options2.worldPosition;
12309
- const customItem = new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabel(config);
12310
- drawableMng.value.addItem(customItem);
12311
- return customItem;
12304
+ return new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabel(config);
12312
12305
  };
12313
- const drawMarker = (options2) => {
12306
+ const markerGenerator = (options2) => {
12314
12307
  let config = new Glodon.Bimface.Earth.Plugins.Marker3D.Marker3DConfig();
12315
12308
  config.src = options2.src;
12316
12309
  config.location = options2.location;
12317
12310
  config.size = options2.size;
12318
12311
  config.tooltip = options2.text;
12319
- let marker3d = new Glodon.Bimface.Earth.Plugins.Marker3D.Marker3D(config);
12320
- markerMng.value.addItem(marker3d);
12321
- return marker3d;
12312
+ return new Glodon.Bimface.Earth.Plugins.Marker3D.Marker3D(config);
12313
+ };
12314
+ const hideAllLabels = () => {
12315
+ drawableMng.value.hideAllItems();
12316
+ };
12317
+ const showAllLabels = () => {
12318
+ drawableMng.value.showAllItems();
12319
+ };
12320
+ const hideAllMarkers = () => {
12321
+ markerMng.value.hideAllItems();
12322
+ };
12323
+ const showAllMarkers = () => {
12324
+ markerMng.value.showAllItems();
12325
+ };
12326
+ const hideAll = () => {
12327
+ hideAllLabels();
12328
+ hideAllMarkers();
12329
+ };
12330
+ const showAll = () => {
12331
+ showAllLabels();
12332
+ showAllMarkers();
12333
+ };
12334
+ const drawTextLabel = (options2) => {
12335
+ const item = textLabelGenerator(options2);
12336
+ drawableMng.value.addItem(item);
12337
+ return item;
12338
+ };
12339
+ const drawLeadLabel = (options2) => {
12340
+ const item = leadLabelGenerator(options2);
12341
+ drawableMng.value.addItem(item);
12342
+ return item;
12343
+ };
12344
+ const drawMarker = (options2) => {
12345
+ const item = markerGenerator(options2);
12346
+ markerMng.value.addItem(item);
12347
+ return item;
12348
+ };
12349
+ const drawTextLabels = (optionList) => {
12350
+ const items = optionList.map((option) => {
12351
+ return textLabelGenerator(option);
12352
+ });
12353
+ drawableMng.value.addItems(items);
12354
+ return items;
12355
+ };
12356
+ const drawLeadLabels = (optionList) => {
12357
+ const items = optionList.map((option) => {
12358
+ return leadLabelGenerator(option);
12359
+ });
12360
+ drawableMng.value.addItems(items);
12361
+ return items;
12362
+ };
12363
+ const drawMarkers = (optionList) => {
12364
+ const items = optionList.map((option) => {
12365
+ return markerGenerator(option);
12366
+ });
12367
+ markerMng.value.addItems(items);
12368
+ return items;
12322
12369
  };
12323
12370
  return {
12324
12371
  viewer,
@@ -12387,13 +12434,22 @@ function useBimfaceGIS(options = {}) {
12387
12434
  closeModelEditor,
12388
12435
  clearAllEffects,
12389
12436
  drawTextLabel,
12437
+ drawTextLabels,
12390
12438
  drawLeadLabel,
12439
+ drawLeadLabels,
12391
12440
  drawMarker,
12441
+ drawMarkers,
12392
12442
  deleteLabelById,
12393
12443
  deleteLabelByIds,
12394
12444
  deleteMarkerById,
12395
12445
  deleteMarkerByIds,
12396
12446
  clearAllDraws,
12447
+ hideAllLabels,
12448
+ hideAllMarkers,
12449
+ showAllLabels,
12450
+ showAllMarkers,
12451
+ hideAll,
12452
+ showAll,
12397
12453
  swipe,
12398
12454
  isSwipeAdded,
12399
12455
  openSwipe,
@@ -12404,8 +12460,8 @@ function useBimfaceGIS(options = {}) {
12404
12460
  dispose
12405
12461
  };
12406
12462
  }
12407
- const index_vue_vue_type_style_index_0_scoped_9656d353_lang = "";
12408
- const _withScopeId = (n) => (pushScopeId("data-v-9656d353"), n = n(), popScopeId(), n);
12463
+ const index_vue_vue_type_style_index_0_scoped_14806784_lang = "";
12464
+ const _withScopeId = (n) => (pushScopeId("data-v-14806784"), n = n(), popScopeId(), n);
12409
12465
  const _hoisted_1 = {
12410
12466
  key: 0,
12411
12467
  class: "loading-mask"
@@ -12468,8 +12524,8 @@ const _sfc_main = {
12468
12524
  setup(__props, { expose, emit }) {
12469
12525
  const props = __props;
12470
12526
  useCssVars((_ctx) => ({
12471
- "5d362dc5": __props.width,
12472
- "2fc09108": __props.height
12527
+ "7a506c38": __props.width,
12528
+ "9423be16": __props.height
12473
12529
  }));
12474
12530
  const containerRef = ref$1(null);
12475
12531
  const {
@@ -12546,13 +12602,22 @@ const _sfc_main = {
12546
12602
  toggleSwipe,
12547
12603
  destroySwipe,
12548
12604
  drawTextLabel,
12605
+ drawTextLabels,
12549
12606
  drawLeadLabel,
12607
+ drawLeadLabels,
12550
12608
  drawMarker,
12609
+ drawMarkers,
12551
12610
  deleteLabelById,
12552
12611
  deleteLabelByIds,
12553
12612
  deleteMarkerById,
12554
12613
  deleteMarkerByIds,
12555
12614
  clearAllDraws,
12615
+ hideAllLabels,
12616
+ hideAllMarkers,
12617
+ showAllLabels,
12618
+ showAllMarkers,
12619
+ hideAll,
12620
+ showAll,
12556
12621
  dispose
12557
12622
  } = useBimfaceGIS({
12558
12623
  onModelTransformEnd: (data) => emit("model-transform-end", data)
@@ -12863,13 +12928,22 @@ const _sfc_main = {
12863
12928
  toggleSwipe,
12864
12929
  destroySwipe,
12865
12930
  drawTextLabel,
12931
+ drawTextLabels,
12866
12932
  drawLeadLabel,
12933
+ drawLeadLabels,
12867
12934
  drawMarker,
12935
+ drawMarkers,
12868
12936
  deleteLabelById,
12869
12937
  deleteLabelByIds,
12870
12938
  deleteMarkerById,
12871
12939
  deleteMarkerByIds,
12872
12940
  clearAllDraws,
12941
+ hideAllLabels,
12942
+ hideAllMarkers,
12943
+ showAllLabels,
12944
+ showAllMarkers,
12945
+ hideAll,
12946
+ showAll,
12873
12947
  dispose
12874
12948
  });
12875
12949
  return (_ctx, _cache) => {
@@ -12901,7 +12975,7 @@ const _sfc_main = {
12901
12975
  };
12902
12976
  }
12903
12977
  };
12904
- const SCTJGISViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9656d353"]]);
12978
+ const SCTJGISViewer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-14806784"]]);
12905
12979
  const components = [
12906
12980
  { component: SCTJDictTag, name: "SCTJDictTag" },
12907
12981
  { component: SCTJTreeSelect, name: "SCTJTreeSelect" },