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.
- package/dist/bruce-cesium.es5.js +70 -54
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +69 -53
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine.js +15 -15
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/lib/rendering/getters/entity-filter-getter.js +1 -0
- package/dist/lib/rendering/getters/entity-filter-getter.js.map +1 -1
- package/dist/lib/rendering/relation-render-engine.js +4 -1
- package/dist/lib/rendering/relation-render-engine.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +4 -2
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entity-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entity-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/render-manager.js +6 -6
- package/dist/lib/rendering/render-managers/render-manager.js.map +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +2 -1
- package/dist/lib/rendering/tileset-render-engine.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +28 -23
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/lib/widgets/widget-info-view.js +2 -1
- package/dist/lib/widgets/widget-info-view.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -2
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -2574,7 +2574,7 @@
|
|
|
2574
2574
|
posses = [];
|
|
2575
2575
|
location = bruceModels.Entity.GetValue({
|
|
2576
2576
|
entity: entity,
|
|
2577
|
-
path: ["Bruce", "
|
|
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", "
|
|
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: ["
|
|
2629
|
+
path: ["Bruce, Boundaries"]
|
|
2630
2630
|
});
|
|
2631
2631
|
if (!(boundaries && typeof boundaries == "object")) return [3 /*break*/, 6];
|
|
2632
2632
|
point = {
|
|
@@ -2667,7 +2667,8 @@
|
|
|
2667
2667
|
api: api,
|
|
2668
2668
|
entityId: entityId,
|
|
2669
2669
|
// Not expanding relative positions at first to see if the entity has valid location just by itself.
|
|
2670
|
-
expandLocation: false
|
|
2670
|
+
expandLocation: false,
|
|
2671
|
+
migrated: true
|
|
2671
2672
|
})];
|
|
2672
2673
|
case 4:
|
|
2673
2674
|
entity = (_e.sent()).entity;
|
|
@@ -2695,7 +2696,8 @@
|
|
|
2695
2696
|
api: api,
|
|
2696
2697
|
entityId: entityId,
|
|
2697
2698
|
// We'll be expanding relative positioning and related tilesets now.
|
|
2698
|
-
expandLocation: true
|
|
2699
|
+
expandLocation: true,
|
|
2700
|
+
migrated: true
|
|
2699
2701
|
})];
|
|
2700
2702
|
case 9:
|
|
2701
2703
|
entity = (_e.sent()).entity;
|
|
@@ -2708,7 +2710,7 @@
|
|
|
2708
2710
|
if (!tilesetId) {
|
|
2709
2711
|
tilesetIds = bruceModels.Entity.GetValue({
|
|
2710
2712
|
entity: entity,
|
|
2711
|
-
path: ["Bruce", "
|
|
2713
|
+
path: ["Bruce", "TilesetIDs"]
|
|
2712
2714
|
});
|
|
2713
2715
|
tilesetId = (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) ? tilesetIds[0] : tilesetId;
|
|
2714
2716
|
}
|
|
@@ -2727,7 +2729,7 @@
|
|
|
2727
2729
|
pos3d = null;
|
|
2728
2730
|
eLocation = bruceModels.Entity.GetValue({
|
|
2729
2731
|
entity: entity,
|
|
2730
|
-
path: ["Bruce", "
|
|
2732
|
+
path: ["Bruce", "Location"]
|
|
2731
2733
|
});
|
|
2732
2734
|
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
2735
|
if (eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) {
|
|
@@ -2746,12 +2748,12 @@
|
|
|
2746
2748
|
}
|
|
2747
2749
|
worldPosition = bruceModels.Entity.GetValue({
|
|
2748
2750
|
entity: entity,
|
|
2749
|
-
path: ["Bruce", "
|
|
2751
|
+
path: ["Bruce", "AssemblyWorldPosition"]
|
|
2750
2752
|
});
|
|
2751
2753
|
if (!worldPosition) return [3 /*break*/, 16];
|
|
2752
2754
|
eTransform = bruceModels.Entity.GetValue({
|
|
2753
2755
|
entity: entity,
|
|
2754
|
-
path: ["Bruce", "
|
|
2756
|
+
path: ["Bruce", "Transform"]
|
|
2755
2757
|
});
|
|
2756
2758
|
heading = 0;
|
|
2757
2759
|
pitch = 0;
|
|
@@ -2790,7 +2792,7 @@
|
|
|
2790
2792
|
offset = new Cesium.Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
|
|
2791
2793
|
worldPivot = bruceModels.Entity.GetValue({
|
|
2792
2794
|
entity: entity,
|
|
2793
|
-
path: ["Bruce", "
|
|
2795
|
+
path: ["Bruce", "GeometryWorldPivot"]
|
|
2794
2796
|
});
|
|
2795
2797
|
if (worldPivot) //the position from worldMatrix + center of geometry offset
|
|
2796
2798
|
{
|
|
@@ -2809,7 +2811,7 @@
|
|
|
2809
2811
|
case 15:
|
|
2810
2812
|
geometryRadius = bruceModels.Entity.GetValue({
|
|
2811
2813
|
entity: entity,
|
|
2812
|
-
path: ["Bruce", "
|
|
2814
|
+
path: ["Bruce", "GeometryRadius"]
|
|
2813
2815
|
});
|
|
2814
2816
|
if (geometryRadius && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
|
|
2815
2817
|
sphere = Cesium.BoundingSphere.fromPoints([pos3d]);
|
|
@@ -2982,7 +2984,7 @@
|
|
|
2982
2984
|
function evaluateRecord() {
|
|
2983
2985
|
var location = bruceModels.Entity.GetValue({
|
|
2984
2986
|
entity: entity,
|
|
2985
|
-
path: ["Bruce", "
|
|
2987
|
+
path: ["Bruce", "Location"]
|
|
2986
2988
|
});
|
|
2987
2989
|
if (location && typeof location == "object" && bruceModels.Carto.ValidateCarto(location)) {
|
|
2988
2990
|
var latitude = EnsureNumber(location.latitude);
|
|
@@ -2994,7 +2996,7 @@
|
|
|
2994
2996
|
}
|
|
2995
2997
|
var geometry = bruceModels.Entity.GetValue({
|
|
2996
2998
|
entity: entity,
|
|
2997
|
-
path: ["Bruce", "
|
|
2999
|
+
path: ["Bruce", "VectorGeometry"]
|
|
2998
3000
|
});
|
|
2999
3001
|
if (geometry && typeof geometry == "object") {
|
|
3000
3002
|
var pointStr = geometry.Point;
|
|
@@ -3042,7 +3044,7 @@
|
|
|
3042
3044
|
}
|
|
3043
3045
|
var boundaries = bruceModels.Entity.GetValue({
|
|
3044
3046
|
entity: entity,
|
|
3045
|
-
path: ["Bruce", "
|
|
3047
|
+
path: ["Bruce", "Boundaries"]
|
|
3046
3048
|
});
|
|
3047
3049
|
if (boundaries && typeof boundaries == "object") {
|
|
3048
3050
|
var point = {
|
|
@@ -3095,14 +3097,15 @@
|
|
|
3095
3097
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
3096
3098
|
api: api,
|
|
3097
3099
|
entityId: entityId,
|
|
3098
|
-
expandLocation: false
|
|
3100
|
+
expandLocation: false,
|
|
3101
|
+
migrated: true
|
|
3099
3102
|
})];
|
|
3100
3103
|
case 2:
|
|
3101
3104
|
entity = (_e.sent()).entity;
|
|
3102
3105
|
if (entity) {
|
|
3103
3106
|
location_1 = bruceModels.Entity.GetValue({
|
|
3104
3107
|
entity: entity,
|
|
3105
|
-
path: ["Bruce", "
|
|
3108
|
+
path: ["Bruce", "Location"]
|
|
3106
3109
|
});
|
|
3107
3110
|
lat = +(location_1 === null || location_1 === void 0 ? void 0 : location_1.latitude);
|
|
3108
3111
|
lon = +(location_1 === null || location_1 === void 0 ? void 0 : location_1.longitude);
|
|
@@ -3120,7 +3123,8 @@
|
|
|
3120
3123
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
3121
3124
|
api: api,
|
|
3122
3125
|
entityId: entityId,
|
|
3123
|
-
expandLocation: true
|
|
3126
|
+
expandLocation: true,
|
|
3127
|
+
migrated: true
|
|
3124
3128
|
})];
|
|
3125
3129
|
case 6:
|
|
3126
3130
|
entity = (_e.sent()).entity;
|
|
@@ -3131,7 +3135,8 @@
|
|
|
3131
3135
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
3132
3136
|
api: api,
|
|
3133
3137
|
entityId: entityId,
|
|
3134
|
-
expandLocation: false
|
|
3138
|
+
expandLocation: false,
|
|
3139
|
+
migrated: true
|
|
3135
3140
|
})];
|
|
3136
3141
|
case 8:
|
|
3137
3142
|
entity = (_e.sent()).entity;
|
|
@@ -3143,7 +3148,7 @@
|
|
|
3143
3148
|
if (!tilesetId) {
|
|
3144
3149
|
tilesetIds = bruceModels.Entity.GetValue({
|
|
3145
3150
|
entity: entity,
|
|
3146
|
-
path: ["Bruce", "
|
|
3151
|
+
path: ["Bruce", "TilesetIDs"]
|
|
3147
3152
|
});
|
|
3148
3153
|
tilesetId = (tilesetIds === null || tilesetIds === void 0 ? void 0 : tilesetIds.length) ? tilesetIds[0] : tilesetId;
|
|
3149
3154
|
}
|
|
@@ -3170,7 +3175,7 @@
|
|
|
3170
3175
|
tSettings = tileset === null || tileset === void 0 ? void 0 : tileset.settings;
|
|
3171
3176
|
eLocation = bruceModels.Entity.GetValue({
|
|
3172
3177
|
entity: entity,
|
|
3173
|
-
path: ["Bruce", "
|
|
3178
|
+
path: ["Bruce", "Location"]
|
|
3174
3179
|
});
|
|
3175
3180
|
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
3181
|
if (eLocation === null || eLocation === void 0 ? void 0 : eLocation.longitude) {
|
|
@@ -3189,7 +3194,7 @@
|
|
|
3189
3194
|
}
|
|
3190
3195
|
worldPosition = bruceModels.Entity.GetValue({
|
|
3191
3196
|
entity: entity,
|
|
3192
|
-
path: ["Bruce", "
|
|
3197
|
+
path: ["Bruce", "AssemblyWorldPosition"]
|
|
3193
3198
|
});
|
|
3194
3199
|
if (worldPosition) {
|
|
3195
3200
|
heading = 0;
|
|
@@ -3197,7 +3202,7 @@
|
|
|
3197
3202
|
roll = 0;
|
|
3198
3203
|
eTransform = bruceModels.Entity.GetValue({
|
|
3199
3204
|
entity: entity,
|
|
3200
|
-
path: ["Bruce", "
|
|
3205
|
+
path: ["Bruce", "Transform"]
|
|
3201
3206
|
});
|
|
3202
3207
|
if (eTransform === null || eTransform === void 0 ? void 0 : eTransform.heading) {
|
|
3203
3208
|
heading = eTransform.heading;
|
|
@@ -3233,7 +3238,7 @@
|
|
|
3233
3238
|
offset = new Cesium.Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
|
|
3234
3239
|
worldPivot = bruceModels.Entity.GetValue({
|
|
3235
3240
|
entity: entity,
|
|
3236
|
-
path: ["Bruce", "
|
|
3241
|
+
path: ["Bruce", "GeometryWorldPivot"]
|
|
3237
3242
|
});
|
|
3238
3243
|
if (worldPivot) //the position from worldMatrix + center of geometry offset
|
|
3239
3244
|
{
|
|
@@ -3504,15 +3509,15 @@
|
|
|
3504
3509
|
};
|
|
3505
3510
|
var location_1 = bruceModels.Entity.GetValue({
|
|
3506
3511
|
entity: entity,
|
|
3507
|
-
path: ["Bruce", "
|
|
3512
|
+
path: ["Bruce", "Location"]
|
|
3508
3513
|
});
|
|
3509
3514
|
var geometry = bruceModels.Entity.GetValue({
|
|
3510
3515
|
entity: entity,
|
|
3511
|
-
path: ["Bruce", "
|
|
3516
|
+
path: ["Bruce", "VectorGeometry"]
|
|
3512
3517
|
});
|
|
3513
3518
|
var boundaries = bruceModels.Entity.GetValue({
|
|
3514
3519
|
entity: entity,
|
|
3515
|
-
path: ["Bruce", "
|
|
3520
|
+
path: ["Bruce", "Boundaries"]
|
|
3516
3521
|
});
|
|
3517
3522
|
var entityData = __assign(__assign(__assign({}, location_1), geometry), boundaries);
|
|
3518
3523
|
return JSON.stringify(pointData) + '|' + JSON.stringify(entityData);
|
|
@@ -3541,7 +3546,7 @@
|
|
|
3541
3546
|
var entityPos3d = null;
|
|
3542
3547
|
var location = bruceModels.Entity.GetValue({
|
|
3543
3548
|
entity: entity,
|
|
3544
|
-
path: ["Bruce", "
|
|
3549
|
+
path: ["Bruce", "Location"]
|
|
3545
3550
|
});
|
|
3546
3551
|
if (location && location.latitude) {
|
|
3547
3552
|
var latitude = EnsureNumber(location.latitude);
|
|
@@ -3558,7 +3563,7 @@
|
|
|
3558
3563
|
// Check geometry if it's available.
|
|
3559
3564
|
var geometry = bruceModels.Entity.GetValue({
|
|
3560
3565
|
entity: entity,
|
|
3561
|
-
path: ["Bruce", "
|
|
3566
|
+
path: ["Bruce", "VectorGeometry"]
|
|
3562
3567
|
});
|
|
3563
3568
|
if (geometry) {
|
|
3564
3569
|
var passedGeometry = false;
|
|
@@ -3606,7 +3611,7 @@
|
|
|
3606
3611
|
if (minDistance === Infinity) {
|
|
3607
3612
|
var boundaries = bruceModels.Entity.GetValue({
|
|
3608
3613
|
entity: entity,
|
|
3609
|
-
path: ["Bruce", "
|
|
3614
|
+
path: ["Bruce", "Boundaries"]
|
|
3610
3615
|
});
|
|
3611
3616
|
if (boundaries && typeof boundaries == "object") {
|
|
3612
3617
|
var point_1 = {
|
|
@@ -4647,7 +4652,7 @@
|
|
|
4647
4652
|
*/
|
|
4648
4653
|
var height = bruceModels.Entity.GetValue({
|
|
4649
4654
|
entity: entity,
|
|
4650
|
-
path: ["Bruce", "
|
|
4655
|
+
path: ["Bruce", "Location", "altitude"]
|
|
4651
4656
|
});
|
|
4652
4657
|
return heightRef != Cesium.HeightReference.CLAMP_TO_GROUND ? extrusion + height : extrusion;
|
|
4653
4658
|
}
|
|
@@ -4670,7 +4675,7 @@
|
|
|
4670
4675
|
// This let's us have a consistent extrusion height, and be adjustable easier by user.
|
|
4671
4676
|
var alt_1 = bruceModels.Entity.GetValue({
|
|
4672
4677
|
entity: entity,
|
|
4673
|
-
path: ["Bruce", "
|
|
4678
|
+
path: ["Bruce", "Location", "altitude"]
|
|
4674
4679
|
});
|
|
4675
4680
|
if (!alt_1) {
|
|
4676
4681
|
alt_1 = 0;
|
|
@@ -4727,7 +4732,7 @@
|
|
|
4727
4732
|
*/
|
|
4728
4733
|
var height = EnsureNumber(bruceModels.Entity.GetValue({
|
|
4729
4734
|
entity: entity,
|
|
4730
|
-
path: ["Bruce", "
|
|
4735
|
+
path: ["Bruce", "Location", "altitude"]
|
|
4731
4736
|
}), 0);
|
|
4732
4737
|
return heightRef != Cesium.HeightReference.CLAMP_TO_GROUND ? extrusion + height : extrusion;
|
|
4733
4738
|
}
|
|
@@ -4951,7 +4956,7 @@
|
|
|
4951
4956
|
var hasCalculatedBounds = false;
|
|
4952
4957
|
var bounds = bruceModels.Entity.GetValue({
|
|
4953
4958
|
entity: entity,
|
|
4954
|
-
path: ["Bruce", "
|
|
4959
|
+
path: ["Bruce", "Boundaries"]
|
|
4955
4960
|
});
|
|
4956
4961
|
var calculateBounds = function () {
|
|
4957
4962
|
hasCalculatedBounds = true;
|
|
@@ -4997,11 +5002,11 @@
|
|
|
4997
5002
|
// We'll set the change in both places.
|
|
4998
5003
|
if (entity.boundaries) {
|
|
4999
5004
|
entity.boundaries = bounds;
|
|
5000
|
-
entity.Bruce.
|
|
5005
|
+
entity.Bruce.Boundaries = bounds;
|
|
5001
5006
|
}
|
|
5002
5007
|
// Data migrated to an internal field.
|
|
5003
5008
|
else {
|
|
5004
|
-
entity.Bruce.
|
|
5009
|
+
entity.Bruce.Boundaries = bounds;
|
|
5005
5010
|
}
|
|
5006
5011
|
}
|
|
5007
5012
|
return length;
|
|
@@ -5318,17 +5323,17 @@
|
|
|
5318
5323
|
entity = params.entities[i];
|
|
5319
5324
|
geometry = bruceModels.Entity.GetValue({
|
|
5320
5325
|
entity: entity,
|
|
5321
|
-
path: ["Bruce", "
|
|
5326
|
+
path: ["Bruce", "VectorGeometry"]
|
|
5322
5327
|
});
|
|
5323
5328
|
if (((_a = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _a === void 0 ? void 0 : _a.length) == 1) {
|
|
5324
5329
|
// Not migrated to internal, set in both places.
|
|
5325
5330
|
if (entity.geometry) {
|
|
5326
5331
|
entity.geometry = __assign(__assign(__assign({}, entity.geometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
|
|
5327
|
-
entity.Bruce.
|
|
5332
|
+
entity.Bruce.VectorGeometry = entity.geometry;
|
|
5328
5333
|
}
|
|
5329
5334
|
// Migrated to internal, we'll set it there.
|
|
5330
|
-
else if (entity.Bruce.
|
|
5331
|
-
entity.Bruce.
|
|
5335
|
+
else if (entity.Bruce.VectorGeometry) {
|
|
5336
|
+
entity.Bruce.VectorGeometry = __assign(__assign(__assign({}, entity.Bruce.VectorGeometry), geometry.MultiGeometry[0]), { MultiGeometry: [] });
|
|
5332
5337
|
}
|
|
5333
5338
|
}
|
|
5334
5339
|
}
|
|
@@ -5389,7 +5394,7 @@
|
|
|
5389
5394
|
else if (displayType == bruceModels.ZoomControl.EDisplayType.Geometry) {
|
|
5390
5395
|
geometry = bruceModels.Entity.GetValue({
|
|
5391
5396
|
entity: entity,
|
|
5392
|
-
path: ["Bruce", "
|
|
5397
|
+
path: ["Bruce", "VectorGeometry"]
|
|
5393
5398
|
});
|
|
5394
5399
|
if ((_f = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _f === void 0 ? void 0 : _f.length) {
|
|
5395
5400
|
multiGeometry.push(entity);
|
|
@@ -5432,7 +5437,7 @@
|
|
|
5432
5437
|
entity = multiGeometry[i];
|
|
5433
5438
|
geometry = bruceModels.Entity.GetValue({
|
|
5434
5439
|
entity: entity,
|
|
5435
|
-
path: ["Bruce", "
|
|
5440
|
+
path: ["Bruce", "VectorGeometry"]
|
|
5436
5441
|
});
|
|
5437
5442
|
if (!((_g = geometry === null || geometry === void 0 ? void 0 : geometry.MultiGeometry) === null || _g === void 0 ? void 0 : _g.length)) {
|
|
5438
5443
|
polygons.push(entity);
|
|
@@ -6160,7 +6165,7 @@
|
|
|
6160
6165
|
var entity = params.entity;
|
|
6161
6166
|
var lineString = bruceModels.Entity.GetValue({
|
|
6162
6167
|
entity: entity,
|
|
6163
|
-
path: ["Bruce", "
|
|
6168
|
+
path: ["Bruce", "VectorGeometry", "LineString"]
|
|
6164
6169
|
});
|
|
6165
6170
|
var points = lineString && typeof lineString == "string" ? bruceModels.Geometry.ParsePoints(lineString) : [];
|
|
6166
6171
|
if (!points || points.length < 2) {
|
|
@@ -6424,7 +6429,7 @@
|
|
|
6424
6429
|
var entity = params.entity;
|
|
6425
6430
|
var pRings = bruceModels.Entity.GetValue({
|
|
6426
6431
|
entity: entity,
|
|
6427
|
-
path: ["Bruce", "
|
|
6432
|
+
path: ["Bruce", "VectorGeometry", "Polygon"]
|
|
6428
6433
|
});
|
|
6429
6434
|
if (pRings == null || !Array.isArray(pRings) || pRings.length <= 0) {
|
|
6430
6435
|
return null;
|
|
@@ -6802,7 +6807,7 @@
|
|
|
6802
6807
|
}
|
|
6803
6808
|
var transform = bruceModels.Entity.GetValue({
|
|
6804
6809
|
entity: entity,
|
|
6805
|
-
path: ["Bruce", "
|
|
6810
|
+
path: ["Bruce", "Transform"]
|
|
6806
6811
|
});
|
|
6807
6812
|
var heading = EnsureNumber(transform === null || transform === void 0 ? void 0 : transform.heading);
|
|
6808
6813
|
heading = (heading + 90) % 360;
|
|
@@ -7735,19 +7740,22 @@
|
|
|
7735
7740
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
7736
7741
|
api: api,
|
|
7737
7742
|
entityId: relation["Principal.Entity.ID"],
|
|
7743
|
+
migrated: true
|
|
7738
7744
|
})];
|
|
7739
7745
|
case 3:
|
|
7740
7746
|
fromEntity = (_b.sent()).entity;
|
|
7741
7747
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
7742
7748
|
api: api,
|
|
7743
7749
|
entityId: relation["Related.Entity.ID"],
|
|
7750
|
+
migrated: true
|
|
7744
7751
|
})];
|
|
7745
7752
|
case 4:
|
|
7746
7753
|
toEntity = (_b.sent()).entity;
|
|
7747
7754
|
if (!relation["Data.Entity.ID"]) return [3 /*break*/, 6];
|
|
7748
7755
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
7749
7756
|
api: api,
|
|
7750
|
-
entityId: relation["Data.Entity.ID"]
|
|
7757
|
+
entityId: relation["Data.Entity.ID"],
|
|
7758
|
+
migrated: true
|
|
7751
7759
|
})];
|
|
7752
7760
|
case 5:
|
|
7753
7761
|
_a = (_b.sent()).entity;
|
|
@@ -10772,7 +10780,8 @@
|
|
|
10772
10780
|
entityIds: entityIds,
|
|
10773
10781
|
historicKey: (_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey,
|
|
10774
10782
|
historicPoint: this.viewer.clock.currentTime.toString(),
|
|
10775
|
-
schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId
|
|
10783
|
+
schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId,
|
|
10784
|
+
migrated: true
|
|
10776
10785
|
})];
|
|
10777
10786
|
case 2:
|
|
10778
10787
|
data = _c.sent();
|
|
@@ -10856,7 +10865,8 @@
|
|
|
10856
10865
|
entityIds: entityIds,
|
|
10857
10866
|
historicKey: (_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey,
|
|
10858
10867
|
historicPoint: this.viewer.clock.currentTime.toString(),
|
|
10859
|
-
schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId
|
|
10868
|
+
schemaId: (_b = this.item.BruceEntity) === null || _b === void 0 ? void 0 : _b.schemaId,
|
|
10869
|
+
migrated: true
|
|
10860
10870
|
})];
|
|
10861
10871
|
case 1:
|
|
10862
10872
|
entities = (_c.sent()).entities;
|
|
@@ -11733,7 +11743,8 @@
|
|
|
11733
11743
|
entityIds = ids.splice(0, CHECK_BATCH_SIZE$1);
|
|
11734
11744
|
return [4 /*yield*/, bruceModels.Entity.GetListByIds({
|
|
11735
11745
|
api: api,
|
|
11736
|
-
entityIds: entityIds
|
|
11746
|
+
entityIds: entityIds,
|
|
11747
|
+
migrated: true
|
|
11737
11748
|
})];
|
|
11738
11749
|
case 1:
|
|
11739
11750
|
entities = (_a.sent()).entities;
|
|
@@ -12369,7 +12380,8 @@
|
|
|
12369
12380
|
api = this.apiGetter.getApi();
|
|
12370
12381
|
return [4 /*yield*/, bruceModels.Entity.GetListByIds({
|
|
12371
12382
|
api: api,
|
|
12372
|
-
entityIds: entityIds
|
|
12383
|
+
entityIds: entityIds,
|
|
12384
|
+
migrated: true
|
|
12373
12385
|
})];
|
|
12374
12386
|
case 2:
|
|
12375
12387
|
entities = (_a.sent()).entities;
|
|
@@ -12918,7 +12930,8 @@
|
|
|
12918
12930
|
api = this.apiGetter.getApi();
|
|
12919
12931
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
12920
12932
|
api: api,
|
|
12921
|
-
entityId: id
|
|
12933
|
+
entityId: id,
|
|
12934
|
+
migrated: true
|
|
12922
12935
|
})];
|
|
12923
12936
|
case 1:
|
|
12924
12937
|
entity = (_a.sent()).entity;
|
|
@@ -13663,7 +13676,8 @@
|
|
|
13663
13676
|
if (!(batch.length > 0)) return [3 /*break*/, 5];
|
|
13664
13677
|
return [4 /*yield*/, bruceModels.Entity.GetListByIds({
|
|
13665
13678
|
api: this.api,
|
|
13666
|
-
entityIds: batch
|
|
13679
|
+
entityIds: batch,
|
|
13680
|
+
migrated: true
|
|
13667
13681
|
})];
|
|
13668
13682
|
case 2:
|
|
13669
13683
|
entities = (_c.sent()).entities;
|
|
@@ -14980,6 +14994,7 @@
|
|
|
14980
14994
|
entityTypeConditions: this.attrFilter
|
|
14981
14995
|
},
|
|
14982
14996
|
viaCdn: this.viaCdn,
|
|
14997
|
+
migrated: true,
|
|
14983
14998
|
req: {
|
|
14984
14999
|
noCache: true
|
|
14985
15000
|
}
|
|
@@ -21349,7 +21364,8 @@
|
|
|
21349
21364
|
api = this._apiGetters.GetBruceApi();
|
|
21350
21365
|
return [4 /*yield*/, bruceModels.Entity.Get({
|
|
21351
21366
|
entityId: firstId,
|
|
21352
|
-
api: api
|
|
21367
|
+
api: api,
|
|
21368
|
+
migrated: true
|
|
21353
21369
|
})];
|
|
21354
21370
|
case 2:
|
|
21355
21371
|
entity = (_d.sent()).entity;
|
|
@@ -24518,7 +24534,7 @@
|
|
|
24518
24534
|
ViewRenderEngine.Render = Render;
|
|
24519
24535
|
})(exports.ViewRenderEngine || (exports.ViewRenderEngine = {}));
|
|
24520
24536
|
|
|
24521
|
-
var VERSION = "4.0.
|
|
24537
|
+
var VERSION = "4.0.4";
|
|
24522
24538
|
|
|
24523
24539
|
exports.VERSION = VERSION;
|
|
24524
24540
|
exports.CesiumParabola = CesiumParabola;
|