bruce-cesium 4.0.2 → 4.0.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.
Files changed (29) hide show
  1. package/dist/bruce-cesium.es5.js +70 -54
  2. package/dist/bruce-cesium.es5.js.map +1 -1
  3. package/dist/bruce-cesium.umd.js +69 -53
  4. package/dist/bruce-cesium.umd.js.map +1 -1
  5. package/dist/lib/bruce-cesium.js +1 -1
  6. package/dist/lib/rendering/entity-render-engine.js +15 -15
  7. package/dist/lib/rendering/entity-render-engine.js.map +1 -1
  8. package/dist/lib/rendering/getters/entity-filter-getter.js +1 -0
  9. package/dist/lib/rendering/getters/entity-filter-getter.js.map +1 -1
  10. package/dist/lib/rendering/relation-render-engine.js +4 -1
  11. package/dist/lib/rendering/relation-render-engine.js.map +1 -1
  12. package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js +2 -1
  13. package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js.map +1 -1
  14. package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js +2 -1
  15. package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js.map +1 -1
  16. package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +4 -2
  17. package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
  18. package/dist/lib/rendering/render-managers/entities/entity-render-manager.js +2 -1
  19. package/dist/lib/rendering/render-managers/entities/entity-render-manager.js.map +1 -1
  20. package/dist/lib/rendering/render-managers/render-manager.js +6 -6
  21. package/dist/lib/rendering/render-managers/render-manager.js.map +1 -1
  22. package/dist/lib/rendering/tileset-render-engine.js +2 -1
  23. package/dist/lib/rendering/tileset-render-engine.js.map +1 -1
  24. package/dist/lib/utils/entity-utils.js +28 -23
  25. package/dist/lib/utils/entity-utils.js.map +1 -1
  26. package/dist/lib/widgets/widget-info-view.js +2 -1
  27. package/dist/lib/widgets/widget-info-view.js.map +1 -1
  28. package/dist/types/bruce-cesium.d.ts +1 -1
  29. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, Api, EntityRelationType, ENVIRONMENT, EntityHistoricData, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, Camera } from 'bruce-models';
2
2
  import * as Cesium from 'cesium';
3
- import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, BoundingSphere, GeometryInstance, CesiumInspector, ClockRange, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Quaternion, Intersect } from 'cesium';
3
+ import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, OrthographicFrustum, EasingFunction, CesiumInspector, defined, ClockRange, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Quaternion, Intersect } from 'cesium';
4
4
 
5
5
  /*! *****************************************************************************
6
6
  Copyright (c) Microsoft Corporation. All rights reserved.
@@ -2582,7 +2582,7 @@ var EntityUtils;
2582
2582
  posses = [];
2583
2583
  location = Entity$1.GetValue({
2584
2584
  entity: entity,
2585
- path: ["Bruce", "location"]
2585
+ path: ["Bruce", "Location"]
2586
2586
  });
2587
2587
  if (location && typeof location == "object" && Carto.ValidateCarto(location)) {
2588
2588
  latitude = EnsureNumber(location.latitude);
@@ -2595,7 +2595,7 @@ var EntityUtils;
2595
2595
  }
2596
2596
  geometry = Entity$1.GetValue({
2597
2597
  entity: entity,
2598
- path: ["Bruce", "geometry"]
2598
+ path: ["Bruce", "VectorGeometry"]
2599
2599
  });
2600
2600
  if (!(geometry && typeof geometry == "object")) return [3 /*break*/, 4];
2601
2601
  pointStr = geometry.Point;
@@ -2634,7 +2634,7 @@ var EntityUtils;
2634
2634
  case 4:
2635
2635
  boundaries = Entity$1.GetValue({
2636
2636
  entity: entity,
2637
- path: ["boundaries"]
2637
+ path: ["Bruce, Boundaries"]
2638
2638
  });
2639
2639
  if (!(boundaries && typeof boundaries == "object")) return [3 /*break*/, 6];
2640
2640
  point = {
@@ -2675,7 +2675,8 @@ var EntityUtils;
2675
2675
  api: api,
2676
2676
  entityId: entityId,
2677
2677
  // Not expanding relative positions at first to see if the entity has valid location just by itself.
2678
- expandLocation: false
2678
+ expandLocation: false,
2679
+ migrated: true
2679
2680
  })];
2680
2681
  case 4:
2681
2682
  entity = (_e.sent()).entity;
@@ -2703,7 +2704,8 @@ var EntityUtils;
2703
2704
  api: api,
