sctj-components 1.1.3 → 1.1.4

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.
@@ -12266,6 +12266,7 @@ function useBimfaceGIS(options = {}) {
12266
12266
  return { width, height };
12267
12267
  }
12268
12268
  const drawTextLabel = (options2) => {
12269
+ var _a;
12269
12270
  let config = new Glodon.Bimface.Earth.Plugins.Drawable.CustomItemConfig({});
12270
12271
  let html = document.createElement("div");
12271
12272
  html.style = handleObj2style(options2.style);
@@ -12273,6 +12274,7 @@ function useBimfaceGIS(options = {}) {
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
12280
  console.log("width", width);
@@ -12284,6 +12286,7 @@ function useBimfaceGIS(options = {}) {
12284
12286
  return customItem;
12285
12287
  };
12286
12288
  const drawLeadLabel = (options2) => {
12289
+ var _a;
12287
12290
  let config = new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabelConfig({});
12288
12291
  config.text = options2.text;
12289
12292
  config.height = options2.style.height;
@@ -12301,6 +12304,7 @@ function useBimfaceGIS(options = {}) {
12301
12304
  options2.style.lineColor.blue,
12302
12305
  options2.style.lineColor.alpha
12303
12306
  );
12307
+ config.visibleDistance = (_a = options2.visibleDistance) != null ? _a : 501;
12304
12308
  config.worldPosition = options2.worldPosition;
12305
12309
  const customItem = new Glodon.Bimface.Earth.Plugins.Drawable.LeadLabel(config);
12306
12310
  drawableMng.value.addItem(customItem);