bruce-cesium 3.8.0 → 3.8.1
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 +24 -8
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +23 -7
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/getters/entity-filter-getter.js +22 -6
- package/dist/lib/rendering/getters/entity-filter-getter.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, Api, EntityRelationType, ENVIRONMENT, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Quaternion, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -13772,15 +13772,30 @@ var EntityFilterGetter;
|
|
|
13772
13772
|
*/
|
|
13773
13773
|
Getter.prototype.viewerDateTimeSub = function () {
|
|
13774
13774
|
var _this = this;
|
|
13775
|
-
this.
|
|
13776
|
-
if (!this.historicAttrKey) {
|
|
13775
|
+
if (!this.historicAttrKey || this.viewerDateTimeChangeRemoval) {
|
|
13777
13776
|
return;
|
|
13778
13777
|
}
|
|
13778
|
+
// This is multiplied by the speed of animation to figure
|
|
13779
|
+
// out how many animation "ticks" before we allow an update.
|
|
13780
|
+
var INTERVAL_WHILE_ANIMATING = 2.5 * 1000;
|
|
13781
|
+
var lastUpdateTime = null;
|
|
13779
13782
|
var delayQueue = new DelayQueue(function () {
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13783
|
+
try {
|
|
13784
|
+
// If the timeline is animating then we'll wait longer to update.
|
|
13785
|
+
if (_this.viewer.clock.shouldAnimate && lastUpdateTime) {
|
|
13786
|
+
if (Math.abs(new Date().getTime() - lastUpdateTime) < INTERVAL_WHILE_ANIMATING) {
|
|
13787
|
+
return;
|
|
13788
|
+
}
|
|
13789
|
+
}
|
|
13790
|
+
lastUpdateTime = new Date().getTime();
|
|
13791
|
+
var current = _this.historicAttrDateTime;
|
|
13792
|
+
_this.updateHistoricDateTime();
|
|
13793
|
+
if (current != _this.historicAttrDateTime) {
|
|
13794
|
+
_this.updateState();
|
|
13795
|
+
}
|
|
13796
|
+
}
|
|
13797
|
+
catch (e) {
|
|
13798
|
+
console.error(e);
|
|
13784
13799
|
}
|
|
13785
13800
|
}, 250);
|
|
13786
13801
|
var postUpdateRemoval = this.viewer.scene.postUpdate.addEventListener(function () {
|
|
@@ -13887,6 +13902,7 @@ var EntityFilterGetter;
|
|
|
13887
13902
|
else {
|
|
13888
13903
|
this.getterLoopId += 1;
|
|
13889
13904
|
this.viewAreaDispose();
|
|
13905
|
+
this.viewerDateTimeDispose();
|
|
13890
13906
|
}
|
|
13891
13907
|
};
|
|
13892
13908
|
Getter.prototype.postStatus = function (status) {
|
|
@@ -23503,7 +23519,7 @@ var ViewRenderEngine;
|
|
|
23503
23519
|
ViewRenderEngine.Render = Render;
|
|
23504
23520
|
})(ViewRenderEngine || (ViewRenderEngine = {}));
|
|
23505
23521
|
|
|
23506
|
-
var VERSION = "3.8.
|
|
23522
|
+
var VERSION = "3.8.1";
|
|
23507
23523
|
|
|
23508
23524
|
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, Draw3dPolygon, Draw3dPolyline };
|
|
23509
23525
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|