bruce-cesium 4.3.6 → 4.3.7
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 +10 -36
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +9 -35
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/utils/entity-utils.js +8 -34
- package/dist/lib/utils/entity-utils.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
|
@@ -2570,24 +2570,11 @@
|
|
|
2570
2570
|
});
|
|
2571
2571
|
}); };
|
|
2572
2572
|
evaluateRecord = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2573
|
-
var posses,
|
|
2573
|
+
var posses, location, latitude, longitude, pos3d_3, geometry, pointStr, points, point, pos3d_4, lineStr, points, pPosses, pRings, boundary, points, pPosses, boundaries, point, bPosses;
|
|
2574
2574
|
return __generator(this, function (_a) {
|
|
2575
2575
|
switch (_a.label) {
|
|
2576
2576
|
case 0:
|
|
2577
2577
|
posses = [];
|
|
2578
|
-
assemblyLocation = BModels.Entity.GetValue({
|
|
2579
|
-
entity: entity,
|
|
2580
|
-
path: ["Bruce", "AssemblyLocation"]
|
|
2581
|
-
});
|
|
2582
|
-
if (assemblyLocation && typeof assemblyLocation == "object" && BModels.Carto.ValidateCarto(assemblyLocation)) {
|
|
2583
|
-
latitude = EnsureNumber(assemblyLocation.latitude);
|
|
2584
|
-
longitude = EnsureNumber(assemblyLocation.longitude);
|
|
2585
|
-
// Disallowing exact 0.
|
|
2586
|
-
if (latitude || longitude) {
|
|
2587
|
-
pos3d_3 = Cesium.Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(assemblyLocation.altitude));
|
|
2588
|
-
posses.push(pos3d_3);
|
|
2589
|
-
}
|
|
2590
|
-
}
|
|
2591
2578
|
location = BModels.Entity.GetValue({
|
|
2592
2579
|
entity: entity,
|
|
2593
2580
|
path: ["Bruce", "Location"]
|
|
@@ -2597,8 +2584,8 @@
|
|
|
2597
2584
|
longitude = EnsureNumber(location.longitude);
|
|
2598
2585
|
// Disallowing exact 0.
|
|
2599
2586
|
if (latitude || longitude) {
|
|
2600
|
-
|
|
2601
|
-
posses.push(
|
|
2587
|
+
pos3d_3 = Cesium.Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(location.altitude));
|
|
2588
|
+
posses.push(pos3d_3);
|
|
2602
2589
|
}
|
|
2603
2590
|
}
|
|
2604
2591
|
geometry = BModels.Entity.GetValue({
|
|
@@ -2613,8 +2600,8 @@
|
|
|
2613
2600
|
points = BModels.Geometry.ParsePoints(pointStr);
|
|
2614
2601
|
point = points.length > 0 ? points[0] : null;
|
|
2615
2602
|
if (point && BModels.Carto.ValidateCarto(point)) {
|
|
2616
|
-
|
|
2617
|
-
posses.push(
|
|
2603
|
+
pos3d_4 = Cesium.Cartesian3.fromDegrees(EnsureNumber(point.longitude), EnsureNumber(point.latitude), EnsureNumber(point.altitude));
|
|
2604
|
+
posses.push(pos3d_4);
|
|
2618
2605
|
}
|
|
2619
2606
|
}
|
|
2620
2607
|
lineStr = geometry.LineString;
|
|
@@ -2960,9 +2947,9 @@
|
|
|
2960
2947
|
if ((rego === null || rego === void 0 ? void 0 : rego.visual) instanceof Cesium.Entity) {
|
|
2961
2948
|
var visual = rego.visual;
|
|
2962
2949
|
if (visual.position) {
|
|
2963
|
-
var
|
|
2950
|
+
var pos3d_5 = GetValue(viewer, visual.position);
|
|
2964
2951
|
// Fix height reference.
|
|
2965
|
-
if (
|
|
2952
|
+
if (pos3d_5 === null || pos3d_5 === void 0 ? void 0 : pos3d_5.x) {
|
|
2966
2953
|
var visualHeightRef = Cesium.HeightReference.RELATIVE_TO_GROUND;
|
|
2967
2954
|
if (visual.model) {
|
|
2968
2955
|
visualHeightRef = GetValue(viewer, visual.model.heightReference);
|
|
@@ -2989,7 +2976,7 @@
|
|
|
2989
2976
|
return exports.DrawingUtils.EnsurePosHeight({
|
|
2990
2977
|
desiredHeightRef: params.returnHeightRef,
|
|
2991
2978
|
heightRef: visualHeightRef,
|
|
2992
|
-
pos3d:
|
|
2979
|
+
pos3d: pos3d_5,
|
|
2993
2980
|
viewer: viewer
|
|
2994
2981
|
});
|
|
2995
2982
|
}
|
|
@@ -2998,19 +2985,6 @@
|
|
|
2998
2985
|
return null;
|
|
2999
2986
|
}
|
|
3000
2987
|
function evaluateRecord() {
|
|
3001
|
-
// Checking for a pre-calculated lat/lon for assembly entities.
|
|
3002
|
-
var assemblyLocation = BModels.Entity.GetValue({
|
|
3003
|
-
entity: entity,
|
|
3004
|
-
path: ["Bruce", "AssemblyLocation"]
|
|
3005
|
-
});
|
|
3006
|
-
if (assemblyLocation && typeof assemblyLocation == "object" && BModels.Carto.ValidateCarto(assemblyLocation)) {
|
|
3007
|
-
var latitude = EnsureNumber(assemblyLocation.latitude);
|
|
3008
|
-
var longitude = EnsureNumber(assemblyLocation.longitude);
|
|
3009
|
-
// Disallowing exact 0.
|
|
3010
|
-
if (latitude || longitude) {
|
|
3011
|
-
return Cesium.Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(assemblyLocation.altitude));
|
|
3012
|
-
}
|
|
3013
|
-
}
|
|
3014
2988
|
var location = BModels.Entity.GetValue({
|
|
3015
2989
|
entity: entity,
|
|
3016
2990
|
path: ["Bruce", "Location"]
|
|
@@ -26466,7 +26440,7 @@
|
|
|
26466
26440
|
ViewerUtils.AssertIonToken = AssertIonToken;
|
|
26467
26441
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
26468
26442
|
|
|
26469
|
-
var VERSION = "4.3.
|
|
26443
|
+
var VERSION = "4.3.7";
|
|
26470
26444
|
|
|
26471
26445
|
exports.VERSION = VERSION;
|
|
26472
26446
|
exports.CesiumParabola = CesiumParabola;
|