bruce-cesium 4.0.2 → 4.0.3

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.
@@ -2574,7 +2574,7 @@
2574
2574
  posses = [];
2575
2575
  location = bruceModels.Entity.GetValue({
2576
2576
  entity: entity,
2577
- path: ["Bruce", "location"]
2577
+ path: ["Bruce", "Location"]
2578
2578
  });
2579
2579
  if (location && typeof location == "object" && bruceModels.Carto.ValidateCarto(location)) {
2580
2580
  latitude = EnsureNumber(location.latitude);
@@ -2587,7 +2587,7 @@
2587
2587
  }
2588
2588
  geometry = bruceModels.Entity.GetValue({
2589
2589
  entity: entity,
2590
- path: ["Bruce", "geometry"]
2590
+ path: ["Bruce", "VectorGeometry"]
2591
2591
  });
2592
2592
  if (!(geometry && typeof geometry == "object")) return [3 /*break*/, 4];
2593
2593
  pointStr = geometry.Point;
@@ -2626,7 +2626,7 @@
2626
2626
  case 4:
2627
2627
  boundaries = bruceModels.Entity.GetValue({
2628
2628
  entity: entity,
2629
- path: ["boundaries"]
2629
+ path: ["Bruce, Boundaries"]
2630
2630
  });
2631
2631
  if (!(boundaries && typeof boundaries == "object")) return [3 /*break*/, 6];
