bruce-cesium 5.9.3 → 5.9.5
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 +17 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +15 -9
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine-point.js +5 -5
- package/dist/lib/rendering/entity-render-engine-point.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js +1 -3
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/other/assembly-render-manager.js +8 -0
- package/dist/lib/rendering/render-managers/other/assembly-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/render-managers/other/assembly-render-manager.d.ts +4 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BruceEvent, Cartes, Entity as Entity$1, ProjectViewTile, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark,
|
|
1
|
+
import { BruceEvent, Cartes, Entity as Entity$1, ProjectViewTile, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile, Camera, EntityAttachment, EntityAttachmentType, EntityAttribute, Session, AbstractApi } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, KmlDataSource, SceneTransforms, Quaternion, Matrix3, Matrix4, Cesium3DTileset, IonResource, EllipsoidTerrainProvider, CesiumInspector, OrthographicFrustum, defined, ClockRange, PolygonPipeline, EllipsoidGeodesic, sampleTerrainMostDetailed, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, EasingFunction, NearFarScalar, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -6133,20 +6133,20 @@ const createImageBillboard = (url) => {
|
|
|
6133
6133
|
*/
|
|
6134
6134
|
function extractMetadataFromFileUrl(url) {
|
|
6135
6135
|
var _a;
|
|
6136
|
-
|
|
6136
|
+
const lowercased = url.toLowerCase();
|
|
6137
6137
|
// Bzzt, invalid url format for our purposes.
|
|
6138
|
-
if (!
|
|
6138
|
+
if (!lowercased.includes(".api.") || !lowercased.includes("/file/")) {
|
|
6139
6139
|
return null;
|
|
6140
6140
|
}
|
|
6141
6141
|
url = url.replace("https://", "").replace("http://", "");
|
|
6142
6142
|
let envId = Api.EEnv.PROD;
|
|
6143
|
-
if (
|
|
6143
|
+
if (lowercased.includes("-dev.net")) {
|
|
6144
6144
|
envId = Api.EEnv.DEV;
|
|
6145
6145
|
}
|
|
6146
|
-
else if (
|
|
6146
|
+
else if (lowercased.includes("-stg.net")) {
|
|
6147
6147
|
envId = Api.EEnv.STG;
|
|
6148
6148
|
}
|
|
6149
|
-
else if (
|
|
6149
|
+
else if (lowercased.includes("-uat.net")) {
|
|
6150
6150
|
envId = Api.EEnv.UAT;
|
|
6151
6151
|
}
|
|
6152
6152
|
const parts = url.split("/");
|
|
@@ -14964,9 +14964,7 @@ var EntitiesIdsRenderManager;
|
|
|
14964
14964
|
this.renderPriority = 2;
|
|
14965
14965
|
}
|
|
14966
14966
|
if (!this.getter) {
|
|
14967
|
-
this.getter = new BatchedDataGetter.Getter(this.item.BruceEntity.EntityIds, this.monitor, BATCH_SIZE$2,
|
|
14968
|
-
// Don't emit the same Entity multiple times.
|
|
14969
|
-
true);
|
|
14967
|
+
this.getter = new BatchedDataGetter.Getter(this.item.BruceEntity.EntityIds, this.monitor, BATCH_SIZE$2, false);
|
|
14970
14968
|
this.getterSub = this.getter.OnUpdate.Subscribe((ids) => {
|
|
14971
14969
|
this.onGetterUpdate(ids);
|
|
14972
14970
|
});
|
|
@@ -22399,6 +22397,12 @@ var AssemblyRenderManager;
|
|
|
22399
22397
|
get Disposed() {
|
|
22400
22398
|
return this.disposed;
|
|
22401
22399
|
}
|
|
22400
|
+
get Hierarchy() {
|
|
22401
|
+
return this.hierarchy;
|
|
22402
|
+
}
|
|
22403
|
+
get HierarchyUpdate() {
|
|
22404
|
+
return this.hierarchyUpdate;
|
|
22405
|
+
}
|
|
22402
22406
|
get ModelSpace() {
|
|
22403
22407
|
return this.modelSpace;
|
|
22404
22408
|
}
|
|
@@ -22406,6 +22410,7 @@ var AssemblyRenderManager;
|
|
|
22406
22410
|
this.disposed = false;
|
|
22407
22411
|
// Cache of the hierarchy so that our scene-tree can reference it.
|
|
22408
22412
|
this.hierarchy = null;
|
|
22413
|
+
this.hierarchyUpdate = new BruceEvent();
|
|
22409
22414
|
// Quick look-up of the hierarchy nodes by entity ID.
|
|
22410
22415
|
this.hierarchyNodeByEntityId = null;
|
|
22411
22416
|
this.modelSpace = false;
|
|
@@ -22435,6 +22440,7 @@ var AssemblyRenderManager;
|
|
|
22435
22440
|
if (this.disposed) {
|
|
22436
22441
|
return;
|
|
22437
22442
|
}
|
|
22443
|
+
this.hierarchyUpdate.Trigger(hierarchy);
|
|
22438
22444
|
// Build hierarchy node cache for quick lookups
|
|
22439
22445
|
this.buildHierarchyNodes(hierarchy);
|
|
22440
22446
|
const traverseHierarchy = (node, leavesOnly) => {
|
|
@@ -33125,7 +33131,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
33125
33131
|
}
|
|
33126
33132
|
}
|
|
33127
33133
|
|
|
33128
|
-
const VERSION = "5.9.
|
|
33134
|
+
const VERSION = "5.9.5";
|
|
33129
33135
|
|
|
33130
33136
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isOutlineChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, AssemblyRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, CESIUM_TIMELINE_LIVE_KEY, CESIUM_TIMELINE_LIVE_PADDING_KEY, CESIUM_TIMELINE_INTERVAL_KEY, DEFAULT_LIVE_PADDING_SECONDS, 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 };
|
|
33131
33137
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|