bruce-cesium 4.3.6 → 4.3.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 +10 -36
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +9 -35
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/utils/entity-utils.js +8 -34
- package/dist/lib/utils/entity-utils.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, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, Api, EntityRelationType, ENVIRONMENT, EntityHistoricData, EntityCoords, 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, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, Entity, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, Entity, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, Primitive, Cesium3DTileFeature, SceneMode, GeoJsonDataSource, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, 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, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Quaternion, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -2578,24 +2578,11 @@ var EntityUtils;
|
|
|
2578
2578
|
});
|
|
2579
2579
|
}); };
|
|
2580
2580
|
evaluateRecord = function () { return __awaiter(_this, void 0, void 0, function () {
|
|
2581
|
-
var posses,
|
|
2581
|
+
var posses, location, latitude, longitude, pos3d_3, geometry, pointStr, points, point, pos3d_4, lineStr, points, pPosses, pRings, boundary, points, pPosses, boundaries, point, bPosses;
|
|
2582
2582
|
return __generator(this, function (_a) {
|
|
2583
2583
|
switch (_a.label) {
|
|
2584
2584
|
case 0:
|
|
2585
2585
|
posses = [];
|
|
2586
|
-
assemblyLocation = Entity$1.GetValue({
|
|
2587
|
-
entity: entity,
|
|
2588
|
-
path: ["Bruce", "AssemblyLocation"]
|
|
2589
|
-
});
|
|
2590
|
-
if (assemblyLocation && typeof assemblyLocation == "object" && Carto.ValidateCarto(assemblyLocation)) {
|
|
2591
|
-
latitude = EnsureNumber(assemblyLocation.latitude);
|
|
2592
|
-
longitude = EnsureNumber(assemblyLocation.longitude);
|
|
2593
|
-
// Disallowing exact 0.
|
|
2594
|
-
if (latitude || longitude) {
|
|
2595
|
-
pos3d_3 = Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(assemblyLocation.altitude));
|
|
2596
|
-
posses.push(pos3d_3);
|
|
2597
|
-
}
|
|
2598
|
-
}
|
|
2599
2586
|
location = Entity$1.GetValue({
|
|
2600
2587
|
entity: entity,
|
|
2601
2588
|
path: ["Bruce", "Location"]
|
|
@@ -2605,8 +2592,8 @@ var EntityUtils;
|
|
|
2605
2592
|
longitude = EnsureNumber(location.longitude);
|
|
2606
2593
|
// Disallowing exact 0.
|
|
2607
2594
|
if (latitude || longitude) {
|
|
2608
|
-
|
|
2609
|
-
posses.push(
|
|
2595
|
+
pos3d_3 = Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(location.altitude));
|
|
2596
|
+
posses.push(pos3d_3);
|
|
2610
2597
|
}
|
|
2611
2598
|
}
|
|
2612
2599
|
geometry = Entity$1.GetValue({
|
|
@@ -2621,8 +2608,8 @@ var EntityUtils;
|
|
|
2621
2608
|
points = Geometry.ParsePoints(pointStr);
|
|
2622
2609
|
point = points.length > 0 ? points[0] : null;
|
|
2623
2610
|
if (point && Carto.ValidateCarto(point)) {
|
|
2624
|
-
|
|
2625
|
-
posses.push(
|
|
2611
|
+
pos3d_4 = Cartesian3.fromDegrees(EnsureNumber(point.longitude), EnsureNumber(point.latitude), EnsureNumber(point.altitude));
|
|
2612
|
+
posses.push(pos3d_4);
|
|
2626
2613
|
}
|
|
2627
2614
|
}
|
|
2628
2615
|
lineStr = geometry.LineString;
|
|
@@ -2968,9 +2955,9 @@ var EntityUtils;
|
|
|
2968
2955
|
if ((rego === null || rego === void 0 ? void 0 : rego.visual) instanceof Entity) {
|
|
2969
2956
|
var visual = rego.visual;
|
|
2970
2957
|
if (visual.position) {
|
|
2971
|
-
var
|
|
2958
|
+
var pos3d_5 = GetValue(viewer, visual.position);
|
|
2972
2959
|
// Fix height reference.
|
|
2973
|
-
if (
|
|
2960
|
+
if (pos3d_5 === null || pos3d_5 === void 0 ? void 0 : pos3d_5.x) {
|
|
2974
2961
|
var visualHeightRef = HeightReference.RELATIVE_TO_GROUND;
|
|
2975
2962
|
if (visual.model) {
|
|
2976
2963
|
visualHeightRef = GetValue(viewer, visual.model.heightReference);
|
|
@@ -2997,7 +2984,7 @@ var EntityUtils;
|
|
|
2997
2984
|
return DrawingUtils.EnsurePosHeight({
|
|
2998
2985
|
desiredHeightRef: params.returnHeightRef,
|
|
2999
2986
|
heightRef: visualHeightRef,
|
|
3000
|
-
pos3d:
|
|
2987
|
+
pos3d: pos3d_5,
|
|
3001
2988
|
viewer: viewer
|
|
3002
2989
|
});
|
|
3003
2990
|
}
|
|
@@ -3006,19 +2993,6 @@ var EntityUtils;
|
|
|
3006
2993
|
return null;
|
|
3007
2994
|
}
|
|
3008
2995
|
function evaluateRecord() {
|
|
3009
|
-
// Checking for a pre-calculated lat/lon for assembly entities.
|
|
3010
|
-
var assemblyLocation = Entity$1.GetValue({
|
|
3011
|
-
entity: entity,
|
|
3012
|
-
path: ["Bruce", "AssemblyLocation"]
|
|
3013
|
-
});
|
|
3014
|
-
if (assemblyLocation && typeof assemblyLocation == "object" && Carto.ValidateCarto(assemblyLocation)) {
|
|
3015
|
-
var latitude = EnsureNumber(assemblyLocation.latitude);
|
|
3016
|
-
var longitude = EnsureNumber(assemblyLocation.longitude);
|
|
3017
|
-
// Disallowing exact 0.
|
|
3018
|
-
if (latitude || longitude) {
|
|
3019
|
-
return Cartesian3.fromDegrees(longitude, latitude, EnsureNumber(assemblyLocation.altitude));
|
|
3020
|
-
}
|
|
3021
|
-
}
|
|
3022
2996
|
var location = Entity$1.GetValue({
|
|
3023
2997
|
entity: entity,
|
|
3024
2998
|
path: ["Bruce", "Location"]
|
|
@@ -26543,7 +26517,7 @@ var ViewerUtils;
|
|
|
26543
26517
|
ViewerUtils.AssertIonToken = AssertIonToken;
|
|
26544
26518
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
26545
26519
|
|
|
26546
|
-
var VERSION = "4.3.
|
|
26520
|
+
var VERSION = "4.3.7";
|
|
26547
26521
|
|
|
26548
26522
|
export { VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, 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 };
|
|
26549
26523
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|