bruce-cesium 6.9.6 → 6.9.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 +17 -8
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +15 -5
- 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 -5
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/entity-render-engine.d.ts +1 -5
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -37447,11 +37447,19 @@
|
|
|
37447
37447
|
return heightRef;
|
|
37448
37448
|
}
|
|
37449
37449
|
|
|
37450
|
-
|
|
37451
|
-
* Returns if the
|
|
37452
|
-
* @param rego
|
|
37453
|
-
* @param entity
|
|
37450
|
+
/*
|
|
37451
|
+
* Returns if the style applied to a rego differs from the one the zoom item now wants.
|
|
37454
37452
|
*/
|
|
37453
|
+
function isStyleChanged(rego, zoomItem) {
|
|
37454
|
+
var _a;
|
|
37455
|
+
if (!rego) {
|
|
37456
|
+
return false;
|
|
37457
|
+
}
|
|
37458
|
+
// Normalize the same way cEntity.styleId is set when rendering (see RenderGroup callers).
|
|
37459
|
+
const newStyleId = (zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) == -1 ? -1 : (+(zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) || null);
|
|
37460
|
+
const oldStyleId = (_a = rego.styleId) !== null && _a !== void 0 ? _a : null;
|
|
37461
|
+
return newStyleId != oldStyleId;
|
|
37462
|
+
}
|
|
37455
37463
|
function isOutlineChanged$1(rego, entity) {
|
|
37456
37464
|
var _a, _b, _c, _d, _e, _f;
|
|
37457
37465
|
if (((_a = rego.outline) === null || _a === void 0 ? void 0 : _a.length) != ((_c = (_b = entity.Bruce) === null || _b === void 0 ? void 0 : _b.Outline) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
@@ -37634,6 +37642,7 @@
|
|
|
37634
37642
|
if (!params.force &&
|
|
37635
37643
|
newRenderId == oldRenderId &&
|
|
37636
37644
|
!(existingRego === null || existingRego === void 0 ? void 0 : existingRego.stale) &&
|
|
37645
|
+
!isStyleChanged(existingRego, zoomItem) &&
|
|
37637
37646
|
!isOutlineChanged$1(existingRego, entity)) {
|
|
37638
37647
|
// No sorting category needed. Already rendered the way we want.
|
|
37639
37648
|
cEntities.set(id, existingRego.visual);
|
|
@@ -38519,7 +38528,7 @@
|
|
|
38519
38528
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
38520
38529
|
})(exports.StyleUtils || (exports.StyleUtils = {}));
|
|
38521
38530
|
|
|
38522
|
-
const VERSION = "6.9.
|
|
38531
|
+
const VERSION = "6.9.7";
|
|
38523
38532
|
/**
|
|
38524
38533
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
38525
38534
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|
|
@@ -38539,6 +38548,7 @@
|
|
|
38539
38548
|
exports.VERSION = VERSION;
|
|
38540
38549
|
exports.setENVIRONMENT = setENVIRONMENT;
|
|
38541
38550
|
exports.getENVIRONMENT = getENVIRONMENT;
|
|
38551
|
+
exports.isStyleChanged = isStyleChanged;
|
|
38542
38552
|
exports.isOutlineChanged = isOutlineChanged$1;
|
|
38543
38553
|
exports.CesiumParabola = CesiumParabola;
|
|
38544
38554
|
exports.createTileset = createTileset;
|