bruce-cesium 5.8.5 → 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 +26 -43
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +24 -41
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/other/assembly-render-manager.js +3 -2
- package/dist/lib/rendering/render-managers/other/assembly-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +1 -0
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +0 -35
- package/dist/lib/rendering/visuals-register.js.map +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/rendering/visuals-register.d.ts +2 -12
- 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
|
-
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,
|
|
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;
|
|
@@ -12274,41 +12290,6 @@ var VisualsRegister;
|
|
|
12274
12290
|
}
|
|
12275
12291
|
return map;
|
|
12276
12292
|
}
|
|
12277
|
-
/**
|
|
12278
|
-
* Gets hierarchy information for a given entity from any render manager.
|
|
12279
|
-
* This is a utility method to get parent/child relationships.
|
|
12280
|
-
* @param entityId The entity ID to get hierarchy info for
|
|
12281
|
-
* @param menuItemId The menu item ID (optional)
|
|
12282
|
-
* @returns Hierarchy information or null if not found
|
|
12283
|
-
*/
|
|
12284
|
-
getHierarchyInfo(entityId, menuItemId) {
|
|
12285
|
-
// Try to find the render manager for this entity
|
|
12286
|
-
const rego = this.GetRego({ entityId, menuItemId });
|
|
12287
|
-
if (!rego) {
|
|
12288
|
-
return null;
|
|
12289
|
-
}
|
|
12290
|
-
// Check if it's a CAD tileset
|
|
12291
|
-
if (rego.tilesetType === "CAD") {
|
|
12292
|
-
// This would need to be implemented in the CAD render manager
|
|
12293
|
-
// For now, return basic info
|
|
12294
|
-
return {
|
|
12295
|
-
parentId: undefined,
|
|
12296
|
-
children: [],
|
|
12297
|
-
path: [entityId]
|
|
12298
|
-
};
|
|
12299
|
-
}
|
|
12300
|
-
// Check if it's an Assembly
|
|
12301
|
-
if (rego.menuItemType === MenuItem.EType.Assembly) {
|
|
12302
|
-
// This would need to be implemented in the Assembly render manager
|
|
12303
|
-
// For now, return basic info
|
|
12304
|
-
return {
|
|
12305
|
-
parentId: undefined,
|
|
12306
|
-
children: [],
|
|
12307
|
-
path: [entityId]
|
|
12308
|
-
};
|
|
12309
|
-
}
|
|
12310
|
-
return null;
|
|
12311
|
-
}
|
|
12312
12293
|
}
|
|
12313
12294
|
VisualsRegister.Register = Register;
|
|
12314
12295
|
})(VisualsRegister || (VisualsRegister = {}));
|
|
@@ -18404,6 +18385,7 @@ var TilesetCadRenderManager;
|
|
|
18404
18385
|
rego.entityId = meta.entityId;
|
|
18405
18386
|
rego.entityTypeId = meta.typeId;
|
|
18406
18387
|
rego.name = meta.name;
|
|
18388
|
+
rego.parentId = meta.parentId;
|
|
18407
18389
|
}
|
|
18408
18390
|
}
|
|
18409
18391
|
}
|
|
@@ -22366,7 +22348,7 @@ var AssemblyRenderManager;
|
|
|
22366
22348
|
this.renderPriority = 1;
|
|
22367
22349
|
}
|
|
22368
22350
|
(async () => {
|
|
22369
|
-
var _a;
|
|
22351
|
+
var _a, _b, _c;
|
|
22370
22352
|
if (this.disposed) {
|
|
22371
22353
|
return;
|
|
22372
22354
|
}
|
|
@@ -22453,7 +22435,8 @@ var AssemblyRenderManager;
|
|
|
22453
22435
|
accountId: this.getters.GetAccountId(),
|
|
22454
22436
|
entityTypeId: entity.Bruce["EntityType.ID"],
|
|
22455
22437
|
name: entity.Bruce.Name,
|
|
22456
|
-
rootId: rootId
|
|
22438
|
+
rootId: rootId,
|
|
22439
|
+
parentId: (_c = (_b = this.hierarchyNodeByEntityId) === null || _b === void 0 ? void 0 : _b[entity.Bruce.ID]) === null || _c === void 0 ? void 0 : _c.parentId
|
|
22457
22440
|
},
|
|
22458
22441
|
requestRender: false
|
|
22459
22442
|
});
|
|
@@ -32895,7 +32878,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
32895
32878
|
}
|
|
32896
32879
|
}
|
|
32897
32880
|
|
|
32898
|
-
const VERSION = "5.8.
|
|
32881
|
+
const VERSION = "5.8.7";
|
|
32899
32882
|
|
|
32900
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 };
|
|
32901
32884
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|