bruce-cesium 3.4.4 → 3.4.6
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 +17 -7
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +16 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +14 -4
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -1239,7 +1239,7 @@
|
|
|
1239
1239
|
}
|
|
1240
1240
|
// If the value is really small we'll assume it's in radians.
|
|
1241
1241
|
// "cesium#blah" properties are always in degrees. No need to check.
|
|
1242
|
-
if (value < 0.9 && !propName.startsWith("cesium#")) {
|
|
1242
|
+
if (value < 0.9 && value > -0.9 && !propName.startsWith("cesium#")) {
|
|
1243
1243
|
value = Cesium.Math.toDegrees(value);
|
|
1244
1244
|
}
|
|
1245
1245
|
return value;
|
|
@@ -1399,7 +1399,7 @@
|
|
|
1399
1399
|
});
|
|
1400
1400
|
}); };
|
|
1401
1401
|
getEntityPositions = function (sample) { return __awaiter(_this, void 0, void 0, function () {
|
|
1402
|
-
var entityId, entity, tileset, tilesetId, evaluateRendered, evaluateRecord, renderedPosses, e_1, recordPosses, e_2, tSettings, pos3d, alt, alt, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset;
|
|
1402
|
+
var entityId, entity, tileset, tilesetId, evaluateRendered, evaluateRecord, renderedPosses, e_1, recordPosses, e_2, tSettings, pos3d, alt, alt, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset, sphere;
|
|
1403
1403
|
var _this = this;
|
|
1404
1404
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1405
1405
|
return __generator(this, function (_l) {
|
|
@@ -1695,7 +1695,7 @@
|
|
|
1695
1695
|
case 12:
|
|
1696
1696
|
tSettings = tileset === null || tileset === void 0 ? void 0 : tileset.settings;
|
|
1697
1697
|
pos3d = null;
|
|
1698
|
-
if (!(((_b = entity === null || entity === void 0 ? void 0 : entity.location) === null || _b === void 0 ? void 0 : _b.longitude) || ((_c = tSettings === null || tSettings === void 0 ? void 0 : tSettings.location) === null || _c === void 0 ? void 0 : _c.longitude))) return [3 /*break*/,
|
|
1698
|
+
if (!(((_b = entity === null || entity === void 0 ? void 0 : entity.location) === null || _b === void 0 ? void 0 : _b.longitude) || ((_c = tSettings === null || tSettings === void 0 ? void 0 : tSettings.location) === null || _c === void 0 ? void 0 : _c.longitude))) return [3 /*break*/, 15];
|
|
1699
1699
|
if ((_d = entity === null || entity === void 0 ? void 0 : entity.location) === null || _d === void 0 ? void 0 : _d.longitude) {
|
|
1700
1700
|
alt = +entity.location.altitude;
|
|
1701
1701
|
if (isNaN(alt)) {
|
|
@@ -1710,7 +1710,7 @@
|
|
|
1710
1710
|
}
|
|
1711
1711
|
pos3d = Cesium.Cartesian3.fromDegrees(+tSettings.location.longitude, +tSettings.location.latitude, alt);
|
|
1712
1712
|
}
|
|
1713
|
-
if (!(entity === null || entity === void 0 ? void 0 : entity.worldPosition)) return [3 /*break*/,
|
|
1713
|
+
if (!(entity === null || entity === void 0 ? void 0 : entity.worldPosition)) return [3 /*break*/, 15];
|
|
1714
1714
|
heading = 0;
|
|
1715
1715
|
pitch = 0;
|
|
1716
1716
|
roll = 0;
|
|
@@ -1761,6 +1761,16 @@
|
|
|
1761
1761
|
pos3d = _l.sent();
|
|
1762
1762
|
_l.label = 14;
|
|
1763
1763
|
case 14:
|
|
1764
|
+
if ((entity === null || entity === void 0 ? void 0 : entity.geometryRadius) && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
|
|
1765
|
+
sphere = Cesium.BoundingSphere.fromPoints([pos3d]);
|
|
1766
|
+
// For now making sure it's less than x amount because we had a bug which made it huge.
|
|
1767
|
+
if (entity.geometryRadius && entity.geometryRadius < 100 && entity.geometryRadius > 1) {
|
|
1768
|
+
sphere.radius = entity.geometryRadius;
|
|
1769
|
+
spheres.push(sphere);
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
_l.label = 15;
|
|
1773
|
+
case 15:
|
|
1764
1774
|
if (pos3d) {
|
|
1765
1775
|
return [2 /*return*/, [pos3d]];
|
|
1766
1776
|
}
|
|
@@ -8263,7 +8273,7 @@
|
|
|
8263
8273
|
}
|
|
8264
8274
|
];
|
|
8265
8275
|
}
|
|
8266
|
-
if (this.
|
|
8276
|
+
if (this.useGeojson && this.item.CameraZoomSettings.length > 1) {
|
|
8267
8277
|
console.warn("Geojson rendering does not support multiple zoom controls. Only the first one will be used.");
|
|
8268
8278
|
this.item.CameraZoomSettings = [this.item.CameraZoomSettings[0]];
|
|
8269
8279
|
}
|
|
@@ -21439,7 +21449,7 @@
|
|
|
21439
21449
|
CesiumViewMonitor.Monitor = Monitor;
|
|
21440
21450
|
})(exports.CesiumViewMonitor || (exports.CesiumViewMonitor = {}));
|
|
21441
21451
|
|
|
21442
|
-
var VERSION$1 = "3.4.
|
|
21452
|
+
var VERSION$1 = "3.4.6";
|
|
21443
21453
|
|
|
21444
21454
|
exports.VERSION = VERSION$1;
|
|
21445
21455
|
exports.CesiumParabola = CesiumParabola;
|