bruce-cesium 2.7.0 → 2.7.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 +9 -3
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +8 -2
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/view-render-engine.js +3 -1
- package/dist/lib/rendering/view-render-engine.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +4 -0
- 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 { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, DelayQueue, BatchedDataGetter, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, EntityRelation, ENVIRONMENT, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera, AbstractApi, EntityAttachment, EntityAttachmentType, EntityAttribute } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1,
|
|
3
|
+
import { Cartographic, JulianDate, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, HeadingPitchRoll, Transforms, ColorBlendMode, SceneMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, Cesium3DTileColorBlendMode, createOsmBuildings, Cesium3DTileStyle, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, CesiumInspector, defined, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, Model, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Matrix3, IonResource, PolygonPipeline, ScreenSpaceEventHandler, ScreenSpaceEventType, KmlDataSource, ColorMaterialProperty, GeometryInstance, Ion, BoundingSphere } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -1162,6 +1162,10 @@ var EntityUtils;
|
|
|
1162
1162
|
}
|
|
1163
1163
|
matrix4 = entity.worldPosition;
|
|
1164
1164
|
offset = new Cartesian3(+matrix4[0][3], +matrix4[1][3], +matrix4[2][3]);
|
|
1165
|
+
if (entity.worldPivot) //the position from worldMatrix + center of geometry offset
|
|
1166
|
+
{
|
|
1167
|
+
offset = new Cartesian3(entity.worldPivot[0], entity.worldPivot[1], entity.worldPivot[2]);
|
|
1168
|
+
}
|
|
1165
1169
|
m1 = Transforms.eastNorthUpToFixedFrame(pos3d);
|
|
1166
1170
|
hpr = HeadingPitchRoll.fromDegrees(heading, pitch, roll, new HeadingPitchRoll());
|
|
1167
1171
|
transform = Matrix3.fromHeadingPitchRoll(hpr);
|
|
@@ -12003,7 +12007,9 @@ function renderNavigator(iteration, params, bookmark, view) {
|
|
|
12003
12007
|
pitch: Math$1.toRadians(+camera.pitch),
|
|
12004
12008
|
roll: Math$1.toRadians(+camera.roll)
|
|
12005
12009
|
},
|
|
12006
|
-
duration: transition != 0 ? transition / 1000 : 0
|
|
12010
|
+
duration: transition != 0 ? transition / 1000 : 0,
|
|
12011
|
+
// Make it ease in and out.
|
|
12012
|
+
easingFunction: EasingFunction.CUBIC_IN_OUT
|
|
12007
12013
|
});
|
|
12008
12014
|
}
|
|
12009
12015
|
}
|
|
@@ -15210,7 +15216,7 @@ var ViewerUtils;
|
|
|
15210
15216
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
15211
15217
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
15212
15218
|
|
|
15213
|
-
var VERSION$1 = "2.7.
|
|
15219
|
+
var VERSION$1 = "2.7.2";
|
|
15214
15220
|
|
|
15215
15221
|
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, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, Draw3dPolygon, Draw3dPolyline };
|
|
15216
15222
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|