bruce-cesium 1.3.1 → 1.3.2
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 +35 -29
- package/dist/bruce-cesium.es5.js.map +1 -1
- package/dist/bruce-cesium.umd.js +34 -28
- package/dist/bruce-cesium.umd.js.map +1 -1
- package/dist/lib/rendering/entity-render-engine.js +34 -28
- package/dist/lib/rendering/entity-render-engine.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-cesium.umd.js
CHANGED
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
case 2:
|
|
1265
1265
|
if (!(multiGeometry.length > 0)) return [3 /*break*/, 6];
|
|
1266
1266
|
_loop_1 = function (i) {
|
|
1267
|
-
var entity, pParams, zoomItem, j, subEntity, cPoly, rendered, cLines, cPoints,
|
|
1267
|
+
var entity, pParams, zoomItem, j, subEntity, cPoly, rendered, cLines, cPoints, rootEntity_1, firstEntity;
|
|
1268
1268
|
return __generator(this, function (_a) {
|
|
1269
1269
|
switch (_a.label) {
|
|
1270
1270
|
case 0:
|
|
@@ -1300,16 +1300,19 @@
|
|
|
1300
1300
|
rendered = rendered.concat(Object.values(cPoints));
|
|
1301
1301
|
rendered = rendered.filter(function (x) { return x != null; });
|
|
1302
1302
|
if (rendered.length) {
|
|
1303
|
-
|
|
1304
|
-
params.viewer.entities.add(
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
cEntities[entity.Bruce.ID] =
|
|
1303
|
+
rootEntity_1 = new Cesium.Entity({});
|
|
1304
|
+
params.viewer.entities.add(rootEntity_1);
|
|
1305
|
+
rootEntity_1._siblingGraphics = [];
|
|
1306
|
+
rootEntity_1._renderGroup = getRenderGroupId(zoomItem);
|
|
1307
|
+
rootEntity_1._siblingGraphics = rootEntity_1._siblingGraphics.concat(rendered);
|
|
1308
|
+
cEntities[entity.Bruce.ID] = rootEntity_1;
|
|
1309
1309
|
firstEntity = rendered[0];
|
|
1310
1310
|
if (firstEntity) {
|
|
1311
|
-
|
|
1311
|
+
rootEntity_1.position = getValue(params.viewer, firstEntity.position.getValue);
|
|
1312
1312
|
}
|
|
1313
|
+
rendered.forEach(function (child) {
|
|
1314
|
+
child._parentEntity = rootEntity_1;
|
|
1315
|
+
});
|
|
1313
1316
|
}
|
|
1314
1317
|
else {
|
|
1315
1318
|
polygons.push(entity);
|
|
@@ -1726,7 +1729,8 @@
|
|
|
1726
1729
|
show: false
|
|
1727
1730
|
});
|
|
1728
1731
|
cEntity._siblingGraphics = [];
|
|
1729
|
-
|
|
1732
|
+
console.count("POLYGON WIDTH = " + width + ", COLOR = " + (cLineColor === null || cLineColor === void 0 ? void 0 : cLineColor.toCssColorString()));
|
|
1733
|
+
if (width > 0 && cLineColor) {
|
|
1730
1734
|
var cEntityBorder = new Cesium.Entity({
|
|
1731
1735
|
polyline: new Cesium.PolylineGraphics({
|
|
1732
1736
|
positions: posses,
|
|
@@ -1739,26 +1743,28 @@
|
|
|
1739
1743
|
}),
|
|
1740
1744
|
show: false
|
|
1741
1745
|
});
|
|
1746
|
+
params.viewer.entities.add(cEntityBorder);
|
|
1747
|
+
cEntityBorder._parentEntity = cEntity;
|
|
1742
1748
|
cEntity._siblingGraphics.push(cEntityBorder);
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1749
|
+
for (var i = 0; i < holePosses.length; i++) {
|
|
1750
|
+
var posses_1 = holePosses[i];
|
|
1751
|
+
bruceModels.Cartes.CloseRing3(posses_1);
|
|
1752
|
+
var cEntityHole = new Cesium.Entity({
|
|
1753
|
+
polyline: new Cesium.PolylineGraphics({
|
|
1754
|
+
positions: posses_1,
|
|
1755
|
+
material: cLineColor,
|
|
1756
|
+
width: width,
|
|
1757
|
+
clampToGround: heightRef == Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
1758
|
+
classificationType: Cesium.ClassificationType.TERRAIN,
|
|
1759
|
+
arcType: Cesium.ArcType.GEODESIC,
|
|
1760
|
+
zIndex: zIndex
|
|
1761
|
+
}),
|
|
1762
|
+
show: false
|
|
1763
|
+
});
|
|
1764
|
+
cEntity._siblingGraphics.push(cEntityHole);
|
|
1765
|
+
cEntityHole._parentEntity = cEntity;
|
|
1766
|
+
params.viewer.entities.add(cEntityHole);
|
|
1767
|
+
}
|
|
1762
1768
|
}
|
|
1763
1769
|
params.viewer.entities.add(cEntity);
|
|
1764
1770
|
return cEntity;
|