bruce-cesium 7.8.9 → 7.9.1

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.
@@ -97,7 +97,7 @@ __exportStar(require("./widgets/widget-info-view"), exports);
97
97
  __exportStar(require("./widgets/widget-left-panel"), exports);
98
98
  __exportStar(require("./widgets/widget-nav-compass"), exports);
99
99
  __exportStar(require("./widgets/widget-view-bar"), exports);
100
- exports.VERSION = "7.8.9";
100
+ exports.VERSION = "7.9.1";
101
101
  /**
102
102
  * Updates the environment instance used by bruce-cesium to one specified.
103
103
  * This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
@@ -3909,7 +3909,7 @@ var EntityLabel;
3909
3909
  * If one exists then the action is ignored.
3910
3910
  */
3911
3911
  function Attach(params) {
3912
- var _a, _b, _c;
3912
+ var _a, _b, _c, _d;
3913
3913
  const { rego, viewer, pos3d, visualRegister, api, options, groupId } = params;
3914
3914
  if (!rego || !viewer) {
3915
3915
  return;
@@ -3920,8 +3920,8 @@ var EntityLabel;
3920
3920
  return Attach({
3921
3921
  ...params,
3922
3922
  pos3d: undefined,
3923
- options: (_a = group === null || group === void 0 ? void 0 : group.options) !== null && _a !== void 0 ? _a : options,
3924
- groupId: (_b = group === null || group === void 0 ? void 0 : group.groupId) !== null && _b !== void 0 ? _b : groupId,
3923
+ options: group ? group.options : (_b = (_a = visualRegister.GetLabelDefaults) === null || _a === void 0 ? void 0 : _a.call(visualRegister)) !== null && _b !== void 0 ? _b : options,
3924
+ groupId: (_c = group === null || group === void 0 ? void 0 : group.groupId) !== null && _c !== void 0 ? _c : groupId,
3925
3925
  persistent: true
3926
3926
  });
3927
3927
  }
@@ -3931,7 +3931,7 @@ var EntityLabel;
3931
3931
  if (rego[EntityLabel.ATTACH_KEY].Persistent && params.persistent !== true && !groupId) {
3932
3932
  return rego[EntityLabel.ATTACH_KEY];
3933
3933
  }
3934
- rego[EntityLabel.ATTACH_KEY].Persistent = (_c = params.persistent) !== null && _c !== void 0 ? _c : Boolean(groupId);
3934
+ rego[EntityLabel.ATTACH_KEY].Persistent = (_d = params.persistent) !== null && _d !== void 0 ? _d : Boolean(groupId);
3935
3935
  rego[EntityLabel.ATTACH_KEY].Configure(options, groupId);
3936
3936
  return rego[EntityLabel.ATTACH_KEY];
3937
3937
  }