bruce-cesium 2.4.1 → 2.4.3
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 +26 -7
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +25 -6
- 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 +24 -5
- 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, 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,
|
|
3
|
+
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, Entity, Primitive, Cesium3DTileFeature, HeightReference, DistanceDisplayCondition, NearFarScalar, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, HeadingPitchRoll, Transforms, ColorBlendMode, SceneMode, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, OrthographicFrustum, JulianDate, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumInspector, defined, Cesium3DTileset, Matrix4, Matrix3, IonResource, ColorMaterialProperty, EasingFunction, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, PolygonPipeline, EllipsoidGeodesic, sampleTerrainMostDetailed, Model, Ion, BoundingSphere } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2338,8 +2338,13 @@ var EntityRenderEngine;
|
|
|
2338
2338
|
if (width <= 0) {
|
|
2339
2339
|
return null;
|
|
2340
2340
|
}
|
|
2341
|
+
var units = style.lineWidthUnits;
|
|
2342
|
+
// Px for backward compatibility. Meters are less prone to crashes.
|
|
2343
|
+
if (units != "px" && units != "m") {
|
|
2344
|
+
units = "px";
|
|
2345
|
+
}
|
|
2341
2346
|
var cEntity = new Entity({
|
|
2342
|
-
polyline: {
|
|
2347
|
+
polyline: units == "px" ? {
|
|
2343
2348
|
positions: posses,
|
|
2344
2349
|
material: cColor,
|
|
2345
2350
|
width: width,
|
|
@@ -2348,7 +2353,19 @@ var EntityRenderEngine;
|
|
|
2348
2353
|
zIndex: getZIndex(style, entity, params.tags),
|
|
2349
2354
|
clampToGround: heightRef == HeightReference.CLAMP_TO_GROUND,
|
|
2350
2355
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
|
|
2351
|
-
},
|
|
2356
|
+
} : null,
|
|
2357
|
+
corridor: units == "m" ? {
|
|
2358
|
+
positions: posses,
|
|
2359
|
+
material: cColor,
|
|
2360
|
+
width: width,
|
|
2361
|
+
classificationType: ClassificationType.TERRAIN,
|
|
2362
|
+
heightReference: heightRef,
|
|
2363
|
+
zIndex: getZIndex(style, entity, params.tags),
|
|
2364
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2365
|
+
cornerType: CornerType.MITERED,
|
|
2366
|
+
shadows: ShadowMode.ENABLED,
|
|
2367
|
+
fill: true
|
|
2368
|
+
} : null,
|
|
2352
2369
|
position: EntityUtils.GetPos({
|
|
2353
2370
|
viewer: params.viewer,
|
|
2354
2371
|
entity: entity,
|
|
@@ -2507,7 +2524,8 @@ var EntityRenderEngine;
|
|
|
2507
2524
|
heightReference: heightRef,
|
|
2508
2525
|
width: width,
|
|
2509
2526
|
fill: true,
|
|
2510
|
-
zIndex: zIndex,
|
|
2527
|
+
zIndex: zIndex + 1,
|
|
2528
|
+
cornerType: CornerType.MITERED,
|
|
2511
2529
|
classificationType: ClassificationType.TERRAIN,
|
|
2512
2530
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2513
2531
|
shadows: ShadowMode.ENABLED
|
|
@@ -2537,10 +2555,11 @@ var EntityRenderEngine;
|
|
|
2537
2555
|
heightReference: heightRef,
|
|
2538
2556
|
width: width,
|
|
2539
2557
|
fill: true,
|
|
2540
|
-
zIndex: zIndex,
|
|
2558
|
+
zIndex: zIndex + 1,
|
|
2559
|
+
cornerType: CornerType.MITERED,
|
|
2541
2560
|
classificationType: ClassificationType.TERRAIN,
|
|
2542
2561
|
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2543
|
-
shadows: ShadowMode.ENABLED
|
|
2562
|
+
shadows: ShadowMode.ENABLED,
|
|
2544
2563
|
},
|
|
2545
2564
|
show: false
|
|
2546
2565
|
});
|
|
@@ -14430,7 +14449,7 @@ var ViewerUtils;
|
|
|
14430
14449
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14431
14450
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
14432
14451
|
|
|
14433
|
-
var VERSION$1 = "2.4.
|
|
14452
|
+
var VERSION$1 = "2.4.3";
|
|
14434
14453
|
|
|
14435
14454
|
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 };
|
|
14436
14455
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|