bruce-cesium 6.9.9 → 7.0.0
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 +17 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +15 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine-polygon.js +11 -0
- package/dist/lib/rendering/entity-render-engine-polygon.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +1 -0
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/lib/rendering/texture-frame-series-animator.js +2 -1
- package/dist/lib/rendering/texture-frame-series-animator.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/entity-render-engine-polygon.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, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, Math as Math$1,
|
|
3
|
-
import { Cartes, Entity as Entity$1, ENVIRONMENT, Calculator, ClientFile,
|
|
2
|
+
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, HeightReference, HorizontalOrigin, VerticalOrigin, Cartesian3, ClassificationType, ConstantPositionProperty, Math as Math$1, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, ArcType, CornerType, ShadowMode, ColorBlendMode, Model, ImageMaterialProperty, PolygonHierarchy, PolylineGraphics, SceneTransforms, NearFarScalar, Cartesian2, Matrix3, Rectangle, KmlDataSource, GeoJsonDataSource, SceneMode, Ion, IonResource, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileset, OrthographicFrustum, EasingFunction, Cesium3DTileColorBlendMode, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, CesiumInspector, ClockRange, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, Fullscreen, Intersect, CzmlDataSource } 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, EntityLod, Bounds, Color as Color$1, BruceEvent, EntityCoords, DataLab, DelayQueue, EntityHistoricData, BruceApi, EntityRelation, ProgramKey, AccountConcept, RecordChangeFeed, 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.
|
|
@@ -36896,7 +36896,8 @@ var TextureFrameSeriesAnimator;
|
|
|
36896
36896
|
if (this.disposed) {
|
|
36897
36897
|
return;
|
|
36898
36898
|
}
|
|
36899
|
-
this.
|
|
36899
|
+
const idx = this.findFrameIndex(currentTime);
|
|
36900
|
+
this.swapToFrame(idx);
|
|
36900
36901
|
}
|
|
36901
36902
|
// Binary-search the frame whose timestamp is <= currentTime.
|
|
36902
36903
|
findFrameIndex(currentTime) {
|
|
@@ -37515,6 +37516,17 @@ var EntityRenderEnginePolygon;
|
|
|
37515
37516
|
return cEntities;
|
|
37516
37517
|
}
|
|
37517
37518
|
EntityRenderEnginePolygon.RenderGroup = RenderGroup;
|
|
37519
|
+
/**
|
|
37520
|
+
* Disposes a cEntity's TextureFrameSeriesAnimator.Animator (if any).
|
|
37521
|
+
*/
|
|
37522
|
+
function DisposeTextureFrameSeriesAnimator(cEntity) {
|
|
37523
|
+
const existing = cEntity === null || cEntity === void 0 ? void 0 : cEntity[TEXTURE_FRAME_SERIES_ANIMATOR_KEY];
|
|
37524
|
+
if (existing && !existing.IsDisposed()) {
|
|
37525
|
+
existing.Dispose();
|
|
37526
|
+
cEntity[TEXTURE_FRAME_SERIES_ANIMATOR_KEY] = null;
|
|
37527
|
+
}
|
|
37528
|
+
}
|
|
37529
|
+
EntityRenderEnginePolygon.DisposeTextureFrameSeriesAnimator = DisposeTextureFrameSeriesAnimator;
|
|
37518
37530
|
})(EntityRenderEnginePolygon || (EntityRenderEnginePolygon = {}));
|
|
37519
37531
|
async function getName$3(api, entity) {
|
|
37520
37532
|
try {
|
|
@@ -38428,6 +38440,7 @@ var EntityRenderEngine;
|
|
|
38428
38440
|
entity._dispose();
|
|
38429
38441
|
entity._dispose = null;
|
|
38430
38442
|
}
|
|
38443
|
+
EntityRenderEnginePolygon.DisposeTextureFrameSeriesAnimator(entity);
|
|
38431
38444
|
if (entity._parentEntity && !ignoreParent) {
|
|
38432
38445
|
doRemove({
|
|
38433
38446
|
viewer,
|
|
@@ -39112,7 +39125,7 @@ var StyleUtils;
|
|
|
39112
39125
|
StyleUtils.ApplyTypeStyle = ApplyTypeStyle;
|
|
39113
39126
|
})(StyleUtils || (StyleUtils = {}));
|
|
39114
39127
|
|
|
39115
|
-
const VERSION = "
|
|
39128
|
+
const VERSION = "7.0.0";
|
|
39116
39129
|
/**
|
|
39117
39130
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
39118
39131
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|