bruce-cesium 3.3.3 → 3.3.5
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 +26 -30
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +25 -29
- 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 +24 -28
- 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, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle,
|
|
3
|
+
import { Cartographic, Cartesian2, Math as Math$1, Cartesian3, CallbackProperty, Color, HeightReference, Rectangle, Entity, Primitive, Cesium3DTileFeature, JulianDate, SceneMode, DistanceDisplayCondition, NearFarScalar, Model, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, HeadingPitchRange, Ion, Cesium3DTileStyle, Cesium3DTileColorBlendMode, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, PolygonPipeline, CesiumInspector, ScreenSpaceEventHandler, ScreenSpaceEventType, BoundingSphere, GeometryInstance, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, ColorMaterialProperty, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/*! *****************************************************************************
|
|
6
6
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -9774,7 +9774,7 @@ var TilesetRenderEngine;
|
|
|
9774
9774
|
case 4:
|
|
9775
9775
|
setTimeout(function () {
|
|
9776
9776
|
_this.runningQueues -= 1;
|
|
9777
|
-
if (rerun) {
|
|
9777
|
+
if (rerun || _this.recordLoadQueue.length > 0) {
|
|
9778
9778
|
_this.processQueue();
|
|
9779
9779
|
}
|
|
9780
9780
|
}, BATCH_DELAY);
|
|
@@ -9834,31 +9834,29 @@ var TilesetRenderEngine;
|
|
|
9834
9834
|
styleMapping = [];
|
|
9835
9835
|
}
|
|
9836
9836
|
this.styleMapping = styleMapping;
|
|
9837
|
-
//
|
|
9838
|
-
//
|
|
9839
|
-
|
|
9840
|
-
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9845
|
-
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
});
|
|
9852
|
-
}
|
|
9853
|
-
};
|
|
9854
|
-
for (i = 0; i < entityTypeIds.length; i++) {
|
|
9855
|
-
_loop_2(i);
|
|
9837
|
+
// Append all found entity-types.
|
|
9838
|
+
// That way we can mark them as loaded instead of just the ones in the style mapping.
|
|
9839
|
+
try {
|
|
9840
|
+
modelTree = (_b = (_a = this.cTileset) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.modelTree;
|
|
9841
|
+
if (modelTree) {
|
|
9842
|
+
entityTypeIds = this.getEntityTypeIdsFromModelTree(modelTree);
|
|
9843
|
+
_loop_2 = function (i) {
|
|
9844
|
+
var entityTypeId = entityTypeIds[i];
|
|
9845
|
+
if (styleMapping.findIndex(function (x) { return x.EntityTypeID == entityTypeId; }) <= -1) {
|
|
9846
|
+
styleMapping.push({
|
|
9847
|
+
EntityTypeID: entityTypeId,
|
|
9848
|
+
StyleID: null,
|
|
9849
|
+
style: null
|
|
9850
|
+
});
|
|
9856
9851
|
}
|
|
9852
|
+
};
|
|
9853
|
+
for (i = 0; i < entityTypeIds.length; i++) {
|
|
9854
|
+
_loop_2(i);
|
|
9857
9855
|
}
|
|
9858
9856
|
}
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9857
|
+
}
|
|
9858
|
+
catch (e) {
|
|
9859
|
+
console.error(e);
|
|
9862
9860
|
}
|
|
9863
9861
|
i = 0;
|
|
9864
9862
|
_c.label = 5;
|
|
@@ -9907,11 +9905,9 @@ var TilesetRenderEngine;
|
|
|
9907
9905
|
console.error(e_3);
|
|
9908
9906
|
return [3 /*break*/, 13];
|
|
9909
9907
|
case 13:
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
this.processQueue();
|
|
9914
|
-
}
|
|
9908
|
+
this.styleMappingsLoaded[styleMap.EntityTypeID] = true;
|
|
9909
|
+
this.processTilesetFeatureCheckQueue();
|
|
9910
|
+
this.processQueue();
|
|
9915
9911
|
_c.label = 14;
|
|
9916
9912
|
case 14:
|
|
9917
9913
|
i++;
|
|
@@ -20037,7 +20033,7 @@ var CesiumViewMonitor;
|
|
|
20037
20033
|
CesiumViewMonitor$$1.Monitor = Monitor;
|
|
20038
20034
|
})(CesiumViewMonitor || (CesiumViewMonitor = {}));
|
|
20039
20035
|
|
|
20040
|
-
var VERSION$1 = "3.3.
|
|
20036
|
+
var VERSION$1 = "3.3.5";
|
|
20041
20037
|
|
|
20042
20038
|
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 };
|
|
20043
20039
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|