bruce-cesium 2.7.1 → 2.7.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 +13 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +12 -3
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js +4 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +1 -0
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js +1 -0
- package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +1 -1
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +4 -0
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/render-managers/tilesets/tileset-arb-render-manager.d.ts +1 -0
- package/dist/types/rendering/visuals-register.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -1161,6 +1161,10 @@
|
|
|
1161
1161
|
}
|
|
1162
1162
|
matrix4 = entity.worldPosition;
|
|
1163
1163
|
offset = new Cesium.Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
|
|
1164
|
+
if (entity.worldPivot) //the position from worldMatrix + center of geometry offset
|
|
1165
|
+
{
|
|
1166
|
+
offset = new Cesium.Cartesian3(entity.worldPivot[0], entity.worldPivot[1], entity.worldPivot[2]);
|
|
1167
|
+
}
|
|
1164
1168
|
m1 = Cesium.Transforms.eastNorthUpToFixedFrame(pos3d);
|
|
1165
1169
|
hpr = Cesium.HeadingPitchRoll.fromDegrees(heading, pitch, roll, new Cesium.HeadingPitchRoll());
|
|
1166
1170
|
transform = Cesium.Matrix3.fromHeadingPitchRoll(hpr);
|
|
@@ -7562,6 +7566,7 @@
|
|
|
7562
7566
|
visual: feature,
|
|
7563
7567
|
accountId: (_b = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID) !== null && _b !== void 0 ? _b : this.getters.GetAccountId(),
|
|
7564
7568
|
tilesetId: (_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.TilesetID,
|
|
7569
|
+
tilesetType: bruceModels.Tileset.EType.Cad,
|
|
7565
7570
|
rootId: this.rootId
|
|
7566
7571
|
};
|
|
7567
7572
|
var featureAny = feature;
|
|
@@ -8332,6 +8337,7 @@
|
|
|
8332
8337
|
priority: 0,
|
|
8333
8338
|
visual: feature,
|
|
8334
8339
|
tilesetId: (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.TilesetID,
|
|
8340
|
+
tilesetType: bruceModels.Tileset.EType.EntitiesSet,
|
|
8335
8341
|
accountId: (_c = (_b = this.item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID) !== null && _c !== void 0 ? _c : this.getters.GetAccountId()
|
|
8336
8342
|
};
|
|
8337
8343
|
this.visualsManager.AddRego({
|
|
@@ -8654,6 +8660,7 @@
|
|
|
8654
8660
|
this.disposed = false;
|
|
8655
8661
|
this.cTileset = null;
|
|
8656
8662
|
this.styler = null;
|
|
8663
|
+
this.tilesetType = null;
|
|
8657
8664
|
this.viewer = params.viewer;
|
|
8658
8665
|
this.getters = params.getters;
|
|
8659
8666
|
this.visualsManager = params.register;
|
|
@@ -8758,6 +8765,7 @@
|
|
|
8758
8765
|
if (this.disposed) {
|
|
8759
8766
|
return [2 /*return*/];
|
|
8760
8767
|
}
|
|
8768
|
+
this.tilesetType = type;
|
|
8761
8769
|
if (tileset && loadUrlOverride) {
|
|
8762
8770
|
tileset.loadUrl = loadUrlOverride;
|
|
8763
8771
|
}
|
|
@@ -8920,7 +8928,8 @@
|
|
|
8920
8928
|
priority: 0,
|
|
8921
8929
|
visual: feature,
|
|
8922
8930
|
accountId: (_b = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID) !== null && _b !== void 0 ? _b : this.getters.GetAccountId(),
|
|
8923
|
-
tilesetId: (_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.TilesetID
|
|
8931
|
+
tilesetId: (_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.TilesetID,
|
|
8932
|
+
tilesetType: this.tilesetType
|
|
8924
8933
|
};
|
|
8925
8934
|
// Two different methods for two different Cesium versions...
|
|
8926
8935
|
var props = feature.getPropertyNames ? feature.getPropertyNames([]) :
|
|
@@ -12037,7 +12046,7 @@
|
|
|
12037
12046
|
}
|
|
12038
12047
|
viewer.shadowMap.size = size;
|
|
12039
12048
|
viewer.shadowMap.softShadows = Boolean(shadows.soften);
|
|
12040
|
-
viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.
|
|
12049
|
+
viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.3);
|
|
12041
12050
|
ambientOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.ambientOcclusion;
|
|
12042
12051
|
if (ambientOcclusion == null) {
|
|
12043
12052
|
ambientOcclusion = (_v = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _v === void 0 ? void 0 : _v.ambientOcclusion;
|
|
@@ -15158,7 +15167,7 @@
|
|
|
15158
15167
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
15159
15168
|
})(exports.ViewerUtils || (exports.ViewerUtils = {}));
|
|
15160
15169
|
|
|
15161
|
-
var VERSION$1 = "2.7.
|
|
15170
|
+
var VERSION$1 = "2.7.3";
|
|
15162
15171
|
|
|
15163
15172
|
exports.VERSION = VERSION$1;
|
|
15164
15173
|
exports.CesiumViewMonitor = CesiumViewMonitor;
|