bruce-cesium 5.2.7 → 5.2.8
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 +18 -12
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +17 -11
- 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-cad-render-manager.js +16 -10
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, AbstractApi, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle,
|
|
3
|
+
import { Cartographic, JulianDate, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, HorizontalOrigin, VerticalOrigin, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -16910,24 +16910,29 @@ var TilesetCadRenderManager;
|
|
|
16910
16910
|
this.visualsManager = visualsManager;
|
|
16911
16911
|
}
|
|
16912
16912
|
Init() {
|
|
16913
|
-
var _a;
|
|
16913
|
+
var _a, _b;
|
|
16914
16914
|
const tilesetId = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.TilesetID;
|
|
16915
16915
|
if (!tilesetId) {
|
|
16916
16916
|
return;
|
|
16917
16917
|
}
|
|
16918
|
+
let accountId = (_b = this.item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID;
|
|
16919
|
+
if (!accountId) {
|
|
16920
|
+
accountId = this.getters.GetAccountId();
|
|
16921
|
+
}
|
|
16918
16922
|
this.renderPriority = this.item.renderPriority;
|
|
16919
16923
|
if (this.renderPriority == null) {
|
|
16920
16924
|
this.renderPriority = 0;
|
|
16921
16925
|
}
|
|
16922
16926
|
(async () => {
|
|
16923
|
-
var _a
|
|
16924
|
-
|
|
16927
|
+
var _a;
|
|
16928
|
+
const api = this.getters.GetBruceApi({
|
|
16929
|
+
accountId: accountId
|
|
16930
|
+
});
|
|
16925
16931
|
let coords = null;
|
|
16926
16932
|
let tileset = null;
|
|
16927
16933
|
// Single shared getter to avoid multiple assemblies fighting to render.
|
|
16928
16934
|
// This lets one complete, then the next start.
|
|
16929
16935
|
await SharedGetters.Queue.Run("Rendering assembly.", async () => {
|
|
16930
|
-
var _a, _b;
|
|
16931
16936
|
if (this.disposed) {
|
|
16932
16937
|
return;
|
|
16933
16938
|
}
|
|
@@ -16935,7 +16940,7 @@ var TilesetCadRenderManager;
|
|
|
16935
16940
|
let canAccess = false;
|
|
16936
16941
|
try {
|
|
16937
16942
|
canAccess = await Tileset.Publish.IsAccessAllowed({
|
|
16938
|
-
sourceAccountId:
|
|
16943
|
+
sourceAccountId: accountId,
|
|
16939
16944
|
tilesetId: tilesetId,
|
|
16940
16945
|
forAccountId: this.getters.GetAccountId(),
|
|
16941
16946
|
getters: this.getters
|
|
@@ -16948,14 +16953,13 @@ var TilesetCadRenderManager;
|
|
|
16948
16953
|
console.error(e);
|
|
16949
16954
|
}
|
|
16950
16955
|
if (!canAccess) {
|
|
16951
|
-
console.warn(`Cannot access tileset: ${tilesetId}, from account: ${
|
|
16956
|
+
console.warn(`Cannot access tileset: ${tilesetId}, from account: ${accountId}.`);
|
|
16952
16957
|
return;
|
|
16953
16958
|
}
|
|
16954
16959
|
}
|
|
16955
16960
|
else {
|
|
16956
16961
|
console.warn("No tileset id found. Skipping access check.");
|
|
16957
16962
|
}
|
|
16958
|
-
api = this.getters.GetBruceApi();
|
|
16959
16963
|
tileset = (await Tileset.Get({
|
|
16960
16964
|
api,
|
|
16961
16965
|
tilesetId
|
|
@@ -17003,7 +17007,7 @@ var TilesetCadRenderManager;
|
|
|
17003
17007
|
tileset: tileset,
|
|
17004
17008
|
viewer: this.viewer,
|
|
17005
17009
|
coords: coords,
|
|
17006
|
-
accountId:
|
|
17010
|
+
accountId: accountId,
|
|
17007
17011
|
viaCdn: Boolean(this.item.cdnEnabled == null ? true : this.item.cdnEnabled),
|
|
17008
17012
|
noMemoryLimit: this.item["noMaximumMemory"]
|
|
17009
17013
|
});
|
|
@@ -17027,7 +17031,9 @@ var TilesetCadRenderManager;
|
|
|
17027
17031
|
this.onCTilesetLoad();
|
|
17028
17032
|
this.styler.Init({
|
|
17029
17033
|
viewer: this.viewer,
|
|
17030
|
-
|
|
17034
|
+
// Default API instead of the account one.
|
|
17035
|
+
// Records are driven by the account loading it instead of the source account.
|
|
17036
|
+
api: this.getters.GetBruceApi(),
|
|
17031
17037
|
cTileset: this.cTileset,
|
|
17032
17038
|
fallbackStyleId: this.item.styleId,
|
|
17033
17039
|
styleMapping: this.item.StyleMapping,
|
|
@@ -17109,7 +17115,7 @@ var TilesetCadRenderManager;
|
|
|
17109
17115
|
menuItemType: this.item.Type,
|
|
17110
17116
|
priority: this.renderPriority,
|
|
17111
17117
|
visual: feature,
|
|
17112
|
-
accountId: (_b = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID) !== null && _b !== void 0 ? _b : this.getters.GetAccountId(),
|
|
17118
|
+
accountId: (_b = ((_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID)) !== null && _b !== void 0 ? _b : this.getters.GetAccountId(),
|
|
17113
17119
|
tilesetId: (_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.TilesetID,
|
|
17114
17120
|
tilesetType: Tileset.EType.Cad,
|
|
17115
17121
|
rootId: this.rootId,
|
|
@@ -29973,7 +29979,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
29973
29979
|
}
|
|
29974
29980
|
}
|
|
29975
29981
|
|
|
29976
|
-
const VERSION = "5.2.
|
|
29982
|
+
const VERSION = "5.2.8";
|
|
29977
29983
|
|
|
29978
29984
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isHistoricMetadataChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Walkthrough, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
29979
29985
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|