bruce-cesium 4.4.2 → 4.4.3
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 +20 -17
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +19 -16
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/widgets/widget-cursorbar.js +18 -15
- package/dist/lib/widgets/widget-cursorbar.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, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, Api, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttribute, EntityAttachment, EntityAttachmentType, 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, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, SceneMode, GeoJsonDataSource, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, ClockRange, PolygonPipeline, EllipsoidGeodesic, sampleTerrainMostDetailed, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Quaternion, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -24982,15 +24982,15 @@ var WidgetCursorBar = /** @class */ (function (_super) {
|
|
|
24982
24982
|
this._disposeCesiumEvent();
|
|
24983
24983
|
var events = new ScreenSpaceEventHandler(this._viewer.scene.canvas);
|
|
24984
24984
|
var lastHoverPos = null;
|
|
24985
|
-
|
|
24986
|
-
|
|
24985
|
+
//let lastHoveredEntityId: string = null;
|
|
24986
|
+
//let unhighlightTimeout: any = null;
|
|
24987
24987
|
var process2dCursor = function (pos2d, isHover) {
|
|
24988
24988
|
try {
|
|
24989
24989
|
var regos = _this._manager.VisualsRegister.GetRegosFromCursor({
|
|
24990
24990
|
cursor: pos2d
|
|
24991
24991
|
}).regos;
|
|
24992
24992
|
var first = regos.length ? regos[0] : null;
|
|
24993
|
-
var
|
|
24993
|
+
var firstId = first === null || first === void 0 ? void 0 : first.entityId;
|
|
24994
24994
|
if (isHover) {
|
|
24995
24995
|
if (regos.length) {
|
|
24996
24996
|
_this._viewer.canvas.style.cursor = "pointer";
|
|
@@ -24998,37 +24998,40 @@ var WidgetCursorBar = /** @class */ (function (_super) {
|
|
|
24998
24998
|
else if (_this._viewer.canvas.style.cursor) {
|
|
24999
24999
|
_this._viewer.canvas.style.removeProperty("cursor");
|
|
25000
25000
|
}
|
|
25001
|
+
/*
|
|
25001
25002
|
clearTimeout(unhighlightTimeout);
|
|
25002
|
-
if (lastHoveredEntityId && lastHoveredEntityId !=
|
|
25003
|
-
|
|
25003
|
+
if (lastHoveredEntityId && lastHoveredEntityId != firstId) {
|
|
25004
|
+
this._manager.VisualsRegister.SetHighlighted({
|
|
25004
25005
|
entityIds: [lastHoveredEntityId],
|
|
25005
25006
|
highlighted: false
|
|
25006
25007
|
});
|
|
25007
25008
|
}
|
|
25008
|
-
if (
|
|
25009
|
-
unhighlightTimeout = setTimeout(
|
|
25010
|
-
if (lastHoveredEntityId ==
|
|
25011
|
-
|
|
25012
|
-
entityIds: [
|
|
25009
|
+
if (firstId) {
|
|
25010
|
+
unhighlightTimeout = setTimeout(() => {
|
|
25011
|
+
if (lastHoveredEntityId == firstId) {
|
|
25012
|
+
this._manager.VisualsRegister.SetHighlighted({
|
|
25013
|
+
entityIds: [firstId],
|
|
25013
25014
|
highlighted: false
|
|
25014
25015
|
});
|
|
25015
25016
|
lastHoveredEntityId = null;
|
|
25016
25017
|
}
|
|
25017
25018
|
}, 5000);
|
|
25018
|
-
if (lastHoveredEntityId !=
|
|
25019
|
-
|
|
25020
|
-
entityIds: [
|
|
25019
|
+
if (lastHoveredEntityId != firstId) {
|
|
25020
|
+
this._manager.VisualsRegister.SetHighlighted({
|
|
25021
|
+
entityIds: [firstId],
|
|
25021
25022
|
highlighted: true
|
|
25022
25023
|
});
|
|
25023
25024
|
}
|
|
25024
25025
|
}
|
|
25025
|
-
|
|
25026
|
+
|
|
25027
|
+
lastHoveredEntityId = firstId;
|
|
25028
|
+
*/
|
|
25026
25029
|
}
|
|
25027
25030
|
else {
|
|
25028
25031
|
_this._manager.VisualsRegister.ClearSelected();
|
|
25029
25032
|
if (first) {
|
|
25030
25033
|
_this._manager.VisualsRegister.SetSelected({
|
|
25031
|
-
entityIds: [
|
|
25034
|
+
entityIds: [firstId],
|
|
25032
25035
|
selected: true
|
|
25033
25036
|
});
|
|
25034
25037
|
}
|
|
@@ -26296,7 +26299,7 @@ var ViewerUtils;
|
|
|
26296
26299
|
ViewerUtils.AssertIonToken = AssertIonToken;
|
|
26297
26300
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
26298
26301
|
|
|
26299
|
-
var VERSION = "4.4.
|
|
26302
|
+
var VERSION = "4.4.3";
|
|
26300
26303
|
|
|
26301
26304
|
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, 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, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, WidgetSearchBar, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
26302
26305
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|