bruce-cesium 3.4.4 → 3.4.6
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 +17 -7
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +16 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +14 -4
- package/dist/lib/utils/entity-utils.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 { Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, ENVIRONMENT, BruceEvent, EntityCoords, Api, EntitySource, MenuItem, EntityRelation, ProgramKey, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, DistanceDisplayCondition, NearFarScalar, Model, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, SceneMode, GeoJsonDataSource, ColorMaterialProperty, Primitive, Cesium3DTileFeature, JulianDate, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, defined, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, Intersect, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1239,7 +1239,7 @@ var getLocationFromFeature = function (feature) {
|
|
|
1239
1239
|
}
|
|
1240
1240
|
// If the value is really small we'll assume it's in radians.
|
|
1241
1241
|
// "cesium#blah" properties are always in degrees. No need to check.
|
|
1242
|
-
if (value < 0.9 && !propName.startsWith("cesium#")) {
|
|
1242
|
+
if (value < 0.9 && value > -0.9 && !propName.startsWith("cesium#")) {
|
|
1243
1243
|
value = Math$1.toDegrees(value);
|
|
1244
1244
|
}
|
|
1245
1245
|
return value;
|
|
@@ -1400,7 +1400,7 @@ var EntityUtils;
|
|
|
1400
1400
|
});
|
|
1401
1401
|
}); };
|
|
1402
1402
|
getEntityPositions = function (sample) { return __awaiter(_this, void 0, void 0, function () {
|
|
1403
|
-
var entityId, entity, tileset, tilesetId, evaluateRendered, evaluateRecord, renderedPosses, e_1, recordPosses, e_2, tSettings, pos3d, alt, alt, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset;
|
|
1403
|
+
var entityId, entity, tileset, tilesetId, evaluateRendered, evaluateRecord, renderedPosses, e_1, recordPosses, e_2, tSettings, pos3d, alt, alt, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset, sphere;
|
|
1404
1404
|
var _this = this;
|
|
1405
1405
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1406
1406
|
return __generator(this, function (_l) {
|
|
@@ -1696,7 +1696,7 @@ var EntityUtils;
|
|
|
1696
1696
|
case 12:
|
|
1697
1697
|
tSettings = tileset === null || tileset === void 0 ? void 0 : tileset.settings;
|
|
1698
1698
|
pos3d = null;
|
|
1699
|
-
if (!(((_b = entity === null || entity === void 0 ? void 0 : entity.location) === null || _b === void 0 ? void 0 : _b.longitude) || ((_c = tSettings === null || tSettings === void 0 ? void 0 : tSettings.location) === null || _c === void 0 ? void 0 : _c.longitude))) return [3 /*break*/,
|
|
1699
|
+
if (!(((_b = entity === null || entity === void 0 ? void 0 : entity.location) === null || _b === void 0 ? void 0 : _b.longitude) || ((_c = tSettings === null || tSettings === void 0 ? void 0 : tSettings.location) === null || _c === void 0 ? void 0 : _c.longitude))) return [3 /*break*/, 15];
|
|
1700
1700
|
if ((_d = entity === null || entity === void 0 ? void 0 : entity.location) === null || _d === void 0 ? void 0 : _d.longitude) {
|
|
1701
1701
|
alt = +entity.location.altitude;
|
|
1702
1702
|
if (isNaN(alt)) {
|
|
@@ -1711,7 +1711,7 @@ var EntityUtils;
|
|
|
1711
1711
|
}
|
|
1712
1712
|
pos3d = Cartesian3.fromDegrees(+tSettings.location.longitude, +tSettings.location.latitude, alt);
|
|
1713
1713
|
}
|
|
1714
|
-
if (!(entity === null || entity === void 0 ? void 0 : entity.worldPosition)) return [3 /*break*/,
|
|
1714
|
+
if (!(entity === null || entity === void 0 ? void 0 : entity.worldPosition)) return [3 /*break*/, 15];
|
|
1715
1715
|
heading = 0;
|
|
1716
1716
|
pitch = 0;
|
|
1717
1717
|
roll = 0;
|
|
@@ -1762,6 +1762,16 @@ var EntityUtils;
|
|
|
1762
1762
|
pos3d = _l.sent();
|
|
1763
1763
|
_l.label = 14;
|
|
1764
1764
|
case 14:
|
|
1765
|
+
if ((entity === null || entity === void 0 ? void 0 : entity.geometryRadius) && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
|
|
1766
|
+
sphere = BoundingSphere.fromPoints([pos3d]);
|
|
1767
|
+
// For now making sure it's less than x amount because we had a bug which made it huge.
|
|
1768
|
+
if (entity.geometryRadius && entity.geometryRadius < 100 && entity.geometryRadius > 1) {
|
|
1769
|
+
sphere.radius = entity.geometryRadius;
|
|
1770
|
+
spheres.push(sphere);
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
_l.label = 15;
|
|
1774
|
+
case 15:
|
|
1765
1775
|
if (pos3d) {
|
|
1766
1776
|
return [2 /*return*/, [pos3d]];
|
|
1767
1777
|
}
|
|
@@ -8281,7 +8291,7 @@ var EntitiesRenderManager;
|
|
|
8281
8291
|
}
|
|
8282
8292
|
];
|
|
8283
8293
|
}
|
|
8284
|
-
if (this.
|
|
8294
|
+
if (this.useGeojson && this.item.CameraZoomSettings.length > 1) {
|
|
8285
8295
|
console.warn("Geojson rendering does not support multiple zoom controls. Only the first one will be used.");
|
|
8286
8296
|
this.item.CameraZoomSettings = [this.item.CameraZoomSettings[0]];
|
|
8287
8297
|
}
|
|
@@ -21498,7 +21508,7 @@ var CesiumViewMonitor;
|
|
|
21498
21508
|
CesiumViewMonitor$$1.Monitor = Monitor;
|
|
21499
21509
|
})(CesiumViewMonitor || (CesiumViewMonitor = {}));
|
|
21500
21510
|
|
|
21501
|
-
var VERSION$1 = "3.4.
|
|
21511
|
+
var VERSION$1 = "3.4.6";
|
|
21502
21512
|
|
|
21503
21513
|
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, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, Draw3dPolygon, Draw3dPolyline };
|
|
21504
21514
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|