bruce-cesium 2.6.8 → 2.7.0
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 +56 -28
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +55 -27
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js +44 -10
- package/dist/lib/rendering/render-managers/tilesets/tileset-entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/view-render-engine.js +12 -18
- package/dist/lib/rendering/view-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, 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, JulianDate, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature,
|
|
3
|
+
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, JulianDate, SceneMode, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, Cesium3DTileColorBlendMode, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, OrthographicFrustum, PolygonPipeline, EllipsoidGeodesic, EllipsoidTerrainProvider, sampleTerrainMostDetailed, defined, Cesium3DTileset, Model, CesiumInspector, Matrix4, Matrix3, IonResource, ScreenSpaceEventHandler, ScreenSpaceEventType, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, ColorMaterialProperty, EasingFunction, GeometryInstance, Ion, BoundingSphere } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -8230,19 +8230,53 @@ var TilesetEntitiesRenderManager;
|
|
|
8230
8230
|
return [2 /*return*/];
|
|
8231
8231
|
}
|
|
8232
8232
|
(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
8233
|
-
var api, tileset, cTileset, _a;
|
|
8233
|
+
var canAccess, e_1, accountId, api, tileset, cTileset, _a;
|
|
8234
8234
|
var _this = this;
|
|
8235
|
-
var _b, _c;
|
|
8236
|
-
return __generator(this, function (
|
|
8237
|
-
switch (
|
|
8235
|
+
var _b, _c, _d;
|
|
8236
|
+
return __generator(this, function (_e) {
|
|
8237
|
+
switch (_e.label) {
|
|
8238
8238
|
case 0:
|
|
8239
|
-
|
|
8239
|
+
if (!tilesetId) return [3 /*break*/, 5];
|
|
8240
|
+
canAccess = false;
|
|
8241
|
+
_e.label = 1;
|
|
8242
|
+
case 1:
|
|
8243
|
+
_e.trys.push([1, 3, , 4]);
|
|
8244
|
+
return [4 /*yield*/, Tileset.Publish.IsAccessAllowed({
|
|
8245
|
+
sourceAccountId: (_b = this.item.tileset) === null || _b === void 0 ? void 0 : _b.ClientAccountID,
|
|
8246
|
+
tilesetId: tilesetId,
|
|
8247
|
+
forAccountId: this.getters.GetAccountId(),
|
|
8248
|
+
api: this.getters.GetGlobalApi()
|
|
8249
|
+
})];
|
|
8250
|
+
case 2:
|
|
8251
|
+
canAccess = _e.sent();
|
|
8252
|
+
return [3 /*break*/, 4];
|
|
8253
|
+
case 3:
|
|
8254
|
+
e_1 = _e.sent();
|
|
8255
|
+
console.error(e_1);
|
|
8256
|
+
return [3 /*break*/, 4];
|
|
8257
|
+
case 4:
|
|
8258
|
+
if (!canAccess) {
|
|
8259
|
+
console.warn("Cannot access tileset: ".concat(tilesetId, ", from account: ").concat((_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.ClientAccountID, "."));
|
|
8260
|
+
return [2 /*return*/];
|
|
8261
|
+
}
|
|
8262
|
+
return [3 /*break*/, 6];
|
|
8263
|
+
case 5:
|
|
8264
|
+
console.warn("No tileset id found. Skipping access check.");
|
|
8265
|
+
_e.label = 6;
|
|
8266
|
+
case 6:
|
|
8267
|
+
accountId = (_d = this.item.tileset) === null || _d === void 0 ? void 0 : _d.ClientAccountID;
|
|
8268
|
+
if (!accountId) {
|
|
8269
|
+
accountId = this.getters.GetAccountId();
|
|
8270
|
+
}
|
|
8271
|
+
api = this.getters.GetBruceApi({
|
|
8272
|
+
accountId: accountId
|
|
8273
|
+
});
|
|
8240
8274
|
return [4 /*yield*/, Tileset.Get({
|
|
8241
8275
|
api: api,
|
|
8242
8276
|
tilesetId: tilesetId
|
|
8243
8277
|
})];
|
|
8244
|
-
case
|
|
8245
|
-
tileset = (
|
|
8278
|
+
case 7:
|
|
8279
|
+
tileset = (_e.sent()).tileset;
|
|
8246
8280
|
if (!tileset || this.disposed) {
|
|
8247
8281
|
return [2 /*return*/];
|
|
8248
8282
|
}
|
|
@@ -8252,11 +8286,11 @@ var TilesetEntitiesRenderManager;
|
|
|
8252
8286
|
apiGetter: this.getters.GetBruceGetter(),
|
|
8253
8287
|
tileset: tileset,
|
|
8254
8288
|
viewer: this.viewer,
|
|
8255
|
-
accountId:
|
|
8289
|
+
accountId: accountId,
|
|
8256
8290
|
viaCdn: this.item.cdnEnabled
|
|
8257
8291
|
})];
|
|
8258
|
-
case
|
|
8259
|
-
cTileset = _a.cTileset =
|
|
8292
|
+
case 8:
|
|
8293
|
+
cTileset = _a.cTileset = _e.sent();
|
|
8260
8294
|
if (this.disposed) {
|
|
8261
8295
|
this.doDispose();
|
|
8262
8296
|
return [2 /*return*/];
|
|
@@ -12042,24 +12076,18 @@ function renderNavigator(iteration, params, bookmark, view) {
|
|
|
12042
12076
|
enabled: false
|
|
12043
12077
|
};
|
|
12044
12078
|
}
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
size = MIN_SHADOW_SIZE;
|
|
12051
|
-
}
|
|
12052
|
-
else if (size > MAX_SHADOW_SIZE) {
|
|
12053
|
-
size = MAX_SHADOW_SIZE;
|
|
12054
|
-
}
|
|
12055
|
-
viewer.shadowMap.size = size;
|
|
12056
|
-
viewer.shadowMap.softShadows = Boolean(shadows.soften);
|
|
12057
|
-
viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.5);
|
|
12079
|
+
viewer.shadows = Boolean(shadows.enabled);
|
|
12080
|
+
viewer.shadowMap.enabled = Boolean(shadows.enabled);
|
|
12081
|
+
size = EnsureNumber(shadows.pixelSize);
|
|
12082
|
+
if (size < MIN_SHADOW_SIZE) {
|
|
12083
|
+
size = MIN_SHADOW_SIZE;
|
|
12058
12084
|
}
|
|
12059
|
-
else {
|
|
12060
|
-
|
|
12061
|
-
viewer.shadowMap.enabled = false;
|
|
12085
|
+
else if (size > MAX_SHADOW_SIZE) {
|
|
12086
|
+
size = MAX_SHADOW_SIZE;
|
|
12062
12087
|
}
|
|
12088
|
+
viewer.shadowMap.size = size;
|
|
12089
|
+
viewer.shadowMap.softShadows = Boolean(shadows.soften);
|
|
12090
|
+
viewer.shadowMap.darkness = EnsureNumber(shadows.darkness, 0.5);
|
|
12063
12091
|
ambientOcclusion = bSettings === null || bSettings === void 0 ? void 0 : bSettings.ambientOcclusion;
|
|
12064
12092
|
if (ambientOcclusion == null) {
|
|
12065
12093
|
ambientOcclusion = (_v = defaults === null || defaults === void 0 ? void 0 : defaults.settings) === null || _v === void 0 ? void 0 : _v.ambientOcclusion;
|
|
@@ -15182,7 +15210,7 @@ var ViewerUtils;
|
|
|
15182
15210
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
15183
15211
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
15184
15212
|
|
|
15185
|
-
var VERSION$1 = "2.
|
|
15213
|
+
var VERSION$1 = "2.7.0";
|
|
15186
15214
|
|
|
15187
15215
|
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 };
|
|
15188
15216
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|