bruce-cesium 5.6.7 → 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 +19 -17
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +18 -16
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/common/entity-label.js +0 -1
- package/dist/lib/rendering/render-managers/common/entity-label.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +17 -14
- 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 +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, 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;
|
|
@@ -9891,7 +9891,6 @@ var EntityLabel;
|
|
|
9891
9891
|
const { entity } = await Entity$1.Get({
|
|
9892
9892
|
api: this.api,
|
|
9893
9893
|
entityId: this.rego.entityId,
|
|
9894
|
-
entityTypeId: this.rego.entityTypeId,
|
|
9895
9894
|
scenario: ((_c = this.rego.outline) === null || _c === void 0 ? void 0 : _c.length) ? (_d = this.rego.outline.find(x => !!x.Scenario)) === null || _d === void 0 ? void 0 : _d.Scenario : null,
|
|
9896
9895
|
schemaId: this.rego.schema,
|
|
9897
9896
|
migrated: true
|
|
@@ -13087,15 +13086,15 @@ var EntitiesRenderManager;
|
|
|
13087
13086
|
}
|
|
13088
13087
|
// If an Entity is not from the allowed Entity Type, but has a source matching it, then it's allowed.
|
|
13089
13088
|
// Therefor we will add it to the allowedTypeIDs list.
|
|
13090
|
-
if (!((_b = entity.Bruce["
|
|
13089
|
+
if (!((_b = entity.Bruce["Outline"]) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
13091
13090
|
continue;
|
|
13092
13091
|
}
|
|
13093
|
-
const
|
|
13094
|
-
for (const
|
|
13095
|
-
if (!
|
|
13092
|
+
const outlineItems = entity.Bruce["Outline"];
|
|
13093
|
+
for (const item of outlineItems) {
|
|
13094
|
+
if (!item["EntityType.Source.ID"]) {
|
|
13096
13095
|
continue;
|
|
13097
13096
|
}
|
|
13098
|
-
const sRecord = sourceLookup.get(
|
|
13097
|
+
const sRecord = sourceLookup.get(item["EntityType.Source.ID"]);
|
|
13099
13098
|
if (!sRecord) {
|
|
13100
13099
|
continue;
|
|
13101
13100
|
}
|
|
@@ -13721,7 +13720,7 @@ var EntitiesRenderManager;
|
|
|
13721
13720
|
* @returns
|
|
13722
13721
|
*/
|
|
13723
13722
|
async renderAsIndividuals(entities, force = false) {
|
|
13724
|
-
var _a, _b, _c, _d, _e, _f, _g, _h
|
|
13723
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
13725
13724
|
// Entity ID -> historic records array.
|
|
13726
13725
|
// We load this as extra information when rendering historic records.
|
|
13727
13726
|
// This way we know what to animate towards as time changes.
|
|
@@ -13804,14 +13803,16 @@ var EntitiesRenderManager;
|
|
|
13804
13803
|
entityId: id,
|
|
13805
13804
|
menuItemId: this.item.id
|
|
13806
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));
|
|
13807
13808
|
const visual = rego === null || rego === void 0 ? void 0 : rego.visual;
|
|
13808
13809
|
if (!visual || visual != cEntity) {
|
|
13809
13810
|
const wasClustered = this.clustering ? this.clustering.AddEntity(id, cEntity, false) : false;
|
|
13810
|
-
const tagIds =
|
|
13811
|
+
const tagIds = entity.Bruce["Layer.ID"];
|
|
13811
13812
|
const rego = {
|
|
13812
|
-
canEdit:
|
|
13813
|
+
canEdit: canEdit,
|
|
13813
13814
|
entityId: id,
|
|
13814
|
-
schema:
|
|
13815
|
+
schema: entity.Bruce.Schema,
|
|
13815
13816
|
menuItemId: this.item.id,
|
|
13816
13817
|
menuItemType: this.item.Type,
|
|
13817
13818
|
visual: cEntity,
|
|
@@ -13822,7 +13823,7 @@ var EntitiesRenderManager;
|
|
|
13822
13823
|
overrideShow: wasClustered ? false : null,
|
|
13823
13824
|
name: cEntity.name,
|
|
13824
13825
|
cdn: this.item.cdnEnabled,
|
|
13825
|
-
outline:
|
|
13826
|
+
outline: entity.Bruce.Outline
|
|
13826
13827
|
};
|
|
13827
13828
|
this.visualsManager.AddRego({
|
|
13828
13829
|
rego,
|
|
@@ -13833,10 +13834,11 @@ var EntitiesRenderManager;
|
|
|
13833
13834
|
rego.name = cEntity.name;
|
|
13834
13835
|
rego.visual = cEntity;
|
|
13835
13836
|
rego.entityTypeId = entity.Bruce["EntityType.ID"];
|
|
13836
|
-
rego.tagIds =
|
|
13837
|
-
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;
|
|
13838
13839
|
rego.cdn = this.item.cdnEnabled;
|
|
13839
|
-
rego.schema = (
|
|
13840
|
+
rego.schema = (_g = entity.Bruce) === null || _g === void 0 ? void 0 : _g.Schema;
|
|
13841
|
+
rego.canEdit = canEdit;
|
|
13840
13842
|
// Marked as stale meaning some change was performed that requires a refresh.
|
|
13841
13843
|
// This usually means a new sibling was added that we need to update.
|
|
13842
13844
|
if (rego.stale) {
|
|
@@ -13866,7 +13868,7 @@ var EntitiesRenderManager;
|
|
|
13866
13868
|
menuItemId: this.item.id,
|
|
13867
13869
|
requestRender: false
|
|
13868
13870
|
});
|
|
13869
|
-
(
|
|
13871
|
+
(_h = this.clustering) === null || _h === void 0 ? void 0 : _h.RemoveEntity(id, false);
|
|
13870
13872
|
}
|
|
13871
13873
|
}
|
|
13872
13874
|
this.viewer.scene.requestRender();
|
|
@@ -31962,7 +31964,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
31962
31964
|
}
|
|
31963
31965
|
}
|
|
31964
31966
|
|
|
31965
|
-
const VERSION = "5.6.
|
|
31967
|
+
const VERSION = "5.6.9";
|
|
31966
31968
|
|
|
31967
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 };
|
|
31968
31970
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|