bruce-cesium 5.3.8 → 5.3.9
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 +40 -35
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +39 -34
- 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 +38 -33
- 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, 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, PolygonHierarchy, PolylineGraphics, ColorMaterialProperty, ColorBlendMode, HeadingPitchRoll, Transforms, Model, HorizontalOrigin, VerticalOrigin, SceneMode, GeoJsonDataSource, Primitive, Cesium3DTileFeature, Cesium3DTileStyle, Cesium3DTileColorBlendMode, HeadingPitchRange, Ion, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, NearFarScalar, EllipsoidTerrainProvider, CesiumInspector, defined, ClockRange, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, PolygonPipeline, BoundingSphere, Matrix3, Matrix4, GeometryInstance, IonResource, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, Quaternion, CzmlDataSource, Intersect, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
const TIME_LAG = 300;
|
|
6
6
|
const POSITION_CHECK_TIMER = 950;
|
|
@@ -16404,43 +16404,48 @@ var TilesetRenderEngine;
|
|
|
16404
16404
|
}
|
|
16405
16405
|
}
|
|
16406
16406
|
}
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
const
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16407
|
+
if (rerun) {
|
|
16408
|
+
this.recordLoadQueue = this.recordLoadQueue.concat(batch);
|
|
16409
|
+
}
|
|
16410
|
+
else {
|
|
16411
|
+
// Quick access dictionary of Entity ID -> Entities.
|
|
16412
|
+
const entityMap = {};
|
|
16413
|
+
// Gather all Tag IDs from found Entities.
|
|
16414
|
+
let tagIds = [];
|
|
16415
|
+
for (let i = 0; i < entities.length; i++) {
|
|
16416
|
+
const entity = entities[i];
|
|
16417
|
+
entityMap[entity.Bruce.ID] = entity;
|
|
16418
|
+
if ((_b = (_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a["Layer.ID"]) === null || _b === void 0 ? void 0 : _b.length) {
|
|
16419
|
+
const eTagIds = entity.Bruce["Layer.ID"];
|
|
16420
|
+
for (let j = 0; j < eTagIds.length; j++) {
|
|
16421
|
+
tagIds.push(eTagIds[j]);
|
|
16422
|
+
}
|
|
16418
16423
|
}
|
|
16419
16424
|
}
|
|
16420
|
-
|
|
16421
|
-
|
|
16422
|
-
|
|
16423
|
-
tagIds = tagIds.filter((v, i, a) => a.indexOf(v) === i);
|
|
16424
|
-
}
|
|
16425
|
-
// Gather records.
|
|
16426
|
-
let tags = [];
|
|
16427
|
-
if (tagIds.length) {
|
|
16428
|
-
tags = (await EntityTag.GetListByIds({
|
|
16429
|
-
tagIds: tagIds,
|
|
16430
|
-
api: this.api
|
|
16431
|
-
})).tags;
|
|
16432
|
-
}
|
|
16433
|
-
for (let i = 0; i < batch.length; i++) {
|
|
16434
|
-
const entityId = batch[i];
|
|
16435
|
-
const record = entityMap[entityId];
|
|
16436
|
-
const feature = this.getEntityRego(entityId);
|
|
16437
|
-
if (feature) {
|
|
16438
|
-
const eTags = tags.filter(t => { var _a, _b, _c, _d; return ((_b = (_a = record === null || record === void 0 ? void 0 : record.Bruce) === null || _a === void 0 ? void 0 : _a["Layer.ID"]) === null || _b === void 0 ? void 0 : _b.length) && ((_d = (_c = record === null || record === void 0 ? void 0 : record.Bruce) === null || _c === void 0 ? void 0 : _c["Layer.ID"]) === null || _d === void 0 ? void 0 : _d.includes(t.ID)); });
|
|
16439
|
-
this.styleTilesetFeatureFullData(feature, record, eTags);
|
|
16425
|
+
// Turn into unique list.
|
|
16426
|
+
if (tagIds.length) {
|
|
16427
|
+
tagIds = tagIds.filter((v, i, a) => a.indexOf(v) === i);
|
|
16440
16428
|
}
|
|
16429
|
+
// Gather records.
|
|
16430
|
+
let tags = [];
|
|
16431
|
+
if (tagIds.length) {
|
|
16432
|
+
tags = (await EntityTag.GetListByIds({
|
|
16433
|
+
tagIds: tagIds,
|
|
16434
|
+
api: this.api
|
|
16435
|
+
})).tags;
|
|
16436
|
+
}
|
|
16437
|
+
for (let i = 0; i < batch.length; i++) {
|
|
16438
|
+
const entityId = batch[i];
|
|
16439
|
+
const record = entityMap[entityId];
|
|
16440
|
+
const feature = this.getEntityRego(entityId);
|
|
16441
|
+
if (feature) {
|
|
16442
|
+
const eTags = tags.filter(t => { var _a, _b, _c, _d; return ((_b = (_a = record === null || record === void 0 ? void 0 : record.Bruce) === null || _a === void 0 ? void 0 : _a["Layer.ID"]) === null || _b === void 0 ? void 0 : _b.length) && ((_d = (_c = record === null || record === void 0 ? void 0 : record.Bruce) === null || _c === void 0 ? void 0 : _c["Layer.ID"]) === null || _d === void 0 ? void 0 : _d.includes(t.ID)); });
|
|
16443
|
+
this.styleTilesetFeatureFullData(feature, record, eTags);
|
|
16444
|
+
}
|
|
16445
|
+
}
|
|
16446
|
+
rerun = rerun || batch.length > 0;
|
|
16447
|
+
this.viewer.scene.requestRender();
|
|
16441
16448
|
}
|
|
16442
|
-
rerun = rerun || batch.length > 0;
|
|
16443
|
-
this.viewer.scene.requestRender();
|
|
16444
16449
|
}
|
|
16445
16450
|
}
|
|
16446
16451
|
finally {
|
|
@@ -30471,7 +30476,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
30471
30476
|
}
|
|
30472
30477
|
}
|
|
30473
30478
|
|
|
30474
|
-
const VERSION = "5.3.
|
|
30479
|
+
const VERSION = "5.3.9";
|
|
30475
30480
|
|
|
30476
30481
|
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 };
|
|
30477
30482
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|