bruce-cesium 1.4.6 → 1.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 +9 -4
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +5 -2
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +4 -2
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/types/rendering/entity-render-engine.d.ts +4 -0
- 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, MenuItem, EntityRelation, ProjectView, ProjectViewBookmark, ProjectViewTile, ProjectViewLegacyTile, ProgramKey, Camera } from 'bruce-models';
|
|
2
|
-
import { Cartesian2, Cartographic, Math as Math$1, Cartesian3, Color, HeightReference, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Cartesian3, Color, HeightReference, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, HeadingPitchRange, Cesium3DTileColorBlendMode, createOsmBuildings, Cesium3DTileStyle, Rectangle, KmlDataSource, CallbackProperty, OrthographicFrustum, JulianDate, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, Matrix4, Cesium3DTileset, IonResource, EllipsoidGeodesic, sampleTerrainMostDetailed, PolygonPipeline, ColorMaterialProperty, Matrix3, EasingFunction, GeometryInstance } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -1913,7 +1913,6 @@ var EntityRenderEngine;
|
|
|
1913
1913
|
if (styleScale <= 0) {
|
|
1914
1914
|
styleScale = 1;
|
|
1915
1915
|
}
|
|
1916
|
-
scale *= styleScale;
|
|
1917
1916
|
var hpr = new HeadingPitchRoll(Math$1.toRadians(heading), Math$1.toRadians(pitch), Math$1.toRadians(roll));
|
|
1918
1917
|
var heightRef = getHeightRef(style);
|
|
1919
1918
|
var pos = EntityUtils.GetPos({
|
|
@@ -1949,7 +1948,7 @@ var EntityRenderEngine;
|
|
|
1949
1948
|
model: {
|
|
1950
1949
|
uri: params.lodUrl,
|
|
1951
1950
|
heightReference: heightRef,
|
|
1952
|
-
scale: scale,
|
|
1951
|
+
scale: scale * styleScale,
|
|
1953
1952
|
shadows: ShadowMode.ENABLED,
|
|
1954
1953
|
colorBlendAmount: blendAmount,
|
|
1955
1954
|
colorBlendMode: blendMode,
|
|
@@ -1961,6 +1960,10 @@ var EntityRenderEngine;
|
|
|
1961
1960
|
});
|
|
1962
1961
|
var model = cEntity.model;
|
|
1963
1962
|
model._clientFileId = params.lodClientFileId;
|
|
1963
|
+
model._entityScale = {
|
|
1964
|
+
record: scale,
|
|
1965
|
+
style: styleScale
|
|
1966
|
+
};
|
|
1964
1967
|
params.viewer.entities.add(cEntity);
|
|
1965
1968
|
return cEntity;
|
|
1966
1969
|
}
|
|
@@ -3220,7 +3223,8 @@ function select(viewer, visual) {
|
|
|
3220
3223
|
"polygon": "material",
|
|
3221
3224
|
"polyline": "material",
|
|
3222
3225
|
"model": "color",
|
|
3223
|
-
"billboard": "color"
|
|
3226
|
+
"billboard": "color",
|
|
3227
|
+
"ellipse": "material"
|
|
3224
3228
|
};
|
|
3225
3229
|
var _loop_1 = function (i) {
|
|
3226
3230
|
var entity = entities[i];
|
|
@@ -3275,7 +3279,8 @@ function deselect(viewer, visual) {
|
|
|
3275
3279
|
"polygon": "material",
|
|
3276
3280
|
"polyline": "material",
|
|
3277
3281
|
"model": "color",
|
|
3278
|
-
"billboard": "color"
|
|
3282
|
+
"billboard": "color",
|
|
3283
|
+
"ellipse": "material"
|
|
3279
3284
|
};
|
|
3280
3285
|
var _loop_2 = function (i) {
|
|
3281
3286
|
var entity = entities[i];
|