bruce-cesium 5.8.6 → 5.8.7
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 +21 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +20 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/utils/entity-utils.js +19 -3
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/utils/entity-utils.d.ts +2 -1
- package/package.json +2 -2
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
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, 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, JulianDate, Entity, DistanceDisplayCondition,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, KmlDataSource, Quaternion, Matrix3, Matrix4, OrthographicFrustum, EasingFunction, NearFarScalar, SceneTransforms, Cesium3DTileset, IonResource, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -4504,6 +4504,21 @@ var EntityUtils;
|
|
|
4504
4504
|
EntityUtils.GetOpacity = GetOpacity;
|
|
4505
4505
|
async function FlyTo(params) {
|
|
4506
4506
|
var _a, _b;
|
|
4507
|
+
let { entityIds, entities, tileset } = params;
|
|
4508
|
+
if (!entityIds && !entities && !tileset) {
|
|
4509
|
+
return false;
|
|
4510
|
+
}
|
|
4511
|
+
let entityLookup = new Map();
|
|
4512
|
+
if (!entityIds && entities) {
|
|
4513
|
+
entityIds = entities.map(x => x.Bruce.ID);
|
|
4514
|
+
}
|
|
4515
|
+
if (entities) {
|
|
4516
|
+
for (const entity of entities) {
|
|
4517
|
+
if (entity && entity.Bruce && entity.Bruce.ID) {
|
|
4518
|
+
entityLookup.set(entity.Bruce.ID, entity);
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4507
4522
|
const is2d = ViewUtils.Get2dStatus({
|
|
4508
4523
|
viewer: params.viewer
|
|
4509
4524
|
});
|
|
@@ -4512,8 +4527,9 @@ var EntityUtils;
|
|
|
4512
4527
|
createIfMissing: true
|
|
4513
4528
|
});
|
|
4514
4529
|
const location = await EntityUtils.GetLocation({
|
|
4515
|
-
samples:
|
|
4530
|
+
samples: entityIds.map((id) => ({
|
|
4516
4531
|
entityId: id,
|
|
4532
|
+
entity: entityLookup.get(id),
|
|
4517
4533
|
returnHeightRef: HeightReference.NONE,
|
|
4518
4534
|
heightRef: HeightReference.RELATIVE_TO_GROUND
|
|
4519
4535
|
})),
|
|
@@ -4665,8 +4681,8 @@ var EntityUtils;
|
|
|
4665
4681
|
});
|
|
4666
4682
|
return true;
|
|
4667
4683
|
}
|
|
4668
|
-
if (
|
|
4669
|
-
params.viewer.zoomTo(
|
|
4684
|
+
if (tileset && !tileset.isDestroyed() && tileset["ready"] != false && tileset.boundingSphere) {
|
|
4685
|
+
params.viewer.zoomTo(tileset, new HeadingPitchRange(0.0, -0.5, tileset.boundingSphere.radius / 4.0));
|
|
4670
4686
|
return true;
|
|
4671
4687
|
}
|
|
4672
4688
|
return false;
|
|
@@ -32862,7 +32878,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
32862
32878
|
}
|
|
32863
32879
|
}
|
|
32864
32880
|
|
|
32865
|
-
const VERSION = "5.8.
|
|
32881
|
+
const VERSION = "5.8.7";
|
|
32866
32882
|
|
|
32867
32883
|
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 };
|
|
32868
32884
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|