bruce-cesium 3.3.1 → 3.3.3
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 +11 -7
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +10 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine.js +4 -1
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/lib/rendering/menu-item-creator.js +1 -1
- package/dist/lib/rendering/menu-item-creator.js.map +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +4 -3
- package/dist/lib/rendering/tileset-render-engine.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 { Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ProjectViewTile, DelayQueue, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, BruceEvent, EntityCoords, Api, EntitySource, MenuItem, EntityRelation, ProgramKey, ENVIRONMENT, AbstractApi, ProjectViewBookmark, EntityAttachment, EntityAttachmentType, EntityAttribute, ProjectView, ProjectViewLegacyTile, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, SceneMode, Entity, Primitive, Cesium3DTileFeature, HeadingPitchRange, Cesium3DTileColorBlendMode, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Ion, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidTerrainProvider, CesiumInspector, defined, PolygonPipeline, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, BoundingSphere, GeometryInstance, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ColorMaterialProperty } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -3304,7 +3304,10 @@ function getHeightRef(style, defaultStyle) {
|
|
|
3304
3304
|
var _a;
|
|
3305
3305
|
var heightRef = defaultStyle == null ? HeightReference.CLAMP_TO_GROUND : defaultStyle;
|
|
3306
3306
|
var altOptionId = (_a = style === null || style === void 0 ? void 0 : style.altitudeOption) === null || _a === void 0 ? void 0 : _a.id;
|
|
3307
|
-
if (altOptionId ==
|
|
3307
|
+
if (altOptionId == 0) {
|
|
3308
|
+
heightRef = HeightReference.CLAMP_TO_GROUND;
|
|
3309
|
+
}
|
|
3310
|
+
else if (altOptionId == 1) {
|
|
3308
3311
|
heightRef = HeightReference.NONE;
|
|
3309
3312
|
}
|
|
3310
3313
|
else if (altOptionId == 2) {
|
|
@@ -9249,7 +9252,7 @@ function isAlive$2(viewer, cTileset) {
|
|
|
9249
9252
|
function correctStyle(style) {
|
|
9250
9253
|
if (style && !style.Settings && !style.ID) {
|
|
9251
9254
|
return {
|
|
9252
|
-
ID:
|
|
9255
|
+
ID: -1,
|
|
9253
9256
|
Name: "Unknown",
|
|
9254
9257
|
Settings: __assign({}, style),
|
|
9255
9258
|
Type: Style.EType.Entity
|
|
@@ -9698,7 +9701,8 @@ var TilesetRenderEngine;
|
|
|
9698
9701
|
if ((_a = this.styleMapping) === null || _a === void 0 ? void 0 : _a.length) {
|
|
9699
9702
|
for (var i = 0; i < this.styleMapping.length; i++) {
|
|
9700
9703
|
var mapItem = this.styleMapping[i];
|
|
9701
|
-
|
|
9704
|
+
var mapStyle = mapItem.style ? mapItem.style : mapItem.Style;
|
|
9705
|
+
this.styleMapping[i].style = correctStyle(mapStyle);
|
|
9702
9706
|
}
|
|
9703
9707
|
}
|
|
9704
9708
|
this.register = register;
|
|
@@ -9864,7 +9868,7 @@ var TilesetRenderEngine;
|
|
|
9864
9868
|
return [3 /*break*/, 15];
|
|
9865
9869
|
}
|
|
9866
9870
|
styleMap = styleMapping[i];
|
|
9867
|
-
if (
|
|
9871
|
+
if (!(!styleMap.style && styleMap.StyleID > 0)) return [3 /*break*/, 13];
|
|
9868
9872
|
styleId = styleMap.StyleID;
|
|
9869
9873
|
if (!!styleId) return [3 /*break*/, 9];
|
|
9870
9874
|
_c.label = 6;
|
|
@@ -17382,7 +17386,7 @@ var MenuItemCreator;
|
|
|
17382
17386
|
menuItems = [];
|
|
17383
17387
|
version = view.DataVersion;
|
|
17384
17388
|
if (view.Settings && bookmark.Settings) {
|
|
17385
|
-
if (version
|
|
17389
|
+
if (version >= 2) {
|
|
17386
17390
|
vSettings = view.Settings;
|
|
17387
17391
|
bSettings = bookmark.Settings;
|
|
17388
17392
|
menuItems = vSettings.menuItems;
|
|
@@ -20033,7 +20037,7 @@ var CesiumViewMonitor;
|
|
|
20033
20037
|
CesiumViewMonitor$$1.Monitor = Monitor;
|
|
20034
20038
|
})(CesiumViewMonitor || (CesiumViewMonitor = {}));
|
|
20035
20039
|
|
|
20036
|
-
var VERSION$1 = "3.3.
|
|
20040
|
+
var VERSION$1 = "3.3.3";
|
|
20037
20041
|
|
|
20038
20042
|
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 };
|
|
20039
20043
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|