bruce-cesium 4.4.7 → 4.4.9
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 +14 -2
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +13 -1
- 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 +12 -0
- package/dist/lib/rendering/entity-render-engine-polyline.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/entity-render-engine.d.ts +6 -0
- package/package.json +2 -2
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, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, AbstractApi, Session, EntityAttribute, EntityAttachment, EntityAttachmentType } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, PolygonHierarchy, ShadowMode, PolylineGraphics, ArcType, CornerType, 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, CesiumInspector, defined, ClockRange, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -6879,10 +6879,14 @@ var EntityRenderEnginePolyline;
|
|
|
6879
6879
|
// Smoothening the line.
|
|
6880
6880
|
// Warning: we don't have a way to indicate that this is not the original set of points yet.
|
|
6881
6881
|
// This means editing tools in our apps will bake these in on save.
|
|
6882
|
+
var orgPosses = null;
|
|
6882
6883
|
if (style.smoothen && style.smoothen > 2) {
|
|
6884
|
+
// Keeping reference to original points for editing tools.
|
|
6885
|
+
orgPosses = posses.map(function (x) { return x.clone ? x.clone() : new Cartesian3(x.x, x.y, x.z); });
|
|
6883
6886
|
var smoothed = smoothenPoints(posses, style.smoothen, false);
|
|
6884
6887
|
if (smoothed.find(function (x) { return !Cartes.ValidateCartes3(x); })) {
|
|
6885
6888
|
console.error("Polyline.Render: Smoothening failed. Invalid Cartesian3 found. Defaulting to original points.");
|
|
6889
|
+
orgPosses = null;
|
|
6886
6890
|
}
|
|
6887
6891
|
else {
|
|
6888
6892
|
posses = smoothed;
|
|
@@ -7040,6 +7044,14 @@ var EntityRenderEnginePolyline;
|
|
|
7040
7044
|
}
|
|
7041
7045
|
cEntity.show = true;
|
|
7042
7046
|
}
|
|
7047
|
+
// Keeping reference to original points for editing tools.
|
|
7048
|
+
// Used when we run a smooth.
|
|
7049
|
+
if (cEntity === null || cEntity === void 0 ? void 0 : cEntity.polyline) {
|
|
7050
|
+
cEntity.polyline._orgPosses = orgPosses;
|
|
7051
|
+
}
|
|
7052
|
+
else if (cEntity === null || cEntity === void 0 ? void 0 : cEntity.corridor) {
|
|
7053
|
+
cEntity.corridor._orgPosses = orgPosses;
|
|
7054
|
+
}
|
|
7043
7055
|
return cEntity;
|
|
7044
7056
|
}
|
|
7045
7057
|
EntityRenderEnginePolyline.Render = Render;
|
|
@@ -27272,7 +27284,7 @@ var ViewerUtils;
|
|
|
27272
27284
|
ViewerUtils.AssertIonToken = AssertIonToken;
|
|
27273
27285
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
27274
27286
|
|
|
27275
|
-
var VERSION = "4.4.
|
|
27287
|
+
var VERSION = "4.4.9";
|
|
27276
27288
|
|
|
27277
27289
|
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, smoothenPoints, 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 };
|
|
27278
27290
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|