bruce-cesium 5.7.4 → 5.7.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 +33 -6
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +31 -4
- 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 +31 -3
- 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/dist/types/rendering/render-managers/tilesets/tileset-cad-render-manager.d.ts +1 -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, Camera, ProjectViewLegacyTile,
|
|
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, Camera, ProjectViewLegacyTile, AbstractApi, Session, EntityAttachment, EntityAttachmentType, EntityAttribute } 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, HorizontalOrigin, VerticalOrigin, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, HeadingPitchRange, Cesium3DTileStyle, KmlDataSource, Cesium3DTileColorBlendMode, Ion, Quaternion, Matrix3, Matrix4, OrthographicFrustum, EasingFunction, NearFarScalar, SceneTransforms, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, PolygonPipeline, Cesium3DTileset, IonResource, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, BoundingSphere, GeometryInstance, EllipsoidGeodesic, sampleTerrainMostDetailed, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -17878,7 +17878,7 @@ var TilesetCadRenderManager;
|
|
|
17878
17878
|
// Callback to dispose the link between scene time and the root's historic position.
|
|
17879
17879
|
this.viewerDateTimeChangeRemoval = null;
|
|
17880
17880
|
// Series of points to help interpolate movement when the timeline changes.
|
|
17881
|
-
this.
|
|
17881
|
+
this.historicPossesInitialLoaded = false;
|
|
17882
17882
|
this.historicAnimation = null;
|
|
17883
17883
|
this.historicPossesLoadingProm = null;
|
|
17884
17884
|
const { viewer, register: visualsManager, getters, item, modelSpace } = params;
|
|
@@ -18414,7 +18414,7 @@ var TilesetCadRenderManager;
|
|
|
18414
18414
|
const foundMinDateTime = (range === null || range === void 0 ? void 0 : range.minDate) ? range.minDate.getTime() : null;
|
|
18415
18415
|
const foundMaxDateTime = (range === null || range === void 0 ? void 0 : range.maxDate) ? range.maxDate.getTime() : null;
|
|
18416
18416
|
// See if the current range is within the range we already have.
|
|
18417
|
-
if (this.
|
|
18417
|
+
if (this.historicPossesInitialLoaded &&
|
|
18418
18418
|
foundMinDateTime &&
|
|
18419
18419
|
foundMaxDateTime &&
|
|
18420
18420
|
minDateTime >= foundMinDateTime &&
|
|
@@ -18496,7 +18496,34 @@ var TilesetCadRenderManager;
|
|
|
18496
18496
|
res(false);
|
|
18497
18497
|
return;
|
|
18498
18498
|
}
|
|
18499
|
-
|
|
18499
|
+
// Also request the current position in case its not in the range.
|
|
18500
|
+
const { entity } = await Entity$1.Get({
|
|
18501
|
+
entityId: this.rootId,
|
|
18502
|
+
historicPoint: this.viewer.clock.currentTime.toString(),
|
|
18503
|
+
api: api
|
|
18504
|
+
});
|
|
18505
|
+
if (this.disposed || !entity) {
|
|
18506
|
+
res(false);
|
|
18507
|
+
return;
|
|
18508
|
+
}
|
|
18509
|
+
const historicDetails = entity.Bruce.Outline ? entity.Bruce.Outline.find(x => !!x.DateTime) : null;
|
|
18510
|
+
if (historicDetails) {
|
|
18511
|
+
const pos3d = EntityUtils.GetPos({
|
|
18512
|
+
entity: entity,
|
|
18513
|
+
viewer: this.viewer,
|
|
18514
|
+
recordHeightRef: HeightReference.NONE,
|
|
18515
|
+
returnHeightRef: HeightReference.CLAMP_TO_GROUND,
|
|
18516
|
+
allowRendered: false
|
|
18517
|
+
});
|
|
18518
|
+
if (pos3d && !isNaN(pos3d.x) && !isNaN(pos3d.y) && !isNaN(pos3d.z)) {
|
|
18519
|
+
positions.push({
|
|
18520
|
+
dateTime: new Date(historicDetails.DateTime),
|
|
18521
|
+
pos3d: pos3d,
|
|
18522
|
+
heading: null
|
|
18523
|
+
});
|
|
18524
|
+
}
|
|
18525
|
+
}
|
|
18526
|
+
this.historicPossesInitialLoaded = true;
|
|
18500
18527
|
res(positions);
|
|
18501
18528
|
}
|
|
18502
18529
|
catch (e) {
|
|
@@ -32163,7 +32190,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
32163
32190
|
}
|
|
32164
32191
|
}
|
|
32165
32192
|
|
|
32166
|
-
const VERSION = "5.7.
|
|
32193
|
+
const VERSION = "5.7.5";
|
|
32167
32194
|
|
|
32168
32195
|
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 };
|
|
32169
32196
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|