bruce-cesium 2.4.1 → 2.4.3
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 +26 -7
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +25 -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.js +24 -5
- package/dist/lib/rendering/entity-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
|
@@ -2335,8 +2335,13 @@
|
|
|
2335
2335
|
if (width <= 0) {
|
|
2336
2336
|
return null;
|
|
2337
2337
|
}
|
|
2338
|
+
var units = style.lineWidthUnits;
|
|
2339
|
+
// Px for backward compatibility. Meters are less prone to crashes.
|
|
2340
|
+
if (units != "px" && units != "m") {
|
|
2341
|
+
units = "px";
|
|
2342
|
+
}
|
|
2338
2343
|
var cEntity = new Cesium.Entity({
|
|
2339
|
-
polyline: {
|
|
2344
|
+
polyline: units == "px" ? {
|
|
2340
2345
|
positions: posses,
|
|
2341
2346
|
material: cColor,
|
|
2342
2347
|
width: width,
|
|
@@ -2345,7 +2350,19 @@
|
|
|
2345
2350
|
zIndex: getZIndex(style, entity, params.tags),
|
|
2346
2351
|
clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
2347
2352
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
|
|
2348
|
-
},
|
|
2353
|
+
} : null,
|
|
2354
|
+
corridor: units == "m" ? {
|
|
2355
|
+
positions: posses,
|
|
2356
|
+
material: cColor,
|
|
2357
|
+
width: width,
|
|
2358
|
+
classificationType: Cesium.ClassificationType.TERRAIN,
|
|
2359
|
+
heightReference: heightRef,
|
|
2360
|
+
zIndex: getZIndex(style, entity, params.tags),
|
|
2361
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2362
|
+
cornerType: Cesium.CornerType.MITERED,
|
|
2363
|
+
shadows: Cesium.ShadowMode.ENABLED,
|
|
2364
|
+
fill: true
|
|
2365
|
+
} : null,
|
|
2349
2366
|
position: exports.EntityUtils.GetPos({
|
|
2350
2367
|
viewer: params.viewer,
|
|
2351
2368
|
entity: entity,
|
|
@@ -2504,7 +2521,8 @@
|
|
|
2504
2521
|
heightReference: heightRef,
|
|
2505
2522
|
width: width,
|
|
2506
2523
|
fill: true,
|
|
2507
|
-
zIndex: zIndex,
|
|
2524
|
+
zIndex: zIndex + 1,
|
|
2525
|
+
cornerType: Cesium.CornerType.MITERED,
|
|
2508
2526
|
classificationType: Cesium.ClassificationType.TERRAIN,
|
|
2509
2527
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2510
2528
|
shadows: Cesium.ShadowMode.ENABLED
|
|
@@ -2534,10 +2552,11 @@
|
|
|
2534
2552
|
heightReference: heightRef,
|
|
2535
2553
|
width: width,
|
|
2536
2554
|
fill: true,
|
|
2537
|
-
zIndex: zIndex,
|
|
2555
|
+
zIndex: zIndex + 1,
|
|
2556
|
+
cornerType: Cesium.CornerType.MITERED,
|
|
2538
2557
|
classificationType: Cesium.ClassificationType.TERRAIN,
|
|
2539
2558
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2540
|
-
shadows: Cesium.ShadowMode.ENABLED
|
|
2559
|
+
shadows: Cesium.ShadowMode.ENABLED,
|
|
2541
2560
|
},
|
|
2542
2561
|
show: false
|
|
2543
2562
|
});
|
|
@@ -14376,7 +14395,7 @@
|
|
|
14376
14395
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14377
14396
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
14378
14397
|
|
|
14379
|
-
var VERSION$1 = "2.4.
|
|
14398
|
+
var VERSION$1 = "2.4.3";
|
|
14380
14399
|
|
|
14381
14400
|
exports.VERSION = VERSION$1;
|
|
14382
14401
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|