bruce-cesium 5.0.7 → 5.0.8
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 +23 -18
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +22 -17
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/widgets/common/walkthrough.js +21 -16
- package/dist/lib/widgets/common/walkthrough.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, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, AbstractApi, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty, PolygonHierarchy, ShadowMode, PolylineGraphics, ArcType, CornerType, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -26167,19 +26167,28 @@ var Walkthrough;
|
|
|
26167
26167
|
});
|
|
26168
26168
|
let lastCheck;
|
|
26169
26169
|
let currentTime = new Date();
|
|
26170
|
-
|
|
26170
|
+
const interval = setInterval(() => {
|
|
26171
26171
|
lastCheck = new Date();
|
|
26172
|
-
if (lastCheck.getTime() - currentTime.getTime()
|
|
26172
|
+
if (lastCheck.getTime() - currentTime.getTime() >= (1000 / 60)) {
|
|
26173
26173
|
doMovementTick(viewer);
|
|
26174
26174
|
currentTime = new Date();
|
|
26175
26175
|
}
|
|
26176
|
-
});
|
|
26177
|
-
|
|
26176
|
+
}, 1000 / 60);
|
|
26177
|
+
data.tickRemoval = () => {
|
|
26178
|
+
clearInterval(interval);
|
|
26179
|
+
};
|
|
26180
|
+
let keyDown = (e) => {
|
|
26178
26181
|
checkKeybind(viewer, e.key, true);
|
|
26179
|
-
}
|
|
26180
|
-
document.addEventListener("
|
|
26182
|
+
};
|
|
26183
|
+
document.addEventListener("keydown", keyDown, false);
|
|
26184
|
+
let keyUp = (e) => {
|
|
26181
26185
|
checkKeybind(viewer, e.key, false);
|
|
26182
|
-
}
|
|
26186
|
+
};
|
|
26187
|
+
document.addEventListener("keyup", keyUp, false);
|
|
26188
|
+
data.handlerKeysRemoval = () => {
|
|
26189
|
+
document.removeEventListener("keydown", keyDown);
|
|
26190
|
+
document.removeEventListener("keyup", keyUp);
|
|
26191
|
+
};
|
|
26183
26192
|
data.handlerScreenSpace.setInputAction((e) => {
|
|
26184
26193
|
data.actions.set(EAction.Looking, true);
|
|
26185
26194
|
data.mousePosCurrent = data.mousePosStart = Cartesian2.clone(e.position);
|
|
@@ -26201,17 +26210,13 @@ var Walkthrough;
|
|
|
26201
26210
|
status: false
|
|
26202
26211
|
});
|
|
26203
26212
|
if (data) {
|
|
26204
|
-
(_a = data.
|
|
26205
|
-
data.
|
|
26213
|
+
(_a = data.handlerScreenSpace) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
26214
|
+
data.handlerScreenSpace = null;
|
|
26206
26215
|
(_b = data.tickRemoval) === null || _b === void 0 ? void 0 : _b.call(data);
|
|
26207
26216
|
data.tickRemoval = null;
|
|
26208
|
-
if (data.
|
|
26209
|
-
|
|
26210
|
-
data.
|
|
26211
|
-
}
|
|
26212
|
-
if (data.keyUpHandler) {
|
|
26213
|
-
document.removeEventListener("keyup", data.keyUpHandler);
|
|
26214
|
-
data.keyUpHandler = null;
|
|
26217
|
+
if (data.handlerKeysRemoval) {
|
|
26218
|
+
data.handlerKeysRemoval();
|
|
26219
|
+
data.handlerKeysRemoval = null;
|
|
26215
26220
|
}
|
|
26216
26221
|
}
|
|
26217
26222
|
}
|
|
@@ -29360,7 +29365,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
29360
29365
|
}
|
|
29361
29366
|
}
|
|
29362
29367
|
|
|
29363
|
-
const VERSION = "5.0.
|
|
29368
|
+
const VERSION = "5.0.8";
|
|
29364
29369
|
|
|
29365
29370
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Walkthrough, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
29366
29371
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|