bruce-cesium 2.4.9 → 2.5.0
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 +25 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +24 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine.js +23 -3
- package/dist/lib/rendering/entity-render-engine.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, Tileset, MathUtils, LRUCache, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, DelayQueue, BatchedDataGetter, EntityRelationType, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, EntityRelation, ENVIRONMENT, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera, AbstractApi, EntityAttachment, EntityAttachmentType, EntityAttribute } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature,
|
|
3
|
+
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, HeadingPitchRoll, Transforms, ColorBlendMode, SceneMode, Primitive, Cesium3DTileFeature, createOsmBuildings, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, KmlDataSource, OrthographicFrustum, JulianDate, EllipsoidTerrainProvider, CesiumInspector, defined, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, Model, PolygonPipeline, Matrix4, Matrix3, IonResource, ScreenSpaceEventHandler, ScreenSpaceEventType, ColorMaterialProperty, EasingFunction, GeometryInstance, Ion, BoundingSphere } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2586,11 +2586,29 @@ var EntityRenderEngine;
|
|
|
2586
2586
|
});
|
|
2587
2587
|
cEntity._siblingGraphics = [];
|
|
2588
2588
|
if (width > 0 && cLineColor) {
|
|
2589
|
-
var
|
|
2589
|
+
var borderHeight = undefined;
|
|
2590
|
+
if (heightRef != HeightReference.CLAMP_TO_GROUND) {
|
|
2591
|
+
if (flattenPoints) {
|
|
2592
|
+
borderHeight = 0;
|
|
2593
|
+
}
|
|
2594
|
+
// Set height to smallest height value from points.
|
|
2595
|
+
else {
|
|
2596
|
+
for (var i = 0; i < points.length; i++) {
|
|
2597
|
+
var point = points[i];
|
|
2598
|
+
if (!borderHeight || point.altitude < borderHeight) {
|
|
2599
|
+
borderHeight = point.altitude;
|
|
2600
|
+
}
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
var borderPosses = [];
|
|
2590
2605
|
if (flattenPoints) {
|
|
2591
2606
|
borderPosses = points.map(function (x) { return Cartesian3.fromDegrees(EnsureNumber(x.longitude), EnsureNumber(x.latitude), EnsureNumber(0)); });
|
|
2592
2607
|
Cartes.CloseRing3(borderPosses);
|
|
2593
2608
|
}
|
|
2609
|
+
else {
|
|
2610
|
+
borderPosses = posses.map(function (x) { return x.clone ? x.clone() : __assign({}, x); });
|
|
2611
|
+
}
|
|
2594
2612
|
var cEntityBorder = new Entity({
|
|
2595
2613
|
// polyline: new Cesium.PolylineGraphics({
|
|
2596
2614
|
// positions: borderPosses,
|
|
@@ -2606,11 +2624,12 @@ var EntityRenderEngine;
|
|
|
2606
2624
|
positions: borderPosses,
|
|
2607
2625
|
material: cLineColor,
|
|
2608
2626
|
heightReference: heightRef,
|
|
2627
|
+
height: borderHeight,
|
|
2609
2628
|
width: width,
|
|
2610
2629
|
fill: true,
|
|
2611
2630
|
zIndex: zIndex + 1,
|
|
2612
2631
|
cornerType: CornerType.MITERED,
|
|
2613
|
-
classificationType: ClassificationType.
|
|
2632
|
+
classificationType: ClassificationType.BOTH,
|
|
2614
2633
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2615
2634
|
shadows: ShadowMode.ENABLED
|
|
2616
2635
|
},
|
|
@@ -2637,11 +2656,12 @@ var EntityRenderEngine;
|
|
|
2637
2656
|
positions: borderPosses,
|
|
2638
2657
|
material: cLineColor,
|
|
2639
2658
|
heightReference: heightRef,
|
|
2659
|
+
height: borderHeight,
|
|
2640
2660
|
width: width,
|
|
2641
2661
|
fill: true,
|
|
2642
2662
|
zIndex: zIndex + 1,
|
|
2643
2663
|
cornerType: CornerType.MITERED,
|
|
2644
|
-
classificationType: ClassificationType.
|
|
2664
|
+
classificationType: ClassificationType.BOTH,
|
|
2645
2665
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2646
2666
|
shadows: ShadowMode.ENABLED,
|
|
2647
2667
|
},
|
|
@@ -14791,7 +14811,7 @@ var ViewerUtils;
|
|
|
14791
14811
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14792
14812
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
14793
14813
|
|
|
14794
|
-
var VERSION$1 = "2.
|
|
14814
|
+
var VERSION$1 = "2.5.0";
|
|
14795
14815
|
|
|
14796
14816
|
export { VERSION$1 as VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, Draw3dPolygon, Draw3dPolyline };
|
|
14797
14817
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|