bruce-cesium 2.3.9 → 2.4.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 +139 -52
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +138 -51
- 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 +118 -45
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entities-ids-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entities-loaded-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entities-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/entities/entity-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/entities/entity-render-manager.js.map +1 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js +2 -1
- package/dist/lib/rendering/render-managers/tilesets/tileset-cad-render-manager.js.map +1 -1
- package/dist/lib/rendering/visuals-register.js +2 -0
- package/dist/lib/rendering/visuals-register.js.map +1 -1
- package/dist/lib/utils/entity-utils.js +7 -0
- package/dist/lib/utils/entity-utils.js.map +1 -1
- package/dist/types/bruce-cesium.d.ts +1 -1
- package/dist/types/rendering/visuals-register.d.ts +1 -0
- 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, 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, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode,
|
|
3
|
+
import { Cartographic, Cartesian2, CallbackProperty, Cartesian3, Color, Rectangle, Math as Math$1, HeightReference, DistanceDisplayCondition, NearFarScalar, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, SceneMode, HeadingPitchRange, Cesium3DTileColorBlendMode, createOsmBuildings, Cesium3DTileStyle, KmlDataSource, OrthographicFrustum, JulianDate, Cesium3DTileset, Matrix4, Matrix3, IonResource, EllipsoidGeodesic, EllipsoidTerrainProvider, sampleTerrainMostDetailed, defined, Model, PolygonPipeline, createWorldTerrain, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, ScreenSpaceEventHandler, ScreenSpaceEventType, CesiumInspector, ColorMaterialProperty, EasingFunction, GeometryInstance, Ion, BoundingSphere } from 'cesium';
|
|
4
4
|
|
|
5
5
|
var TIME_LAG = 300;
|
|
6
6
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -823,6 +823,8 @@ function revertAppliedEntityOpacity(viewer, entity) {
|
|
|
823
823
|
processKey("point", "color");
|
|
824
824
|
processKey("ellipse");
|
|
825
825
|
processKey("model", "color");
|
|
826
|
+
processKey("corridor");
|
|
827
|
+
processKey("billboard", "color");
|
|
826
828
|
}
|
|
827
829
|
else if (entity instanceof Cesium3DTileFeature) {
|
|
828
830
|
var orgOpacity = entity[ORG_OPACITY_KEY];
|
|
@@ -859,6 +861,8 @@ function applyOpacityToEntity(viewer, opacity, entity) {
|
|
|
859
861
|
processKey("point", "color");
|
|
860
862
|
processKey("ellipse");
|
|
861
863
|
processKey("model", "color");
|
|
864
|
+
processKey("corridor");
|
|
865
|
+
processKey("billboard", "color");
|
|
862
866
|
}
|
|
863
867
|
else if (entity instanceof Cesium3DTileFeature) {
|
|
864
868
|
var orgOpacity = entity[ORG_OPACITY_KEY];
|
|
@@ -919,6 +923,9 @@ var EntityUtils;
|
|
|
919
923
|
else if (visual.billboard) {
|
|
920
924
|
visualHeightRef = GetValue(viewer, visual.billboard.heightReference);
|
|
921
925
|
}
|
|
926
|
+
else if (visual.corridor) {
|
|
927
|
+
visualHeightRef = GetValue(viewer, visual.corridor.heightReference);
|
|
928
|
+
}
|
|
922
929
|
else if (visual.ellipse) {
|
|
923
930
|
visualHeightRef = GetValue(viewer, visual.ellipse.heightReference);
|
|
924
931
|
}
|
|
@@ -1642,6 +1649,42 @@ function getValue(viewer, obj) {
|
|
|
1642
1649
|
}
|
|
1643
1650
|
return obj;
|
|
1644
1651
|
}
|
|
1652
|
+
function getName(api, entity) {
|
|
1653
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1654
|
+
var typeId, type, name_1, e_1;
|
|
1655
|
+
return __generator(this, function (_a) {
|
|
1656
|
+
switch (_a.label) {
|
|
1657
|
+
case 0:
|
|
1658
|
+
_a.trys.push([0, 3, , 4]);
|
|
1659
|
+
typeId = entity.Bruce["EntityType.ID"];
|
|
1660
|
+
type = null;
|
|
1661
|
+
if (!typeId) return [3 /*break*/, 2];
|
|
1662
|
+
return [4 /*yield*/, EntityType.Get({
|
|
1663
|
+
api: api,
|
|
1664
|
+
entityTypeId: typeId
|
|
1665
|
+
})];
|
|
1666
|
+
case 1:
|
|
1667
|
+
type = (_a.sent()).entityType;
|
|
1668
|
+
_a.label = 2;
|
|
1669
|
+
case 2:
|
|
1670
|
+
if (type) {
|
|
1671
|
+
name_1 = Entity$1.CalculateName({
|
|
1672
|
+
entity: entity,
|
|
1673
|
+
type: type,
|
|
1674
|
+
defaultToId: false
|
|
1675
|
+
});
|
|
1676
|
+
return [2 /*return*/, name_1 ? name_1 : "Unnamed entity"];
|
|
1677
|
+
}
|
|
1678
|
+
return [3 /*break*/, 4];
|
|
1679
|
+
case 3:
|
|
1680
|
+
e_1 = _a.sent();
|
|
1681
|
+
console.error(e_1);
|
|
1682
|
+
return [3 /*break*/, 4];
|
|
1683
|
+
case 4: return [2 /*return*/, "Unknown entity"];
|
|
1684
|
+
}
|
|
1685
|
+
});
|
|
1686
|
+
});
|
|
1687
|
+
}
|
|
1645
1688
|
function getStyle(api, entity, styleId) {
|
|
1646
1689
|
return __awaiter(this, void 0, void 0, function () {
|
|
1647
1690
|
var style, typeId, type;
|
|
@@ -1975,7 +2018,7 @@ var EntityRenderEngine;
|
|
|
1975
2018
|
(function (Point) {
|
|
1976
2019
|
function Render(params) {
|
|
1977
2020
|
return __awaiter(this, void 0, void 0, function () {
|
|
1978
|
-
var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl, res,
|
|
2021
|
+
var entity, style, type, cEntity, siblings, iconUrlRows, icon, iconUrl, res, e_2, iconScale, heightRef, radius, bFill, cFill, outline, cOutline, outlineWidth, outlineHeight, bOutline, fillHeight, exHeightRef, pos, bColor, cColor, size, heightRef;
|
|
1979
2022
|
return __generator(this, function (_a) {
|
|
1980
2023
|
switch (_a.label) {
|
|
1981
2024
|
case 0:
|
|
@@ -2028,7 +2071,7 @@ var EntityRenderEngine;
|
|
|
2028
2071
|
_a.label = 4;
|
|
2029
2072
|
case 4: return [3 /*break*/, 6];
|
|
2030
2073
|
case 5:
|
|
2031
|
-
|
|
2074
|
+
e_2 = _a.sent();
|
|
2032
2075
|
iconUrl = null;
|
|
2033
2076
|
return [3 /*break*/, 6];
|
|
2034
2077
|
case 6:
|
|
@@ -2173,7 +2216,7 @@ var EntityRenderEngine;
|
|
|
2173
2216
|
function RenderGroup(params) {
|
|
2174
2217
|
var _a, _b, _c;
|
|
2175
2218
|
return __awaiter(this, void 0, void 0, function () {
|
|
2176
|
-
var api, cEntities, i, entity, zoomItem, style, tagIds, tags, pStyle, cEntity;
|
|
2219
|
+
var api, cEntities, i, entity, zoomItem, style, tagIds, tags, pStyle, cEntity, name_2;
|
|
2177
2220
|
return __generator(this, function (_d) {
|
|
2178
2221
|
switch (_d.label) {
|
|
2179
2222
|
case 0:
|
|
@@ -2182,7 +2225,7 @@ var EntityRenderEngine;
|
|
|
2182
2225
|
i = 0;
|
|
2183
2226
|
_d.label = 1;
|
|
2184
2227
|
case 1:
|
|
2185
|
-
if (!(i < params.entities.length)) return [3 /*break*/,
|
|
2228
|
+
if (!(i < params.entities.length)) return [3 /*break*/, 9];
|
|
2186
2229
|
entity = params.entities[i];
|
|
2187
2230
|
zoomItem = params.zoomItems[entity.Bruce.ID];
|
|
2188
2231
|
return [4 /*yield*/, getStyle(api, entity, zoomItem.StyleID)];
|
|
@@ -2211,15 +2254,20 @@ var EntityRenderEngine;
|
|
|
2211
2254
|
})];
|
|
2212
2255
|
case 5:
|
|
2213
2256
|
cEntity = _d.sent();
|
|
2214
|
-
if (cEntity)
|
|
2215
|
-
|
|
2216
|
-
}
|
|
2217
|
-
cEntities[entity.Bruce.ID] = cEntity;
|
|
2218
|
-
_d.label = 6;
|
|
2257
|
+
if (!cEntity) return [3 /*break*/, 7];
|
|
2258
|
+
return [4 /*yield*/, getName(api, entity)];
|
|
2219
2259
|
case 6:
|
|
2260
|
+
name_2 = _d.sent();
|
|
2261
|
+
cEntity.name = name_2;
|
|
2262
|
+
cEntity._renderGroup = getRenderGroupId(zoomItem, (_c = params.viewer) === null || _c === void 0 ? void 0 : _c.terrainProvider);
|
|
2263
|
+
_d.label = 7;
|
|
2264
|
+
case 7:
|
|
2265
|
+
cEntities[entity.Bruce.ID] = cEntity;
|
|
2266
|
+
_d.label = 8;
|
|
2267
|
+
case 8:
|
|
2220
2268
|
i++;
|
|
2221
2269
|
return [3 /*break*/, 1];
|
|
2222
|
-
case
|
|
2270
|
+
case 9: return [2 /*return*/, cEntities];
|
|
2223
2271
|
}
|
|
2224
2272
|
});
|
|
2225
2273
|
});
|
|
@@ -2316,7 +2364,7 @@ var EntityRenderEngine;
|
|
|
2316
2364
|
function RenderGroup(params) {
|
|
2317
2365
|
var _a, _b, _c;
|
|
2318
2366
|
return __awaiter(this, void 0, void 0, function () {
|
|
2319
|
-
var api, cEntities, i, entity, zoomItem, style, tagIds, tags, lStyle, cEntity;
|
|
2367
|
+
var api, cEntities, i, entity, zoomItem, style, tagIds, tags, lStyle, cEntity, name_3;
|
|
2320
2368
|
return __generator(this, function (_d) {
|
|
2321
2369
|
switch (_d.label) {
|
|
2322
2370
|
case 0:
|
|
@@ -2325,7 +2373,7 @@ var EntityRenderEngine;
|
|
|
2325
2373
|
i = 0;
|
|
2326
2374
|
_d.label = 1;
|
|
2327
2375
|
case 1:
|
|
2328
|
-
if (!(i < params.entities.length)) return [3 /*break*/,
|
|
2376
|
+
if (!(i < params.entities.length)) return [3 /*break*/, 7];
|
|
2329
2377
|
entity = params.entities[i];
|
|
2330
2378
|
zoomItem = params.zoomItems[entity.Bruce.ID];
|
|
2331
2379
|
return [4 /*yield*/, getStyle(api, entity, zoomItem.StyleID)];
|
|
@@ -2351,15 +2399,18 @@ var EntityRenderEngine;
|
|
|
2351
2399
|
maxDistance: zoomItem.MaxZoom,
|
|
2352
2400
|
minDistance: zoomItem.MinZoom
|
|
2353
2401
|
});
|
|
2354
|
-
if (cEntity)
|
|
2355
|
-
|
|
2356
|
-
cEntities[entity.Bruce.ID] = cEntity;
|
|
2357
|
-
}
|
|
2358
|
-
_d.label = 5;
|
|
2402
|
+
if (!cEntity) return [3 /*break*/, 6];
|
|
2403
|
+
return [4 /*yield*/, getName(api, entity)];
|
|
2359
2404
|
case 5:
|
|
2405
|
+
name_3 = _d.sent();
|
|
2406
|
+
cEntity.name = name_3;
|
|
2407
|
+
cEntity._renderGroup = getRenderGroupId(zoomItem, (_c = params.viewer) === null || _c === void 0 ? void 0 : _c.terrainProvider);
|
|
2408
|
+
cEntities[entity.Bruce.ID] = cEntity;
|
|
2409
|
+
_d.label = 6;
|
|
2410
|
+
case 6:
|
|
2360
2411
|
i++;
|
|
2361
2412
|
return [3 /*break*/, 1];
|
|
2362
|
-
case
|
|
2413
|
+
case 7: return [2 /*return*/, cEntities];
|
|
2363
2414
|
}
|
|
2364
2415
|
});
|
|
2365
2416
|
});
|
|
@@ -2440,16 +2491,27 @@ var EntityRenderEngine;
|
|
|
2440
2491
|
Cartes.CloseRing3(borderPosses);
|
|
2441
2492
|
}
|
|
2442
2493
|
var cEntityBorder = new Entity({
|
|
2443
|
-
polyline: new PolylineGraphics({
|
|
2494
|
+
// polyline: new Cesium.PolylineGraphics({
|
|
2495
|
+
// positions: borderPosses,
|
|
2496
|
+
// material: <Cesium.MaterialProperty><any>cLineColor,
|
|
2497
|
+
// width: width,
|
|
2498
|
+
// clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
2499
|
+
// classificationType: Cesium.ClassificationType.TERRAIN,
|
|
2500
|
+
// arcType: Cesium.ArcType.GEODESIC,
|
|
2501
|
+
// zIndex: zIndex,
|
|
2502
|
+
// distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
|
|
2503
|
+
// }),
|
|
2504
|
+
corridor: {
|
|
2444
2505
|
positions: borderPosses,
|
|
2445
2506
|
material: cLineColor,
|
|
2507
|
+
heightReference: heightRef,
|
|
2446
2508
|
width: width,
|
|
2447
|
-
|
|
2448
|
-
classificationType: ClassificationType.TERRAIN,
|
|
2449
|
-
arcType: ArcType.GEODESIC,
|
|
2509
|
+
fill: true,
|
|
2450
2510
|
zIndex: zIndex,
|
|
2451
|
-
|
|
2452
|
-
|
|
2511
|
+
classificationType: ClassificationType.TERRAIN,
|
|
2512
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2513
|
+
shadows: ShadowMode.ENABLED
|
|
2514
|
+
},
|
|
2453
2515
|
show: false
|
|
2454
2516
|
});
|
|
2455
2517
|
params.viewer.entities.add(cEntityBorder);
|
|
@@ -2459,16 +2521,27 @@ var EntityRenderEngine;
|
|
|
2459
2521
|
var posses_1 = holePosses[i];
|
|
2460
2522
|
Cartes.CloseRing3(posses_1);
|
|
2461
2523
|
var cEntityHole = new Entity({
|
|
2462
|
-
polyline: new PolylineGraphics({
|
|
2463
|
-
|
|
2524
|
+
// polyline: new Cesium.PolylineGraphics({
|
|
2525
|
+
// positions: posses,
|
|
2526
|
+
// material: <Cesium.MaterialProperty><any>cLineColor,
|
|
2527
|
+
// width: width,
|
|
2528
|
+
// clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
2529
|
+
// classificationType: Cesium.ClassificationType.TERRAIN,
|
|
2530
|
+
// arcType: Cesium.ArcType.GEODESIC,
|
|
2531
|
+
// zIndex: zIndex,
|
|
2532
|
+
// distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance)
|
|
2533
|
+
// }),
|
|
2534
|
+
corridor: {
|
|
2535
|
+
positions: borderPosses,
|
|
2464
2536
|
material: cLineColor,
|
|
2537
|
+
heightReference: heightRef,
|
|
2465
2538
|
width: width,
|
|
2466
|
-
|
|
2467
|
-
classificationType: ClassificationType.TERRAIN,
|
|
2468
|
-
arcType: ArcType.GEODESIC,
|
|
2539
|
+
fill: true,
|
|
2469
2540
|
zIndex: zIndex,
|
|
2470
|
-
|
|
2471
|
-
|
|
2541
|
+
classificationType: ClassificationType.TERRAIN,
|
|
2542
|
+
distanceDisplayCondition: getDisplayCondition(params.minDistance, params.maxDistance),
|
|
2543
|
+
shadows: ShadowMode.ENABLED
|
|
2544
|
+
},
|
|
2472
2545
|
show: false
|
|
2473
2546
|
});
|
|
2474
2547
|
cEntity._siblingGraphics.push(cEntityHole);
|
|
@@ -2483,7 +2556,7 @@ var EntityRenderEngine;
|
|
|
2483
2556
|
function RenderGroup(params) {
|
|
2484
2557
|
var _a, _b, _c;
|
|
2485
2558
|
return __awaiter(this, void 0, void 0, function () {
|
|
2486
|
-
var api, cEntities, i, entity, zoomItem, style, tagIds, tags, pStyle, cEntity;
|
|
2559
|
+
var api, cEntities, i, entity, zoomItem, style, tagIds, tags, pStyle, cEntity, name_4;
|
|
2487
2560
|
return __generator(this, function (_d) {
|
|
2488
2561
|
switch (_d.label) {
|
|
2489
2562
|
case 0:
|
|
@@ -2492,7 +2565,7 @@ var EntityRenderEngine;
|
|
|
2492
2565
|
i = 0;
|
|
2493
2566
|
_d.label = 1;
|
|
2494
2567
|
case 1:
|
|
2495
|
-
if (!(i < params.entities.length)) return [3 /*break*/,
|
|
2568
|
+
if (!(i < params.entities.length)) return [3 /*break*/, 7];
|
|
2496
2569
|
entity = params.entities[i];
|
|
2497
2570
|
zoomItem = params.zoomItems[entity.Bruce.ID];
|
|
2498
2571
|
return [4 /*yield*/, getStyle(api, entity, zoomItem.StyleID)];
|
|
@@ -2518,15 +2591,18 @@ var EntityRenderEngine;
|
|
|
2518
2591
|
maxDistance: zoomItem.MaxZoom,
|
|
2519
2592
|
minDistance: zoomItem.MinZoom
|
|
2520
2593
|
});
|
|
2521
|
-
if (cEntity)
|
|
2522
|
-
|
|
2523
|
-
cEntities[entity.Bruce.ID] = cEntity;
|
|
2524
|
-
}
|
|
2525
|
-
_d.label = 5;
|
|
2594
|
+
if (!cEntity) return [3 /*break*/, 6];
|
|
2595
|
+
return [4 /*yield*/, getName(api, entity)];
|
|
2526
2596
|
case 5:
|
|
2597
|
+
name_4 = _d.sent();
|
|
2598
|
+
cEntity.name = name_4;
|
|
2599
|
+
cEntity._renderGroup = getRenderGroupId(zoomItem, (_c = params.viewer) === null || _c === void 0 ? void 0 : _c.terrainProvider);
|
|
2600
|
+
cEntities[entity.Bruce.ID] = cEntity;
|
|
2601
|
+
_d.label = 6;
|
|
2602
|
+
case 6:
|
|
2527
2603
|
i++;
|
|
2528
2604
|
return [3 /*break*/, 1];
|
|
2529
|
-
case
|
|
2605
|
+
case 7: return [2 /*return*/, cEntities];
|
|
2530
2606
|
}
|
|
2531
2607
|
});
|
|
2532
2608
|
});
|
|
@@ -2674,7 +2750,7 @@ var EntityRenderEngine;
|
|
|
2674
2750
|
case 7:
|
|
2675
2751
|
lodData = (_f.sent()).lods;
|
|
2676
2752
|
_loop_2 = function (i) {
|
|
2677
|
-
var entity, zoomItem, style, tagIds, tags, lod, mStyle, cEntity;
|
|
2753
|
+
var entity, zoomItem, style, tagIds, tags, lod, mStyle, cEntity, name_5;
|
|
2678
2754
|
return __generator(this, function (_g) {
|
|
2679
2755
|
switch (_g.label) {
|
|
2680
2756
|
case 0:
|
|
@@ -2712,11 +2788,15 @@ var EntityRenderEngine;
|
|
|
2712
2788
|
maxDistance: zoomItem.MaxZoom,
|
|
2713
2789
|
minDistance: zoomItem.MinZoom
|
|
2714
2790
|
});
|
|
2715
|
-
if (cEntity)
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2791
|
+
if (!cEntity) return [3 /*break*/, 5];
|
|
2792
|
+
return [4 /*yield*/, getName(api, entity)];
|
|
2793
|
+
case 4:
|
|
2794
|
+
name_5 = _g.sent();
|
|
2795
|
+
cEntity.name = name_5;
|
|
2796
|
+
cEntity._renderGroup = getRenderGroupId(zoomItem, (_e = params.viewer) === null || _e === void 0 ? void 0 : _e.terrainProvider);
|
|
2797
|
+
cEntities[entity.Bruce.ID] = cEntity;
|
|
2798
|
+
_g.label = 5;
|
|
2799
|
+
case 5: return [2 /*return*/];
|
|
2720
2800
|
}
|
|
2721
2801
|
});
|
|
2722
2802
|
};
|
|
@@ -3901,7 +3981,8 @@ var EntitiesRenderManager;
|
|
|
3901
3981
|
entityTypeId: entity.Bruce["EntityType.ID"],
|
|
3902
3982
|
accountId: this.apiGetter.accountId,
|
|
3903
3983
|
tagIds: tagIds ? [].concat(tagIds) : [],
|
|
3904
|
-
suppressShow: wasClustered
|
|
3984
|
+
suppressShow: wasClustered,
|
|
3985
|
+
name: cEntity.name
|
|
3905
3986
|
};
|
|
3906
3987
|
this.visualsManager.AddRego({
|
|
3907
3988
|
rego: rego
|
|
@@ -4144,7 +4225,8 @@ var EntitiesLoadedRenderManager;
|
|
|
4144
4225
|
visual: cEntity,
|
|
4145
4226
|
priority: 0,
|
|
4146
4227
|
entityTypeId: entity.Bruce["EntityType.ID"],
|
|
4147
|
-
accountId: this.apiGetter.accountId
|
|
4228
|
+
accountId: this.apiGetter.accountId,
|
|
4229
|
+
name: cEntity.name
|
|
4148
4230
|
}
|
|
4149
4231
|
});
|
|
4150
4232
|
}
|
|
@@ -4877,6 +4959,7 @@ function select(viewer, visual, color) {
|
|
|
4877
4959
|
"polyline": "material",
|
|
4878
4960
|
"model": "color",
|
|
4879
4961
|
"billboard": "color",
|
|
4962
|
+
"corridor": "material",
|
|
4880
4963
|
"ellipse": "material"
|
|
4881
4964
|
};
|
|
4882
4965
|
var _loop_1 = function (i) {
|
|
@@ -4936,6 +5019,7 @@ function deselect(viewer, visual) {
|
|
|
4936
5019
|
"polyline": "material",
|
|
4937
5020
|
"model": "color",
|
|
4938
5021
|
"billboard": "color",
|
|
5022
|
+
"corridor": "material",
|
|
4939
5023
|
"ellipse": "material"
|
|
4940
5024
|
};
|
|
4941
5025
|
var _loop_2 = function (i) {
|
|
@@ -5719,7 +5803,8 @@ var EntitiesIdsRenderManager;
|
|
|
5719
5803
|
priority: 0,
|
|
5720
5804
|
entityTypeId: entity.Bruce["EntityType.ID"],
|
|
5721
5805
|
accountId: this.apiGetter.accountId,
|
|
5722
|
-
suppressShow: clustered
|
|
5806
|
+
suppressShow: clustered,
|
|
5807
|
+
name: cEntity.name
|
|
5723
5808
|
}
|
|
5724
5809
|
});
|
|
5725
5810
|
}
|
|
@@ -5907,7 +5992,8 @@ var EntityRenderManager;
|
|
|
5907
5992
|
visual: cEntity,
|
|
5908
5993
|
priority: 0,
|
|
5909
5994
|
entityTypeId: entity.Bruce["EntityType.ID"],
|
|
5910
|
-
accountId: this.apiGetter.accountId
|
|
5995
|
+
accountId: this.apiGetter.accountId,
|
|
5996
|
+
name: cEntity.name
|
|
5911
5997
|
}
|
|
5912
5998
|
});
|
|
5913
5999
|
}
|
|
@@ -6987,6 +7073,7 @@ var TilesetCadRenderManager;
|
|
|
6987
7073
|
if (meta) {
|
|
6988
7074
|
rego.entityId = meta.id;
|
|
6989
7075
|
rego.entityTypeId = meta.typeId;
|
|
7076
|
+
rego.name = meta.name;
|
|
6990
7077
|
}
|
|
6991
7078
|
}
|
|
6992
7079
|
}
|
|
@@ -7052,7 +7139,7 @@ var TilesetCadRenderManager;
|
|
|
7052
7139
|
path = [].concat(path);
|
|
7053
7140
|
path.push(branch.id);
|
|
7054
7141
|
if (branch.geomId == geomId) {
|
|
7055
|
-
return { id: path[path.length - 1], typeId: branch.typeId };
|
|
7142
|
+
return { id: path[path.length - 1], typeId: branch.typeId, name: branch.name };
|
|
7056
7143
|
}
|
|
7057
7144
|
else if (branch.children) {
|
|
7058
7145
|
for (var i = 0; i < branch.children.length; i++) {
|
|
@@ -14343,7 +14430,7 @@ var ViewerUtils;
|
|
|
14343
14430
|
ViewerUtils.CreateWidgets = CreateWidgets;
|
|
14344
14431
|
})(ViewerUtils || (ViewerUtils = {}));
|
|
14345
14432
|
|
|
14346
|
-
var VERSION$1 = "2.
|
|
14433
|
+
var VERSION$1 = "2.4.1";
|
|
14347
14434
|
|
|
14348
14435
|
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, ViewRenderEngine, TileRenderEngine, TilesetRenderEngine, CESIUM_INSPECTOR_KEY, ViewUtils, DrawingUtils, MeasureUtils, EntityUtils, Draw3dPolygon, Draw3dPolyline };
|
|
14349
14436
|
//# sourceMappingURL=bruce-cesium.es5.js.map
|