bruce-cesium 0.9.6 → 0.9.8
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 +6 -6
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +5 -5
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +5 -5
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/rendering/visuals-register.d.ts +2 -2
- 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, 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, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, OrthographicFrustum, JulianDate,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Color, HeightReference, Cartesian3, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, OrthographicFrustum, JulianDate, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Cesium3DTileset, Cesium3DTileStyle, IonResource, EllipsoidGeodesic, PolygonPipeline, ColorMaterialProperty, Rectangle, Matrix3, EasingFunction, GeometryInstance, KmlDataSource, createOsmBuildings } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2540,7 +2540,7 @@ var VisualsRegister;
|
|
|
2540
2540
|
Register.prototype.GetSelected = function () {
|
|
2541
2541
|
return this.selectedIds;
|
|
2542
2542
|
};
|
|
2543
|
-
Register.prototype.
|
|
2543
|
+
Register.prototype.SetIsolated = function (params) {
|
|
2544
2544
|
var _a;
|
|
2545
2545
|
var entityIds = params.entityIds, isolate = params.isolated;
|
|
2546
2546
|
for (var i = 0; i < entityIds.length; i++) {
|
|
@@ -2575,7 +2575,7 @@ var VisualsRegister;
|
|
|
2575
2575
|
this.isolatedIds = [];
|
|
2576
2576
|
this.updateAllEntities();
|
|
2577
2577
|
};
|
|
2578
|
-
Register.prototype.
|
|
2578
|
+
Register.prototype.SetHidden = function (params) {
|
|
2579
2579
|
var _a;
|
|
2580
2580
|
var entityIds = params.entityIds, hidden = params.hidden;
|
|
2581
2581
|
for (var i = 0; i < entityIds.length; i++) {
|
|
@@ -2635,7 +2635,7 @@ var VisualsRegister;
|
|
|
2635
2635
|
select(this.viewer, rego.visual);
|
|
2636
2636
|
}
|
|
2637
2637
|
var opacity = this.opacity[entityId];
|
|
2638
|
-
if (opacity != null && opacity !=
|
|
2638
|
+
if (opacity != null && opacity != 1) {
|
|
2639
2639
|
EntityUtils.SetOpacity({
|
|
2640
2640
|
entity: rego.visual,
|
|
2641
2641
|
opacity: opacity,
|
|
@@ -2853,7 +2853,7 @@ var VisualsRegister;
|
|
|
2853
2853
|
var rego = regos_2[_b];
|
|
2854
2854
|
if (rego.visual &&
|
|
2855
2855
|
(!menuItemIds || menuItemIds.includes(rego.menuItemId))) {
|
|
2856
|
-
if (params.opacity ==
|
|
2856
|
+
if (params.opacity == 1) {
|
|
2857
2857
|
EntityUtils.RevertOpacity({
|
|
2858
2858
|
entity: rego.visual,
|
|
2859
2859
|
viewer: this.viewer
|
|
@@ -2906,7 +2906,7 @@ var VisualsRegister;
|
|
|
2906
2906
|
}
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
|
-
return totalOpacity ? totalOpacity / totalTicks :
|
|
2909
|
+
return totalOpacity ? totalOpacity / totalTicks : 1;
|
|
2910
2910
|
};
|
|
2911
2911
|
return Register;
|
|
2912
2912
|
}());
|