bruce-cesium 6.4.6 → 6.4.7
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 +10 -5
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +8 -3
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/entity-render-engine.js +7 -2
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.es5.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Cartes, Entity as Entity$1, Calculator, EntityRelationType, EntityType, Style, ENVIRONMENT, ProjectViewTile, DelayQueue, LRUCache, BruceEvent, ObjectUtils, Geometry, EntityHistoricData, EntityLod, ZoomControl, EntityTag, Tileset, Api, EntityCoords, DataLab, EntitySource, ClientFile, MenuItem, EntityRelation, ProgramKey, Bounds, Carto, ProjectView, ProjectViewBookmark,
|
|
1
|
+
import { Cartes, Entity as Entity$1, Calculator, EntityRelationType, EntityType, Style, ENVIRONMENT, ProjectViewTile, DelayQueue, LRUCache, BruceEvent, ObjectUtils, Geometry, EntityHistoricData, EntityLod, ZoomControl, EntityTag, Tileset, Api, EntityCoords, DataLab, EntitySource, ClientFile, MenuItem, EntityRelation, ProgramKey, Bounds, Carto, ProjectView, ProjectViewBookmark, Camera, ProjectViewLegacyTile, AbstractApi, EntityAttachment, EntityAttachmentType, EntityAttribute, MathUtils, Session } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, DistanceDisplayCondition, HeightReference, ColorBlendMode, ShadowMode, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ArcType, CornerType, Cartesian2, SceneTransforms, NearFarScalar, Matrix3, Rectangle,
|
|
3
|
+
import { Cartographic, ColorMaterialProperty, Entity, Color, ConstantProperty, CallbackProperty, Primitive, Cesium3DTileFeature, Math as Math$1, Cartesian3, JulianDate, Quaternion, Transforms, HeadingPitchRoll, Matrix4, DistanceDisplayCondition, HeightReference, ColorBlendMode, ShadowMode, ClassificationType, Model, HorizontalOrigin, VerticalOrigin, ConstantPositionProperty, PolygonHierarchy, PolylineGraphics, ArcType, CornerType, Cartesian2, SceneTransforms, KmlDataSource, NearFarScalar, Matrix3, Rectangle, GeoJsonDataSource, SceneMode, Cesium3DTileStyle, HeadingPitchRange, Cesium3DTileColorBlendMode, Ion, Cesium3DTileset, IonResource, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, IonImageryProvider, createWorldImagery, createWorldImageryAsync, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, UrlTemplateImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, TileMapServiceImageryProvider, CesiumTerrainProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, defined, ModelGraphics, PolygonGraphics, CorridorGraphics, PointGraphics, BillboardGraphics, EllipseGraphics, PolylineDashMaterialProperty, BoundingSphere, GeometryInstance, PolygonPipeline, CesiumInspector, ClockRange, ScreenSpaceEventHandler, ScreenSpaceEventType, Intersect, CzmlDataSource, Fullscreen } from 'cesium';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Ensures a number is returned from a given value.
|
|
@@ -33538,7 +33538,7 @@ var EntityRenderEngine;
|
|
|
33538
33538
|
}
|
|
33539
33539
|
EntityRenderEngine.GetRenderGroupId = GetRenderGroupId;
|
|
33540
33540
|
async function Render(params) {
|
|
33541
|
-
var _a, _b, _c, _d;
|
|
33541
|
+
var _a, _b, _c, _d, _e;
|
|
33542
33542
|
const groupRenderParams = {
|
|
33543
33543
|
apiGetter: params.apiGetter,
|
|
33544
33544
|
viewer: params.viewer,
|
|
@@ -33700,6 +33700,8 @@ var EntityRenderEngine;
|
|
|
33700
33700
|
};
|
|
33701
33701
|
pParams.entitiesHistoric = params.entitiesHistoric;
|
|
33702
33702
|
const zoomItem = pParams.zoomItems[entity.Bruce.ID];
|
|
33703
|
+
// Preserve the full feature extent so tiny child polygons don't get over-culled.
|
|
33704
|
+
const multiGeometryBounds = Bounds.FromEntity(entity);
|
|
33703
33705
|
for (let j = 0; j < geometry.MultiGeometry.length; j++) {
|
|
33704
33706
|
const subEntity = {
|
|
33705
33707
|
...entity,
|
|
@@ -33707,7 +33709,10 @@ var EntityRenderEngine;
|
|
|
33707
33709
|
Bruce: {
|
|
33708
33710
|
...entity.Bruce,
|
|
33709
33711
|
ID: ObjectUtils.UId(),
|
|
33710
|
-
VectorGeometry: geometry.MultiGeometry[j]
|
|
33712
|
+
VectorGeometry: geometry.MultiGeometry[j],
|
|
33713
|
+
Boundaries: multiGeometryBounds ? {
|
|
33714
|
+
...multiGeometryBounds
|
|
33715
|
+
} : (_e = entity.Bruce) === null || _e === void 0 ? void 0 : _e.Boundaries
|
|
33711
33716
|
}
|
|
33712
33717
|
};
|
|
33713
33718
|
pParams.zoomItems[subEntity.Bruce.ID] = zoomItem;
|
|
@@ -35281,7 +35286,7 @@ class WidgetViewBar extends Widget.AWidget {
|
|
|
35281
35286
|
}
|
|
35282
35287
|
}
|
|
35283
35288
|
|
|
35284
|
-
const VERSION = "6.4.
|
|
35289
|
+
const VERSION = "6.4.7";
|
|
35285
35290
|
/**
|
|
35286
35291
|
* Updates the environment instance used by bruce-cesium to one specified.
|
|
35287
35292
|
* This can be used to ensure that the instance a parent is referencing is shared between bruce-cesium, bruce-models, and the parent app.
|