bruce-cesium 7.0.6 → 7.0.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 +11 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +9 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/visual-register-culler.js +2 -1
- package/dist/lib/rendering/visual-register-culler.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +7 -0
- 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 +4 -0
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Cesium from 'cesium';
|
|
2
|
-
import { Cartographic, Entity,
|
|
3
|
-
import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile, EntityLod, EntityTag, EntityType, LRUCache, ObjectUtils, Style, Carto, Geometry, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl,
|
|
2
|
+
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, HeightReference, ColorBlendMode, ShadowMode, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, ArcType, CornerType, ImageMaterialProperty, PolygonHierarchy, PolylineGraphics, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, IonResource, Cesium3DTileset, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, BoundingSphere, GeometryInstance, CesiumInspector, ClockRange, CustomDataSource, ScreenSpaceEventHandler, ScreenSpaceEventType, Fullscreen, Intersect, CzmlDataSource } from 'cesium';
|
|
3
|
+
import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile, EntityLod, EntityTag, EntityType, LRUCache, ObjectUtils, Style, Api, Carto, Geometry, Bounds, Color as Color$1, MenuItem, ProjectView, ProjectViewBookmark, Tileset, ZoomControl, BruceEvent, EntityCoords, DataLab, DelayQueue, EntityHistoricData, AccountConcept, RecordChangeFeed, BruceApi, EntityRelation, ProgramKey, EntitySource, Camera, ProjectViewTile, ProjectViewLegacyTile, Session, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, EntityRelationType } from 'bruce-models';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Ensures a number is returned from a given value.
|
|
@@ -6376,7 +6376,7 @@ function isCullingIgnored(viewer, rego) {
|
|
|
6376
6376
|
rego.editing == true ||
|
|
6377
6377
|
// Part of a collection we did not create, eg. a geojson data source, which may have its own rules for
|
|
6378
6378
|
// what is in the scene. Our own per-menu-item data sources are fair game.
|
|
6379
|
-
|
|
6379
|
+
VisualsRegister.IsForeignCollection(rego) ||
|
|
6380
6380
|
// We won't cull historic records as they may be interpolating their locations.
|
|
6381
6381
|
Boolean(rego.outline && rego.outline.some(x => !!x.DateTime))) {
|
|
6382
6382
|
return true;
|
|
@@ -7067,6 +7067,13 @@ function isBlankState(state) {
|
|
|
7067
7067
|
*/
|
|
7068
7068
|
var VisualsRegister;
|
|
7069
7069
|
(function (VisualsRegister) {
|
|
7070
|
+
/**
|
|
7071
|
+
* Whether a visual lives in a collection somebody else owns, eg. a geojson or KML data source that manages its own scene membership.
|
|
7072
|
+
*/
|
|
7073
|
+
function IsForeignCollection(rego) {
|
|
7074
|
+
return Boolean(rego === null || rego === void 0 ? void 0 : rego.collection) && !IsCCollectionOwned(rego.collection);
|
|
7075
|
+
}
|
|
7076
|
+
VisualsRegister.IsForeignCollection = IsForeignCollection;
|
|
7070
7077
|
let EVisualUpdateType;
|
|
7071
7078
|
(function (EVisualUpdateType) {
|
|
7072
7079
|
EVisualUpdateType["Add"] = "ADD";
|
|
@@ -40415,7 +40422,7 @@ var StyleUtils;
|
|
|
40415
40422
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
40416
40423
|
})(StyleUtils || (StyleUtils = {}));
|
|
40417
40424
|
|
|
40418
|
-
const VERSION = "7.0.
|
|
40425
|
+
const VERSION = "7.0.7";
|
|
40419
40426
|
/**
|
|
40420
40427
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
40421
40428
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|