bruce-cesium 0.5.8 → 0.6.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 +9 -2
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +8 -1
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +8 -1
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/rendering/visuals-register.d.ts +1 -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,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Cartesian3, Color, HeightReference, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, OrthographicFrustum, Matrix4, Cesium3DTileset, HeadingPitchRange, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, EllipsoidGeodesic, ColorMaterialProperty, Rectangle, Matrix3, EasingFunction, GeometryInstance, JulianDate, createOsmBuildings, Cesium3DTileStyle } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2015,7 +2015,11 @@ function select(viewer, visual) {
|
|
|
2015
2015
|
var processGraphic = function (graphicKey, materialKey) {
|
|
2016
2016
|
if (entity[graphicKey]) {
|
|
2017
2017
|
if (entity[graphicKey][ORG_COLOR_KEY] == null) {
|
|
2018
|
-
|
|
2018
|
+
var orgColor = entity[graphicKey][materialKey];
|
|
2019
|
+
if (!orgColor) {
|
|
2020
|
+
orgColor = Color.WHITE;
|
|
2021
|
+
}
|
|
2022
|
+
entity[graphicKey][ORG_COLOR_KEY] = orgColor.clone ? orgColor.clone() : orgColor;
|
|
2019
2023
|
}
|
|
2020
2024
|
entity[graphicKey][materialKey] = color.clone();
|
|
2021
2025
|
}
|
|
@@ -2161,6 +2165,9 @@ var VisualsRegister;
|
|
|
2161
2165
|
}
|
|
2162
2166
|
this.selectedIds = [];
|
|
2163
2167
|
};
|
|
2168
|
+
Register.prototype.GetSelected = function () {
|
|
2169
|
+
return this.selectedIds;
|
|
2170
|
+
};
|
|
2164
2171
|
Register.prototype.Isolate = function (id) {
|
|
2165
2172
|
if (this.isolatedIds.indexOf(id) === -1) {
|
|
2166
2173
|
this.isolatedIds.push(id);
|