bruce-cesium 4.0.1 → 4.0.2
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 +18 -10
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +17 -9
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/utils/entity-utils.js +16 -8
- 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, 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, JulianDate, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, Primitive, Cesium3DTileFeature, DistanceDisplayCondition, NearFarScalar, Model, ColorMaterialProperty, HorizontalOrigin, VerticalOrigin, ConstantProperty, ConstantPositionProperty, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, ColorBlendMode, HeadingPitchRoll, Transforms, SceneMode, GeoJsonDataSource, 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, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, BoundingSphere, GeometryInstance, CesiumInspector, ClockRange, 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.
|
|
@@ -2417,7 +2417,7 @@ var EntityUtils;
|
|
|
2417
2417
|
});
|
|
2418
2418
|
}); };
|
|
2419
2419
|
getEntityPositions = function (sample) { return __awaiter(_this, void 0, void 0, function () {
|
|
2420
|
-
var entityId, entity, tileset, tilesetId, disallowRendered, evaluateRendered, evaluateRecord, renderedPosses, e_1, recordPosses, e_2, tilesetIds, tSettings, pos3d, eLocation, alt, alt, worldPosition, eTransform, heading, pitch, roll, matrix4, offset, m1, hpr, transform, transformedOffset, geometryRadius, sphere;
|
|
2420
|
+
var entityId, entity, tileset, tilesetId, disallowRendered, evaluateRendered, evaluateRecord, renderedPosses, e_1, recordPosses, e_2, tilesetIds, tSettings, pos3d, eLocation, alt, alt, worldPosition, eTransform, heading, pitch, roll, matrix4, offset, worldPivot, m1, hpr, transform, transformedOffset, geometryRadius, sphere;
|
|
2421
2421
|
var _this = this;
|
|
2422
2422
|
var _a, _b, _c, _d;
|
|
2423
2423
|
return __generator(this, function (_e) {
|
|
@@ -2754,7 +2754,7 @@ var EntityUtils;
|
|
|
2754
2754
|
}
|
|
2755
2755
|
worldPosition = Entity$1.GetValue({
|
|
2756
2756
|
entity: entity,
|
|
2757
|
-
path: ["Bruce", "
|
|
2757
|
+
path: ["Bruce", "worldPosition"]
|
|
2758
2758
|
});
|
|
2759
2759
|
if (!worldPosition) return [3 /*break*/, 16];
|
|
2760
2760
|
eTransform = Entity$1.GetValue({
|
|
@@ -2796,9 +2796,13 @@ var EntityUtils;
|
|
|
2796
2796
|
}
|
|
2797
2797
|
matrix4 = worldPosition;
|
|
2798
2798
|
offset = new Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
|
|
2799
|
-
|
|
2799
|
+
worldPivot = Entity$1.GetValue({
|
|
2800
|
+
entity: entity,
|
|
2801
|
+
path: ["Bruce", "worldPivot"]
|
|
2802
|
+
});
|
|
2803
|
+
if (worldPivot) //the position from worldMatrix + center of geometry offset
|
|
2800
2804
|
{
|
|
2801
|
-
offset = new Cartesian3(
|
|
2805
|
+
offset = new Cartesian3(worldPivot[0], worldPivot[1], worldPivot[2]);
|
|
2802
2806
|
}
|
|
2803
2807
|
m1 = Transforms.eastNorthUpToFixedFrame(pos3d);
|
|
2804
2808
|
hpr = HeadingPitchRoll.fromDegrees(heading, pitch, roll, new HeadingPitchRoll());
|
|
@@ -3085,7 +3089,7 @@ var EntityUtils;
|
|
|
3085
3089
|
function GetPosAsync(params) {
|
|
3086
3090
|
var _a, _b, _c, _d;
|
|
3087
3091
|
return __awaiter(this, void 0, void 0, function () {
|
|
3088
|
-
var viewer, entityId, entity, tileset, tilesetId, visualRegister, returnHeightRef, recordHeightRef, api, lat, lon, location_1, e_3, e_4, tilesetIds, pos3d, tSettings, eLocation, alt, alt, worldPosition, heading, pitch, roll, eTransform, matrix4, offset, m1, hpr, transform, transformedOffset;
|
|
3092
|
+
var viewer, entityId, entity, tileset, tilesetId, visualRegister, returnHeightRef, recordHeightRef, api, lat, lon, location_1, e_3, e_4, tilesetIds, pos3d, tSettings, eLocation, alt, alt, worldPosition, heading, pitch, roll, eTransform, matrix4, offset, worldPivot, m1, hpr, transform, transformedOffset;
|
|
3089
3093
|
return __generator(this, function (_e) {
|
|
3090
3094
|
switch (_e.label) {
|
|
3091
3095
|
case 0:
|
|
@@ -3193,7 +3197,7 @@ var EntityUtils;
|
|
|
3193
3197
|
}
|
|
3194
3198
|
worldPosition = Entity$1.GetValue({
|
|
3195
3199
|
entity: entity,
|
|
3196
|
-
path: ["Bruce", "
|
|
3200
|
+
path: ["Bruce", "worldPosition"]
|
|
3197
3201
|
});
|
|
3198
3202
|
if (worldPosition) {
|
|
3199
3203
|
heading = 0;
|
|
@@ -3235,9 +3239,13 @@ var EntityUtils;
|
|
|
3235
3239
|
}
|
|
3236
3240
|
matrix4 = worldPosition;
|
|
3237
3241
|
offset = new Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
|
|
3238
|
-
|
|
3242
|
+
worldPivot = Entity$1.GetValue({
|
|
3243
|
+
entity: entity,
|
|
3244
|
+
path: ["Bruce", "worldPivot"]
|
|
3245
|
+
});
|
|
3246
|
+
if (worldPivot) //the position from worldMatrix + center of geometry offset
|
|
3239
3247
|
{
|
|
3240
|
-
offset = new Cartesian3(
|
|
3248
|
+
offset = new Cartesian3(worldPivot[0], worldPivot[1], worldPivot[2]);
|
|
3241
3249
|
}
|
|
3242
3250
|
m1 = Transforms.eastNorthUpToFixedFrame(pos3d);
|
|
3243
3251
|
hpr = HeadingPitchRoll.fromDegrees(heading, pitch, roll, new HeadingPitchRoll());
|
|
@@ -24576,7 +24584,7 @@ var ViewRenderEngine;
|
|
|
24576
24584
|
ViewRenderEngine.Render = Render;
|
|
24577
24585
|
})(ViewRenderEngine || (ViewRenderEngine = {}));
|
|
24578
24586
|
|
|
24579
|
-
var VERSION = "4.0.
|
|
24587
|
+
var VERSION = "4.0.2";
|
|
24580
24588
|
|
|
24581
24589
|
export { 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, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline };
|
|
24582
24590
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|