bruce-cesium 1.8.2 → 1.8.4
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 +16 -10
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +15 -9
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js +4 -3
- package/dist/lib/rendering/render-managers/tilesets/tileset-arb-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-google-photos-render-manager.js +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-google-photos-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +10 -5
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/package.json +77 -77
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, DelayQueue, BatchedDataGetter, EntityRelationType, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, EntityRelation, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartesian2, Cartographic, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, Entity, Primitive, Cesium3DTileFeature, HeightReference, EllipsoidTerrainProvider, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode,
|
|
3
|
+
import { Cartesian2, Cartographic, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, Entity, Primitive, Cesium3DTileFeature, SceneMode, HeightReference, EllipsoidTerrainProvider, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, HeadingPitchRange, Cesium3DTileColorBlendMode, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, OrthographicFrustum, JulianDate, NearFarScalar, PolygonPipeline, EllipsoidGeodesic, sampleTerrainMostDetailed, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Cesium3DTileset, Matrix4, IonResource, ColorMaterialProperty, Matrix3, EasingFunction, GeometryInstance } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -3976,11 +3976,16 @@ var VisualsRegister;
|
|
|
3976
3976
|
Register.prototype.AddRego = function (params) {
|
|
3977
3977
|
var _a, _b;
|
|
3978
3978
|
var rego = params.rego;
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3979
|
+
// ND-2078
|
|
3980
|
+
// Tilesets will often add -> remove -> add because of how tiles load in and out of the scene.
|
|
3981
|
+
// To avoid flickering, we'll just replace rather than remove -> add.
|
|
3982
|
+
if (!rego.tilesetId) {
|
|
3983
|
+
this.RemoveRegos({
|
|
3984
|
+
entityId: rego.entityId,
|
|
3985
|
+
menuItemId: rego.menuItemId,
|
|
3986
|
+
doUpdate: false
|
|
3987
|
+
});
|
|
3988
|
+
}
|
|
3984
3989
|
var entityId = rego.entityId;
|
|
3985
3990
|
var entityRegos = (_a = this.rego[entityId]) !== null && _a !== void 0 ? _a : [];
|
|
3986
3991
|
entityRegos.push(rego);
|
|
@@ -6712,20 +6717,21 @@ var TilesetArbRenderManager;
|
|
|
6712
6717
|
}
|
|
6713
6718
|
};
|
|
6714
6719
|
Manager.prototype.mapTilesetFeature = function (feature) {
|
|
6715
|
-
var _a, _b, _c;
|
|
6720
|
+
var _a, _b, _c, _d;
|
|
6716
6721
|
var rego = {
|
|
6717
6722
|
entityId: null,
|
|
6718
6723
|
entityTypeId: null,
|
|
6719
6724
|
menuItemId: this.item.id,
|
|
6720
6725
|
priority: 0,
|
|
6721
6726
|
visual: feature,
|
|
6722
|
-
accountId: (_b = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID) !== null && _b !== void 0 ? _b : this.apiGetter.accountId
|
|
6727
|
+
accountId: (_b = (_a = this.item.tileset) === null || _a === void 0 ? void 0 : _a.ClientAccountID) !== null && _b !== void 0 ? _b : this.apiGetter.accountId,
|
|
6728
|
+
tilesetId: (_c = this.item.tileset) === null || _c === void 0 ? void 0 : _c.TilesetID
|
|
6723
6729
|
};
|
|
6724
6730
|
// Two different methods for two different Cesium versions...
|
|
6725
6731
|
var props = feature.getPropertyNames ? feature.getPropertyNames([]) :
|
|
6726
6732
|
feature.getPropertyIds ? feature.getPropertyIds() : [];
|
|
6727
6733
|
if (props.find(function (x) { return x == "BrucePath"; })) {
|
|
6728
|
-
var path = (
|
|
6734
|
+
var path = (_d = feature.getProperty("BrucePath")) === null || _d === void 0 ? void 0 : _d.split("|");
|
|
6729
6735
|
if (path === null || path === void 0 ? void 0 : path.length) {
|
|
6730
6736
|
rego.entityId = path[path.length - 1];
|
|
6731
6737
|
}
|
|
@@ -6973,7 +6979,7 @@ var TilesetGooglePhotosRenderManager;
|
|
|
6973
6979
|
this.cTileset.style = new Cesium3DTileStyle({
|
|
6974
6980
|
color: {
|
|
6975
6981
|
conditions: [
|
|
6976
|
-
["true", "color(".concat(colorCss, ")")]
|
|
6982
|
+
["true", "color(\"".concat(colorCss, "\")")]
|
|
6977
6983
|
]
|
|
6978
6984
|
}
|
|
6979
6985
|
});
|