bruce-cesium 3.1.4 → 3.1.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 +6 -13
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +5 -12
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/utils/entity-utils.js +4 -11
- 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, ProjectViewTile, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, BruceEvent, EntityCoords, Api, EntitySource, MenuItem, EntityRelation, ENVIRONMENT, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic,
|
|
3
|
+
import { Cartographic, Color, HeightReference, Cartesian3, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Math as Math$1, Transforms, ColorBlendMode, Model, JulianDate, Cartesian2, CallbackProperty, Rectangle, SceneMode, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, Primitive, Cesium3DTileFeature, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, CesiumInspector, defined, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, Matrix4, Matrix3, IonResource, Ion, PolygonPipeline, ColorMaterialProperty, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -976,7 +976,7 @@ var EntityUtils;
|
|
|
976
976
|
});
|
|
977
977
|
}); };
|
|
978
978
|
getEntityPositions = function (sample) { return __awaiter(_this, void 0, void 0, function () {
|
|
979
|
-
var entityId, entity, tileset, tilesetId, e_1, evaluateRendered, evaluateRecord, renderedPosses, recordPosses, e_2, tSettings, pos3d, alt, alt, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset
|
|
979
|
+
var entityId, entity, tileset, tilesetId, e_1, evaluateRendered, evaluateRecord, renderedPosses, recordPosses, e_2, tSettings, pos3d, alt, alt, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset;
|
|
980
980
|
var _this = this;
|
|
981
981
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
982
982
|
return __generator(this, function (_l) {
|
|
@@ -1102,7 +1102,7 @@ var EntityUtils;
|
|
|
1102
1102
|
posses.push(pos3d_1);
|
|
1103
1103
|
if (visual.model) {
|
|
1104
1104
|
modelExt = visual.model;
|
|
1105
|
-
if (modelExt._radius) {
|
|
1105
|
+
if (modelExt._radius && modelExt._radius > -1) {
|
|
1106
1106
|
sphere = BoundingSphere.fromPoints([pos3d_1]);
|
|
1107
1107
|
sphere.radius = modelExt._radius;
|
|
1108
1108
|
spheres.push(sphere);
|
|
@@ -1229,7 +1229,7 @@ var EntityUtils;
|
|
|
1229
1229
|
case 12:
|
|
1230
1230
|
tSettings = tileset === null || tileset === void 0 ? void 0 : tileset.settings;
|
|
1231
1231
|
pos3d = null;
|
|
1232
|
-
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*/,
|
|
1232
|
+
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*/, 14];
|
|
1233
1233
|
if ((_d = entity === null || entity === void 0 ? void 0 : entity.location) === null || _d === void 0 ? void 0 : _d.longitude) {
|
|
1234
1234
|
alt = +entity.location.altitude;
|
|
1235
1235
|
if (isNaN(alt)) {
|
|
@@ -1244,7 +1244,7 @@ var EntityUtils;
|
|
|
1244
1244
|
}
|
|
1245
1245
|
pos3d = Cartesian3.fromDegrees(+tSettings.location.longitude, +tSettings.location.latitude, alt);
|
|
1246
1246
|
}
|
|
1247
|
-
if (!(entity === null || entity === void 0 ? void 0 : entity.worldPosition)) return [3 /*break*/,
|
|
1247
|
+
if (!(entity === null || entity === void 0 ? void 0 : entity.worldPosition)) return [3 /*break*/, 14];
|
|
1248
1248
|
heading = 0;
|
|
1249
1249
|
pitch = 0;
|
|
1250
1250
|
roll = 0;
|
|
@@ -1295,13 +1295,6 @@ var EntityUtils;
|
|
|
1295
1295
|
pos3d = _l.sent();
|
|
1296
1296
|
_l.label = 14;
|
|
1297
1297
|
case 14:
|
|
1298
|
-
if ((entity === null || entity === void 0 ? void 0 : entity.geometryRadius) && (pos3d === null || pos3d === void 0 ? void 0 : pos3d.x)) {
|
|
1299
|
-
sphere = BoundingSphere.fromPoints([pos3d]);
|
|
1300
|
-
sphere.radius = entity.geometryRadius;
|
|
1301
|
-
spheres.push(sphere);
|
|
1302
|
-
}
|
|
1303
|
-
_l.label = 15;
|
|
1304
|
-
case 15:
|
|
1305
1298
|
if (pos3d) {
|
|
1306
1299
|
return [2 /*return*/, [pos3d]];
|
|
1307
1300
|
}
|
|
@@ -18735,7 +18728,7 @@ var CesiumViewMonitor;
|
|
|
18735
18728
|
CesiumViewMonitor$$1.Monitor = Monitor;
|
|
18736
18729
|
})(CesiumViewMonitor || (CesiumViewMonitor = {}));
|
|
18737
18730
|
|
|
18738
|
-
var VERSION$1 = "3.1.
|
|
18731
|
+
var VERSION$1 = "3.1.5";
|
|
18739
18732
|
|
|
18740
18733
|
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 };
|
|
18741
18734
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|