bruce-cesium 4.7.4 → 4.7.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-point.js +12 -1
- package/dist/lib/rendering/entity-render-engine-point.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +2 -3
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, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttribute, EntityAttachment, EntityAttachmentType,
|
|
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, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttribute, EntityAttachment, EntityAttachmentType, AbstractApi, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, HorizontalOrigin, VerticalOrigin, ConstantProperty, ClassificationType, ConstantPositionProperty, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, GeoJsonDataSource, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, Cesium3DTileStyle, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, PolygonPipeline, Matrix4, Matrix3, IonResource, BoundingSphere, GeometryInstance, Quaternion, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -4229,7 +4229,7 @@ var EntityRenderEnginePoint;
|
|
|
4229
4229
|
function Render(params) {
|
|
4230
4230
|
var _a, _b, _c, _d;
|
|
4231
4231
|
return __awaiter(this, void 0, void 0, function () {
|
|
4232
|
-
var entity, style, type, cEntity, siblings, heightRef, animatePosition, shouldShowTrack, prepareExistingGraphic, updateShouldShowTrack, iconUrlRows, icon, iconUrl, metadata, api, image, e_1, iconScale, disableDepthTest, bColor, cColor, animateColorIn_1, position, series, currentImgKey, series, pos3d, prevPos3d, radius, bFill, cFill, outline, cOutline, outlineWidth, bOutline, pos3d, extrusion, hasOutline, outlineExtrusion, outlineEntity, bColor, cColor, size, circleBillboard, disableDepthTest, animateColorIn_2, position, series, imgKey, currentImgKey, series, pos3d, prevPos3d, lStyle, bColor, cColor, width, lHeightRef, trackEntity;
|
|
4232
|
+
var entity, style, type, cEntity, siblings, heightRef, animatePosition, shouldShowTrack, prepareExistingGraphic, updateShouldShowTrack, iconUrlRows, icon, iconUrl, metadata, api, image, e_1, iconScale, disableDepthTest, bColor, cColor, animateColorIn_1, position, series, currentImgKey, series, pos3d, prevPos3d, radius, bFill, cFill, outline, cOutline, outlineWidth, bOutline, pos3d, extrusion, hasOutline, classification, outlineExtrusion, outlineEntity, bColor, cColor, size, circleBillboard, disableDepthTest, animateColorIn_2, position, series, imgKey, currentImgKey, series, pos3d, prevPos3d, lStyle, bColor, cColor, width, lHeightRef, trackEntity;
|
|
4233
4233
|
return __generator(this, function (_e) {
|
|
4234
4234
|
switch (_e.label) {
|
|
4235
4235
|
case 0:
|
|
@@ -4433,6 +4433,9 @@ var EntityRenderEnginePoint;
|
|
|
4433
4433
|
cEntity.billboard.heightReference = new ConstantProperty(getHeightRef(style));
|
|
4434
4434
|
cEntity.billboard.disableDepthTestDistance = new ConstantProperty(disableDepthTest ? Number.POSITIVE_INFINITY : undefined);
|
|
4435
4435
|
cEntity.billboard.distanceDisplayCondition = new ConstantProperty(EntityRenderEngine.GetDisplayCondition(params.minDistance, params.maxDistance));
|
|
4436
|
+
// Unset width/height.
|
|
4437
|
+
cEntity.billboard.width = undefined;
|
|
4438
|
+
cEntity.billboard.height = undefined;
|
|
4436
4439
|
series = CesiumAnimatedProperty.GetSeriesPossesForHistoricEntity(params.viewer, heightRef, params.entityHistoric);
|
|
4437
4440
|
if (series.length > 1) {
|
|
4438
4441
|
animatePosition = new CesiumAnimatedProperty.AnimatePositionSeries({
|
|
@@ -4501,6 +4504,10 @@ var EntityRenderEnginePoint;
|
|
|
4501
4504
|
});
|
|
4502
4505
|
extrusion = getCylinderExtrusion(entity, params.tags, heightRef, style.CylinderFillExtrusion);
|
|
4503
4506
|
hasOutline = outline && outlineWidth > 0;
|
|
4507
|
+
classification = ClassificationType.TERRAIN;
|
|
4508
|
+
if (style["drapeOver"] == "ALL") {
|
|
4509
|
+
classification = ClassificationType.BOTH;
|
|
4510
|
+
}
|
|
4504
4511
|
if (!params.rendered || !params.rendered.ellipse) {
|
|
4505
4512
|
cEntity = new Entity({
|
|
4506
4513
|
id: ObjectUtils.UId(10),
|
|
@@ -4514,6 +4521,7 @@ var EntityRenderEnginePoint;
|
|
|
4514
4521
|
extrudedHeightReference: extrusion.exHeightRef,
|
|
4515
4522
|
height: Cartographic.fromCartesian(pos3d).height,
|
|
4516
4523
|
zIndex: 1,
|
|
4524
|
+
classificationType: classification,
|
|
4517
4525
|
distanceDisplayCondition: EntityRenderEngine.GetDisplayCondition(params.minDistance, params.maxDistance)
|
|
4518
4526
|
},
|
|
4519
4527
|
position: pos3d === null || pos3d === void 0 ? void 0 : pos3d.clone(),
|
|
@@ -4532,6 +4540,7 @@ var EntityRenderEnginePoint;
|
|
|
4532
4540
|
cEntity.ellipse.height = new ConstantProperty(Cartographic.fromCartesian(pos3d).height);
|
|
4533
4541
|
cEntity.ellipse.zIndex = new ConstantProperty(1);
|
|
4534
4542
|
cEntity.ellipse.distanceDisplayCondition = new ConstantProperty(EntityRenderEngine.GetDisplayCondition(params.minDistance, params.maxDistance));
|
|
4543
|
+
cEntity.ellipse.classificationType = new ConstantProperty(classification);
|
|
4535
4544
|
cEntity.position = new ConstantPositionProperty(pos3d === null || pos3d === void 0 ? void 0 : pos3d.clone());
|
|
4536
4545
|
// We'll use "SetDefaultColor" to updating the internal reference and to allow for an animation.
|
|
4537
4546
|
// WARNING: ellipse does not support animation (yet?).
|
|
@@ -4561,6 +4570,7 @@ var EntityRenderEnginePoint;
|
|
|
4561
4570
|
outlineEntity.ellipse.height = new ConstantProperty(Cartographic.fromCartesian(pos3d).height);
|
|
4562
4571
|
outlineEntity.ellipse.zIndex = new ConstantProperty(2);
|
|
4563
4572
|
outlineEntity.ellipse.distanceDisplayCondition = new ConstantProperty(EntityRenderEngine.GetDisplayCondition(params.minDistance, params.maxDistance));
|
|
4573
|
+
outlineEntity.ellipse.classificationType = new ConstantProperty(classification);
|
|
4564
4574
|
// We'll use "SetDefaultColor" to updating the internal reference and to allow for an animation.
|
|
4565
4575
|
// WARNING: ellipse does not support animation (yet?).
|
|
4566
4576
|
CesiumEntityStyler.SetDefaultColor({
|
|
@@ -4585,6 +4595,7 @@ var EntityRenderEnginePoint;
|
|
|
4585
4595
|
extrudedHeightReference: outlineExtrusion.exHeightRef,
|
|
4586
4596
|
height: Cartographic.fromCartesian(pos3d).height,
|
|
4587
4597
|
zIndex: 2,
|
|
4598
|
+
classificationType: classification,
|
|
4588
4599
|
distanceDisplayCondition: EntityRenderEngine.GetDisplayCondition(params.minDistance, params.maxDistance)
|
|
4589
4600
|
},
|
|
4590
4601
|
position: pos3d === null || pos3d === void 0 ? void 0 : pos3d.clone()
|
|
@@ -28466,7 +28477,7 @@ var WidgetViewBar = /** @class */ (function (_super) {
|
|
|
28466
28477
|
return WidgetViewBar;
|
|
28467
28478
|
}(Widget.AWidget));
|
|
28468
28479
|
|
|
28469
|
-
var VERSION = "4.7.
|
|
28480
|
+
var VERSION = "4.7.5";
|
|
28470
28481
|
|
|
28471
28482
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, 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, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
28472
28483
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|