bruce-cesium 0.5.7 → 0.5.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 +17 -1
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +16 -0
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +16 -0
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/rendering/visuals-register.d.ts +5 -0
- 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, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, HeadingPitchRange, OrthographicFrustum, Primitive, Cesium3DTileFeature, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Cesium3DTileset, ColorMaterialProperty, Rectangle, Matrix3, EasingFunction, GeometryInstance, JulianDate, EllipsoidGeodesic, createOsmBuildings, Cesium3DTileStyle } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2161,6 +2161,9 @@ var VisualsRegister;
|
|
|
2161
2161
|
}
|
|
2162
2162
|
this.selectedIds = [];
|
|
2163
2163
|
};
|
|
2164
|
+
Register.prototype.GetSelected = function () {
|
|
2165
|
+
return this.selectedIds;
|
|
2166
|
+
};
|
|
2164
2167
|
Register.prototype.Isolate = function (id) {
|
|
2165
2168
|
if (this.isolatedIds.indexOf(id) === -1) {
|
|
2166
2169
|
this.isolatedIds.push(id);
|
|
@@ -2329,6 +2332,19 @@ var VisualsRegister;
|
|
|
2329
2332
|
}
|
|
2330
2333
|
return found;
|
|
2331
2334
|
};
|
|
2335
|
+
/**
|
|
2336
|
+
* Returns all registered entity ids.
|
|
2337
|
+
*/
|
|
2338
|
+
Register.prototype.GetIds = function () {
|
|
2339
|
+
var ids = [];
|
|
2340
|
+
for (var entityId in this.rego) {
|
|
2341
|
+
var regos = this.rego[entityId];
|
|
2342
|
+
if (regos && regos.length) {
|
|
2343
|
+
ids.push(entityId);
|
|
2344
|
+
}
|
|
2345
|
+
}
|
|
2346
|
+
return ids;
|
|
2347
|
+
};
|
|
2332
2348
|
Register.prototype.updateAllEntities = function () {
|
|
2333
2349
|
for (var entityId in this.rego) {
|
|
2334
2350
|
var regos = this.rego[entityId];
|