2704
2705
  entityId: entityId,
2705
2706
  // We'll be expanding relative positioning and related tilesets now.
2706
- expandLocation: true
2707
+ expandLocation: true,
2708
+ migrated: true
2707
2709
  })];
2708
2710
  case 9:
2709
2711
  entity = (_e.sent()).entity;
@@ -2716,7 +2718,7 @@ var EntityUtils;
2716
2718
  if (!tilesetId) {
2717
2719
  tilesetIds = Entity$1.GetValue({
2718
2720
  entity: entity,
2719
- path: ["Bruce", "tilesetID"]
2721
+ path: ["Bruce", "TilesetIDs"]
2720
2722
  });
2721
2723
  tilesetId = (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) ? tilesetIds[0] : tilesetId;
2722
2724
  }
@@ -2735,7 +2737,7 @@ var EntityUtils;
2735
2737
  pos3d = null;
2736
2738
  eLocation = Entity$1.GetValue({
2737
2739
  entity: entity,
2738
- path: ["Bruce", "location"]
2740
+ path: ["Bruce", "Location"]
2739
2741
  });
2740
2742
  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];
2741
2743
  if (eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) {
@@ -2754,12 +2756,12 @@ var EntityUtils;
2754
2756
  }
2755
2757
  worldPosition = Entity$1.GetValue({
2756
2758
  entity: entity,
2757
- path: ["Bruce", "worldPosition"]
2759
+ path: ["Bruce", "AssemblyWorldPosition"]
2758
2760
  });
2759
2761
  if (!worldPosition) return [3 /*break*/, 16];
2760
2762
  eTransform = Entity$1.GetValue({
2761
2763
  entity: entity,
2762
- path: ["Bruce", "transform"]
2764
+ path: ["Bruce", "Transform"]
2763
2765
  });
2764
2766
  heading = 0;
2765
2767
  pitch = 0;
@@ -2798,7 +2800,7 @@ var EntityUtils;
2798
2800
  offset = new Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
2799
2801
  worldPivot = Entity$1.GetValue({
2800
2802
  entity: entity,
2801
- path: ["Bruce", "worldPivot"]
2803
+ path: ["Bruce", "GeometryWorldPivot"]
2802
2804
  });
2803
2805
  if (worldPivot) //the position from worldMatrix + center of geometry offset
