bruce-cesium 7.2.3 → 7.2.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 +21 -8
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +19 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine-polygon.js +4 -3
- package/dist/lib/rendering/entity-render-engine-polygon.js.map +1 -1
- package/dist/lib/rendering/texture-frame-series-animator.js +8 -0
- package/dist/lib/rendering/texture-frame-series-animator.js.map +1 -1
- package/dist/lib/rendering/texture-value-labels.js +6 -2
- package/dist/lib/rendering/texture-value-labels.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/texture-frame-series-animator.d.ts +5 -0
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -40449,6 +40449,14 @@
|
|
|
40449
40449
|
return { scale, offset: SourceValueMin - ValueMin * scale };
|
|
40450
40450
|
}
|
|
40451
40451
|
TextureFrameSeriesAnimator.SourceMap = SourceMap;
|
|
40452
|
+
/**
|
|
40453
|
+
* Whether anything was applied to the values on the way out of the source.
|
|
40454
|
+
* @param metadata the archive's Data.generation
|
|
40455
|
+
*/
|
|
40456
|
+
function IsTransformed(metadata) {
|
|
40457
|
+
return Boolean(metadata && metadata.Transform);
|
|
40458
|
+
}
|
|
40459
|
+
TextureFrameSeriesAnimator.IsTransformed = IsTransformed;
|
|
40452
40460
|
/**
|
|
40453
40461
|
* A delivered value in the source's own terms, or unchanged when it cannot be turned back.
|
|
40454
40462
|
* @param map from SourceMap(), null when the archive does not say enough
|
|
@@ -41420,6 +41428,9 @@
|
|
|
41420
41428
|
: exports.TextureFrameSeriesAnimator.SourceMap(metadata);
|
|
41421
41429
|
const inSource = (value) => exports.TextureFrameSeriesAnimator.ToSource(toSource, value);
|
|
41422
41430
|
const reading = { value: inSource(lo + normalised * (hi - lo)) };
|
|
41431
|
+
if (exports.TextureFrameSeriesAnimator.IsTransformed(metadata)) {
|
|
41432
|
+
return reading;
|
|
41433
|
+
}
|
|
41423
41434
|
const eLo = metadata && metadata.ExtremesValueMin;
|
|
41424
41435
|
const eHi = metadata && metadata.ExtremesValueMax;
|
|
41425
41436
|
if (typeof eLo === "number" && typeof eHi === "number") {
|
|
@@ -41904,10 +41915,11 @@
|
|
|
41904
41915
|
sample.push(valueLine("-000.00", LabelUnits(this.metadata)));
|
|
41905
41916
|
}
|
|
41906
41917
|
const range = [];
|
|
41907
|
-
|
|
41918
|
+
const showsRange = !exports.TextureFrameSeriesAnimator.IsTransformed(this.metadata);
|
|
41919
|
+
if (showsRange && parts.indexOf("floor") >= 0) {
|
|
41908
41920
|
range.push("min: -000.00");
|
|
41909
41921
|
}
|
|
41910
|
-
if (parts.indexOf("ceiling") >= 0) {
|
|
41922
|
+
if (showsRange && parts.indexOf("ceiling") >= 0) {
|
|
41911
41923
|
range.push("max: -000.00");
|
|
41912
41924
|
}
|
|
41913
41925
|
if (range.length) {
|
|
@@ -43831,9 +43843,10 @@ void main() {
|
|
|
43831
43843
|
let lastVersion = -1;
|
|
43832
43844
|
let appliedFloor = null;
|
|
43833
43845
|
let appliedCeiling = null;
|
|
43834
|
-
//
|
|
43835
|
-
|
|
43836
|
-
|
|
43846
|
+
// Two extra Range GETs, and worth it only because a label draws the cell's own range from them.
|
|
43847
|
+
if (!exports.TextureFrameSeriesAnimator.IsTransformed(metadata)) {
|
|
43848
|
+
animator.EnsureExtremes();
|
|
43849
|
+
}
|
|
43837
43850
|
const remove = viewer.scene.preRender.addEventListener(() => {
|
|
43838
43851
|
if (animator.IsDisposed()) {
|
|
43839
43852
|
return;
|
|
@@ -45468,7 +45481,7 @@ void main() {
|
|
|
45468
45481
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
45469
45482
|
})(exports.StyleUtils || (exports.StyleUtils = {}));
|
|
45470
45483
|
|
|
45471
|
-
const VERSION = "7.2.
|
|
45484
|
+
const VERSION = "7.2.4";
|
|
45472
45485
|
/**
|
|
45473
45486
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
45474
45487
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|