bruce-cesium 7.7.6 → 7.7.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 +24 -3
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +22 -1
- 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 +21 -0
- package/dist/lib/rendering/entity-render-engine-polygon.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
|
@@ -54870,6 +54870,12 @@ void main() {
|
|
|
54870
54870
|
? BModels.Geometry.ParsePoints(ring.LinearRing).map((point) => point.altitude)
|
|
54871
54871
|
: [])
|
|
54872
54872
|
});
|
|
54873
|
+
const drapesOnGround = (heightRef === Cesium.HeightReference.CLAMP_TO_GROUND &&
|
|
54874
|
+
extrusion.value == undefined &&
|
|
54875
|
+
!drawsDisplacedSurface);
|
|
54876
|
+
if (drapesOnGround) {
|
|
54877
|
+
posses = groundPosses(posses);
|
|
54878
|
+
}
|
|
54873
54879
|
posses = CullDuplicateCPosses(posses);
|
|
54874
54880
|
if (posses.length < 4) {
|
|
54875
54881
|
return null;
|
|
@@ -54878,6 +54884,9 @@ void main() {
|
|
|
54878
54884
|
const holePosses = holeRings.map((x) => {
|
|
54879
54885
|
const points = BModels.Geometry.ParsePoints(x.LinearRing);
|
|
54880
54886
|
let holePosses = points.map(x => Cesium.Cartesian3.fromDegrees(EnsureNumber(x.longitude), EnsureNumber(x.latitude), EnsureNumber(x.altitude)));
|
|
54887
|
+
if (drapesOnGround) {
|
|
54888
|
+
holePosses = groundPosses(holePosses);
|
|
54889
|
+
}
|
|
54881
54890
|
holePosses = CullDuplicateCPosses(holePosses);
|
|
54882
54891
|
BModels.Cartes.CloseRing3(holePosses);
|
|
54883
54892
|
return holePosses;
|
|
@@ -55664,6 +55673,18 @@ void main() {
|
|
|
55664
55673
|
/*
|
|
55665
55674
|
* The lon/lat bounding rectangle of a ring, which is the frame Cesium drapes an image material in.
|
|
55666
55675
|
*/
|
|
55676
|
+
/*
|
|
55677
|
+
* Moves a ring onto the ellipsoid, as Cesium fills only a strip of a ground polygon with high vertices.
|
|
55678
|
+
*/
|
|
55679
|
+
function groundPosses(posses) {
|
|
55680
|
+
return posses.map((pos) => {
|
|
55681
|
+
const carto = Cesium.Cartographic.fromCartesian(pos);
|
|
55682
|
+
if (!carto) {
|
|
55683
|
+
return pos;
|
|
55684
|
+
}
|
|
55685
|
+
return Cesium.Cartesian3.fromRadians(carto.longitude, carto.latitude, 0);
|
|
55686
|
+
});
|
|
55687
|
+
}
|
|
55667
55688
|
function polygonBbox(posses) {
|
|
55668
55689
|
if (!posses || posses.length === 0) {
|
|
55669
55690
|
return undefined;
|
|
@@ -57575,7 +57596,7 @@ void main() {
|
|
|
57575
57596
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
57576
57597
|
})(exports.StyleUtils || (exports.StyleUtils = {}));
|
|
57577
57598
|
|
|
57578
|
-
const VERSION = "7.7.
|
|
57599
|
+
const VERSION = "7.7.7";
|
|
57579
57600
|
/**
|
|
57580
57601
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
57581
57602
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|