bruce-cesium 4.5.3 → 4.5.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 +15 -4
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +13 -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-polyline.js +7 -1
- package/dist/lib/rendering/entity-render-engine-polyline.js.map +1 -1
- package/dist/lib/widgets/left-panel-tabs/widget-left-panel-tab-bookmarks.js +5 -0
- package/dist/lib/widgets/left-panel-tabs/widget-left-panel-tab-bookmarks.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
|
-
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, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark,
|
|
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, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile, Camera, AbstractApi, Session, EntityAttribute, EntityAttachment, EntityAttachmentType } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, HorizontalOrigin, VerticalOrigin, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, SceneMode, ColorBlendMode, HeadingPitchRoll, Transforms, Model, Primitive, Cesium3DTileFeature, GeoJsonDataSource, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, KmlDataSource, Ion, SceneTransforms, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, OrthographicFrustum, EasingFunction, NearFarScalar, CesiumInspector, defined, ClockRange, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, EllipsoidGeodesic, sampleTerrainMostDetailed, Quaternion, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6897,7 +6897,7 @@ var EntityRenderEnginePolyline;
|
|
|
6897
6897
|
var posses = points.map(function (x) { return Cartesian3.fromDegrees(EnsureNumber(x.longitude), EnsureNumber(x.latitude), EnsureNumber(x.altitude)); });
|
|
6898
6898
|
posses = CullDuplicateCPosses(posses);
|
|
6899
6899
|
// 5 points should be enough to tell most bad data.
|
|
6900
|
-
var CHECK_POINTS =
|
|
6900
|
+
var CHECK_POINTS = 8;
|
|
6901
6901
|
var MIN_LEN = 0.001;
|
|
6902
6902
|
var MAX_LEN = 4500000;
|
|
6903
6903
|
var totalLength = 0;
|
|
@@ -6956,6 +6956,12 @@ var EntityRenderEnginePolyline;
|
|
|
6956
6956
|
classification = ClassificationType.BOTH;
|
|
6957
6957
|
}
|
|
6958
6958
|
var cEntity = null;
|
|
6959
|
+
// If we have a very short meter line, we'll render as px.
|
|
6960
|
+
// Corridors are dying when we are rendering tiny lines.
|
|
6961
|
+
var SCALE_BY_DISTANCE_THRESHOLD = 15;
|
|
6962
|
+
if (units == "m" && totalLength < SCALE_BY_DISTANCE_THRESHOLD && posses.length < 70) {
|
|
6963
|
+
units = "px";
|
|
6964
|
+
}
|
|
6959
6965
|
if (!params.rendered || ((!params.rendered.polyline && units == "px") ||
|
|
6960
6966
|
(!params.rendered.corridor && units == "m"))) {
|
|
6961
6967
|
cEntity = new Entity({
|
|
@@ -20877,6 +20883,11 @@ var WidgetLeftPanelTabBookmarks = /** @class */ (function (_super) {
|
|
|
20877
20883
|
_this._widget.Loading.then(function () {
|
|
20878
20884
|
_this._updateBookmarks();
|
|
20879
20885
|
});
|
|
20886
|
+
// In case another widget messed with the panel width.
|
|
20887
|
+
// Probably should just add a SetWidth method to avoid having plugins mess with the container CSS.
|
|
20888
|
+
if (_this.Container) {
|
|
20889
|
+
_this.Container.style.width = "300px";
|
|
20890
|
+
}
|
|
20880
20891
|
return _this;
|
|
20881
20892
|
}
|
|
20882
20893
|
WidgetLeftPanelTabBookmarks.prototype.Dispose = function () {
|
|
@@ -27461,7 +27472,7 @@ var ViewerUtils;
|
|
|
27461
27472
|
ViewerUtils.GetEventTracker = GetEventTracker;
|
|
27462
27473
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
27463
27474
|
|
|
27464
|
-
var VERSION = "4.5.
|
|
27475
|
+
var VERSION = "4.5.5";
|
|
27465
27476
|
|
|
27466
27477
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, 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 };
|
|
27467
27478
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|