bruce-cesium 2.5.8 → 2.6.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 +20 -10
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +19 -9
- 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 +16 -6
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +2 -2
- package/dist/lib/rendering/tileset-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -2
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -2111,7 +2111,7 @@
|
|
|
2111
2111
|
(function (Point) {
|
|
2112
2112
|
function Render(params) {
|
|
2113
2113
|
return __awaiter(this, void 0, void 0, function () {
|
|
2114
|
-
var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl, res, e_4, iconScale, heightRef, radius, bFill, cFill, outline, cOutline, outlineWidth, outlineHeight, bOutline, fillHeight, exHeightRef, pos, bColor, cColor, size, heightRef;
|
|
2114
|
+
var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl, res, e_4, iconScale, disableDepthTest, heightRef, radius, bFill, cFill, outline, cOutline, outlineWidth, outlineHeight, bOutline, fillHeight, exHeightRef, pos, bColor, cColor, size, heightRef;
|
|
2115
2115
|
return __generator(this, function (_a) {
|
|
2116
2116
|
switch (_a.label) {
|
|
2117
2117
|
case 0:
|
|
@@ -2173,6 +2173,7 @@
|
|
|
2173
2173
|
if (!iconScale && iconScale != 0) {
|
|
2174
2174
|
iconScale = 1;
|
|
2175
2175
|
}
|
|
2176
|
+
disableDepthTest = Boolean(style.renderOnTop);
|
|
2176
2177
|
if (iconScale > 0) {
|
|
2177
2178
|
heightRef = getHeightRef(style);
|
|
2178
2179
|
cEntity = new Cesium.Entity({
|
|
@@ -2182,6 +2183,7 @@
|
|
|
2182
2183
|
image: iconUrl,
|
|
2183
2184
|
heightReference: getHeightRef(style),
|
|
2184
2185
|
scale: iconScale,
|
|
2186
|
+
disableDepthTestDistance: disableDepthTest ? Number.POSITIVE_INFINITY : undefined,
|
|
2185
2187
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2186
2188
|
// Would be great once we have a setting for this.
|
|
2187
2189
|
// translucencyByDistance: getTranslucencyByDistance(params.minDistance, params.maxDistance),
|
|
@@ -2437,12 +2439,16 @@
|
|
|
2437
2439
|
if (units != "px" && units != "m") {
|
|
2438
2440
|
units = "px";
|
|
2439
2441
|
}
|
|
2442
|
+
var classification = Cesium.ClassificationType.TERRAIN;
|
|
2443
|
+
if (style.drapeOver == "ALL") {
|
|
2444
|
+
classification = Cesium.ClassificationType.BOTH;
|
|
2445
|
+
}
|
|
2440
2446
|
var cEntity = new Cesium.Entity({
|
|
2441
2447
|
polyline: units == "px" ? {
|
|
2442
2448
|
positions: posses,
|
|
2443
2449
|
material: cColor,
|
|
2444
2450
|
width: width,
|
|
2445
|
-
classificationType:
|
|
2451
|
+
classificationType: classification,
|
|
2446
2452
|
arcType: Cesium.ArcType.GEODESIC,
|
|
2447
2453
|
zIndex: getZIndex(style, entity, params.tags),
|
|
2448
2454
|
clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
@@ -2452,7 +2458,7 @@
|
|
|
2452
2458
|
positions: posses,
|
|
2453
2459
|
material: cColor,
|
|
2454
2460
|
width: width,
|
|
2455
|
-
classificationType:
|
|
2461
|
+
classificationType: classification,
|
|
2456
2462
|
heightReference: heightRef,
|
|
2457
2463
|
zIndex: getZIndex(style, entity, params.tags),
|
|
2458
2464
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
@@ -2580,6 +2586,10 @@
|
|
|
2580
2586
|
});
|
|
2581
2587
|
var zIndex = getZIndex(style, entity, params.tags);
|
|
2582
2588
|
var size = getSizeOfPolygonEntity(entity);
|
|
2589
|
+
var classification = Cesium.ClassificationType.TERRAIN;
|
|
2590
|
+
if (style.drapeOver == "ALL") {
|
|
2591
|
+
classification = Cesium.ClassificationType.BOTH;
|
|
2592
|
+
}
|
|
2583
2593
|
var cEntity = new Cesium.Entity({
|
|
2584
2594
|
polygon: {
|
|
2585
2595
|
hierarchy: new Cesium.PolygonHierarchy(posses, holePosses.map(function (x) { return new Cesium.PolygonHierarchy(x); })),
|
|
@@ -2588,7 +2598,7 @@
|
|
|
2588
2598
|
extrudedHeightReference: extrusion.exHeightRef,
|
|
2589
2599
|
shadows: Cesium.ShadowMode.ENABLED,
|
|
2590
2600
|
heightReference: heightRef,
|
|
2591
|
-
classificationType:
|
|
2601
|
+
classificationType: classification,
|
|
2592
2602
|
perPositionHeight: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND ? false : true,
|
|
2593
2603
|
zIndex: zIndex,
|
|
2594
2604
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, size, true)
|
|
@@ -2646,7 +2656,7 @@
|
|
|
2646
2656
|
fill: true,
|
|
2647
2657
|
zIndex: zIndex + 1,
|
|
2648
2658
|
cornerType: Cesium.CornerType.MITERED,
|
|
2649
|
-
classificationType:
|
|
2659
|
+
classificationType: classification,
|
|
2650
2660
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2651
2661
|
shadows: Cesium.ShadowMode.ENABLED
|
|
2652
2662
|
},
|
|
@@ -2677,7 +2687,7 @@
|
|
|
2677
2687
|
fill: true,
|
|
2678
2688
|
zIndex: zIndex + 1,
|
|
2679
2689
|
cornerType: Cesium.CornerType.MITERED,
|
|
2680
|
-
classificationType:
|
|
2690
|
+
classificationType: classification,
|
|
2681
2691
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2682
2692
|
shadows: Cesium.ShadowMode.ENABLED,
|
|
2683
2693
|
},
|
|
@@ -7167,7 +7177,7 @@
|
|
|
7167
7177
|
* The maximum memory in MB that can be used by all tilesets.
|
|
7168
7178
|
* This is distributed evenly between all loaded tilesets.
|
|
7169
7179
|
*/
|
|
7170
|
-
TilesetRenderEngine.MAX_TILESET_MEMORY = 1024;
|
|
7180
|
+
TilesetRenderEngine.MAX_TILESET_MEMORY = 1024 * 4;
|
|
7171
7181
|
/**
|
|
7172
7182
|
* Watches tilesets in the viewer.
|
|
7173
7183
|
* This will regulate their max memory param.
|
|
@@ -7184,7 +7194,7 @@
|
|
|
7184
7194
|
// We'll need to allow user to change this somehow.
|
|
7185
7195
|
var maxMemory = TilesetRenderEngine.MAX_TILESET_MEMORY;
|
|
7186
7196
|
// Minimum memory in MB per tileset.
|
|
7187
|
-
var minMemory =
|
|
7197
|
+
var minMemory = 200;
|
|
7188
7198
|
var totalPerTileset = Math.max(this.watched.length ? maxMemory / this.watched.length : maxMemory, minMemory);
|
|
7189
7199
|
this.watched.forEach(function (x) {
|
|
7190
7200
|
x.maximumMemoryUsage = totalPerTileset;
|
|
@@ -14956,7 +14966,7 @@
|
|
|
14956
14966
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14957
14967
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
14958
14968
|
|
|
14959
|
-
var VERSION$1 = "2.
|
|
14969
|
+
var VERSION$1 = "2.6.0";
|
|
14960
14970
|
|
|
14961
14971
|
exports.VERSION = VERSION$1;
|
|
14962
14972
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|