bruce-cesium 6.6.3 → 6.6.4
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 +27 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +25 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/visuals-register.js +24 -1
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/visuals-register.d.ts +5 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Cartes, Entity as Entity$1, Calculator, EntityRelationType, EntityType, Style, ENVIRONMENT, ProjectViewTile, DelayQueue, LRUCache, BruceEvent, ObjectUtils, Geometry, EntityHistoricData, EntityLod, ZoomControl, EntityTag, Tileset, EntityCoords, Api, DataLab, EntitySource, ClientFile, MenuItem, EntityRelation, ProgramKey, Bounds, Carto, ProjectView, ProjectViewBookmark,
|
|
1
|
+
import { Cartes, Entity as Entity$1, Calculator, EntityRelationType, EntityType, Style, ENVIRONMENT, ProjectViewTile, DelayQueue, LRUCache, BruceEvent, ObjectUtils, Geometry, EntityHistoricData, EntityLod, ZoomControl, EntityTag, Tileset, EntityCoords, Api, DataLab, EntitySource, ClientFile, MenuItem, EntityRelation, ProgramKey, Bounds, Carto, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile, Camera, AbstractApi, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4,
|
|
3
|
+
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, PolygonHierarchy, ShadowMode, PolylineGraphics, ArcType, CornerType, ColorBlendMode, Model, Cartesian2, SceneTransforms, Rectangle, NearFarScalar, Matrix3, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Ion, Cesium3DTileColorBlendMode, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, IonResource, Cesium3DTileset, OrthographicFrustum, EasingFunction, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, PolygonPipeline, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, BoundingSphere, GeometryInstance, CesiumInspector, ClockRange, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Ensures a number is returned from a given value.
|
|
@@ -5336,6 +5336,7 @@ var VisualsRegister;
|
|
|
5336
5336
|
EVisualUpdateType["Remove"] = "REMOVE";
|
|
5337
5337
|
EVisualUpdateType["Update"] = "UPDATE";
|
|
5338
5338
|
EVisualUpdateType["DeselectAll"] = "DESELECT_ALL";
|
|
5339
|
+
EVisualUpdateType["ClearHighlighted"] = "CLEAR_HIGHLIGHTED";
|
|
5339
5340
|
})(EVisualUpdateType = VisualsRegister.EVisualUpdateType || (VisualsRegister.EVisualUpdateType = {}));
|
|
5340
5341
|
/**
|
|
5341
5342
|
* Possible sources of visual updates (if source is known).
|
|
@@ -6265,6 +6266,7 @@ var VisualsRegister;
|
|
|
6265
6266
|
return selectedIds;
|
|
6266
6267
|
}
|
|
6267
6268
|
SetHighlighted(params) {
|
|
6269
|
+
var _a;
|
|
6268
6270
|
let { entityIds, highlighted, refreshIfHighlighted, requestRender, menuItemId } = params;
|
|
6269
6271
|
if (refreshIfHighlighted || refreshIfHighlighted === undefined) {
|
|
6270
6272
|
refreshIfHighlighted = true;
|
|
@@ -6277,7 +6279,7 @@ var VisualsRegister;
|
|
|
6277
6279
|
});
|
|
6278
6280
|
// Checking if we need to refresh the highlight.
|
|
6279
6281
|
const doHighlight = refreshIfHighlighted || (Boolean(state.highlighted) != highlighted);
|
|
6280
|
-
|
|
6282
|
+
this.setStateValues({
|
|
6281
6283
|
entityId: id,
|
|
6282
6284
|
menuItemId: menuItemId,
|
|
6283
6285
|
// Null means it will be deleted from the object.
|
|
@@ -6317,6 +6319,17 @@ var VisualsRegister;
|
|
|
6317
6319
|
}
|
|
6318
6320
|
}
|
|
6319
6321
|
}
|
|
6322
|
+
const update = {
|
|
6323
|
+
type: EVisualUpdateType.Update,
|
|
6324
|
+
entityId: id,
|
|
6325
|
+
highlighted: highlighted
|
|
6326
|
+
};
|
|
6327
|
+
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
6328
|
+
update.source = params.source;
|
|
6329
|
+
}
|
|
6330
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== EUpdateSource.TREE_CASCADE) {
|
|
6331
|
+
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
6332
|
+
}
|
|
6320
6333
|
}
|
|
6321
6334
|
if (requestRender != false) {
|
|
6322
6335
|
this.viewer.scene.requestRender();
|
|
@@ -6331,6 +6344,7 @@ var VisualsRegister;
|
|
|
6331
6344
|
return state.highlighted === true;
|
|
6332
6345
|
}
|
|
6333
6346
|
ClearHighlighted(params) {
|
|
6347
|
+
var _a;
|
|
6334
6348
|
// Null all states.
|
|
6335
6349
|
let entityIds = [];
|
|
6336
6350
|
this.ForEachState((state) => {
|
|
@@ -6356,6 +6370,15 @@ var VisualsRegister;
|
|
|
6356
6370
|
}
|
|
6357
6371
|
}
|
|
6358
6372
|
}
|
|
6373
|
+
const update = {
|
|
6374
|
+
type: EVisualUpdateType.ClearHighlighted
|
|
6375
|
+
};
|
|
6376
|
+
if (params === null || params === void 0 ? void 0 : params.source) {
|
|
6377
|
+
update.source = params.source;
|
|
6378
|
+
}
|
|
6379
|
+
if ((params === null || params === void 0 ? void 0 : params.source) !== EUpdateSource.TREE_CASCADE) {
|
|
6380
|
+
(_a = this.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger(update);
|
|
6381
|
+
}
|
|
6359
6382
|
if ((params === null || params === void 0 ? void 0 : params.requestRender) != false) {
|
|
6360
6383
|
this.viewer.scene.requestRender();
|
|
6361
6384
|
}
|
|
@@ -36159,7 +36182,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
36159
36182
|
}
|
|
36160
36183
|
}
|
|
36161
36184
|
|
|
36162
|
-
const VERSION = "6.6.
|
|
36185
|
+
const VERSION = "6.6.4";
|
|
36163
36186
|
/**
|
|
36164
36187
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
36165
36188
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|