bruce-cesium 2.1.5 → 2.1.6
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 +13 -2
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +12 -1
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +12 -1
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, DelayQueue, BatchedDataGetter, EntityRelationType, EntityCoords, EntityFilterGetter, EntitySource, MenuItem, EntityRelation, ENVIRONMENT, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartesian2, Cartographic, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, SceneMode, Entity, Primitive, Cesium3DTileFeature, HeightReference, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, KmlDataSource,
|
|
3
|
+
import { Cartesian2, Cartographic, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, SceneMode, Entity, Primitive, Cesium3DTileFeature, HeightReference, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, OrthographicFrustum, JulianDate, NearFarScalar, Cesium3DTileset, Matrix4, Matrix3, IonResource, CesiumInspector, ColorMaterialProperty, EasingFunction, GeometryInstance, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -2035,11 +2035,17 @@ var EntityRenderEngine;
|
|
|
2035
2035
|
}
|
|
2036
2036
|
var bColor = style.lineColor ? Calculator.GetColor(style.lineColor, entity, params.tags) : null;
|
|
2037
2037
|
var cColor = bColor ? colorToCColor(bColor) : Color.RED;
|
|
2038
|
+
if (cColor.alpha <= 0) {
|
|
2039
|
+
return null;
|
|
2040
|
+
}
|
|
2038
2041
|
var width = style.lineWidth ? Calculator.GetNumber(style.lineWidth, entity, params.tags) : null;
|
|
2039
2042
|
if (width == null) {
|
|
2040
2043
|
width = 4;
|
|
2041
2044
|
}
|
|
2042
2045
|
width = EnsureNumber(width);
|
|
2046
|
+
if (width < 0.01) {
|
|
2047
|
+
width = 0;
|
|
2048
|
+
}
|
|
2043
2049
|
if (width <= 0) {
|
|
2044
2050
|
return null;
|
|
2045
2051
|
}
|
|
@@ -2135,7 +2141,12 @@ var EntityRenderEngine;
|
|
|
2135
2141
|
width = 4;
|
|
2136
2142
|
}
|
|
2137
2143
|
width = EnsureNumber(width);
|
|
2138
|
-
if (width
|
|
2144
|
+
if (width < 0.01) {
|
|
2145
|
+
width = 0;
|
|
2146
|
+
}
|
|
2147
|
+
// If both outline and fill is not available then don't render anything.
|
|
2148
|
+
if ((width <= 0 || cLineColor.alpha <= 0) &&
|
|
2149
|
+
cFillColor.alpha <= 0) {
|
|
2139
2150
|
return null;
|
|
2140
2151
|
}
|
|
2141
2152
|
var heightRef = getHeightRef(style);
|