bruce-models 4.2.3 → 4.2.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-models.es5.js +28 -11
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +28 -11
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/common/bounds.js +28 -10
- package/dist/lib/common/bounds.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -4667,22 +4667,39 @@ var Bounds;
|
|
|
4667
4667
|
minLongitude: null
|
|
4668
4668
|
};
|
|
4669
4669
|
const points = [];
|
|
4670
|
-
|
|
4671
|
-
|
|
4670
|
+
const location = Entity.GetValue({
|
|
4671
|
+
entity: entity,
|
|
4672
|
+
path: ["location"]
|
|
4673
|
+
});
|
|
4674
|
+
if (location) {
|
|
4675
|
+
points.push(location);
|
|
4672
4676
|
}
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4677
|
+
const geometry = Entity.GetValue({
|
|
4678
|
+
entity: entity,
|
|
4679
|
+
path: ["geometry"]
|
|
4680
|
+
});
|
|
4681
|
+
const processGeometry = (geometry, depth = 0) => {
|
|
4682
|
+
if (!geometry || depth > 5) {
|
|
4683
|
+
return;
|
|
4684
|
+
}
|
|
4685
|
+
if (geometry.Point) {
|
|
4686
|
+
points.push(...Geometry.ParsePoints(geometry.Point));
|
|
4676
4687
|
}
|
|
4677
|
-
if (
|
|
4678
|
-
points.push(...Geometry.ParsePoints(
|
|
4688
|
+
if (geometry.LineString) {
|
|
4689
|
+
points.push(...Geometry.ParsePoints(geometry.LineString));
|
|
4679
4690
|
}
|
|
4680
|
-
if (
|
|
4681
|
-
for (const ring of
|
|
4691
|
+
if (geometry.Polygon) {
|
|
4692
|
+
for (const ring of geometry.Polygon) {
|
|
4682
4693
|
points.push(...Geometry.ParsePoints(ring.LinearRing));
|
|
4683
4694
|
}
|
|
4684
4695
|
}
|
|
4685
|
-
|
|
4696
|
+
if (geometry.MultiGeometry) {
|
|
4697
|
+
for (const multiGeometry of geometry.MultiGeometry) {
|
|
4698
|
+
processGeometry(multiGeometry, depth + 1);
|
|
4699
|
+
}
|
|
4700
|
+
}
|
|
4701
|
+
};
|
|
4702
|
+
processGeometry(geometry);
|
|
4686
4703
|
for (const point of points) {
|
|
4687
4704
|
if (bounds.maxLatitude == null || point.latitude > bounds.maxLatitude) {
|
|
4688
4705
|
bounds.maxLatitude = point.latitude;
|
|
@@ -13225,7 +13242,7 @@ var DataSource;
|
|
|
13225
13242
|
})(DataSource || (DataSource = {}));
|
|
13226
13243
|
|
|
13227
13244
|
// This is updated with the package.json version on build.
|
|
13228
|
-
const VERSION = "4.2.
|
|
13245
|
+
const VERSION = "4.2.4";
|
|
13229
13246
|
|
|
13230
13247
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13231
13248
|
//# sourceMappingURL=bruce-models.es5.js.map
|