bruce-cesium 7.5.6 → 7.5.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 +10 -14
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +8 -11
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine-model3d.js +3 -2
- package/dist/lib/rendering/entity-render-engine-model3d.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine-point.js +5 -9
- package/dist/lib/rendering/entity-render-engine-point.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/entity-render-engine-point.d.ts +10 -1
- package/package.json +2 -2
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -44099,7 +44099,7 @@
|
|
|
44099
44099
|
* @param url eg: https://demoplantprocess.api.nextspace-uat.net/file/4c29bdf8-1f0b-4739-b0ee-421ea07ba4e5.png
|
|
44100
44100
|
*/
|
|
44101
44101
|
function extractMetadataFromFileUrl(url) {
|
|
44102
|
-
var _a;
|
|
44102
|
+
var _a, _b;
|
|
44103
44103
|
const lowercased = url.toLowerCase();
|
|
44104
44104
|
// Bzzt, invalid url format for our purposes.
|
|
44105
44105
|
if (!lowercased.includes(".api.") || !lowercased.includes("/file/")) {
|
|
@@ -44120,13 +44120,8 @@
|
|
|
44120
44120
|
const host = parts[0];
|
|
44121
44121
|
const hostParts = host.split(".");
|
|
44122
44122
|
const accountId = hostParts[0];
|
|
44123
|
-
|
|
44124
|
-
|
|
44125
|
-
fileId = fileId.split("?")[0];
|
|
44126
|
-
}
|
|
44127
|
-
if (fileId.includes(".")) {
|
|
44128
|
-
fileId = fileId.split(".")[0];
|
|
44129
|
-
}
|
|
44123
|
+
// Follows the "/file/" route rather than a fixed position, since "RV:" and "S:" segments can come before it.
|
|
44124
|
+
const fileId = (_b = (_a = url.match(/\/file\/([^/?#.]+)/)) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : "";
|
|
44130
44125
|
if (!fileId || !accountId) {
|
|
44131
44126
|
return null;
|
|
44132
44127
|
}
|
|
@@ -44487,7 +44482,8 @@
|
|
|
44487
44482
|
updateShouldShowTrack();
|
|
44488
44483
|
prepareExistingGraphic(cEntity, shouldShowTrack ? 1 : 0);
|
|
44489
44484
|
const currentUri = GetCValue(params.viewer, cEntity.model.uri);
|
|
44490
|
-
|
|
44485
|
+
// Signature-blind, so a model is not reloaded just because the API signed its URL again.
|
|
44486
|
+
if (BModels.UrlUtils.RemoveSignature(currentUri) != BModels.UrlUtils.RemoveSignature(params.lodUrl)) {
|
|
44491
44487
|
cEntity.model.uri = new Cesium.ConstantProperty(params.lodUrl);
|
|
44492
44488
|
}
|
|
44493
44489
|
cEntity.model.heightReference = new Cesium.ConstantProperty(heightRef);
|
|
@@ -44684,7 +44680,7 @@
|
|
|
44684
44680
|
});
|
|
44685
44681
|
cEntity.show = true;
|
|
44686
44682
|
}
|
|
44687
|
-
const fileRadiusKey = `model3d_${params.lodUrl}_${scale * styleScale}_radius`;
|
|
44683
|
+
const fileRadiusKey = `model3d_${BModels.UrlUtils.RemoveSignature(params.lodUrl)}_${scale * styleScale}_radius`;
|
|
44688
44684
|
let heightProm = _fileRadiusCache.Get(fileRadiusKey);
|
|
44689
44685
|
if (!heightProm) {
|
|
44690
44686
|
heightProm = new Promise(async (res) => {
|
|
@@ -51672,7 +51668,7 @@ void main() {
|
|
|
51672
51668
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
51673
51669
|
})(exports.StyleUtils || (exports.StyleUtils = {}));
|
|
51674
51670
|
|
|
51675
|
-
const VERSION = "7.5.
|
|
51671
|
+
const VERSION = "7.5.7";
|
|
51676
51672
|
/**
|
|
51677
51673
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
51678
51674
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|
|
@@ -51697,6 +51693,7 @@ void main() {
|
|
|
51697
51693
|
exports.PointClusterSize = PointClusterSize;
|
|
51698
51694
|
exports.isStyleChanged = isStyleChanged;
|
|
51699
51695
|
exports.isOutlineChanged = isOutlineChanged$1;
|
|
51696
|
+
exports.extractMetadataFromFileUrl = extractMetadataFromFileUrl;
|
|
51700
51697
|
exports.CesiumParabola = CesiumParabola;
|
|
51701
51698
|
exports.createTileset = createTileset;
|
|
51702
51699
|
exports.CESIUM_INSPECTOR_KEY = CESIUM_INSPECTOR_KEY;
|