bruce-cesium 0.1.8 → 0.2.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 +15 -7
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +14 -6
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/menu-item-manager.js +1 -0
- package/dist/lib/rendering/menu-item-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +13 -6
- package/dist/lib/rendering/visuals-register.js.map +1 -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, EntityFilterGetter, BatchedDataGetter, ObjectUtils, Tileset, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewTileSource, Camera } from 'bruce-models';
|
|
2
|
-
import { Cartesian2, Cartographic, Math as Math$1, Viewer, ArcGisMapServerImageryProvider, ScreenSpaceEventType,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Viewer, ArcGisMapServerImageryProvider, ScreenSpaceEventType, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, OrthographicFrustum, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, createWorldTerrain, CesiumTerrainProvider, EllipsoidTerrainProvider, Matrix4, Cesium3DTileset, EllipsoidGeodesic } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -1728,18 +1728,22 @@ function select(visual) {
|
|
|
1728
1728
|
cEntity.point._orgColor = cEntity.point.color;
|
|
1729
1729
|
cEntity.point.color = color.clone();
|
|
1730
1730
|
}
|
|
1731
|
-
|
|
1731
|
+
if (cEntity.polyline) {
|
|
1732
1732
|
cEntity.polyline._orgColor = cEntity.polyline.material;
|
|
1733
1733
|
cEntity.polyline.material = color.clone();
|
|
1734
1734
|
}
|
|
1735
|
-
|
|
1735
|
+
if (cEntity.polygon) {
|
|
1736
1736
|
cEntity.polygon._orgColor = cEntity.polygon.material;
|
|
1737
1737
|
cEntity.polygon.material = color.clone();
|
|
1738
1738
|
}
|
|
1739
|
-
|
|
1739
|
+
if (cEntity.model) {
|
|
1740
1740
|
cEntity.model._orgColor = cEntity.model.color;
|
|
1741
1741
|
cEntity.model.color = color.clone();
|
|
1742
1742
|
}
|
|
1743
|
+
if (cEntity.billboard) {
|
|
1744
|
+
cEntity.billboard._orgColor = cEntity.billboard.color;
|
|
1745
|
+
cEntity.billboard.color = color.clone();
|
|
1746
|
+
}
|
|
1743
1747
|
}
|
|
1744
1748
|
}
|
|
1745
1749
|
else if (visual instanceof Primitive) ;
|
|
@@ -1757,15 +1761,18 @@ function deselect(visual) {
|
|
|
1757
1761
|
if (cEntity.point) {
|
|
1758
1762
|
cEntity.point.color = cEntity.point._orgColor;
|
|
1759
1763
|
}
|
|
1760
|
-
|
|
1764
|
+
if (cEntity.polyline) {
|
|
1761
1765
|
cEntity.polyline.material = cEntity.polyline._orgColor;
|
|
1762
1766
|
}
|
|
1763
|
-
|
|
1767
|
+
if (cEntity.polygon) {
|
|
1764
1768
|
cEntity.polygon.material = cEntity.polygon._orgColor;
|
|
1765
1769
|
}
|
|
1766
|
-
|
|
1770
|
+
if (cEntity.model) {
|
|
1767
1771
|
cEntity.model.color = cEntity.model._orgColor;
|
|
1768
1772
|
}
|
|
1773
|
+
if (cEntity.billboard) {
|
|
1774
|
+
cEntity.billboard.color = cEntity.billboard._orgColor;
|
|
1775
|
+
}
|
|
1769
1776
|
}
|
|
1770
1777
|
}
|
|
1771
1778
|
else if (visual instanceof Primitive) ;
|
|
@@ -2849,6 +2856,7 @@ var MenuItemManager;
|
|
|
2849
2856
|
break;
|
|
2850
2857
|
case MenuItem.EType.Entity:
|
|
2851
2858
|
rItem.renderManager = new EntityRenderManager.Manager(this.viewer, this.visualsRegister, params.apiGetter, params.item);
|
|
2859
|
+
break;
|
|
2852
2860
|
case MenuItem.EType.CadTileset:
|
|
2853
2861
|
rItem.renderManager = new TilesetCadRenderManager.Manager(this.viewer, this.visualsRegister, params.apiGetter, params.item);
|
|
2854
2862
|
break;
|