bruce-cesium 0.7.8 → 0.8.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 +30 -11
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +29 -10
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +29 -10
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/rendering/visuals-register.d.ts +8 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Geometry, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, DelayQueue, Entity as Entity$1, BatchedDataGetter, ObjectUtils, Tileset, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, TilesetExtMapTiles, ProgramKey, Camera } from 'bruce-models';
|
|
2
|
-
import { Cartesian2, Cartographic, Math as Math$1,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, OrthographicFrustum, JulianDate, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Cesium3DTileset, EllipsoidGeodesic, ColorMaterialProperty, Rectangle, Matrix3, EasingFunction, GeometryInstance, createOsmBuildings, Cesium3DTileStyle, KmlDataSource } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2448,22 +2448,41 @@ var VisualsRegister;
|
|
|
2448
2448
|
}
|
|
2449
2449
|
}
|
|
2450
2450
|
};
|
|
2451
|
+
/**
|
|
2452
|
+
*
|
|
2453
|
+
* @param entityId
|
|
2454
|
+
* @param menuItemId if not supplied it will affect all menu items.
|
|
2455
|
+
* @param _doUpdate
|
|
2456
|
+
* @returns
|
|
2457
|
+
*/
|
|
2451
2458
|
Register.prototype.Remove = function (entityId, menuItemId, _doUpdate) {
|
|
2452
2459
|
var _a;
|
|
2453
|
-
if (_doUpdate
|
|
2460
|
+
if (_doUpdate == null) {
|
|
2461
|
+
_doUpdate = true;
|
|
2462
|
+
}
|
|
2454
2463
|
var entityRegos = this.rego[entityId];
|
|
2455
2464
|
if (!entityRegos) {
|
|
2456
2465
|
return;
|
|
2457
2466
|
}
|
|
2458
|
-
var
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
+
var menuItems = menuItemId ? menuItemId : Object.keys(entityRegos);
|
|
2468
|
+
var _loop_3 = function (i) {
|
|
2469
|
+
var menuItemId_1 = menuItems[i];
|
|
2470
|
+
var rego = entityRegos.find(function (r) { return r.menuItemId === menuItemId_1; });
|
|
2471
|
+
if (!rego) {
|
|
2472
|
+
return { value: void 0 };
|
|
2473
|
+
}
|
|
2474
|
+
(_a = this_1.onUpdate) === null || _a === void 0 ? void 0 : _a.Trigger({ rego: rego, isAdding: false });
|
|
2475
|
+
removeEntity(this_1.viewer, rego.visual);
|
|
2476
|
+
this_1.rego[entityId] = entityRegos.filter(function (r) { return r.menuItemId !== menuItemId_1; });
|
|
2477
|
+
if (_doUpdate) {
|
|
2478
|
+
updateEntity(this_1.viewer, entityId, this_1);
|
|
2479
|
+
}
|
|
2480
|
+
};
|
|
2481
|
+
var this_1 = this;
|
|
2482
|
+
for (var i = 0; i < menuItems.length; i++) {
|
|
2483
|
+
var state_1 = _loop_3(i);
|
|
2484
|
+
if (typeof state_1 === "object")
|
|
2485
|
+
return state_1.value;
|
|
2467
2486
|
}
|
|
2468
2487
|
};
|
|
2469
2488
|
/**
|