bruce-cesium 2.4.9 → 2.5.0
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 +25 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +24 -4
- 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 +23 -3
- package/dist/lib/rendering/entity-render-engine.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
|
@@ -2583,11 +2583,29 @@
|
|
|
2583
2583
|
});
|
|
2584
2584
|
cEntity._siblingGraphics = [];
|
|
2585
2585
|
if (width > 0 && cLineColor) {
|
|
2586
|
-
var
|
|
2586
|
+
var borderHeight = undefined;
|
|
2587
|
+
if (heightRef != Cesium.HeightReference.CLAMP_TO_GROUND) {
|
|
2588
|
+
if (flattenPoints) {
|
|
2589
|
+
borderHeight = 0;
|
|
2590
|
+
}
|
|
2591
|
+
// Set height to smallest height value from points.
|
|
2592
|
+
else {
|
|
2593
|
+
for (var i = 0; i < points.length; i++) {
|
|
2594
|
+
var point = points[i];
|
|
2595
|
+
if (!borderHeight || point.altitude < borderHeight) {
|
|
2596
|
+
borderHeight = point.altitude;
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
var borderPosses = [];
|
|
2587
2602
|
if (flattenPoints) {
|
|
2588
2603
|
borderPosses = points.map(function (x) { return Cesium.Cartesian3.fromDegrees(EnsureNumber(x.longitude), EnsureNumber(x.latitude), EnsureNumber(0)); });
|
|
2589
2604
|
bruceModels.Cartes.CloseRing3(borderPosses);
|
|
2590
2605
|
}
|
|
2606
|
+
else {
|
|
2607
|
+
borderPosses = posses.map(function (x) { return x.clone ? x.clone() : __assign({}, x); });
|
|
2608
|
+
}
|
|
2591
2609
|
var cEntityBorder = new Cesium.Entity({
|
|
2592
2610
|
// polyline: new Cesium.PolylineGraphics({
|
|
2593
2611
|
// positions: borderPosses,
|
|
@@ -2603,11 +2621,12 @@
|
|
|
2603
2621
|
positions: borderPosses,
|
|
2604
2622
|
material: cLineColor,
|
|
2605
2623
|
heightReference: heightRef,
|
|
2624
|
+
height: borderHeight,
|
|
2606
2625
|
width: width,
|
|
2607
2626
|
fill: true,
|
|
2608
2627
|
zIndex: zIndex + 1,
|
|
2609
2628
|
cornerType: Cesium.CornerType.MITERED,
|
|
2610
|
-
classificationType: Cesium.ClassificationType.
|
|
2629
|
+
classificationType: Cesium.ClassificationType.BOTH,
|
|
2611
2630
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2612
2631
|
shadows: Cesium.ShadowMode.ENABLED
|
|
2613
2632
|
},
|
|
@@ -2634,11 +2653,12 @@
|
|
|
2634
2653
|
positions: borderPosses,
|
|
2635
2654
|
material: cLineColor,
|
|
2636
2655
|
heightReference: heightRef,
|
|
2656
|
+
height: borderHeight,
|
|
2637
2657
|
width: width,
|
|
2638
2658
|
fill: true,
|
|
2639
2659
|
zIndex: zIndex + 1,
|
|
2640
2660
|
cornerType: Cesium.CornerType.MITERED,
|
|
2641
|
-
classificationType: Cesium.ClassificationType.
|
|
2661
|
+
classificationType: Cesium.ClassificationType.BOTH,
|
|
2642
2662
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2643
2663
|
shadows: Cesium.ShadowMode.ENABLED,
|
|
2644
2664
|
},
|
|
@@ -14737,7 +14757,7 @@
|
|
|
14737
14757
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14738
14758
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
14739
14759
|
|
|
14740
|
-
var VERSION$1 = "2.
|
|
14760
|
+
var VERSION$1 = "2.5.0";
|
|
14741
14761
|
|
|
14742
14762
|
exports.VERSION = VERSION$1;
|
|
14743
14763
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|