bruce-cesium 4.3.2 → 4.3.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 +7 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +7 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/common/entity-label.js +6 -3
- package/dist/lib/rendering/render-managers/common/entity-label.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
|
@@ -8742,11 +8742,14 @@
|
|
|
8742
8742
|
// We get the pos3d and add 'n' to it, then turn it back into 2d.
|
|
8743
8743
|
var lineEndPos3d = _this._pos3d.clone();
|
|
8744
8744
|
var lineEndPoint = Cesium.Cartographic.fromCartesian(lineEndPos3d);
|
|
8745
|
-
|
|
8746
|
-
//
|
|
8745
|
+
// If known then calculate based on size.
|
|
8746
|
+
// If we're close then we'll favour the distance over the size.
|
|
8747
|
+
var addHeight = sizeInM > 0 ? Math.max(5, Math.min(distance / 5, sizeInM * 1.2)) : null;
|
|
8748
|
+
// If unknown then calculate based on camera height or distance.
|
|
8747
8749
|
// Radius is unknown for Tileset things. We could bake the radius in possibly as a feature property.
|
|
8750
|
+
// We have to make it work for both labels against tall skyscrapers, and up-close assembly models.
|
|
8748
8751
|
if (addHeight == null) {
|
|
8749
|
-
addHeight = Math.max(
|
|
8752
|
+
addHeight = Math.max(5, Math.min(distance, _this.viewer.camera.positionCartographic.height) / 5);
|
|
8750
8753
|
}
|
|
8751
8754
|
lineEndPoint.height += addHeight;
|
|
8752
8755
|
lineEndPos3d = Cesium.Cartographic.toCartesian(lineEndPoint);
|
|
@@ -26423,7 +26426,7 @@
|
|
|
26423
26426
|
ViewerUtils.AssertIonToken = AssertIonToken;
|
|
26424
26427
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
26425
26428
|
|
|
26426
|
-
var VERSION = "4.3.
|
|
26429
|
+
var VERSION = "4.3.3";
|
|
26427
26430
|
|
|
26428
26431
|
exports.VERSION = VERSION;
|
|
26429
26432
|
exports.CesiumParabola = CesiumParabola;
|