bruce-cesium 1.4.2 → 1.4.4
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 +22 -18
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +21 -17
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/tileset-render-engine.js +21 -17
- package/dist/lib/rendering/tileset-render-engine.js.map +1 -1
- package/package.json +2 -2
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 { Cartesian2, Cartographic, Math as Math$1,
|
|
2
|
+
import { Cartesian2, Cartographic, Math as Math$1, Cartesian3, Color, HeightReference, Entity, HorizontalOrigin, VerticalOrigin, ClassificationType, ArcType, PolygonHierarchy, ShadowMode, PolylineGraphics, HeadingPitchRoll, Transforms, ColorBlendMode, Primitive, Cesium3DTileFeature, Cesium3DTileColorBlendMode, HeadingPitchRange, createOsmBuildings, Cesium3DTileStyle, Rectangle, KmlDataSource, CallbackProperty, createWorldTerrain, EllipsoidTerrainProvider, CesiumTerrainProvider, BingMapsImageryProvider, BingMapsStyle, MapboxImageryProvider, MapboxStyleImageryProvider, ArcGisMapServerImageryProvider, OpenStreetMapImageryProvider, GridImageryProvider, GeographicTilingScheme, ImageryLayer, UrlTemplateImageryProvider, TileMapServiceImageryProvider, IonImageryProvider, OrthographicFrustum, JulianDate, EllipsoidGeodesic, sampleTerrainMostDetailed, Matrix4, Cesium3DTileset, IonResource, PolygonPipeline, ColorMaterialProperty, Matrix3, EasingFunction, GeometryInstance } from 'cesium';
|
|
3
3
|
|
|
4
4
|
var TIME_LAG = 300;
|
|
5
5
|
var POSITION_CHECK_TIMER = 950;
|
|
@@ -4518,12 +4518,11 @@ var TilesetRenderEngine;
|
|
|
4518
4518
|
}
|
|
4519
4519
|
};
|
|
4520
4520
|
CadStyler.prototype.processQueue = function () {
|
|
4521
|
-
var _a;
|
|
4522
4521
|
return __awaiter(this, void 0, void 0, function () {
|
|
4523
|
-
var MAX_BATCHES, BATCH_DELAY, batch, rerun, entities,
|
|
4522
|
+
var MAX_BATCHES, BATCH_DELAY, batch, rerun, entities, _loop_1, this_1, i;
|
|
4524
4523
|
var _this = this;
|
|
4525
|
-
return __generator(this, function (
|
|
4526
|
-
switch (
|
|
4524
|
+
return __generator(this, function (_a) {
|
|
4525
|
+
switch (_a.label) {
|
|
4527
4526
|
case 0:
|
|
4528
4527
|
MAX_BATCHES = 2;
|
|
4529
4528
|
BATCH_DELAY = 200;
|
|
@@ -4536,9 +4535,9 @@ var TilesetRenderEngine;
|
|
|
4536
4535
|
this.runningQueues += 1;
|
|
4537
4536
|
batch = [];
|
|
4538
4537
|
rerun = false;
|
|
4539
|
-
|
|
4538
|
+
_a.label = 1;
|
|
4540
4539
|
case 1:
|
|
4541
|
-
|
|
4540
|
+
_a.trys.push([1, , 4, 5]);
|
|
4542
4541
|
batch = this.getEntityIdsForQueue();
|
|
4543
4542
|
if (!(batch.length > 0)) return [3 /*break*/, 3];
|
|
4544
4543
|
return [4 /*yield*/, Entity$1.GetListByIds({
|
|
@@ -4546,16 +4545,21 @@ var TilesetRenderEngine;
|
|
|
4546
4545
|
entityIds: batch
|
|
4547
4546
|
})];
|
|
4548
4547
|
case 2:
|
|
4549
|
-
entities = (
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
|
|
4548
|
+
entities = (_a.sent()).entities;
|
|
4549
|
+
_loop_1 = function (i) {
|
|
4550
|
+
var entityId = batch[i];
|
|
4551
|
+
var record = entities.find(function (e) { var _a; return ((_a = e.Bruce) === null || _a === void 0 ? void 0 : _a.ID) == entityId; });
|
|
4552
|
+
var feature = this_1.getEntityRego(entityId);
|
|
4553
4553
|
if (feature) {
|
|
4554
|
-
|
|
4554
|
+
this_1.styleTilesetFeatureFullData(feature, record);
|
|
4555
4555
|
}
|
|
4556
|
+
};
|
|
4557
|
+
this_1 = this;
|
|
4558
|
+
for (i = 0; i < batch.length; i++) {
|
|
4559
|
+
_loop_1(i);
|
|
4556
4560
|
}
|
|
4557
4561
|
rerun = batch.length > 0;
|
|
4558
|
-
|
|
4562
|
+
_a.label = 3;
|
|
4559
4563
|
case 3: return [3 /*break*/, 5];
|
|
4560
4564
|
case 4:
|
|
4561
4565
|
setTimeout(function () {
|
|
@@ -4591,7 +4595,7 @@ var TilesetRenderEngine;
|
|
|
4591
4595
|
CadStyler.prototype.loadStyles = function () {
|
|
4592
4596
|
var _a, _b;
|
|
4593
4597
|
return __awaiter(this, void 0, void 0, function () {
|
|
4594
|
-
var fallbackStyleId, data, e_1, styleMapping, modelTree, entityTypeIds,
|
|
4598
|
+
var fallbackStyleId, data, e_1, styleMapping, modelTree, entityTypeIds, _loop_2, i, i, styleMap, styleId, entityType, e_2, data, e_3;
|
|
4595
4599
|
return __generator(this, function (_c) {
|
|
4596
4600
|
switch (_c.label) {
|
|
4597
4601
|
case 0:
|
|
@@ -4625,7 +4629,7 @@ var TilesetRenderEngine;
|
|
|
4625
4629
|
modelTree = (_b = (_a = this.cTileset) === null || _a === void 0 ? void 0 : _a.extensions) === null || _b === void 0 ? void 0 : _b.modelTree;
|
|
4626
4630
|
if (modelTree) {
|
|
4627
4631
|
entityTypeIds = this.getEntityTypeIdsFromModelTree(modelTree);
|
|
4628
|
-
|
|
4632
|
+
_loop_2 = function (i) {
|
|
4629
4633
|
var entityTypeId = entityTypeIds[i];
|
|
4630
4634
|
if (styleMapping.findIndex(function (x) { return x.EntityTypeID == entityTypeId; }) <= -1) {
|
|
4631
4635
|
styleMapping.push({
|
|
@@ -4636,7 +4640,7 @@ var TilesetRenderEngine;
|
|
|
4636
4640
|
}
|
|
4637
4641
|
};
|
|
4638
4642
|
for (i = 0; i < entityTypeIds.length; i++) {
|
|
4639
|
-
|
|
4643
|
+
_loop_2(i);
|
|
4640
4644
|
}
|
|
4641
4645
|
}
|
|
4642
4646
|
}
|
|
@@ -4767,7 +4771,7 @@ var TilesetRenderEngine;
|
|
|
4767
4771
|
break;
|
|
4768
4772
|
}
|
|
4769
4773
|
}
|
|
4770
|
-
var
|
|
4774
|
+
var _loop_3 = function (i) {
|
|
4771
4775
|
var hash = batch[i];
|
|
4772
4776
|
var index = _this.recordCheckQueue.findIndex(function (x) { return x == hash; });
|
|
4773
4777
|
if (index > -1) {
|
|
@@ -4775,7 +4779,7 @@ var TilesetRenderEngine;
|
|
|
4775
4779
|
}
|
|
4776
4780
|
};
|
|
4777
4781
|
for (var i = 0; i < batch.length; i++) {
|
|
4778
|
-
|
|
4782
|
+
_loop_3(i);
|
|
4779
4783
|
}
|
|
4780
4784
|
}
|
|
4781
4785
|
if (batch.length) {
|