2632
2632
  point = {
@@ -2708,7 +2708,7 @@
2708
2708
  if (!tilesetId) {
2709
2709
  tilesetIds = bruceModels.Entity.GetValue({
2710
2710
  entity: entity,
2711
- path: ["Bruce", "tilesetID"]
2711
+ path: ["Bruce", "TilesetIDs"]
2712
2712
  });
2713
2713
  tilesetId = (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) ? tilesetIds[0] : tilesetId;
2714
2714
  }
@@ -2727,7 +2727,7 @@
2727
2727
  pos3d = null;
2728
2728
  eLocation = bruceModels.Entity.GetValue({
2729
2729
  entity: entity,
2730
- path: ["Bruce", "location"]
2730
+ path: ["Bruce", "Location"]
2731
2731
  });
2732
2732
  if (!((eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) || ((_a = tSettings === null || tSettings === void 0 ? void 0 : tSettings.location) === null || _a === void 0 ? void 0 : _a.longitude))) return [3 /*break*/, 16];
2733
2733
  if (eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) {
@@ -2746,12 +2746,12 @@
2746
2746
  }
2747
2747
  worldPosition = bruceModels.Entity.GetValue({
2748
2748
  entity: entity,
2749
- path: ["Bruce", "worldPosition"]
2749
+ path: ["Bruce", "AssemblyWorldPosition"]
2750
2750
  });
2751
2751
  if (!worldPosition) return [3 /*break*/, 16];
2752
2752
  eTransform = bruceModels.Entity.GetValue({
2753
2753
  entity: entity,
2754
- path: ["Bruce", "transform"]
2754
+ path: ["Bruce", "Transform"]
2755
2755
  });
2756
2756
  heading = 0;
2757
2757
  pitch = 0;
@@ -2790,7 +2790,7 @@
2790
2790
  offset = new Cesium.Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
2791
2791
  worldPivot = bruceModels.Entity.GetValue({
2792
2792
  entity: entity,
2793
- path: ["Bruce", "worldPivot"]
2793
+ path: ["Bruce", "GeometryWorldPivot"]
2794
2794
  });
2795
2795
  if (worldPivot) //the position from worldMatrix + center of geometry offset
2796
2796
  {
@@ -2809,7 +2809,7 @@
2809
2809
  case 15:
2810
2810
  geometryRadius = bruceModels.Entity.GetValue({
2811
2811
  entity: entity,
2812
- path: ["Bruce", "geometryRadius"]
2812
+ path: ["Bruce", "GeometryRadius"]
2813
2813
  });
2814
2814
  if (geometryRadius && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
2815
2815
  sphere = Cesium.BoundingSphere.fromPoints([pos3d]);
@@ -2982,7 +2982,7 @@
2982
2982
  function evaluateRecord() {
2983
2983
  var location = bruceModels.Entity.GetValue({
2984
2984
  entity: entity,
2985
- path: ["Bruce", "location"]
2985
+ path: ["Bruce", "Location"]
2986
2986
  });
2987
2987
  if (location && typeof location == "object" && bruceModels.Carto.ValidateCarto(location)) {
2988
2988
  var latitude = EnsureNumber(location.latitude);
@@ -2994,7 +2994,7 @@
2994
2994
  }
2995
2995
  var geometry = bruceModels.Entity.GetValue({
2996
2996
  entity: entity,
2997
- path: ["Bruce", "geometry"]
2997
+ path: ["Bruce", "VectorGeometry"]
2998
2998
  });
2999
2999
  if (geometry && typeof geometry == "object") {
3000
3000
  var pointStr = geometry.Point;
@@ -3042,7 +3042,7 @@
3042
3042
  }
3043
3043
  var boundaries = bruceModels.Entity.GetValue({
3044
3044
  entity: entity,
3045
- path: ["Bruce", "boundaries"]
3045
+ path: ["Bruce", "Boundaries"]
3046
3046
  });
3047
3047
  if (boundaries && typeof boundaries == "object") {
3048
3048
  var point = {
@@ -3102,7 +3102,7 @@
3102
3102
  if (entity) {
3103
3103
  location_1 = bruceModels.Entity.GetValue({
3104
3104
  entity: entity,
3105
- path: ["Bruce", "location"]
3105
+ path: ["Bruce", "Location"]
3106
3106
  });
3107
3107
  lat = +(location_1 === null || location_1 === void 0 ? void 0 : location_1.latitude);
3108
3108
  lon = +(location_1 === null || location_1 === void 0 ? void 0 : location_1.longitude);
@@ -3143,7 +3143,7 @@
3143
3143
  if (!tilesetId) {
3144
3144
  tilesetIds = bruceModels.Entity.GetValue({
3145
3145
  entity: entity,
3146
- path: ["Bruce", "tilesetID"]
3146
+ path: ["Bruce", "TilesetIDs"]
3147
3147
  });
3148
3148
  tilesetId = (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) ? tilesetIds[0] : tilesetId;
3149
3149
  }
@@ -3170,7 +3170,7 @@
3170
3170
  tSettings = tileset === null || tileset === void 0 ? void 0 : tileset.settings;
3171
3171
  eLocation = bruceModels.Entity.GetValue({
3172
3172
  entity: entity,
3173
- path: ["Bruce", "location"]
3173
+ path: ["Bruce", "Location"]
3174
3174
  });
3175
3175
  if ((eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) || ((_a = tSettings === null || tSettings === void 0 ? void 0 : tSettings.location) === null || _a === void 0 ? void 0 : _a.longitude)) {
3176
3176
  if (eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) {
@@ -3189,7 +3189,7 @@
3189
3189
  }
3190
3190
  worldPosition = bruceModels.Entity.GetValue({
3191
3191
  entity: entity,
3192
- path: ["Bruce", "worldPosition"]
3192
+ path: ["Bruce", "AssemblyWorldPosition"]
3193
3193
  });
3194
3194
  if (worldPosition) {
3195
3195
  heading = 0;
@@ -3197,7 +3197,7 @@
3197
3197
  roll = 0;
3198
3198
  eTransform = bruceModels.Entity.GetValue({
3199
3199
  entity: entity,
3200
- path: ["Bruce", "transform"]
3200
+ path: ["Bruce", "Transform"]
3201
3201
  });
3202
3202
  if (eTransform === null || eTransform === void 0 ? void 0 : eTransform.heading) {
3203
3203
  heading = eTransform.heading;
@@ -3233,7 +3233,7 @@
3233
3233
  offset = new Cesium.Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
3234
3234
  worldPivot = bruceModels.Entity.GetValue({
3235
3235
  entity: entity,
3236
- path: ["Bruce", "worldPivot"]
3236
+ path: ["Bruce", "GeometryWorldPivot"]
3237
3237
  });
3238
3238
  if (worldPivot) //the position from worldMatrix + center of geometry offset
3239
3239
  {
@@ -3504,15 +3504,15 @@
3504
3504
  };
3505
3505
  var location_1 = bruceModels.Entity.GetValue({
3506
3506
  entity: entity,
3507
- path: ["Bruce", "location"]
3507
+ path: ["Bruce", "Location"]
3508
3508
  });
3509
3509
  var geometry = bruceModels.Entity.GetValue({
3510
3510
  entity: entity,
3511
- path: ["Bruce", "geometry"]
3511
+ path: ["Bruce", "VectorGeometry"]
3512
3512
  });
3513
3513
  var boundaries = bruceModels.Entity.GetValue({
3514
3514
  entity: entity,
3515
- path: ["Bruce", "boundaries"]
3515
+ path: ["Bruce", "Boundaries"]
3516
3516
  });
3517
3517
  var entityData = __assign(__assign(__assign({}, location_1), geometry), boundaries);
3518
3518
  return JSON.stringify(pointData) + '|' + JSON.stringify(entityData);
@@ -3541,7 +3541,7 @@
3541
3541
  var entityPos3d = null;
3542
3542
  var location = bruceModels.Entity.GetValue({
3543
3543
  entity: entity,
3544
- path: ["Bruce", "location"]
3544
+ path: ["Bruce", "Location"]
3545
3545
  });
3546
3546
  if (location && location.latitude) {
3547
3547
  var latitude = EnsureNumber(location.latitude);
@@ -3558,7 +3558,7 @@
3558
3558
  // Check geometry if it's available.
3559
3559
  var geometry = bruceModels.Entity.GetValue({
3560
3560
  entity: entity,
3561
- path: ["Bruce", "geometry"]
3561
+ path: ["Bruce", "VectorGeometry"]
3562
3562
  });
3563
3563
  if (geometry) {
3564
3564
  var passedGeometry = false;
@@ -3606,7 +3606,7 @@
3606
3606
  if (minDistance === Infinity) {
3607
3607
  var boundaries = bruceModels.Entity.GetValue({
3608
3608
  entity: entity,
3609
- path: ["Bruce", "boundaries"]
3609
+ path: ["Bruce", "Boundaries"]
3610
3610
  });
3611
3611
  if (boundaries && typeof boundaries == "object") {
3612
3612
  var point_1 = {
@@ -4647,7 +4647,7 @@
4647
4647
  */
4648
4648
  var height = bruceModels.Entity.GetValue({
4649
4649
  entity: entity,
4650
- path: ["Bruce", "location", "altitude"]
4650
+ path: ["Bruce", "Location", "altitude"]
4651
4651
  });
4652
4652
  return heightRef != Cesium.HeightReference.CLAMP_TO_GROUND ? extrusion + height : extrusion;
4653
4653
  }
@@ -4670,7 +4670,7 @@
4670
4670
  // This let's us have a consistent extrusion height, and be adjustable easier by user.
4671
4671
  var alt_1 = bruceModels.Entity.GetValue({
4672
4672
  entity: entity,
4673
- path: ["Bruce", "location", "altitude"]
4673
+ path: ["Bruce", "Location", "altitude"]
4674
4674
  });
4675
4675
  if (!alt_1) {
4676
4676
  alt_1 = 0;
@@ -4727,7 +4727,7 @@
4727
4727
  */
4728
4728
  var height = EnsureNumber(bruceModels.Entity.GetValue({
4729
4729
  entity: entity,
4730
- path: ["Bruce", "location", "altitude"]
4730
+ path: ["Bruce", "Location", "altitude"]
4731
4731
  }), 0);
4732
4732
  return heightRef != Cesium.HeightReference.CLAMP_TO_GROUND ? extrusion + height : extrusion;
4733
4733
  }
@@ -4951,7 +4951,7 @@
4951
4951
  var hasCalculatedBounds = false;
4952
4952
  var bounds = bruceModels.Entity.GetValue({
4953
4953
  entity: entity,
4954
- path: ["Bruce", "boundaries"]
4954
+ path: ["Bruce", "Boundaries"]
4955
4955
  });
4956
4956
  var calculateBounds = function () {
4957
4957
  hasCalculatedBounds = true;
@@ -4997,11 +4997,11 @@
4997
4997
  // We'll set the change in both places.
4998
4998
  if (entity.boundaries) {
4999
4999
  entity.boundaries = bounds;
5000
- entity.Bruce.boundaries = bounds;
5000
+ entity.Bruce.Boundaries = bounds;
5001
5001
  }
5002
5002
  // Data migrated to an internal field.
5003
5003
  else {
5004
- entity.Bruce.boundaries = bounds;
5004
+ entity.Bruce.Boundaries = bounds;
5005
5005
  }
5006
5006
  }
5007
5007
  return length;
@@ -5318,17 +5318,17 @@
5318
5318
  entity = params.entities[i];
5319
5319
  geometry = bruceModels.Entity.GetValue({
5320
5320
  entity: entity,
5321
- path: ["Bruce", "geometry"]
5321
+ path: ["Bruce", "VectorGeometry"]
5322
5322
  });
5323
5323
  if (((_a = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _a === void 0 ? void 0 : _a.length) == 1) {
5324
5324
  // Not migrated to internal, set in both places.
5325
5325
  if (entity.geometry) {
5326
5326
  entity.geometry = __assign(__assign(__assign({}, entity.geometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
5327
- entity.Bruce.geometry = entity.geometry;
5327
+ entity.Bruce.VectorGeometry = entity.geometry;
5328
5328
  }
5329
5329
  // Migrated to internal, we'll set it there.
5330
- else if (entity.Bruce.geometry) {
5331
- entity.Bruce.geometry = __assign(__assign(__assign({}, entity.Bruce.geometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
5330
+ else if (entity.Bruce.VectorGeometry) {
5331
+ entity.Bruce.VectorGeometry = __assign(__assign(__assign({}, entity.Bruce.VectorGeometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
5332
5332
  }
5333
5333
  }
5334
5334
  }
@@ -5389,7 +5389,7 @@
5389
5389
  else if (displayType == bruceModels.ZoomControl.EDisplayType.Geometry) {
5390
5390
  geometry = bruceModels.Entity.GetValue({
5391
5391
  entity: entity,
5392
- path: ["Bruce", "geometry"]
5392
+ path: ["Bruce", "VectorGeometry"]
5393
5393
  });
5394
5394
  if ((_f = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _f === void 0 ? void 0 : _f.length) {
5395
5395
  multiGeometry.push(entity);
@@ -5432,7 +5432,7 @@
5432
5432
  entity = multiGeometry[i];
5433
5433
  geometry = bruceModels.Entity.GetValue({
5434
5434
  entity: entity,
5435
- path: ["Bruce", "geometry"]
5435
+ path: ["Bruce", "VectorGeometry"]
5436
5436
  });
5437
5437
  if (!((_g = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _g === void 0 ? void 0 : _g.length)) {
5438
5438
  polygons.push(entity);
@@ -6160,7 +6160,7 @@
6160
6160
  var entity = params.entity;
6161
6161
  var lineString = bruceModels.Entity.GetValue({
6162
6162
  entity: entity,
6163
- path: ["Bruce", "geometry", "LineString"]
6163
+ path: ["Bruce", "VectorGeometry", "LineString"]
6164
6164
  });
6165
6165
  var points = lineString && typeof lineString == "string" ? bruceModels.Geometry.ParsePoints(lineString) : [];
6166
6166
  if (!points || points.length < 2) {
@@ -6424,7 +6424,7 @@
6424
6424
  var entity = params.entity;
6425
6425
  var pRings = bruceModels.Entity.GetValue({
6426
6426
  entity: entity,
6427
- path: ["Bruce", "geometry", "Polygon"]
6427
+ path: ["Bruce", "VectorGeometry", "Polygon"]
6428
6428
  });
6429
6429
  if (pRings == null || !Array.isArray(pRings) || pRings.length <= 0) {
6430
6430
  return null;
@@ -6802,7 +6802,7 @@
6802
6802
  }
6803
6803
  var transform = bruceModels.Entity.GetValue({
6804
6804
  entity: entity,
6805
- path: ["Bruce", "transform"]
6805
+ path: ["Bruce", "Transform"]
6806
6806
  });
6807
6807
  var heading = EnsureNumber(transform === null || transform === void 0 ? void 0 : transform.heading);
6808
6808
  heading = (heading + 90) % 360;
@@ -24518,7 +24518,7 @@
24518
24518
  ViewRenderEngine.Render = Render;
24519
24519
  })(exports.ViewRenderEngine || (exports.ViewRenderEngine = {}));
24520
24520
 
24521
- var VERSION = "4.0.2";
24521
+ var VERSION = "4.0.3";
24522
24522
 
24523
24523
  exports.VERSION = VERSION;
24524
24524
  exports.CesiumParabola = CesiumParabola;