bruce-cesium 2.7.6 → 2.7.7
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 +31 -27
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +30 -26
- 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 +29 -25
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -2
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, EntityRelationType, DelayQueue, BatchedDataGetter, 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,
|
|
3
|
+
import { Cartographic, JulianDate, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, Entity, Primitive, Cesium3DTileFeature, HeightReference, DistanceDisplayCondition, NearFarScalar, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, SceneMode, Cesium3DTileColorBlendMode, HeadingPitchRange, KmlDataSource, Cesium3DTileStyle, EllipsoidTerrainProvider, CesiumInspector, OrthographicFrustum, defined, createOsmBuildings, Cesium3DTileset, Matrix4, Matrix3, IonResource, PolygonPipeline, EasingFunction, EllipsoidGeodesic, sampleTerrainMostDetailed, Model, ColorMaterialProperty, GeometryInstance, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, Ion, BoundingSphere } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2647,6 +2647,10 @@ var EntityRenderEngine;
|
|
|
2647
2647
|
if (width < 0.01) {
|
|
2648
2648
|
width = 0;
|
|
2649
2649
|
}
|
|
2650
|
+
var units = style.lineWidthUnits;
|
|
2651
|
+
if (units != "px" && units != "m") {
|
|
2652
|
+
units = "m";
|
|
2653
|
+
}
|
|
2650
2654
|
// If both outline and fill is not available then don't render anything.
|
|
2651
2655
|
if ((width <= 0 || cLineColor.alpha <= 0) &&
|
|
2652
2656
|
cFillColor.alpha <= 0) {
|
|
@@ -2686,7 +2690,7 @@ var EntityRenderEngine;
|
|
|
2686
2690
|
classificationType: classification,
|
|
2687
2691
|
perPositionHeight: heightRef == HeightReference.CLAMP_TO_GROUND ? false : true,
|
|
2688
2692
|
zIndex: zIndex,
|
|
2689
|
-
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, size, true)
|
|
2693
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width <= 0 || !cLineColor || units == "m" ? size : null, true)
|
|
2690
2694
|
},
|
|
2691
2695
|
position: EntityUtils.GetPos({
|
|
2692
2696
|
viewer: params.viewer,
|
|
@@ -2722,17 +2726,17 @@ var EntityRenderEngine;
|
|
|
2722
2726
|
borderPosses = posses.map(function (x) { return x.clone ? x.clone() : __assign({}, x); });
|
|
2723
2727
|
}
|
|
2724
2728
|
var cEntityBorder = new Entity({
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
corridor: {
|
|
2729
|
+
polyline: units == "px" ? new PolylineGraphics({
|
|
2730
|
+
positions: borderPosses,
|
|
2731
|
+
material: cLineColor,
|
|
2732
|
+
width: width,
|
|
2733
|
+
clampToGround: heightRef == HeightReference.CLAMP_TO_GROUND,
|
|
2734
|
+
classificationType: ClassificationType.TERRAIN,
|
|
2735
|
+
arcType: ArcType.GEODESIC,
|
|
2736
|
+
zIndex: zIndex,
|
|
2737
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
|
|
2738
|
+
}) : null,
|
|
2739
|
+
corridor: units == "m" ? {
|
|
2736
2740
|
positions: borderPosses,
|
|
2737
2741
|
material: cLineColor,
|
|
2738
2742
|
heightReference: heightRef,
|
|
@@ -2744,7 +2748,7 @@ var EntityRenderEngine;
|
|
|
2744
2748
|
classificationType: classification,
|
|
2745
2749
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2746
2750
|
shadows: ShadowMode.ENABLED
|
|
2747
|
-
},
|
|
2751
|
+
} : null,
|
|
2748
2752
|
show: true
|
|
2749
2753
|
});
|
|
2750
2754
|
cEntityBorder._parentEntity = cEntity;
|
|
@@ -2753,17 +2757,17 @@ var EntityRenderEngine;
|
|
|
2753
2757
|
var posses_1 = holePosses[i];
|
|
2754
2758
|
Cartes.CloseRing3(posses_1);
|
|
2755
2759
|
var cEntityHole = new Entity({
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
corridor: {
|
|
2760
|
+
polyline: units == "px" ? new PolylineGraphics({
|
|
2761
|
+
positions: posses_1,
|
|
2762
|
+
material: cLineColor,
|
|
2763
|
+
width: width,
|
|
2764
|
+
clampToGround: heightRef == HeightReference.CLAMP_TO_GROUND,
|
|
2765
|
+
classificationType: ClassificationType.TERRAIN,
|
|
2766
|
+
arcType: ArcType.GEODESIC,
|
|
2767
|
+
zIndex: zIndex,
|
|
2768
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
|
|
2769
|
+
}) : null,
|
|
2770
|
+
corridor: units == "m" ? {
|
|
2767
2771
|
positions: borderPosses,
|
|
2768
2772
|
material: cLineColor,
|
|
2769
2773
|
heightReference: heightRef,
|
|
@@ -2775,7 +2779,7 @@ var EntityRenderEngine;
|
|
|
2775
2779
|
classificationType: classification,
|
|
2776
2780
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance, width),
|
|
2777
2781
|
shadows: ShadowMode.ENABLED,
|
|
2778
|
-
},
|
|
2782
|
+
} : null,
|
|
2779
2783
|
show: true
|
|
2780
2784
|
});
|
|
2781
2785
|
cEntity._siblingGraphics.push(cEntityHole);
|
|
@@ -15289,7 +15293,7 @@ var ViewerUtils;
|
|
|
15289
15293
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
15290
15294
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
15291
15295
|
|
|
15292
|
-
var VERSION$1 = "2.7.
|
|
15296
|
+
var VERSION$1 = "2.7.7";
|
|
15293
15297
|
|
|
15294
15298
|
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 };
|
|
15295
15299
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|