bruce-cesium 5.3.4 → 5.3.6
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 +39 -24
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +38 -23
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/tile-render-engine.js +37 -22
- package/dist/lib/rendering/tile-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 { BruceEvent, Cartes, Entity as Entity$1, Carto, Geometry, MathUtils, LRUCache, Api, Calculator, ClientFile, EntityTag, EntityType, ObjectUtils, Style, ProjectViewTile, DelayQueue, EntityLod, Bounds, ZoomControl, EntityRelationType, ENVIRONMENT, EntityHistoricData, Tileset, EntityCoords, DataLab, EntitySource, MenuItem, EntityRelation, ProgramKey, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, EntityAttachment, EntityAttachmentType, EntityAttribute, AbstractApi, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, JulianDate, Entity, DistanceDisplayCondition, ClassificationType, ArcType, CornerType, ShadowMode, ConstantProperty, ConstantPositionProperty, HorizontalOrigin, VerticalOrigin, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, SceneMode, GeoJsonDataSource, Primitive, Cesium3DTileFeature, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, KmlDataSource, SceneTransforms, EllipsoidTerrainProvider, CesiumInspector, OrthographicFrustum, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, PolygonPipeline, Matrix4, Matrix3, IonResource, EasingFunction, NearFarScalar, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, Quaternion, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, ScreenSpaceEventHandler, ScreenSpaceEventType, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -22885,37 +22885,52 @@ var TileRenderEngine;
|
|
|
22885
22885
|
let maxLevel = settings === null || settings === void 0 ? void 0 : settings.levelMax;
|
|
22886
22886
|
const hasLevels = !isNaN(minLevel) && !isNaN(maxLevel);
|
|
22887
22887
|
if (tileset.type === Tileset.EType.GeoMap) {
|
|
22888
|
-
|
|
22889
|
-
|
|
22888
|
+
let url = null;
|
|
22889
|
+
if (tileset.loadUrl) {
|
|
22890
|
+
url = tileset.loadUrl;
|
|
22891
|
+
}
|
|
22892
|
+
// To be removed.
|
|
22893
|
+
else {
|
|
22894
|
+
url = Tileset.GetPublicFileUrl({
|
|
22890
22895
|
api,
|
|
22891
22896
|
tilesetId: meta.tilesetId,
|
|
22892
22897
|
file: "",
|
|
22893
22898
|
viaCdn: true,
|
|
22894
22899
|
viaCdnCacheToken: tileset.generateVersion
|
|
22895
22900
|
});
|
|
22896
|
-
|
|
22897
|
-
|
|
22898
|
-
|
|
22899
|
-
|
|
22900
|
-
|
|
22901
|
-
|
|
22901
|
+
}
|
|
22902
|
+
// Nextspace imagery with a custom suffix.
|
|
22903
|
+
// This usually means it was generated through another service.
|
|
22904
|
+
if ((settings === null || settings === void 0 ? void 0 : settings.loadUrlSuffix) || url.endsWith(".png")) {
|
|
22905
|
+
provider = new UrlTemplateImageryProvider({
|
|
22906
|
+
url: url,
|
|
22907
|
+
tileHeight: 256,
|
|
22908
|
+
tileWidth: 256,
|
|
22909
|
+
// maximumLevel: hasLevels ? maxLevel : undefined,
|
|
22910
|
+
// minimumLevel: hasLevels ? minLevel : undefined,
|
|
22902
22911
|
});
|
|
22903
22912
|
}
|
|
22913
|
+
// Typical Nextspace imagery.
|
|
22904
22914
|
else {
|
|
22905
|
-
|
|
22906
|
-
|
|
22907
|
-
|
|
22908
|
-
|
|
22909
|
-
|
|
22910
|
-
|
|
22911
|
-
|
|
22912
|
-
})
|
|
22913
|
-
|
|
22914
|
-
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22915
|
+
if (TileMapServiceImageryProvider.hasOwnProperty("fromUrl")) {
|
|
22916
|
+
provider = await CESIUM.TileMapServiceImageryProvider.fromUrl(url, {
|
|
22917
|
+
fileExtension: "png",
|
|
22918
|
+
// Tested to not cause increased lag.
|
|
22919
|
+
rectangle: boundaries,
|
|
22920
|
+
maximumLevel: hasLevels ? maxLevel : undefined,
|
|
22921
|
+
minimumLevel: hasLevels ? minLevel : undefined,
|
|
22922
|
+
});
|
|
22923
|
+
}
|
|
22924
|
+
else {
|
|
22925
|
+
provider = new CESIUM.TileMapServiceImageryProvider({
|
|
22926
|
+
url: url,
|
|
22927
|
+
fileExtension: "png",
|
|
22928
|
+
// Tested to not cause increased lag.
|
|
22929
|
+
rectangle: boundaries,
|
|
22930
|
+
maximumLevel: hasLevels ? maxLevel : undefined,
|
|
22931
|
+
minimumLevel: hasLevels ? minLevel : undefined,
|
|
22932
|
+
});
|
|
22933
|
+
}
|
|
22919
22934
|
}
|
|
22920
22935
|
}
|
|
22921
22936
|
else if (tileset.type === Tileset.EType.ExternalGeoMap) {
|
|
@@ -30090,7 +30105,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
30090
30105
|
}
|
|
30091
30106
|
}
|
|
30092
30107
|
|
|
30093
|
-
const VERSION = "5.3.
|
|
30108
|
+
const VERSION = "5.3.6";
|
|
30094
30109
|
|
|
30095
30110
|
export { VERSION, CesiumViewMonitor, ViewerUtils, ViewerEventTracker, MenuItemManager, isHistoricMetadataChanged, EntityRenderEngine, EntityRenderEnginePoint, EntityRenderEnginePolyline, EntityRenderEnginePolygon, EntityRenderEngineModel3d, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, DataLabRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, GoogleSearchRenderManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, CESIUM_TIMELINE_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, CesiumEntityStyler, CesiumAnimatedProperty, CesiumAnimatedInOut, Draw3dPolygon, Draw3dPolyline, MeasureCreator, Walkthrough, Widget, VIEWER_BOOKMARKS_WIDGET_KEY, WidgetBookmarks, WidgetBranding, WidgetCursorBar, WidgetEmbeddedInfoView, WidgetInfoView, WidgetNavCompass$$1 as WidgetNavCompass, VIEWER_VIEW_BAR_WIDGET_KEY, WidgetViewBar, WidgetControlViewBar, WidgetControlViewBarSearch, VIEWER_LEFT_PANEL_WIDGET_KEY, VIEWER_LEFT_PANEL_CSS_VAR_LEFT, WidgetLeftPanel, WidgetLeftPanelTab, WidgetLeftPanelTabBookmarks };
|
|
30096
30111
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|