bruce-cesium 3.0.4 → 3.0.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 -6
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +12 -5
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/bruce-cesium.js +1 -1
- package/dist/lib/rendering/visuals-register.js +11 -4
- package/dist/lib/rendering/visuals-register.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
1
|
import { BruceEvent, Cartes, ProjectViewTile, Carto, Entity as Entity$1, Geometry, Tileset, MathUtils, LRUCache, ZoomControl, Style, EntityTag, Calculator, EntityLod, EntityType, ClientFile, ObjectUtils, Bounds, EntityRelationType, DelayQueue, EntityCoords, Api, EntitySource, MenuItem, EntityRelation, ENVIRONMENT, ProjectView, ProjectViewBookmark, ProjectViewLegacyTile, ProgramKey, Camera, AbstractApi, EntityAttachment, EntityAttachmentType, EntityAttribute } from 'bruce-models';
|
|
2
2
|
import * as Cesium from 'cesium';
|
|
3
|
-
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, JulianDate, HeightReference, DistanceDisplayCondition, NearFarScalar,
|
|
3
|
+
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, JulianDate, SceneMode, Cesium3DTileColorBlendMode, HeadingPitchRange, Entity, Primitive, Cesium3DTileFeature, HeightReference, DistanceDisplayCondition, NearFarScalar, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, CornerType, ShadowMode, PolygonHierarchy, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Model, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, SceneTransforms, OrthographicFrustum, EasingFunction, EllipsoidTerrainProvider, CesiumInspector, defined, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, EllipsoidGeodesic, sampleTerrainMostDetailed, Cesium3DTileset, PolygonPipeline, Matrix4, Matrix3, IonResource, Ion, ScreenSpaceEventHandler, ScreenSpaceEventType, ColorMaterialProperty, GeometryInstance, BoundingSphere, Intersect } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -6401,20 +6401,27 @@ var VisualsRegister;
|
|
|
6401
6401
|
* @returns
|
|
6402
6402
|
*/
|
|
6403
6403
|
Register.prototype.GetRegosFromCursor = function (params) {
|
|
6404
|
-
var _a;
|
|
6404
|
+
var _a, _b;
|
|
6405
6405
|
var cursor = params.cursor;
|
|
6406
6406
|
var found = [];
|
|
6407
6407
|
var width = Math.ceil(EnsureNumber(params.width, 5));
|
|
6408
6408
|
var height = Math.ceil(EnsureNumber(params.height, 5));
|
|
6409
6409
|
var pickLimit = Math.ceil(EnsureNumber(params.pickLimit, 5));
|
|
6410
6410
|
var picked = this.viewer.scene.drillPick(new Cartesian2(cursor.x, cursor.y), pickLimit, width, height);
|
|
6411
|
-
|
|
6411
|
+
var _loop_5 = function (i) {
|
|
6412
6412
|
var object = picked[i];
|
|
6413
6413
|
var entity = (object && object.id && object.id instanceof Entity ? object.id : object);
|
|
6414
6414
|
var visual = entity;
|
|
6415
|
-
if (((_a = visual === null || visual === void 0 ? void 0 : visual._register) === null || _a === void 0 ? void 0 : _a.Id) ==
|
|
6416
|
-
|
|
6415
|
+
if (((_a = visual === null || visual === void 0 ? void 0 : visual._register) === null || _a === void 0 ? void 0 : _a.Id) == this_3.id) {
|
|
6416
|
+
var foundEntityId_1 = (_b = visual._rego) === null || _b === void 0 ? void 0 : _b.entityId;
|
|
6417
|
+
if (foundEntityId_1 && found.findIndex(function (x) { return x.entityId == foundEntityId_1; }) <= -1) {
|
|
6418
|
+
found.push(visual._rego);
|
|
6419
|
+
}
|
|
6417
6420
|
}
|
|
6421
|
+
};
|
|
6422
|
+
var this_3 = this;
|
|
6423
|
+
for (var i = 0; i < picked.length; i++) {
|
|
6424
|
+
_loop_5(i);
|
|
6418
6425
|
}
|
|
6419
6426
|
return {
|
|
6420
6427
|
regos: found
|
|
@@ -18444,7 +18451,7 @@ var ViewerUtils;
|
|
|
18444
18451
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
18445
18452
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
18446
18453
|
|
|
18447
|
-
var VERSION$1 = "3.0.
|
|
18454
|
+
var VERSION$1 = "3.0.6";
|
|
18448
18455
|
|
|
18449
18456
|
export { VERSION$1 as VERSION, CesiumViewMonitor, ViewerUtils, MenuItemManager, EntityRenderEngine, MenuItemCreator, VisualsRegister, RenderManager, EntitiesIdsRenderManager, EntitiesLoadedRenderManager, EntitiesRenderManager, EntityRenderManager, TilesetCadRenderManager, TilesetArbRenderManager, TilesetEntitiesRenderManager, TilesetOsmRenderManager, TilesetPointcloudRenderManager, TilesetGooglePhotosRenderManager, DataSourceStaticKmlManager, RelationsRenderManager, SharedGetters, CesiumParabola, EntityLabel, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, Draw3dPolygon, Draw3dPolyline };
|
|
18450
18457
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|