bruce-cesium 1.3.0 → 1.3.1
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 +18 -2
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +17 -1
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +17 -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,5 +1,5 @@
|
|
|
1
1
|
import { BruceEvent, Cartes, Carto, Geometry, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, DelayQueue, Entity as Entity$1, BatchedDataGetter, EntityRelationType, Tileset, EntityCoords, EntityFilterGetter, EntitySource, EntityRelation, MenuItem, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
|
-
import {
|
|
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, createOsmBuildings, Cesium3DTileStyle, Rectangle, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Cesium3DTileset, IonResource, KmlDataSource, OrthographicFrustum, JulianDate, CallbackProperty, PolygonPipeline, ColorMaterialProperty, Matrix3, EasingFunction, GeometryInstance, EllipsoidGeodesic, sampleTerrainMostDetailed } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -1701,9 +1701,9 @@ var EntityRenderEngine;
|
|
|
1701
1701
|
var outerRing = pRings.find(function (x) { return x.Facing == Geometry.EPolygonRingType.Boundaries; });
|
|
1702
1702
|
var points = Geometry.ParsePoints(outerRing === null || outerRing === void 0 ? void 0 : outerRing.LinearRing);
|
|
1703
1703
|
var posses = points.map(function (x) { return Cartesian3.fromDegrees(EnsureNumber(x.longitude), EnsureNumber(x.latitude), EnsureNumber(x.altitude)); });
|
|
1704
|
+
Cartes.CloseRing3(posses);
|
|
1704
1705
|
var extrusion = getPolygonExtrusion(entity, params.tags, outerRing, posses, heightRef, style);
|
|
1705
1706
|
posses = extrusion.posses;
|
|
1706
|
-
console.log("EXTRUSION", extrusion, style);
|
|
1707
1707
|
var holeRings = pRings.filter(function (x) { return x.Facing == Geometry.EPolygonRingType.Hole; });
|
|
1708
1708
|
var holePosses = holeRings.map(function (x) {
|
|
1709
1709
|
var points = Geometry.ParsePoints(x.LinearRing);
|
|
@@ -1729,8 +1729,24 @@ var EntityRenderEngine;
|
|
|
1729
1729
|
show: false
|
|
1730
1730
|
});
|
|
1731
1731
|
cEntity._siblingGraphics = [];
|
|
1732
|
+
if (width > 0 && bLineColor) {
|
|
1733
|
+
var cEntityBorder = new Entity({
|
|
1734
|
+
polyline: new PolylineGraphics({
|
|
1735
|
+
positions: posses,
|
|
1736
|
+
material: cLineColor,
|
|
1737
|
+
width: width,
|
|
1738
|
+
clampToGround: heightRef == HeightReference.CLAMP_TO_GROUND,
|
|
1739
|
+
classificationType: ClassificationType.TERRAIN,
|
|
1740
|
+
arcType: ArcType.GEODESIC,
|
|
1741
|
+
zIndex: zIndex
|
|
1742
|
+
}),
|
|
1743
|
+
show: false
|
|
1744
|
+
});
|
|
1745
|
+
cEntity._siblingGraphics.push(cEntityBorder);
|
|
1746
|
+
}
|
|
1732
1747
|
for (var i = 0; i < holePosses.length; i++) {
|
|
1733
1748
|
var posses_1 = holePosses[i];
|
|
1749
|
+
Cartes.CloseRing3(posses_1);
|
|
1734
1750
|
var cEntityHole = new Entity({
|
|
1735
1751
|
polyline: new PolylineGraphics({
|
|
1736
1752
|
positions: posses_1,
|