bruce-cesium 5.7.2 → 5.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.
Files changed (28) hide show
  1. package/dist/bruce-cesium.es5.js +13 -13
  2. package/dist/bruce-cesium.es5.js.map +1 -1
  3. package/dist/bruce-cesium.umd.js +12 -12
  4. package/dist/bruce-cesium.umd.js.map +1 -1
  5. package/dist/lib/bruce-cesium.js +1 -1
  6. package/dist/lib/rendering/entity-render-engine-model3d.js +1 -1
  7. package/dist/lib/rendering/entity-render-engine-model3d.js.map +1 -1
  8. package/dist/lib/rendering/entity-render-engine-point.js +1 -1
  9. package/dist/lib/rendering/entity-render-engine-point.js.map +1 -1
  10. package/dist/lib/rendering/entity-render-engine-polygon.js +1 -1
  11. package/dist/lib/rendering/entity-render-engine-polygon.js.map +1 -1
  12. package/dist/lib/rendering/entity-render-engine-polyline.js +1 -1
  13. package/dist/lib/rendering/entity-render-engine-polyline.js.map +1 -1
  14. package/dist/lib/rendering/relation-render-engine.js +1 -1
  15. package/dist/lib/rendering/relation-render-engine.js.map +1 -1
  16. package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js +1 -1
  17. package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js.map +1 -1
  18. package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +1 -1
  19. package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
  20. package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js.map +1 -1
  21. package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
  22. package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js +1 -1
  23. package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js.map +1 -1
  24. package/dist/lib/rendering/tileset-styler.js +3 -3
  25. package/dist/lib/rendering/tileset-styler.js.map +1 -1
  26. package/dist/types/bruce-cesium.d.ts +1 -1
  27. package/dist/types/rendering/tileset-styler.d.ts +2 -2
  28. package/package.json +2 -2
@@ -6106,7 +6106,7 @@
6106
6106
  }
6107
6107
  async function getStyle(api, entity, styleId) {
6108
6108
  let style = null;
6109
- if (styleId) {
6109
+ if (styleId && styleId != -1) {
6110
6110
  try {
6111
6111
  style = (await BModels.Style.Get({
6112
6112
  api,
@@ -7387,7 +7387,7 @@
7387
7387
  }
7388
7388
  async function getStyle$1(api, entity, styleId) {
7389
7389
  let style = null;
7390
- if (styleId) {
7390
+ if (styleId && styleId != -1) {
7391
7391
  try {
7392
7392
  style = (await BModels.Style.Get({
7393
7393
  api,
@@ -7791,7 +7791,7 @@
7791
7791
  }
7792
7792
  async function getStyle$2(api, entity, styleId) {
7793
7793
  let style = null;
7794
- if (styleId) {
7794
+ if (styleId && styleId != -1) {
7795
7795
  try {
7796
7796
  style = (await BModels.Style.Get({
7797
7797
  api,
@@ -8259,7 +8259,7 @@
8259
8259
  }
8260
8260
  async function getStyle$3(api, entity, styleId) {
8261
8261
  let style = null;
8262
- if (styleId) {
8262
+ if (styleId && styleId != -1) {
8263
8263
  try {
8264
8264
  style = (await BModels.Style.Get({
8265
8265
  api,
@@ -9327,7 +9327,7 @@
9327
9327
  }
9328
9328
  async function getStyle$4(api, typeId, styleId) {
9329
9329
  let style = null;
9330
- if (styleId) {
9330
+ if (styleId && styleId != -1) {
9331
9331
  try {
9332
9332
  style = (await BModels.Style.Get({
9333
9333
  api,
@@ -13412,7 +13412,7 @@
13412
13412
  return;
13413
13413
  }
13414
13414
  let style = null;
13415
- if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) && (zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) > -1) {
13415
+ if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) && zoomItem.StyleID != -1) {
13416
13416
  try {
13417
13417
  style = (_a = (await BModels.Style.Get({
13418
13418
  api: this.apiGetter.getApi(),
@@ -14315,7 +14315,7 @@
14315
14315
  return;
14316
14316
  }
14317
14317
  let style = null;
14318
- if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) && (zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) > -1) {
14318
+ if ((zoomItem === null || zoomItem === void 0 ? void 0 : zoomItem.StyleID) && zoomItem.StyleID != -1) {
14319
14319
  try {
14320
14320
  style = (_a = (await BModels.Style.Get({
14321
14321
  api: this.apiGetter.getApi(),
@@ -15818,7 +15818,7 @@
15818
15818
  }
15819
15819
  }
15820
15820
  }
15821
- if (!isNaN(params.fallbackStyleId) && params.fallbackStyleId != null) {
15821
+ if (params.fallbackStyleId != null && params.fallbackStyleId != undefined && params.fallbackStyleId != "") {
15822
15822
  this.fallbackStyleId = params.fallbackStyleId;
15823
15823
  }
15824
15824
  if (params.fallbackStyle) {
@@ -15939,7 +15939,7 @@
15939
15939
  this.entityGatherer.Empty();
15940
15940
  this.entityGatherer.Init(this.historic, this.expandSources);
15941
15941
  let fallbackStyleId = this.fallbackStyleId;
15942
- if (fallbackStyleId && fallbackStyleId > 0) {
15942
+ if (fallbackStyleId && fallbackStyleId != -1) {
15943
15943
  try {
15944
15944
  let { style: data } = await BModels.Style.Get({
15945
15945
  api: this.api,
@@ -16028,7 +16028,7 @@
16028
16028
  console.error(e);
16029
16029
  }
16030
16030
  }
16031
- if (styleId) {
16031
+ if (styleId && styleId != -1) {
16032
16032
  try {
16033
16033
  let { style: data } = await BModels.Style.Get({
16034
16034
  api: this.api,
@@ -19161,7 +19161,7 @@
19161
19161
  viewer: this.viewer,
19162
19162
  api: api,
19163
19163
  cTileset: this.cTileset,
19164
- fallbackStyleId: +this.item.styleId,
19164
+ fallbackStyleId: this.item.styleId,
19165
19165
  styleMapping: [],
19166
19166
  expandSources: false,
19167
19167
  menuItemId: this.item.id,
@@ -32033,7 +32033,7 @@
32033
32033
  }
32034
32034
  }
32035
32035
 
32036
- const VERSION = "5.7.2";
32036
+ const VERSION = "5.7.3";
32037
32037
 
32038
32038
  exports.VERSION = VERSION;
32039
32039
  exports.isOutlineChanged = isOutlineChanged;