bruce-cesium 5.0.3 → 5.0.5
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 -2
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +16 -1
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/widgets/widget-cursorbar.js +15 -0
- package/dist/lib/widgets/widget-cursorbar.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/widgets/widget-cursorbar.d.ts +9 -0
- 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,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, SceneMode, 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;
|
|
@@ -26278,17 +26278,20 @@ const KEY_WALKTHROUGH_MODE = "WidgetCursorBar.Walkthrough.Mode";
|
|
|
26278
26278
|
const KEY_WALKTHROUGH_SPEED_FLY = "WidgetCursorBar.Walkthrough.SpeedFly";
|
|
26279
26279
|
const KEY_WALKTHROUGH_SPEED_WALK = "WidgetCursorBar.Walkthrough.SpeedWalk";
|
|
26280
26280
|
const KEY_WALKTHROUGH_EXPANDED = "WidgetCursorBar.Walkthrough.Expanded";
|
|
26281
|
+
const VIEWER_WALKTHROUGH_PANEL_CSS_VAR_BOTTOM = "--viewer-walkthrough-panel-bottom";
|
|
26281
26282
|
class WidgetCursorBar extends Widget.AWidget {
|
|
26282
26283
|
constructor(params) {
|
|
26283
26284
|
super(params);
|
|
26284
26285
|
this.STYLESHEET_ID = "nextspace-cursorbar-stylesheet";
|
|
26285
26286
|
this._selectedCursor = ECursor.Select;
|
|
26286
26287
|
this._selectedSecondaryCursor = ESecondaryCursor.None;
|
|
26288
|
+
this.OnCursorChange = new BruceEvent();
|
|
26287
26289
|
this._generateStyles();
|
|
26288
26290
|
this._generateElement();
|
|
26289
26291
|
if (this._selectedCursor == ECursor.Select || this._selectedSecondaryCursor == ESecondaryCursor.Select) {
|
|
26290
26292
|
this._listenSelection();
|
|
26291
26293
|
}
|
|
26294
|
+
document.documentElement.style.setProperty(VIEWER_WALKTHROUGH_PANEL_CSS_VAR_BOTTOM, "0px");
|
|
26292
26295
|
}
|
|
26293
26296
|
Dispose() {
|
|
26294
26297
|
var _a, _b, _c;
|
|
@@ -26328,6 +26331,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26328
26331
|
flex-direction: column;
|
|
26329
26332
|
overflow: hidden;
|
|
26330
26333
|
pointer-events: none;
|
|
26334
|
+
color: black;
|
|
26331
26335
|
}
|
|
26332
26336
|
|
|
26333
26337
|
.NextspaceCursorBar * {
|
|
@@ -26515,6 +26519,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26515
26519
|
display: flex;
|
|
26516
26520
|
flex-direction: row;
|
|
26517
26521
|
padding: 14px 18px;
|
|
26522
|
+
box-shadow: 0px 0px 1px rgba(18, 22, 25, 0.36), 0px 18px 36px -4px rgba(18, 22, 25, 0.36);
|
|
26518
26523
|
}
|
|
26519
26524
|
|
|
26520
26525
|
.NextspaceWalkthroughBarTitle {
|
|
@@ -26716,6 +26721,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26716
26721
|
this._selectedCursor = ECursor.Select;
|
|
26717
26722
|
this._secondary.style.display = "none";
|
|
26718
26723
|
this._listenSelection();
|
|
26724
|
+
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
26719
26725
|
}, svg);
|
|
26720
26726
|
}
|
|
26721
26727
|
_generatePan() {
|
|
@@ -26730,6 +26736,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26730
26736
|
if (this._selectedCursor == ECursor.Select) {
|
|
26731
26737
|
this._listenSelection();
|
|
26732
26738
|
}
|
|
26739
|
+
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
26733
26740
|
}, svg);
|
|
26734
26741
|
}
|
|
26735
26742
|
_generateMeasure() {
|
|
@@ -26751,6 +26758,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26751
26758
|
if (this._selectedCursor == ECursor.Select) {
|
|
26752
26759
|
this._listenSelection();
|
|
26753
26760
|
}
|
|
26761
|
+
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
26754
26762
|
}, svg);
|
|
26755
26763
|
}
|
|
26756
26764
|
_generateMeasureSecondary() {
|
|
@@ -26857,6 +26865,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26857
26865
|
if (this._selectedCursor == ECursor.Select || this._selectedSecondaryCursor == ESecondaryCursor.Select) {
|
|
26858
26866
|
this._listenSelection();
|
|
26859
26867
|
}
|
|
26868
|
+
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
26860
26869
|
}, svg);
|
|
26861
26870
|
}
|
|
26862
26871
|
_generateWalkthroughSecondary() {
|
|
@@ -26935,6 +26944,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26935
26944
|
viewer: this._viewer
|
|
26936
26945
|
});
|
|
26937
26946
|
}
|
|
26947
|
+
this.OnCursorChange.Trigger(this._selectedCursor);
|
|
26938
26948
|
};
|
|
26939
26949
|
content.appendChild(close);
|
|
26940
26950
|
}
|
|
@@ -26950,6 +26960,8 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26950
26960
|
<path d="M15 1L1 0.999999" stroke="black" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
26951
26961
|
</svg>
|
|
26952
26962
|
`;
|
|
26963
|
+
const heightCollapsed = "70px";
|
|
26964
|
+
const heightExpanded = "150px";
|
|
26953
26965
|
const expand = document.createElement("div");
|
|
26954
26966
|
expand.className = "NextspaceWalkthroughButtonExpand";
|
|
26955
26967
|
expand.innerHTML = expanded ? svgMinimize : svgExpand;
|
|
@@ -26958,9 +26970,11 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
26958
26970
|
expand.innerHTML = expanded ? svgMinimize : svgExpand;
|
|
26959
26971
|
element.setAttribute("expanded", expanded ? "true" : "false");
|
|
26960
26972
|
localStorage.setItem(KEY_WALKTHROUGH_EXPANDED, expanded ? "true" : "false");
|
|
26973
|
+
document.documentElement.style.setProperty(VIEWER_WALKTHROUGH_PANEL_CSS_VAR_BOTTOM, expanded ? heightExpanded : heightCollapsed);
|
|
26961
26974
|
};
|
|
26962
26975
|
content.appendChild(expand);
|
|
26963
26976
|
element.setAttribute("expanded", expanded ? "true" : "false");
|
|
26977
|
+
document.documentElement.style.setProperty(VIEWER_WALKTHROUGH_PANEL_CSS_VAR_BOTTOM, expanded ? heightExpanded : heightCollapsed);
|
|
26964
26978
|
}
|
|
26965
26979
|
content.appendChild(inputs);
|
|
26966
26980
|
const tips = document.createElement("div");
|
|
@@ -27136,6 +27150,7 @@ class WidgetCursorBar extends Widget.AWidget {
|
|
|
27136
27150
|
this._walkthroughBar.parentElement.removeChild(this._walkthroughBar);
|
|
27137
27151
|
this._walkthroughBar = null;
|
|
27138
27152
|
}
|
|
27153
|
+
document.documentElement.style.setProperty(VIEWER_WALKTHROUGH_PANEL_CSS_VAR_BOTTOM, "0px");
|
|
27139
27154
|
}
|
|
27140
27155
|
_updateControls() {
|
|
27141
27156
|
const controls = this._primaryContent.querySelectorAll(".NextspaceCursorBarPrimControlInner");
|
|
@@ -29204,7 +29219,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
29204
29219
|
}
|
|
29205
29220
|
}
|
|
29206
29221
|
|
|
29207
|
-
const VERSION = "5.0.
|
|
29222
|
+
const VERSION = "5.0.5";
|
|
29208
29223
|
|
|
29209
29224
|
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 };
|
|
29210
29225
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|