bruce-cesium 6.6.3 → 6.6.5
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 +31 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +29 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +4 -0
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +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, Session, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils } 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, DistanceDisplayCondition, HeightReference,
|
|
3
|
+
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, DistanceDisplayCondition, HeightReference, ColorBlendMode, ShadowMode, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ArcType, CornerType, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, 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, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, CesiumInspector, ClockRange, BoundingSphere, GeometryInstance, 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
|
}
|
|
@@ -12895,6 +12918,10 @@ var TilesetCadRenderManager;
|
|
|
12895
12918
|
viaCdn: false
|
|
12896
12919
|
});
|
|
12897
12920
|
}
|
|
12921
|
+
// Should not occur.
|
|
12922
|
+
if (!tileset.loadUrl && loadUrl) {
|
|
12923
|
+
tileset.loadUrl = loadUrl;
|
|
12924
|
+
}
|
|
12898
12925
|
// TODO: we shouldn't just assume we'll need it, huge assemblies are 100+ MB.
|
|
12899
12926
|
// TODO: this is a problem as we need to know what nodes are collapsed...
|
|
12900
12927
|
// In >v1 the model-tree sits in its own file.
|
|
@@ -36159,7 +36186,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
36159
36186
|
}
|
|
36160
36187
|
}
|
|
36161
36188
|
|
|
36162
|
-
const VERSION = "6.6.
|
|
36189
|
+
const VERSION = "6.6.5";
|
|
36163
36190
|
/**
|
|
36164
36191
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
36165
36192
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|