bruce-cesium 6.8.5 → 6.8.6
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 +16 -20
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +14 -18
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/menu-item-manager.js +13 -17
- package/dist/lib/rendering/menu-item-manager.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
|
-
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition,
|
|
3
|
-
import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile,
|
|
2
|
+
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, HeightReference, HorizontalOrigin, VerticalOrigin, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, Cartesian2, ColorBlendMode, Model, Rectangle, SceneTransforms, KmlDataSource, NearFarScalar, Matrix3, GeoJsonDataSource, Cesium3DTileStyle, HeadingPitchRange, SceneMode, Ion, IonResource, Cesium3DTileColorBlendMode, OrthographicFrustum, EasingFunction, EllipsoidGeodesic, EllipsoidTerrainProvider, sampleTerrainMostDetailed, defined, Cesium3DTileset, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, PolygonPipeline, CesiumInspector, ClockRange, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
|
|
3
|
+
import { Cartes, Entity as Entity$1, ENVIRONMENT, Api, Calculator, ClientFile, EntityTag, EntityType, LRUCache, ObjectUtils, Style, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, Carto, Geometry, Bounds, EntityLod, BruceEvent, EntityCoords, DataLab, DelayQueue, BruceApi, EntityHistoricData, EntityRelation, AccountConcept, RecordChangeFeed, ProgramKey, EntitySource, Camera, ProjectViewTile, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session, EntityRelationType } from 'bruce-models';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Ensures a number is returned from a given value.
|
|
@@ -22160,7 +22160,7 @@ var MenuItemManager;
|
|
|
22160
22160
|
* @returns
|
|
22161
22161
|
*/
|
|
22162
22162
|
RenderItem(params) {
|
|
22163
|
-
var _a, _b, _c, _d, _e, _f, _g
|
|
22163
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
22164
22164
|
if (this.viewer.isDestroyed()) {
|
|
22165
22165
|
return null;
|
|
22166
22166
|
}
|
|
@@ -22188,17 +22188,13 @@ var MenuItemManager;
|
|
|
22188
22188
|
let create = true;
|
|
22189
22189
|
// Item already exists so we'll check if we should re-create it.
|
|
22190
22190
|
if (rItem) {
|
|
22191
|
-
// This means we're updating
|
|
22192
|
-
//
|
|
22193
|
-
// Eg: different tags that were enabled.
|
|
22191
|
+
// This means we're updating an entities menu item re-using the same id.
|
|
22192
|
+
// Eg: a bookmark swap that keeps the same item but changes tags, style, or zoom settings.
|
|
22194
22193
|
if (rItem.type == MenuItem.EType.Entities && params.item.Type == MenuItem.EType.Entities) {
|
|
22195
|
-
|
|
22196
|
-
|
|
22197
|
-
|
|
22198
|
-
|
|
22199
|
-
});
|
|
22200
|
-
rItem.item = params.item;
|
|
22201
|
-
}
|
|
22194
|
+
rItem.renderManager.Init({
|
|
22195
|
+
item: params.item,
|
|
22196
|
+
});
|
|
22197
|
+
rItem.item = params.item;
|
|
22202
22198
|
create = false;
|
|
22203
22199
|
}
|
|
22204
22200
|
// This means we're updating a entities tileset menu item.
|
|
@@ -22272,7 +22268,7 @@ var MenuItemManager;
|
|
|
22272
22268
|
const oRenderManager = rItem.renderManager;
|
|
22273
22269
|
const oItem = params.item;
|
|
22274
22270
|
if (oRenderManager && oItem) {
|
|
22275
|
-
if (+oRenderManager.SourceId == +((
|
|
22271
|
+
if (+oRenderManager.SourceId == +((_a = oItem.BruceEntity) === null || _a === void 0 ? void 0 : _a.SourceId) && oRenderManager.EntityTypeId == ((_b = oItem.BruceEntity) === null || _b === void 0 ? void 0 : _b["EntityType.ID"])) {
|
|
22276
22272
|
oRenderManager.Init({
|
|
22277
22273
|
item: oItem
|
|
22278
22274
|
});
|
|
@@ -22287,7 +22283,7 @@ var MenuItemManager;
|
|
|
22287
22283
|
const eIdsItem = params.item;
|
|
22288
22284
|
if (eIdsRenderManager && eIdsItem) {
|
|
22289
22285
|
const eEntityIds = eIdsRenderManager.EntityIds;
|
|
22290
|
-
const mEntityIds = (
|
|
22286
|
+
const mEntityIds = (_c = eIdsItem.BruceEntity) === null || _c === void 0 ? void 0 : _c.EntityIds;
|
|
22291
22287
|
const eEntityIdsStr = eEntityIds ? eEntityIds.join(",") : "";
|
|
22292
22288
|
const mEntityIdsStr = mEntityIds ? mEntityIds.join(",") : "";
|
|
22293
22289
|
if (eEntityIdsStr == mEntityIdsStr) {
|
|
@@ -22304,7 +22300,7 @@ var MenuItemManager;
|
|
|
22304
22300
|
}
|
|
22305
22301
|
if (create) {
|
|
22306
22302
|
try {
|
|
22307
|
-
(
|
|
22303
|
+
(_d = rItem.renderManager) === null || _d === void 0 ? void 0 : _d.Dispose();
|
|
22308
22304
|
}
|
|
22309
22305
|
catch (e) {
|
|
22310
22306
|
console.error(e);
|
|
@@ -22315,7 +22311,7 @@ var MenuItemManager;
|
|
|
22315
22311
|
if (create) {
|
|
22316
22312
|
if (!rItem) {
|
|
22317
22313
|
rItem = {
|
|
22318
|
-
id: (
|
|
22314
|
+
id: (_e = params.item.id) !== null && _e !== void 0 ? _e : ObjectUtils.UId(),
|
|
22319
22315
|
childIds: [],
|
|
22320
22316
|
item: params.item,
|
|
22321
22317
|
renderManager: null,
|
|
@@ -22523,8 +22519,8 @@ var MenuItemManager;
|
|
|
22523
22519
|
rItem.childIds.push(childId);
|
|
22524
22520
|
}
|
|
22525
22521
|
}
|
|
22526
|
-
if (rItem.renderManager && !((
|
|
22527
|
-
(
|
|
22522
|
+
if (rItem.renderManager && !((_f = rItem.renderManager) === null || _f === void 0 ? void 0 : _f.Disposed)) {
|
|
22523
|
+
(_g = this.onUpdate) === null || _g === void 0 ? void 0 : _g.Trigger({ isEnabling: true, itemId: rItem.id });
|
|
22528
22524
|
}
|
|
22529
22525
|
return rItem.id;
|
|
22530
22526
|
}
|
|
@@ -37570,7 +37566,7 @@ var StyleUtils;
|
|
|
37570
37566
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
37571
37567
|
})(StyleUtils || (StyleUtils = {}));
|
|
37572
37568
|
|
|
37573
|
-
const VERSION = "6.8.
|
|
37569
|
+
const VERSION = "6.8.6";
|
|
37574
37570
|
/**
|
|
37575
37571
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
37576
37572
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|