bruce-cesium 5.6.8 → 5.6.9
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 +14 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +13 -10
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +12 -9
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- 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,
|
|
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, 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, 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;
|
|
@@ -13720,7 +13720,7 @@ var EntitiesRenderManager;
|
|
|
13720
13720
|
* @returns
|
|
13721
13721
|
*/
|
|
13722
13722
|
async renderAsIndividuals(entities, force = false) {
|
|
13723
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
13723
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13724
13724
|
// Entity ID -> historic records array.
|
|
13725
13725
|
// We load this as extra information when rendering historic records.
|
|
13726
13726
|
// This way we know what to animate towards as time changes.
|
|
@@ -13803,14 +13803,16 @@ var EntitiesRenderManager;
|
|
|
13803
13803
|
entityId: id,
|
|
13804
13804
|
menuItemId: this.item.id
|
|
13805
13805
|
});
|
|
13806
|
+
// The baseline data source must be editable.
|
|
13807
|
+
const canEdit = !((_e = entity.Bruce.Outline) === null || _e === void 0 ? void 0 : _e.find(x => x.Baseline && !x.Editable));
|
|
13806
13808
|
const visual = rego === null || rego === void 0 ? void 0 : rego.visual;
|
|
13807
13809
|
if (!visual || visual != cEntity) {
|
|
13808
13810
|
const wasClustered = this.clustering ? this.clustering.AddEntity(id, cEntity, false) : false;
|
|
13809
|
-
const tagIds =
|
|
13811
|
+
const tagIds = entity.Bruce["Layer.ID"];
|
|
13810
13812
|
const rego = {
|
|
13811
|
-
canEdit:
|
|
13813
|
+
canEdit: canEdit,
|
|
13812
13814
|
entityId: id,
|
|
13813
|
-
schema:
|
|
13815
|
+
schema: entity.Bruce.Schema,
|
|
13814
13816
|
menuItemId: this.item.id,
|
|
13815
13817
|
menuItemType: this.item.Type,
|
|
13816
13818
|
visual: cEntity,
|
|
@@ -13821,7 +13823,7 @@ var EntitiesRenderManager;
|
|
|
13821
13823
|
overrideShow: wasClustered ? false : null,
|
|
13822
13824
|
name: cEntity.name,
|
|
13823
13825
|
cdn: this.item.cdnEnabled,
|
|
13824
|
-
outline:
|
|
13826
|
+
outline: entity.Bruce.Outline
|
|
13825
13827
|
};
|
|
13826
13828
|
this.visualsManager.AddRego({
|
|
13827
13829
|
rego,
|
|
@@ -13832,10 +13834,11 @@ var EntitiesRenderManager;
|
|
|
13832
13834
|
rego.name = cEntity.name;
|
|
13833
13835
|
rego.visual = cEntity;
|
|
13834
13836
|
rego.entityTypeId = entity.Bruce["EntityType.ID"];
|
|
13835
|
-
rego.tagIds =
|
|
13836
|
-
rego.outline = (
|
|
13837
|
+
rego.tagIds = entity.Bruce["Layer.ID"] ? [].concat(entity.Bruce["Layer.ID"]) : [];
|
|
13838
|
+
rego.outline = (_f = entity.Bruce) === null || _f === void 0 ? void 0 : _f.Outline;
|
|
13837
13839
|
rego.cdn = this.item.cdnEnabled;
|
|
13838
|
-
rego.schema = (
|
|
13840
|
+
rego.schema = (_g = entity.Bruce) === null || _g === void 0 ? void 0 : _g.Schema;
|
|
13841
|
+
rego.canEdit = canEdit;
|
|
13839
13842
|
// Marked as stale meaning some change was performed that requires a refresh.
|
|
13840
13843
|
// This usually means a new sibling was added that we need to update.
|
|
13841
13844
|
if (rego.stale) {
|
|
@@ -13865,7 +13868,7 @@ var EntitiesRenderManager;
|
|
|
13865
13868
|
menuItemId: this.item.id,
|
|
13866
13869
|
requestRender: false
|
|
13867
13870
|
});
|
|
13868
|
-
(
|
|
13871
|
+
(_h = this.clustering) === null || _h === void 0 ? void 0 : _h.RemoveEntity(id, false);
|
|
13869
13872
|
}
|
|
13870
13873
|
}
|
|
13871
13874
|
this.viewer.scene.requestRender();
|
|
@@ -31961,7 +31964,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
31961
31964
|
}
|
|
31962
31965
|
}
|
|
31963
31966
|
|
|
31964
|
-
const VERSION = "5.6.
|
|
31967
|
+
const VERSION = "5.6.9";
|
|
31965
31968
|
|
|
31966
31969
|
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 };
|
|
31967
31970
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|