bruce-cesium 3.9.5 → 3.9.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 +14 -14
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +38 -40
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +3 -1
- package/dist/lib/bruce-cesium.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +3 -3
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +8 -8
- package/dist/types/bruce-cesium.d.ts +3 -1
- package/package.json +2 -2
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, Api, EntityRelationType, ENVIRONMENT, EntityHistoricData, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, Entity, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, Entity, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, OrthographicFrustum, EasingFunction, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, BoundingSphere, GeometryInstance, PolygonPipeline, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Quaternion, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -5252,7 +5252,7 @@ var EntityRenderEngine;
|
|
|
5252
5252
|
newRenderId == oldRenderId &&
|
|
5253
5253
|
!(existingRego === null || existingRego === void 0 ? void 0 : existingRego.stale) &&
|
|
5254
5254
|
// If historic metadata is different then it's also stale.
|
|
5255
|
-
((existingRego === null || existingRego === void 0 ? void 0 : existingRego.historicDateTime) == ((_c = entity.Bruce) === null || _c === void 0 ? void 0 : _c.
|
|
5255
|
+
((existingRego === null || existingRego === void 0 ? void 0 : existingRego.historicDateTime) == ((_c = entity.Bruce) === null || _c === void 0 ? void 0 : _c.HistoricDateTime))) {
|
|
5256
5256
|
// No sorting category needed. Already rendered the way we want.
|
|
5257
5257
|
cEntities.set(id, existingRego.visual);
|
|
5258
5258
|
}
|
|
@@ -5263,8 +5263,8 @@ var EntityRenderEngine;
|
|
|
5263
5263
|
// Flag as no longer stale as we're unlikely to recreate the rego if we're reusing the graphic.
|
|
5264
5264
|
existingRego.stale = false;
|
|
5265
5265
|
// Update metadata for the same reason.
|
|
5266
|
-
existingRego.historicDateTime = (_d = entity.Bruce) === null || _d === void 0 ? void 0 : _d.
|
|
5267
|
-
existingRego.historicAttrKey = (_e = entity.Bruce) === null || _e === void 0 ? void 0 : _e.
|
|
5266
|
+
existingRego.historicDateTime = (_d = entity.Bruce) === null || _d === void 0 ? void 0 : _d.HistoricDateTime;
|
|
5267
|
+
existingRego.historicAttrKey = (_e = entity.Bruce) === null || _e === void 0 ? void 0 : _e.HistoricAttrKey;
|
|
5268
5268
|
existingRego.entityTypeId = entity.Bruce["EntityType.ID"];
|
|
5269
5269
|
updated.set(id, true);
|
|
5270
5270
|
}
|
|
@@ -11148,7 +11148,7 @@ var EntitiesRenderManager;
|
|
|
11148
11148
|
case 0:
|
|
11149
11149
|
entitiesHistoric = {};
|
|
11150
11150
|
if (!((_a = this.item.BruceEntity) === null || _a === void 0 ? void 0 : _a.historicAttrKey)) return [3 /*break*/, 2];
|
|
11151
|
-
toRemove = entities.filter(function (x) { var _a; return !((_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.
|
|
11151
|
+
toRemove = entities.filter(function (x) { var _a; return !((_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.HistoricAttrKey); });
|
|
11152
11152
|
for (i = 0; i < toRemove.length; i++) {
|
|
11153
11153
|
entity = toRemove[i];
|
|
11154
11154
|
this.visualsManager.RemoveRegos({
|
|
@@ -11158,7 +11158,7 @@ var EntitiesRenderManager;
|
|
|
11158
11158
|
});
|
|
11159
11159
|
(_b = this.clustering) === null || _b === void 0 ? void 0 : _b.RemoveEntity(entity.Bruce.ID, false);
|
|
11160
11160
|
}
|
|
11161
|
-
entities = entities.filter(function (x) { var _a; return !!((_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.
|
|
11161
|
+
entities = entities.filter(function (x) { var _a; return !!((_a = x.Bruce) === null || _a === void 0 ? void 0 : _a.HistoricAttrKey); });
|
|
11162
11162
|
if (!this.item.historicInterpolation) return [3 /*break*/, 2];
|
|
11163
11163
|
if (!entities.length) return [3 /*break*/, 2];
|
|
11164
11164
|
startTmp = JulianDate.toDate(this.viewer.clock.startTime);
|
|
@@ -11212,7 +11212,7 @@ var EntitiesRenderManager;
|
|
|
11212
11212
|
tagIds = (_c = entity.Bruce) === null || _c === void 0 ? void 0 : _c["Layer.ID"];
|
|
11213
11213
|
rego_1 = {
|
|
11214
11214
|
entityId: id,
|
|
11215
|
-
schemaId: (_d = entity.Bruce) === null || _d === void 0 ? void 0 : _d.
|
|
11215
|
+
schemaId: (_d = entity.Bruce) === null || _d === void 0 ? void 0 : _d.SchemaID,
|
|
11216
11216
|
menuItemId: this.item.id,
|
|
11217
11217
|
visual: cEntity,
|
|
11218
11218
|
priority: 0,
|
|
@@ -11222,8 +11222,8 @@ var EntitiesRenderManager;
|
|
|
11222
11222
|
overrideShow: wasClustered ? false : null,
|
|
11223
11223
|
name: cEntity.name,
|
|
11224
11224
|
cdn: this.item.cdnEnabled,
|
|
11225
|
-
historicDateTime: (_e = entity.Bruce) === null || _e === void 0 ? void 0 : _e.
|
|
11226
|
-
historicAttrKey: (_f = entity.Bruce) === null || _f === void 0 ? void 0 : _f.
|
|
11225
|
+
historicDateTime: (_e = entity.Bruce) === null || _e === void 0 ? void 0 : _e.HistoricDateTime,
|
|
11226
|
+
historicAttrKey: (_f = entity.Bruce) === null || _f === void 0 ? void 0 : _f.HistoricAttrKey
|
|
11227
11227
|
};
|
|
11228
11228
|
this.visualsManager.AddRego({
|
|
11229
11229
|
rego: rego_1,
|
|
@@ -11235,10 +11235,10 @@ var EntitiesRenderManager;
|
|
|
11235
11235
|
rego.visual = cEntity;
|
|
11236
11236
|
rego.entityTypeId = entity.Bruce["EntityType.ID"];
|
|
11237
11237
|
rego.tagIds = ((_g = entity.Bruce) === null || _g === void 0 ? void 0 : _g["Layer.ID"]) ? [].concat(entity.Bruce["Layer.ID"]) : [];
|
|
11238
|
-
rego.historicDateTime = (_h = entity.Bruce) === null || _h === void 0 ? void 0 : _h.
|
|
11239
|
-
rego.historicAttrKey = (_j = entity.Bruce) === null || _j === void 0 ? void 0 : _j.
|
|
11238
|
+
rego.historicDateTime = (_h = entity.Bruce) === null || _h === void 0 ? void 0 : _h.HistoricDateTime;
|
|
11239
|
+
rego.historicAttrKey = (_j = entity.Bruce) === null || _j === void 0 ? void 0 : _j.HistoricAttrKey;
|
|
11240
11240
|
rego.cdn = this.item.cdnEnabled;
|
|
11241
|
-
rego.schemaId = (_k = entity.Bruce) === null || _k === void 0 ? void 0 : _k.
|
|
11241
|
+
rego.schemaId = (_k = entity.Bruce) === null || _k === void 0 ? void 0 : _k.SchemaID;
|
|
11242
11242
|
// We manually trigger an update event since the graphic was updated but not recreated.
|
|
11243
11243
|
this.visualsManager.OnUpdate.Trigger({
|
|
11244
11244
|
type: VisualsRegister.EVisualUpdateType.Update,
|
|
@@ -24391,7 +24391,7 @@ var ViewRenderEngine;
|
|
|
24391
24391
|
ViewRenderEngine.Render = Render;
|
|
24392
24392
|
})(ViewRenderEngine || (ViewRenderEngine = {}));
|
|
24393
24393
|
|
|
24394
|
-
var VERSION = "3.9.
|
|
24394
|
+
var VERSION = "3.9.7";
|
|
24395
24395
|
|
|
24396
|
-
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, Draw3dPolygon, Draw3dPolyline };
|
|
24396
|
+
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline };
|
|
24397
24397
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|