2804
2806
  {
@@ -2817,7 +2819,7 @@ var EntityUtils;
2817
2819
  case 15:
2818
2820
  geometryRadius = Entity$1.GetValue({
2819
2821
  entity: entity,
2820
- path: ["Bruce", "geometryRadius"]
2822
+ path: ["Bruce", "GeometryRadius"]
2821
2823
  });
2822
2824
  if (geometryRadius && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
2823
2825
  sphere = BoundingSphere.fromPoints([pos3d]);
@@ -2990,7 +2992,7 @@ var EntityUtils;
2990
2992
  function evaluateRecord() {
2991
2993
  var location = Entity$1.GetValue({
2992
2994
  entity: entity,
2993
- path: ["Bruce", "location"]
2995
+ path: ["Bruce", "Location"]
2994
2996
  });
2995
2997
  if (location && typeof location == "object" && Carto.ValidateCarto(location)) {
2996
2998
  var latitude = EnsureNumber(location.latitude);
@@ -3002,7 +3004,7 @@ var EntityUtils;
3002
3004
  }
3003
3005
  var geometry = Entity$1.GetValue({
3004
3006
  entity: entity,
3005
- path: ["Bruce", "geometry"]
3007
+ path: ["Bruce", "VectorGeometry"]
3006
3008
  });
3007
3009
  if (geometry && typeof geometry == "object") {
3008
3010
  var pointStr = geometry.Point;
@@ -3050,7 +3052,7 @@ var EntityUtils;
3050
3052
  }
3051
3053
  var boundaries = Entity$1.GetValue({
3052
3054
  entity: entity,
3053
- path: ["Bruce", "boundaries"]
3055
+ path: ["Bruce", "Boundaries"]
3054
3056
  });
3055
3057
  if (boundaries && typeof boundaries == "object") {
3056
3058
  var point = {
@@ -3103,14 +3105,15 @@ var EntityUtils;
3103
3105
  return [4 /*yield*/, Entity$1.Get({
3104
3106
  api: api,
3105
3107
  entityId: entityId,
3106
- expandLocation: false
3108
+ expandLocation: false,
3109
+ migrated: true
3107
3110
  })];
3108
3111
  case 2:
3109
3112
  entity = (_e.sent()).entity;
3110
3113
  if (entity) {
3111
3114
  location_1 = Entity$1.GetValue({
3112
3115
  entity: entity,
3113
- path: ["Bruce", "location"]
3116
+ path: ["Bruce", "Location"]
3114
3117
  });
3115
3118
  lat = +(location_1 === null || location_1 === void 0 ? void 0 : location_1.latitude);
3116
3119
  lon = +(location_1 === null || location_1 === void 0 ? void 0 : location_1.longitude);
@@ -3128,7 +3131,8 @@ var EntityUtils;
3128
3131
  return [4 /*yield*/, Entity$1.Get({
3129
3132
  api: api,
3130
3133
  entityId: entityId,
3131
- expandLocation: true
3134
+ expandLocation: true,
3135
+ migrated: true
3132
3136
  })];
3133
3137
  case 6:
3134
3138
  entity = (_e.sent()).entity;
@@ -3139,7 +3143,8 @@ var EntityUtils;
3139
3143
  return [4 /*yield*/, Entity$1.Get({
3140
3144
  api: api,
3141
3145
  entityId: entityId,
3142
- expandLocation: false
3146
+ expandLocation: false,
3147
+ migrated: true
3143
3148
  })];
3144
3149
  case 8:
3145
3150
  entity = (_e.sent()).entity;
@@ -3151,7 +3156,7 @@ var EntityUtils;
3151
3156
  if (!tilesetId) {
3152
3157
  tilesetIds = Entity$1.GetValue({
3153
3158
  entity: entity,
3154
- path: ["Bruce", "tilesetID"]
3159
+ path: ["Bruce", "TilesetIDs"]
3155
3160
  });
3156
3161
  tilesetId = (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) ? tilesetIds[0] : tilesetId;
3157
3162
  }
@@ -3178,7 +3183,7 @@ var EntityUtils;
3178
3183
  tSettings = tileset === null || tileset === void 0 ? void 0 : tileset.settings;
3179
3184
  eLocation = Entity$1.GetValue({
3180
3185
  entity: entity,
3181
- path: ["Bruce", "location"]
3186
+ path: ["Bruce", "Location"]
3182
3187
  });
3183
3188
  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)) {
3184
3189
  if (eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) {
@@ -3197,7 +3202,7 @@ var EntityUtils;
3197
3202
  }
3198
3203
  worldPosition = Entity$1.GetValue({
3199
3204
  entity: entity,
3200
- path: ["Bruce", "worldPosition"]
3205
+ path: ["Bruce", "AssemblyWorldPosition"]
3201
3206
  });
3202
3207
  if (worldPosition) {
3203
3208
  heading = 0;
@@ -3205,7 +3210,7 @@ var EntityUtils;
3205
3210
  roll = 0;
3206
3211
  eTransform = Entity$1.GetValue({
3207
3212
  entity: entity,
3208
- path: ["Bruce", "transform"]
3213
+ path: ["Bruce", "Transform"]
3209
3214
  });
3210
3215
  if (eTransform === null || eTransform === void 0 ? void 0 : eTransform.heading) {
3211
3216
  heading = eTransform.heading;
@@ -3241,7 +3246,7 @@ var EntityUtils;
3241
3246
  offset = new Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
3242
3247
  worldPivot = Entity$1.GetValue({
3243
3248
  entity: entity,
3244
- path: ["Bruce", "worldPivot"]
3249
+ path: ["Bruce", "GeometryWorldPivot"]
3245
3250
  });
3246
3251
  if (worldPivot) //the position from worldMatrix + center of geometry offset
3247
3252
  {
@@ -3512,15 +3517,15 @@ function createCacheKey(point, entity) {
3512
3517
  };
3513
3518
  var location_1 = Entity$1.GetValue({
3514
3519
  entity: entity,
3515
- path: ["Bruce", "location"]
3520
+ path: ["Bruce", "Location"]
3516
3521
  });
3517
3522
  var geometry = Entity$1.GetValue({
3518
3523
  entity: entity,
3519
- path: ["Bruce", "geometry"]
3524
+ path: ["Bruce", "VectorGeometry"]
3520
3525
  });
3521
3526
  var boundaries = Entity$1.GetValue({
3522
3527
  entity: entity,
3523
- path: ["Bruce", "boundaries"]
3528
+ path: ["Bruce", "Boundaries"]
3524
3529
  });
3525
3530
  var entityData = __assign(__assign(__assign({}, location_1), geometry), boundaries);
3526
3531
  return JSON.stringify(pointData) + '|' + JSON.stringify(entityData);
@@ -3549,7 +3554,7 @@ function calculateDistance(point, entity) {
3549
3554
  var entityPos3d = null;
3550
3555
  var location = Entity$1.GetValue({
3551
3556
  entity: entity,
3552
- path: ["Bruce", "location"]
3557
+ path: ["Bruce", "Location"]
3553
3558
  });
3554
3559
  if (location && location.latitude) {
3555
3560
  var latitude = EnsureNumber(location.latitude);
@@ -3566,7 +3571,7 @@ function calculateDistance(point, entity) {
3566
3571
  // Check geometry if it's available.
3567
3572
  var geometry = Entity$1.GetValue({
3568
3573
  entity: entity,
3569
- path: ["Bruce", "geometry"]
3574
+ path: ["Bruce", "VectorGeometry"]
3570
3575
  });
3571
3576
  if (geometry) {
3572
3577
  var passedGeometry = false;
@@ -3614,7 +3619,7 @@ function calculateDistance(point, entity) {
3614
3619
  if (minDistance === Infinity) {
3615
3620
  var boundaries = Entity$1.GetValue({
3616
3621
  entity: entity,
3617
- path: ["Bruce", "boundaries"]
3622
+ path: ["Bruce", "Boundaries"]
3618
3623
  });
3619
3624
  if (boundaries && typeof boundaries == "object") {
3620
3625
  var point_1 = {
@@ -4657,7 +4662,7 @@ function getPolygonStyleExtrusion(pStyle, entity, tags, heightRef) {
4657
4662
  */
4658
4663
  var height = Entity$1.GetValue({
4659
4664
  entity: entity,
4660
- path: ["Bruce", "location", "altitude"]
4665
+ path: ["Bruce", "Location", "altitude"]
4661
4666
  });
4662
4667
  return heightRef != HeightReference.CLAMP_TO_GROUND ? extrusion + height : extrusion;
4663
4668
  }
@@ -4680,7 +4685,7 @@ function getPolygonExtrusion(entity, tags, ring, posses, heightRef, pStyle) {
4680
4685
  // This let's us have a consistent extrusion height, and be adjustable easier by user.
4681
4686
  var alt_1 = Entity$1.GetValue({
4682
4687
  entity: entity,
4683
- path: ["Bruce", "location", "altitude"]
4688
+ path: ["Bruce", "Location", "altitude"]
4684
4689
  });
4685
4690
  if (!alt_1) {
4686
4691
  alt_1 = 0;
@@ -4737,7 +4742,7 @@ function getCylinderStyleExtrusion(style, entity, tags, heightRef) {
4737
4742
  */
4738
4743
  var height = EnsureNumber(Entity$1.GetValue({
4739
4744
  entity: entity,
4740
- path: ["Bruce", "location", "altitude"]
4745
+ path: ["Bruce", "Location", "altitude"]
4741
4746
  }), 0);
4742
4747
  return heightRef != HeightReference.CLAMP_TO_GROUND ? extrusion + height : extrusion;
4743
4748
  }
@@ -4961,7 +4966,7 @@ function getSizeOfPolygonEntity(entity) {
4961
4966
  var hasCalculatedBounds = false;
4962
4967
  var bounds = Entity$1.GetValue({
4963
4968
  entity: entity,
4964
- path: ["Bruce", "boundaries"]
4969
+ path: ["Bruce", "Boundaries"]
4965
4970
  });
4966
4971
  var calculateBounds = function () {
4967
4972
  hasCalculatedBounds = true;
@@ -5007,11 +5012,11 @@ function getSizeOfPolygonEntity(entity) {
5007
5012
  // We'll set the change in both places.
5008
5013
  if (entity.boundaries) {
5009
5014
  entity.boundaries = bounds;
5010
- entity.Bruce.boundaries = bounds;
5015
+ entity.Bruce.Boundaries = bounds;
5011
5016
  }
5012
5017
  // Data migrated to an internal field.
5013
5018
  else {
5014
- entity.Bruce.boundaries = bounds;
5019
+ entity.Bruce.Boundaries = bounds;
5015
5020
  }
5016
5021
  }
5017
5022
  return length;
@@ -5329,17 +5334,17 @@ var EntityRenderEngine;
5329
5334
  entity = params.entities[i];
5330
5335
  geometry = Entity$1.GetValue({
5331
5336
  entity: entity,
5332
- path: ["Bruce", "geometry"]
5337
+ path: ["Bruce", "VectorGeometry"]
5333
5338
  });
5334
5339
  if (((_a = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _a === void 0 ? void 0 : _a.length) == 1) {
5335
5340
  // Not migrated to internal, set in both places.
5336
5341
  if (entity.geometry) {
5337
5342
  entity.geometry = __assign(__assign(__assign({}, entity.geometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
5338
- entity.Bruce.geometry = entity.geometry;
5343
+ entity.Bruce.VectorGeometry = entity.geometry;
5339
5344
  }
5340
5345
  // Migrated to internal, we'll set it there.
5341
- else if (entity.Bruce.geometry) {
5342
- entity.Bruce.geometry = __assign(__assign(__assign({}, entity.Bruce.geometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
5346
+ else if (entity.Bruce.VectorGeometry) {
5347
+ entity.Bruce.VectorGeometry = __assign(__assign(__assign({}, entity.Bruce.VectorGeometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
5343
5348
  }
5344
5349
  }
5345
5350
  }
@@ -5400,7 +5405,7 @@ var EntityRenderEngine;
5400
5405
  else if (displayType == ZoomControl.EDisplayType.Geometry) {
5401
5406
  geometry = Entity$1.GetValue({
5402
5407
  entity: entity,
5403
- path: ["Bruce", "geometry"]
5408
+ path: ["Bruce", "VectorGeometry"]
5404
5409
  });
5405
5410
  if ((_f = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _f === void 0 ? void 0 : _f.length) {
5406
5411
  multiGeometry.push(entity);
@@ -5443,7 +5448,7 @@ var EntityRenderEngine;
5443
5448
  entity = multiGeometry[i];
5444
5449
  geometry = Entity$1.GetValue({
5445
5450
  entity: entity,
5446
- path: ["Bruce", "geometry"]
5451
+ path: ["Bruce", "VectorGeometry"]
5447
5452
  });
5448
5453
  if (!((_g = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _g === void 0 ? void 0 : _g.length)) {
5449
5454
  polygons.push(entity);
@@ -6171,7 +6176,7 @@ var EntityRenderEngine;
6171
6176
  var entity = params.entity;
6172
6177
  var lineString = Entity$1.GetValue({
6173
6178
  entity: entity,
6174
- path: ["Bruce", "geometry", "LineString"]
6179
+ path: ["Bruce", "VectorGeometry", "LineString"]
6175
6180
  });
6176
6181
  var points = lineString && typeof lineString == "string" ? Geometry.ParsePoints(lineString) : [];
6177
6182
  if (!points || points.length < 2) {
@@ -6435,7 +6440,7 @@ var EntityRenderEngine;
6435
6440
  var entity = params.entity;
6436
6441
  var pRings = Entity$1.GetValue({
6437
6442
  entity: entity,
6438
- path: ["Bruce", "geometry", "Polygon"]
6443
+ path: ["Bruce", "VectorGeometry", "Polygon"]
6439
6444
  });
6440
6445
  if (pRings == null || !Array.isArray(pRings) || pRings.length <= 0) {
6441
6446
  return null;
@@ -6813,7 +6818,7 @@ var EntityRenderEngine;
6813
6818
  }
6814
6819
  var transform = Entity$1.GetValue({
6815
6820
  entity: entity,
6816
- path: ["Bruce", "transform"]
6821
+ path: ["Bruce", "Transform"]
6817
6822
  });
6818
6823
  var heading = EnsureNumber(transform === null || transform === void 0 ? void 0 : transform.heading);
6819
6824
  heading = (heading + 90) % 360;
@@ -7746,19 +7751,22 @@ var RelationRenderEngine;
7746
7751
  return [4 /*yield*/, Entity$1.Get({
7747
7752
  api: api,
7748
7753
  entityId: relation["Principal.Entity.ID"],
7754
+ migrated: true
7749
7755
  })];
7750
7756
  case 3:
7751
7757
  fromEntity = (_b.sent()).entity;
7752
7758
  return [4 /*yield*/, Entity$1.Get({
7753
7759
  api: api,
7754
7760
  entityId: relation["Related.Entity.ID"],
7761
+ migrated: true
7755
7762
  })];
7756
7763
  case 4:
7757
7764
  toEntity = (_b.sent()).entity;
7758
7765
  if (!relation["Data.Entity.ID"]) return [3 /*break*/, 6];
7759
7766
  return [4 /*yield*/, Entity$1.Get({
7760
7767
  api: api,
7761
- entityId: relation["Data.Entity.ID"]
7768
+ entityId: relation["Data.Entity.ID"],
7769
+ migrated: true
7762
7770
  })];
7763
7771
  case 5:
7764
7772
  _a = (_b.sent()).entity;
@@ -10798,7 +10806,8 @@ var EntitiesRenderManager;
10798
10806
  entityIds: entityIds,
10799
10807
  historicKey: (_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey,
10800
10808
  historicPoint: this.viewer.clock.currentTime.toString(),
10801
- schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId
10809
+ schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId,
10810
+ migrated: true
10802
10811
  })];
10803
10812
  case 2:
10804
10813
  data = _c.sent();
@@ -10882,7 +10891,8 @@ var EntitiesRenderManager;
10882
10891
  entityIds: entityIds,
10883
10892
  historicKey: (_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey,
10884
10893
  historicPoint: this.viewer.clock.currentTime.toString(),
10885
- schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId
10894
+ schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId,
10895
+ migrated: true
10886
10896
  })];
10887
10897
  case 1:
10888
10898
  entities = (_c.sent()).entities;
@@ -11765,7 +11775,8 @@ var EntitiesLoadedRenderManager;
11765
11775
  entityIds = ids.splice(0, CHECK_BATCH_SIZE$1);
11766
11776
  return [4 /*yield*/, Entity$1.GetListByIds({
11767
11777
  api: api,
11768
- entityIds: entityIds
11778
+ entityIds: entityIds,
11779
+ migrated: true
11769
11780
  })];
11770
11781
  case 1:
11771
11782
  entities = (_a.sent()).entities;
@@ -12406,7 +12417,8 @@ var EntitiesIdsRenderManager;
12406
12417
  api = this.apiGetter.getApi();
12407
12418
  return [4 /*yield*/, Entity$1.GetListByIds({
12408
12419
  api: api,
12409
- entityIds: entityIds
12420
+ entityIds: entityIds,
12421
+ migrated: true
12410
12422
  })];
12411
12423
  case 2:
12412
12424
  entities = (_a.sent()).entities;
@@ -12959,7 +12971,8 @@ var EntityRenderManager;
12959
12971
  api = this.apiGetter.getApi();
12960
12972
  return [4 /*yield*/, Entity$1.Get({
12961
12973
  api: api,
12962
- entityId: id
12974
+ entityId: id,
12975
+ migrated: true
12963
12976
  })];
12964
12977
  case 1:
12965
12978
  entity = (_a.sent()).entity;
@@ -13705,7 +13718,8 @@ var TilesetRenderEngine;
13705
13718
  if (!(batch.length > 0)) return [3 /*break*/, 5];
13706
13719
  return [4 /*yield*/, Entity$1.GetListByIds({
13707
13720
  api: this.api,
13708
- entityIds: batch
13721
+ entityIds: batch,
13722
+ migrated: true
13709
13723
  })];
13710
13724
  case 2:
13711
13725
  entities = (_c.sent()).entities;
@@ -15027,6 +15041,7 @@ var EntityFilterGetter;
15027
15041
  entityTypeConditions: this.attrFilter
15028
15042
  },
15029
15043
  viaCdn: this.viaCdn,
15044
+ migrated: true,
15030
15045
  req: {
15031
15046
  noCache: true
15032
15047
  }
@@ -21408,7 +21423,8 @@ var WidgetInfoView = /** @class */ (function (_super) {
21408
21423
  api = this._apiGetters.GetBruceApi();
21409
21424
  return [4 /*yield*/, Entity$1.Get({
21410
21425
  entityId: firstId,
21411
- api: api
21426
+ api: api,
21427
+ migrated: true
21412
21428
  })];
21413
21429
  case 2:
21414
21430
  entity = (_d.sent()).entity;
@@ -24584,7 +24600,7 @@ var ViewRenderEngine;
24584
24600
  ViewRenderEngine.Render = Render;
24585
24601
  })(ViewRenderEngine || (ViewRenderEngine = {}));
24586
24602
 
24587
- var VERSION = "4.0.2";
24603
+ var VERSION = "4.0.4";
24588
24604
 
24589
24605
  export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline };
24590
24606
  //# sourceMappingURL=bruce-cesium.es5.js.map