bruce-cesium 6.2.0 → 6.2.1
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 +34 -17
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +33 -16
- 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 +32 -15
- 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 -0
- 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, 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, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, HeadingPitchRange, Ion, Cesium3DTileStyle, Cesium3DTileColorBlendMode, KmlDataSource, Quaternion, Matrix3, Matrix4, SceneTransforms, NearFarScalar, OrthographicFrustum, EasingFunction, Cesium3DTileset, IonResource, PolygonPipeline, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -18967,28 +18967,36 @@ var TilesetCadRenderManager;
|
|
|
18967
18967
|
}
|
|
18968
18968
|
}
|
|
18969
18969
|
}
|
|
18970
|
-
// Latest path.
|
|
18971
18970
|
if (!rego.entityId) {
|
|
18971
|
+
// Latest path.
|
|
18972
18972
|
const entityIdProp = this.featurePropCache.get("entityId");
|
|
18973
18973
|
if (entityIdProp) {
|
|
18974
18974
|
rego.entityId = feature.getProperty(entityIdProp);
|
|
18975
18975
|
}
|
|
18976
|
-
|
|
18977
|
-
|
|
18978
|
-
|
|
18979
|
-
|
|
18980
|
-
|
|
18981
|
-
|
|
18982
|
-
|
|
18983
|
-
|
|
18984
|
-
|
|
18985
|
-
|
|
18986
|
-
|
|
18976
|
+
// Super legacy.
|
|
18977
|
+
if (!rego.entityId) {
|
|
18978
|
+
const brucePathProp = this.featurePropCache.get("brucePath");
|
|
18979
|
+
if (brucePathProp) {
|
|
18980
|
+
const pathStr = feature.getProperty(brucePathProp);
|
|
18981
|
+
if (pathStr) {
|
|
18982
|
+
let path = pathStr.split("|");
|
|
18983
|
+
let entityTypeId = this.getEntityTypeByPath(path);
|
|
18984
|
+
rego.entityTypeId = entityTypeId;
|
|
18985
|
+
rego.entityId = path[path.length - 1];
|
|
18986
|
+
}
|
|
18987
18987
|
}
|
|
18988
18988
|
}
|
|
18989
|
-
|
|
18990
|
-
|
|
18991
|
-
|
|
18989
|
+
if (!rego.entityId) {
|
|
18990
|
+
return null;
|
|
18991
|
+
}
|
|
18992
|
+
const meta = this.getMetaByEntityId(rego.entityId);
|
|
18993
|
+
if (meta) {
|
|
18994
|
+
rego.entityTypeId = meta.typeId;
|
|
18995
|
+
rego.name = meta.name;
|
|
18996
|
+
rego.parentId = meta.parentId;
|
|
18997
|
+
// Might be a different ID due to collapsed parents.
|
|
18998
|
+
rego.entityId = meta.entityId;
|
|
18999
|
+
}
|
|
18992
19000
|
}
|
|
18993
19001
|
// Optional menu item restriction.
|
|
18994
19002
|
// Allows only showing certain entities from a tileset.
|
|
@@ -19053,6 +19061,15 @@ var TilesetCadRenderManager;
|
|
|
19053
19061
|
});
|
|
19054
19062
|
return rego;
|
|
19055
19063
|
}
|
|
19064
|
+
getMetaByEntityId(entityId) {
|
|
19065
|
+
if (this.treeNodeByEntityId == null) {
|
|
19066
|
+
if (!this.modelTree) {
|
|
19067
|
+
return null;
|
|
19068
|
+
}
|
|
19069
|
+
this.buildModelTreeNodes(this.modelTree);
|
|
19070
|
+
}
|
|
19071
|
+
return this.treeNodeByEntityId[entityId] || null;
|
|
19072
|
+
}
|
|
19056
19073
|
getMetaByGeomId(geomId) {
|
|
19057
19074
|
if (this.treeNodeByGeomId == null) {
|
|
19058
19075
|
if (!this.modelTree) {
|
|
@@ -34305,7 +34322,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
34305
34322
|
}
|
|
34306
34323
|
}
|
|
34307
34324
|
|
|
34308
|
-
const VERSION = "6.2.
|
|
34325
|
+
const VERSION = "6.2.1";
|
|
34309
34326
|
|
|
34310
34327
|
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, LiveCursor, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, CESIUM_TIMELINE_LIVE_KEY, CESIUM_TIMELINE_LIVE_PADDING_KEY, CESIUM_TIMELINE_INTERVAL_KEY, CESIUM_MODEL_SPACE_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 };
|
|
34311
34328
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|