bruce-cesium 3.0.7 → 3.0.8
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 +15 -16
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +14 -15
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +13 -14
- package/dist/lib/rendering/tileset-render-engine.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, ProjectViewTile, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, DelayQueue, EntityCoords, Api, EntitySource, MenuItem, EntityRelation, ENVIRONMENT, ProjectView, ProjectViewBookmark, 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, Entity, Primitive, Cesium3DTileFeature,
|
|
3
|
+
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, JulianDate, SceneMode, Entity, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, HeightReference, DistanceDisplayCondition, NearFarScalar, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Model, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, CesiumInspector, defined, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, ScreenSpaceEventHandler, ScreenSpaceEventType, PolygonPipeline, Matrix4, Matrix3, IonResource, Ion, ColorMaterialProperty, GeometryInstance, BoundingSphere, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -8909,21 +8909,20 @@ var TilesetRenderEngine;
|
|
|
8909
8909
|
}
|
|
8910
8910
|
}
|
|
8911
8911
|
else {
|
|
8912
|
-
if (
|
|
8913
|
-
|
|
8912
|
+
if ((location === null || location === void 0 ? void 0 : location.latitude) || (location === null || location === void 0 ? void 0 : location.longitude)) {
|
|
8913
|
+
var translationMatrix = Matrix4.fromTranslation(new Cartesian3(EnsureNumber(transform.x), EnsureNumber(transform.y), EnsureNumber(transform.z)), new Matrix4());
|
|
8914
|
+
var pos3d = Cartesian3.fromDegrees(EnsureNumber(location.longitude), EnsureNumber(location.latitude), EnsureNumber(location.altitude));
|
|
8915
|
+
var m1 = Transforms.eastNorthUpToFixedFrame(pos3d);
|
|
8916
|
+
var hpr = HeadingPitchRoll.fromDegrees(EnsureNumber(transform.heading), EnsureNumber(transform.pitch), EnsureNumber(transform.roll), new HeadingPitchRoll());
|
|
8917
|
+
var hprRotation = Matrix3.fromHeadingPitchRoll(hpr);
|
|
8918
|
+
var scaleMatrix = Matrix4.fromUniformScale(EnsureNumber(transform.scale), new Matrix4());
|
|
8919
|
+
var combinedMatrix = Matrix4.multiply(m1, translationMatrix, new Matrix4());
|
|
8920
|
+
combinedMatrix = Matrix4.multiply(combinedMatrix, Matrix4.fromRotation(hprRotation), new Matrix4());
|
|
8921
|
+
combinedMatrix = Matrix4.multiply(combinedMatrix, scaleMatrix, new Matrix4());
|
|
8922
|
+
root.transform = combinedMatrix;
|
|
8923
|
+
// Force matrix to update
|
|
8924
|
+
root.updateTransform();
|
|
8914
8925
|
}
|
|
8915
|
-
var translationMatrix = Matrix4.fromTranslation(new Cartesian3(EnsureNumber(transform.x), EnsureNumber(transform.y), EnsureNumber(transform.z)), new Matrix4());
|
|
8916
|
-
var pos3d = Cartesian3.fromDegrees(EnsureNumber(location.longitude), EnsureNumber(location.latitude), EnsureNumber(location.altitude));
|
|
8917
|
-
var m1 = Transforms.eastNorthUpToFixedFrame(pos3d);
|
|
8918
|
-
var hpr = HeadingPitchRoll.fromDegrees(EnsureNumber(transform.heading), EnsureNumber(transform.pitch), EnsureNumber(transform.roll), new HeadingPitchRoll());
|
|
8919
|
-
var hprRotation = Matrix3.fromHeadingPitchRoll(hpr);
|
|
8920
|
-
var scaleMatrix = Matrix4.fromUniformScale(EnsureNumber(transform.scale), new Matrix4());
|
|
8921
|
-
var combinedMatrix = Matrix4.multiply(m1, translationMatrix, new Matrix4());
|
|
8922
|
-
combinedMatrix = Matrix4.multiply(combinedMatrix, Matrix4.fromRotation(hprRotation), new Matrix4());
|
|
8923
|
-
combinedMatrix = Matrix4.multiply(combinedMatrix, scaleMatrix, new Matrix4());
|
|
8924
|
-
root.transform = combinedMatrix;
|
|
8925
|
-
// Force matrix to update
|
|
8926
|
-
root.updateTransform();
|
|
8927
8926
|
}
|
|
8928
8927
|
// Store data in the tileset as we can't interpret it using the cesium primitive later.
|
|
8929
8928
|
var cTilesetExt = cTileset;
|
|
@@ -18456,7 +18455,7 @@ var ViewerUtils;
|
|
|
18456
18455
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
18457
18456
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
18458
18457
|
|
|
18459
|
-
var VERSION$1 = "3.0.
|
|
18458
|
+
var VERSION$1 = "3.0.8";
|
|
18460
18459
|
|
|
18461
18460
|
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 };
|
|
18462
18461
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|