@loaders.gl/3d-tiles 4.0.0-alpha.5 → 4.0.0-alpha.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/bundle.js +2 -2
- package/dist/cesium-ion-loader.d.ts.map +1 -1
- package/dist/cesium-ion-loader.js +37 -32
- package/dist/dist.min.js +3850 -1551
- package/dist/es5/bundle.js +6 -0
- package/dist/es5/bundle.js.map +1 -0
- package/dist/es5/cesium-ion-loader.js +77 -0
- package/dist/es5/cesium-ion-loader.js.map +1 -0
- package/dist/es5/index.js +63 -0
- package/dist/es5/index.js.map +1 -0
- package/dist/es5/lib/classes/helpers/tile-3d-accessor-utils.js +114 -0
- package/dist/es5/lib/classes/helpers/tile-3d-accessor-utils.js.map +1 -0
- package/dist/es5/lib/classes/tile-3d-batch-table-hierarchy.js +180 -0
- package/dist/es5/lib/classes/tile-3d-batch-table-hierarchy.js.map +1 -0
- package/dist/es5/lib/classes/tile-3d-batch-table.js +285 -0
- package/dist/es5/lib/classes/tile-3d-batch-table.js.map +1 -0
- package/dist/es5/lib/classes/tile-3d-feature-table.js +97 -0
- package/dist/es5/lib/classes/tile-3d-feature-table.js.map +1 -0
- package/dist/es5/lib/constants.js +32 -0
- package/dist/es5/lib/constants.js.map +1 -0
- package/dist/es5/lib/encoders/encode-3d-tile-batched-model.js +49 -0
- package/dist/es5/lib/encoders/encode-3d-tile-batched-model.js.map +1 -0
- package/dist/es5/lib/encoders/encode-3d-tile-composite.js +30 -0
- package/dist/es5/lib/encoders/encode-3d-tile-composite.js.map +1 -0
- package/dist/es5/lib/encoders/encode-3d-tile-instanced-model.js +47 -0
- package/dist/es5/lib/encoders/encode-3d-tile-instanced-model.js.map +1 -0
- package/dist/es5/lib/encoders/encode-3d-tile-point-cloud.js +48 -0
- package/dist/es5/lib/encoders/encode-3d-tile-point-cloud.js.map +1 -0
- package/dist/es5/lib/encoders/encode-3d-tile.js +35 -0
- package/dist/es5/lib/encoders/encode-3d-tile.js.map +1 -0
- package/dist/es5/lib/encoders/helpers/encode-3d-tile-header.js +35 -0
- package/dist/es5/lib/encoders/helpers/encode-3d-tile-header.js.map +1 -0
- package/dist/es5/lib/ion/ion.js +170 -0
- package/dist/es5/lib/ion/ion.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/normalize-3d-tile-colors.js +64 -0
- package/dist/es5/lib/parsers/helpers/normalize-3d-tile-colors.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/normalize-3d-tile-normals.js +32 -0
- package/dist/es5/lib/parsers/helpers/normalize-3d-tile-normals.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/normalize-3d-tile-positions.js +32 -0
- package/dist/es5/lib/parsers/helpers/normalize-3d-tile-positions.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-implicit-tiles.js +280 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-implicit-tiles.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-gltf-view.js +96 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-gltf-view.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-header.js +22 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-header.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-subtree.js +145 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-subtree.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-tables.js +85 -0
- package/dist/es5/lib/parsers/helpers/parse-3d-tile-tables.js.map +1 -0
- package/dist/es5/lib/parsers/helpers/parse-utils.js +28 -0
- package/dist/es5/lib/parsers/helpers/parse-utils.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile-batched-model.js +51 -0
- package/dist/es5/lib/parsers/parse-3d-tile-batched-model.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile-composite.js +48 -0
- package/dist/es5/lib/parsers/parse-3d-tile-composite.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile-gltf.js +35 -0
- package/dist/es5/lib/parsers/parse-3d-tile-gltf.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile-header.js +271 -0
- package/dist/es5/lib/parsers/parse-3d-tile-header.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile-instanced-model.js +172 -0
- package/dist/es5/lib/parsers/parse-3d-tile-instanced-model.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile-point-cloud.js +271 -0
- package/dist/es5/lib/parsers/parse-3d-tile-point-cloud.js.map +1 -0
- package/dist/es5/lib/parsers/parse-3d-tile.js +74 -0
- package/dist/es5/lib/parsers/parse-3d-tile.js.map +1 -0
- package/dist/es5/lib/utils/obb/s2-corners-to-obb.js +30 -0
- package/dist/es5/lib/utils/obb/s2-corners-to-obb.js.map +1 -0
- package/dist/es5/lib/utils/s2/converters/s2-to-boundary.js +44 -0
- package/dist/es5/lib/utils/s2/converters/s2-to-boundary.js.map +1 -0
- package/dist/es5/lib/utils/s2/converters/s2-to-obb-points.js +30 -0
- package/dist/es5/lib/utils/s2/converters/s2-to-obb-points.js.map +1 -0
- package/dist/es5/lib/utils/s2/converters/s2-to-region.js +52 -0
- package/dist/es5/lib/utils/s2/converters/s2-to-region.js.map +1 -0
- package/dist/es5/lib/utils/s2/index.js +90 -0
- package/dist/es5/lib/utils/s2/index.js.map +1 -0
- package/dist/es5/lib/utils/s2/s2-geometry-functions.js +19 -0
- package/dist/es5/lib/utils/s2/s2-geometry-functions.js.map +1 -0
- package/dist/es5/lib/utils/s2/s2-token-functions.js +41 -0
- package/dist/es5/lib/utils/s2/s2-token-functions.js.map +1 -0
- package/dist/es5/lib/utils/s2/s2geometry/s2-cell-utils.js +22 -0
- package/dist/es5/lib/utils/s2/s2geometry/s2-cell-utils.js.map +1 -0
- package/dist/es5/lib/utils/s2/s2geometry/s2-geometry.js +207 -0
- package/dist/es5/lib/utils/s2/s2geometry/s2-geometry.js.map +1 -0
- package/dist/es5/lib/utils/version.js +9 -0
- package/dist/es5/lib/utils/version.js.map +1 -0
- package/dist/es5/tile-3d-subtree-loader.js +22 -0
- package/dist/es5/tile-3d-subtree-loader.js.map +1 -0
- package/dist/es5/tile-3d-writer.js +26 -0
- package/dist/es5/tile-3d-writer.js.map +1 -0
- package/dist/es5/tiles-3d-loader.js +134 -0
- package/dist/es5/tiles-3d-loader.js.map +1 -0
- package/dist/es5/types.js +2 -0
- package/dist/es5/types.js.map +1 -0
- package/dist/esm/bundle.js +4 -0
- package/dist/esm/bundle.js.map +1 -0
- package/dist/esm/cesium-ion-loader.js +36 -0
- package/dist/esm/cesium-ion-loader.js.map +1 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lib/classes/helpers/tile-3d-accessor-utils.js +96 -0
- package/dist/esm/lib/classes/helpers/tile-3d-accessor-utils.js.map +1 -0
- package/dist/esm/lib/classes/tile-3d-batch-table-hierarchy.js +171 -0
- package/dist/esm/lib/classes/tile-3d-batch-table-hierarchy.js.map +1 -0
- package/dist/esm/lib/classes/tile-3d-batch-table.js +231 -0
- package/dist/esm/lib/classes/tile-3d-batch-table.js.map +1 -0
- package/dist/esm/lib/classes/tile-3d-feature-table.js +70 -0
- package/dist/esm/lib/classes/tile-3d-feature-table.js.map +1 -0
- package/dist/esm/lib/constants.js +22 -0
- package/dist/esm/lib/constants.js.map +1 -0
- package/dist/esm/lib/encoders/encode-3d-tile-batched-model.js +40 -0
- package/dist/esm/lib/encoders/encode-3d-tile-batched-model.js.map +1 -0
- package/dist/esm/lib/encoders/encode-3d-tile-composite.js +21 -0
- package/dist/esm/lib/encoders/encode-3d-tile-composite.js.map +1 -0
- package/dist/esm/lib/encoders/encode-3d-tile-instanced-model.js +36 -0
- package/dist/esm/lib/encoders/encode-3d-tile-instanced-model.js.map +1 -0
- package/dist/esm/lib/encoders/encode-3d-tile-point-cloud.js +39 -0
- package/dist/esm/lib/encoders/encode-3d-tile-point-cloud.js.map +1 -0
- package/dist/esm/lib/encoders/encode-3d-tile.js +29 -0
- package/dist/esm/lib/encoders/encode-3d-tile.js.map +1 -0
- package/dist/esm/lib/encoders/helpers/encode-3d-tile-header.js +28 -0
- package/dist/esm/lib/encoders/helpers/encode-3d-tile-header.js.map +1 -0
- package/dist/esm/lib/ion/ion.js +70 -0
- package/dist/esm/lib/ion/ion.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/normalize-3d-tile-colors.js +58 -0
- package/dist/esm/lib/parsers/helpers/normalize-3d-tile-colors.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/normalize-3d-tile-normals.js +26 -0
- package/dist/esm/lib/parsers/helpers/normalize-3d-tile-normals.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/normalize-3d-tile-positions.js +26 -0
- package/dist/esm/lib/parsers/helpers/normalize-3d-tile-positions.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-implicit-tiles.js +241 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-implicit-tiles.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-gltf-view.js +59 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-gltf-view.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-header.js +16 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-header.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-subtree.js +67 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-subtree.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-tables.js +80 -0
- package/dist/esm/lib/parsers/helpers/parse-3d-tile-tables.js.map +1 -0
- package/dist/esm/lib/parsers/helpers/parse-utils.js +20 -0
- package/dist/esm/lib/parsers/helpers/parse-utils.js.map +1 -0
- package/dist/esm/lib/parsers/parse-3d-tile-batched-model.js +25 -0
- package/dist/esm/lib/parsers/parse-3d-tile-batched-model.js.map +1 -0
- package/dist/esm/lib/parsers/parse-3d-tile-composite.js +15 -0
- package/dist/esm/lib/parsers/parse-3d-tile-composite.js.map +1 -0
- package/dist/esm/lib/parsers/parse-3d-tile-gltf.js +10 -0
- package/dist/esm/lib/parsers/parse-3d-tile-gltf.js.map +1 -0
- package/dist/esm/lib/parsers/parse-3d-tile-header.js +164 -0
- package/dist/esm/lib/parsers/parse-3d-tile-header.js.map +1 -0
- package/dist/esm/lib/parsers/parse-3d-tile-instanced-model.js +147 -0
- package/dist/{lib → esm/lib}/parsers/parse-3d-tile-instanced-model.js.map +1 -1
- package/dist/esm/lib/parsers/parse-3d-tile-point-cloud.js +211 -0
- package/dist/esm/lib/parsers/parse-3d-tile-point-cloud.js.map +1 -0
- package/dist/esm/lib/parsers/parse-3d-tile.js +30 -0
- package/dist/esm/lib/parsers/parse-3d-tile.js.map +1 -0
- package/dist/esm/lib/utils/obb/s2-corners-to-obb.js +23 -0
- package/dist/esm/lib/utils/obb/s2-corners-to-obb.js.map +1 -0
- package/dist/esm/lib/utils/s2/converters/s2-to-boundary.js +40 -0
- package/dist/esm/lib/utils/s2/converters/s2-to-boundary.js.map +1 -0
- package/dist/esm/lib/utils/s2/converters/s2-to-obb-points.js +24 -0
- package/dist/esm/lib/utils/s2/converters/s2-to-obb-points.js.map +1 -0
- package/dist/esm/lib/utils/s2/converters/s2-to-region.js +42 -0
- package/dist/esm/lib/utils/s2/converters/s2-to-region.js.map +1 -0
- package/dist/esm/lib/utils/s2/index.js +7 -0
- package/dist/esm/lib/utils/s2/index.js.map +1 -0
- package/dist/esm/lib/utils/s2/s2-geometry-functions.js +12 -0
- package/dist/esm/lib/utils/s2/s2-geometry-functions.js.map +1 -0
- package/dist/esm/lib/utils/s2/s2-token-functions.js +32 -0
- package/dist/esm/lib/utils/s2/s2-token-functions.js.map +1 -0
- package/dist/esm/lib/utils/s2/s2geometry/s2-cell-utils.js +15 -0
- package/dist/esm/lib/utils/s2/s2geometry/s2-cell-utils.js.map +1 -0
- package/dist/esm/lib/utils/s2/s2geometry/s2-geometry.js +186 -0
- package/dist/esm/lib/utils/s2/s2geometry/s2-geometry.js.map +1 -0
- package/dist/esm/lib/utils/version.js +2 -0
- package/dist/esm/lib/utils/version.js.map +1 -0
- package/dist/esm/tile-3d-subtree-loader.js +14 -0
- package/dist/esm/tile-3d-subtree-loader.js.map +1 -0
- package/dist/esm/tile-3d-writer.js +19 -0
- package/dist/esm/tile-3d-writer.js.map +1 -0
- package/dist/esm/tiles-3d-loader.js +64 -0
- package/dist/esm/tiles-3d-loader.js.map +1 -0
- package/dist/esm/types.js +2 -0
- package/dist/esm/types.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -9
- package/dist/lib/classes/helpers/tile-3d-accessor-utils.d.ts +1 -1
- package/dist/lib/classes/helpers/tile-3d-accessor-utils.js +106 -89
- package/dist/lib/classes/tile-3d-batch-table-hierarchy.js +184 -202
- package/dist/lib/classes/tile-3d-batch-table.d.ts +1 -1
- package/dist/lib/classes/tile-3d-batch-table.js +223 -282
- package/dist/lib/classes/tile-3d-feature-table.js +64 -86
- package/dist/lib/constants.js +23 -19
- package/dist/lib/encoders/encode-3d-tile-batched-model.js +45 -45
- package/dist/lib/encoders/encode-3d-tile-composite.js +23 -24
- package/dist/lib/encoders/encode-3d-tile-instanced-model.js +37 -37
- package/dist/lib/encoders/encode-3d-tile-point-cloud.js +36 -38
- package/dist/lib/encoders/encode-3d-tile.js +30 -32
- package/dist/lib/encoders/helpers/encode-3d-tile-header.js +28 -29
- package/dist/lib/ion/ion.js +60 -69
- package/dist/lib/parsers/helpers/normalize-3d-tile-colors.js +60 -62
- package/dist/lib/parsers/helpers/normalize-3d-tile-normals.js +26 -26
- package/dist/lib/parsers/helpers/normalize-3d-tile-positions.js +39 -28
- package/dist/lib/parsers/helpers/parse-3d-implicit-tiles.d.ts +11 -0
- package/dist/lib/parsers/helpers/parse-3d-implicit-tiles.d.ts.map +1 -1
- package/dist/lib/parsers/helpers/parse-3d-implicit-tiles.js +247 -203
- package/dist/lib/parsers/helpers/parse-3d-tile-gltf-view.js +82 -63
- package/dist/lib/parsers/helpers/parse-3d-tile-header.js +26 -15
- package/dist/lib/parsers/helpers/parse-3d-tile-subtree.d.ts +2 -1
- package/dist/lib/parsers/helpers/parse-3d-tile-subtree.d.ts.map +1 -1
- package/dist/lib/parsers/helpers/parse-3d-tile-subtree.js +98 -58
- package/dist/lib/parsers/helpers/parse-3d-tile-tables.js +84 -80
- package/dist/lib/parsers/helpers/parse-utils.js +29 -16
- package/dist/lib/parsers/parse-3d-tile-batched-model.js +30 -26
- package/dist/lib/parsers/parse-3d-tile-composite.js +25 -16
- package/dist/lib/parsers/parse-3d-tile-gltf.d.ts +1 -1
- package/dist/lib/parsers/parse-3d-tile-gltf.d.ts.map +1 -1
- package/dist/lib/parsers/parse-3d-tile-gltf.js +17 -9
- package/dist/lib/parsers/parse-3d-tile-header.d.ts +5 -4
- package/dist/lib/parsers/parse-3d-tile-header.d.ts.map +1 -1
- package/dist/lib/parsers/parse-3d-tile-header.js +166 -138
- package/dist/lib/parsers/parse-3d-tile-instanced-model.js +179 -170
- package/dist/lib/parsers/parse-3d-tile-point-cloud.js +350 -184
- package/dist/lib/parsers/parse-3d-tile.js +36 -31
- package/dist/lib/utils/obb/s2-corners-to-obb.d.ts +15 -0
- package/dist/lib/utils/obb/s2-corners-to-obb.d.ts.map +1 -0
- package/dist/lib/utils/obb/s2-corners-to-obb.js +37 -0
- package/dist/lib/utils/s2/converters/s2-to-boundary.d.ts +9 -0
- package/dist/lib/utils/s2/converters/s2-to-boundary.d.ts.map +1 -0
- package/dist/lib/utils/s2/converters/s2-to-boundary.js +61 -0
- package/dist/lib/utils/s2/converters/s2-to-obb-points.d.ts +15 -0
- package/dist/lib/utils/s2/converters/s2-to-obb-points.d.ts.map +1 -0
- package/dist/lib/utils/s2/converters/s2-to-obb-points.js +36 -0
- package/dist/lib/utils/s2/converters/s2-to-region.d.ts +13 -0
- package/dist/lib/utils/s2/converters/s2-to-region.d.ts.map +1 -0
- package/dist/lib/utils/s2/converters/s2-to-region.js +59 -0
- package/dist/lib/utils/s2/index.d.ts +8 -0
- package/dist/lib/utils/s2/index.d.ts.map +1 -0
- package/dist/lib/utils/s2/index.js +23 -0
- package/dist/lib/utils/s2/s2-geometry-functions.d.ts +14 -0
- package/dist/lib/utils/s2/s2-geometry-functions.d.ts.map +1 -0
- package/dist/lib/utils/s2/s2-geometry-functions.js +29 -0
- package/dist/lib/utils/s2/s2-token-functions.d.ts +23 -0
- package/dist/lib/utils/s2/s2-token-functions.d.ts.map +1 -0
- package/dist/lib/utils/s2/s2-token-functions.js +68 -0
- package/dist/lib/utils/s2/s2geometry/s2-cell-utils.d.ts +14 -0
- package/dist/lib/utils/s2/s2geometry/s2-cell-utils.d.ts.map +1 -0
- package/dist/lib/utils/s2/s2geometry/s2-cell-utils.js +32 -0
- package/dist/lib/utils/s2/s2geometry/s2-geometry.d.ts +52 -0
- package/dist/lib/utils/s2/s2geometry/s2-geometry.d.ts.map +1 -0
- package/dist/lib/utils/s2/s2geometry/s2-geometry.js +260 -0
- package/dist/lib/utils/version.js +7 -2
- package/dist/tile-3d-subtree-loader.js +22 -13
- package/dist/tile-3d-writer.js +24 -17
- package/dist/tiles-3d-loader.d.ts.map +1 -1
- package/dist/tiles-3d-loader.js +63 -69
- package/dist/types.d.ts +28 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +2 -2
- package/package.json +12 -11
- package/src/cesium-ion-loader.ts +1 -0
- package/src/index.ts +1 -1
- package/src/lib/parsers/helpers/parse-3d-implicit-tiles.ts +104 -27
- package/src/lib/parsers/helpers/parse-3d-tile-subtree.ts +50 -7
- package/src/lib/parsers/parse-3d-tile-header.ts +91 -23
- package/src/lib/utils/obb/s2-corners-to-obb.ts +51 -0
- package/src/lib/utils/s2/converters/s2-to-boundary.ts +67 -0
- package/src/lib/utils/s2/converters/s2-to-obb-points.ts +46 -0
- package/src/lib/utils/s2/converters/s2-to-region.ts +69 -0
- package/src/lib/utils/s2/index.ts +17 -0
- package/src/lib/utils/s2/s2-geometry-functions.ts +28 -0
- package/src/lib/utils/s2/s2-token-functions.ts +67 -0
- package/src/lib/utils/s2/s2geometry/s2-cell-utils.ts +33 -0
- package/src/lib/utils/s2/s2geometry/s2-geometry.ts +296 -0
- package/src/tiles-3d-loader.ts +2 -16
- package/src/types.ts +20 -5
- package/dist/bundle.js.map +0 -1
- package/dist/cesium-ion-loader.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/classes/helpers/tile-3d-accessor-utils.js.map +0 -1
- package/dist/lib/classes/tile-3d-batch-table-hierarchy.js.map +0 -1
- package/dist/lib/classes/tile-3d-batch-table.js.map +0 -1
- package/dist/lib/classes/tile-3d-feature-table.js.map +0 -1
- package/dist/lib/constants.js.map +0 -1
- package/dist/lib/encoders/encode-3d-tile-batched-model.js.map +0 -1
- package/dist/lib/encoders/encode-3d-tile-composite.js.map +0 -1
- package/dist/lib/encoders/encode-3d-tile-instanced-model.js.map +0 -1
- package/dist/lib/encoders/encode-3d-tile-point-cloud.js.map +0 -1
- package/dist/lib/encoders/encode-3d-tile.js.map +0 -1
- package/dist/lib/encoders/helpers/encode-3d-tile-header.js.map +0 -1
- package/dist/lib/ion/ion.js.map +0 -1
- package/dist/lib/parsers/helpers/normalize-3d-tile-colors.js.map +0 -1
- package/dist/lib/parsers/helpers/normalize-3d-tile-normals.js.map +0 -1
- package/dist/lib/parsers/helpers/normalize-3d-tile-positions.js.map +0 -1
- package/dist/lib/parsers/helpers/parse-3d-implicit-tiles.js.map +0 -1
- package/dist/lib/parsers/helpers/parse-3d-tile-gltf-view.js.map +0 -1
- package/dist/lib/parsers/helpers/parse-3d-tile-header.js.map +0 -1
- package/dist/lib/parsers/helpers/parse-3d-tile-subtree.js.map +0 -1
- package/dist/lib/parsers/helpers/parse-3d-tile-tables.js.map +0 -1
- package/dist/lib/parsers/helpers/parse-utils.js.map +0 -1
- package/dist/lib/parsers/parse-3d-tile-batched-model.js.map +0 -1
- package/dist/lib/parsers/parse-3d-tile-composite.js.map +0 -1
- package/dist/lib/parsers/parse-3d-tile-gltf.js.map +0 -1
- package/dist/lib/parsers/parse-3d-tile-header.js.map +0 -1
- package/dist/lib/parsers/parse-3d-tile-point-cloud.js.map +0 -1
- package/dist/lib/parsers/parse-3d-tile.js.map +0 -1
- package/dist/lib/utils/version.js.map +0 -1
- package/dist/tile-3d-subtree-loader.js.map +0 -1
- package/dist/tile-3d-writer.js.map +0 -1
- package/dist/tiles-3d-loader.js.map +0 -1
- package/dist/types.js.map +0 -1
- /package/src/lib/parsers/{parse-3d-tile-gltf.js → parse-3d-tile-gltf.ts} +0 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.parse3DTile = parse3DTile;
|
|
8
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
+
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
+
var _constants = require("../constants");
|
|
11
|
+
var _parseUtils = require("./helpers/parse-utils");
|
|
12
|
+
var _parse3dTilePointCloud = require("./parse-3d-tile-point-cloud");
|
|
13
|
+
var _parse3dTileBatchedModel = require("./parse-3d-tile-batched-model");
|
|
14
|
+
var _parse3dTileInstancedModel = require("./parse-3d-tile-instanced-model");
|
|
15
|
+
var _parse3dTileComposite = require("./parse-3d-tile-composite");
|
|
16
|
+
var _parse3dTileGltf = require("./parse-3d-tile-gltf");
|
|
17
|
+
function parse3DTile(_x) {
|
|
18
|
+
return _parse3DTile.apply(this, arguments);
|
|
19
|
+
}
|
|
20
|
+
function _parse3DTile() {
|
|
21
|
+
_parse3DTile = (0, _asyncToGenerator2.default)(_regenerator.default.mark(function _callee(arrayBuffer) {
|
|
22
|
+
var byteOffset,
|
|
23
|
+
options,
|
|
24
|
+
context,
|
|
25
|
+
tile,
|
|
26
|
+
_args = arguments;
|
|
27
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
28
|
+
while (1) switch (_context.prev = _context.next) {
|
|
29
|
+
case 0:
|
|
30
|
+
byteOffset = _args.length > 1 && _args[1] !== undefined ? _args[1] : 0;
|
|
31
|
+
options = _args.length > 2 ? _args[2] : undefined;
|
|
32
|
+
context = _args.length > 3 ? _args[3] : undefined;
|
|
33
|
+
tile = _args.length > 4 && _args[4] !== undefined ? _args[4] : {};
|
|
34
|
+
tile.byteOffset = byteOffset;
|
|
35
|
+
tile.type = (0, _parseUtils.getMagicString)(arrayBuffer, byteOffset);
|
|
36
|
+
_context.t0 = tile.type;
|
|
37
|
+
_context.next = _context.t0 === _constants.TILE3D_TYPE.COMPOSITE ? 9 : _context.t0 === _constants.TILE3D_TYPE.BATCHED_3D_MODEL ? 12 : _context.t0 === _constants.TILE3D_TYPE.GLTF ? 15 : _context.t0 === _constants.TILE3D_TYPE.INSTANCED_3D_MODEL ? 18 : _context.t0 === _constants.TILE3D_TYPE.POINT_CLOUD ? 21 : 24;
|
|
38
|
+
break;
|
|
39
|
+
case 9:
|
|
40
|
+
_context.next = 11;
|
|
41
|
+
return (0, _parse3dTileComposite.parseComposite3DTile)(tile, arrayBuffer, byteOffset, options, context, parse3DTile);
|
|
42
|
+
case 11:
|
|
43
|
+
return _context.abrupt("return", _context.sent);
|
|
44
|
+
case 12:
|
|
45
|
+
_context.next = 14;
|
|
46
|
+
return (0, _parse3dTileBatchedModel.parseBatchedModel3DTile)(tile, arrayBuffer, byteOffset, options, context);
|
|
47
|
+
case 14:
|
|
48
|
+
return _context.abrupt("return", _context.sent);
|
|
49
|
+
case 15:
|
|
50
|
+
_context.next = 17;
|
|
51
|
+
return (0, _parse3dTileGltf.parseGltf3DTile)(tile, arrayBuffer, options, context);
|
|
52
|
+
case 17:
|
|
53
|
+
return _context.abrupt("return", _context.sent);
|
|
54
|
+
case 18:
|
|
55
|
+
_context.next = 20;
|
|
56
|
+
return (0, _parse3dTileInstancedModel.parseInstancedModel3DTile)(tile, arrayBuffer, byteOffset, options, context);
|
|
57
|
+
case 20:
|
|
58
|
+
return _context.abrupt("return", _context.sent);
|
|
59
|
+
case 21:
|
|
60
|
+
_context.next = 23;
|
|
61
|
+
return (0, _parse3dTilePointCloud.parsePointCloud3DTile)(tile, arrayBuffer, byteOffset, options, context);
|
|
62
|
+
case 23:
|
|
63
|
+
return _context.abrupt("return", _context.sent);
|
|
64
|
+
case 24:
|
|
65
|
+
throw new Error("3DTileLoader: unknown type ".concat(tile.type));
|
|
66
|
+
case 25:
|
|
67
|
+
case "end":
|
|
68
|
+
return _context.stop();
|
|
69
|
+
}
|
|
70
|
+
}, _callee);
|
|
71
|
+
}));
|
|
72
|
+
return _parse3DTile.apply(this, arguments);
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=parse-3d-tile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parse-3d-tile.js","names":["_constants","require","_parseUtils","_parse3dTilePointCloud","_parse3dTileBatchedModel","_parse3dTileInstancedModel","_parse3dTileComposite","_parse3dTileGltf","parse3DTile","_x","_parse3DTile","apply","arguments","_asyncToGenerator2","default","_regenerator","mark","_callee","arrayBuffer","byteOffset","options","context","tile","_args","wrap","_callee$","_context","prev","next","length","undefined","type","getMagicString","t0","TILE3D_TYPE","COMPOSITE","BATCHED_3D_MODEL","GLTF","INSTANCED_3D_MODEL","POINT_CLOUD","parseComposite3DTile","abrupt","sent","parseBatchedModel3DTile","parseGltf3DTile","parseInstancedModel3DTile","parsePointCloud3DTile","Error","concat","stop"],"sources":["../../../../src/lib/parsers/parse-3d-tile.ts"],"sourcesContent":["// This file is derived from the Cesium code base under Apache 2 license\n// See LICENSE.md and https://github.com/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md\n\nimport {TILE3D_TYPE} from '../constants';\nimport {getMagicString} from './helpers/parse-utils';\n\nimport {parsePointCloud3DTile} from './parse-3d-tile-point-cloud';\nimport {parseBatchedModel3DTile} from './parse-3d-tile-batched-model';\nimport {parseInstancedModel3DTile} from './parse-3d-tile-instanced-model';\nimport {parseComposite3DTile} from './parse-3d-tile-composite';\nimport {parseGltf3DTile} from './parse-3d-tile-gltf';\n\n// Extracts\nexport async function parse3DTile(arrayBuffer, byteOffset = 0, options, context, tile = {}) {\n // @ts-expect-error\n tile.byteOffset = byteOffset;\n // @ts-expect-error\n tile.type = getMagicString(arrayBuffer, byteOffset);\n\n // @ts-expect-error\n switch (tile.type) {\n case TILE3D_TYPE.COMPOSITE:\n // Note: We pass this function as argument so that embedded tiles can be parsed recursively\n return await parseComposite3DTile(\n tile,\n arrayBuffer,\n byteOffset,\n options,\n context,\n parse3DTile\n );\n\n case TILE3D_TYPE.BATCHED_3D_MODEL:\n return await parseBatchedModel3DTile(tile, arrayBuffer, byteOffset, options, context);\n\n case TILE3D_TYPE.GLTF:\n return await parseGltf3DTile(tile, arrayBuffer, options, context);\n\n case TILE3D_TYPE.INSTANCED_3D_MODEL:\n return await parseInstancedModel3DTile(tile, arrayBuffer, byteOffset, options, context);\n\n case TILE3D_TYPE.POINT_CLOUD:\n return await parsePointCloud3DTile(tile, arrayBuffer, byteOffset, options, context);\n\n default:\n // @ts-expect-error\n throw new Error(`3DTileLoader: unknown type ${tile.type}`); // eslint-disable-line\n }\n}\n"],"mappings":";;;;;;;;;AAGA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,wBAAA,GAAAH,OAAA;AACA,IAAAI,0BAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAAqD,SAG/BO,WAAWA,CAAAC,EAAA;EAAA,OAAAC,YAAA,CAAAC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|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.convertS2BoundingVolumetoOBB = convertS2BoundingVolumetoOBB;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _core = require("@math.gl/core");
|
|
10
|
+
var _culling = require("@math.gl/culling");
|
|
11
|
+
var _index = require("../../utils/s2/index");
|
|
12
|
+
var _geospatial = require("@math.gl/geospatial");
|
|
13
|
+
function convertS2BoundingVolumetoOBB(s2VolumeInfo) {
|
|
14
|
+
var token = s2VolumeInfo.token;
|
|
15
|
+
var heightInfo = {
|
|
16
|
+
minimumHeight: s2VolumeInfo.minimumHeight,
|
|
17
|
+
maximumHeight: s2VolumeInfo.maximumHeight
|
|
18
|
+
};
|
|
19
|
+
var corners = (0, _index.getS2OrientedBoundingBoxCornerPoints)(token, heightInfo);
|
|
20
|
+
var center = (0, _index.getS2LngLat)(token);
|
|
21
|
+
var centerLng = center[0];
|
|
22
|
+
var centerLat = center[1];
|
|
23
|
+
var point = _geospatial.Ellipsoid.WGS84.cartographicToCartesian([centerLng, centerLat, heightInfo.maximumHeight]);
|
|
24
|
+
var centerPointAdditional = new _core.Vector3(point[0], point[1], point[2]);
|
|
25
|
+
corners.push(centerPointAdditional);
|
|
26
|
+
var obb = (0, _culling.makeOrientedBoundingBoxFromPoints)(corners);
|
|
27
|
+
var box = [].concat((0, _toConsumableArray2.default)(obb.center), (0, _toConsumableArray2.default)(obb.halfAxes));
|
|
28
|
+
return box;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=s2-corners-to-obb.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-corners-to-obb.js","names":["_core","require","_culling","_index","_geospatial","convertS2BoundingVolumetoOBB","s2VolumeInfo","token","heightInfo","minimumHeight","maximumHeight","corners","getS2OrientedBoundingBoxCornerPoints","center","getS2LngLat","centerLng","centerLat","point","Ellipsoid","WGS84","cartographicToCartesian","centerPointAdditional","Vector3","push","obb","makeOrientedBoundingBoxFromPoints","box","concat","_toConsumableArray2","default","halfAxes"],"sources":["../../../../../src/lib/utils/obb/s2-corners-to-obb.ts"],"sourcesContent":["import {Vector3} from '@math.gl/core';\nimport {OrientedBoundingBox, makeOrientedBoundingBoxFromPoints} from '@math.gl/culling';\n\nimport type {S2HeightInfo} from '../../utils/s2/index';\nimport {getS2OrientedBoundingBoxCornerPoints} from '../../utils/s2/index';\n\nimport {getS2LngLat} from '../../utils/s2/index';\nimport {Ellipsoid} from '@math.gl/geospatial';\n\nexport type S2VolumeInfo = {\n /** S2 key or token */\n token: string;\n /** minimum height in meters */\n minimumHeight: number;\n /** maximum height in meters */\n maximumHeight: number;\n};\n\n/**\n * Converts S2VolumeInfo to OrientedBoundingBox\n * @param {S2VolumeInfo} s2VolumeInfo - s2 volume to convert\n * @returns Oriented Bounding Box of type Box\n */\nexport function convertS2BoundingVolumetoOBB(s2VolumeInfo: S2VolumeInfo): number[] {\n const token: string = s2VolumeInfo.token;\n const heightInfo: S2HeightInfo = {\n minimumHeight: s2VolumeInfo.minimumHeight,\n maximumHeight: s2VolumeInfo.maximumHeight\n };\n\n const corners: Vector3[] = getS2OrientedBoundingBoxCornerPoints(token, heightInfo);\n\n // Add a point that doesn't allow the box dive under the Earth\n\n const center = getS2LngLat(token);\n const centerLng: number = center[0];\n const centerLat: number = center[1];\n const point = Ellipsoid.WGS84.cartographicToCartesian([\n centerLng,\n centerLat,\n heightInfo.maximumHeight\n ]);\n const centerPointAdditional = new Vector3(point[0], point[1], point[2]);\n corners.push(centerPointAdditional);\n\n // corners should be an array of Vector3 (XYZ)\n const obb: OrientedBoundingBox = makeOrientedBoundingBoxFromPoints(corners);\n const box: number[] = [...obb.center, ...obb.halfAxes];\n\n return box;\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,K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|
+
exports.getS2BoundaryFlatFromS2Cell = getS2BoundaryFlatFromS2Cell;
|
|
7
|
+
var _s2Geometry = require("../s2geometry/s2-geometry");
|
|
8
|
+
var MAX_RESOLUTION = 100;
|
|
9
|
+
function getS2BoundaryFlatFromS2Cell(s2cell) {
|
|
10
|
+
var face = s2cell.face,
|
|
11
|
+
ij = s2cell.ij,
|
|
12
|
+
level = s2cell.level;
|
|
13
|
+
var offsets = [[0, 0], [0, 1], [1, 1], [1, 0], [0, 0]];
|
|
14
|
+
var resolution = Math.max(1, Math.ceil(MAX_RESOLUTION * Math.pow(2, -level)));
|
|
15
|
+
var result = new Float64Array(4 * resolution * 2 + 2);
|
|
16
|
+
var ptIndex = 0;
|
|
17
|
+
var prevLng = 0;
|
|
18
|
+
for (var i = 0; i < 4; i++) {
|
|
19
|
+
var offset = offsets[i].slice(0);
|
|
20
|
+
var nextOffset = offsets[i + 1];
|
|
21
|
+
var stepI = (nextOffset[0] - offset[0]) / resolution;
|
|
22
|
+
var stepJ = (nextOffset[1] - offset[1]) / resolution;
|
|
23
|
+
for (var j = 0; j < resolution; j++) {
|
|
24
|
+
offset[0] += stepI;
|
|
25
|
+
offset[1] += stepJ;
|
|
26
|
+
var st = (0, _s2Geometry.IJToST)(ij, level, offset);
|
|
27
|
+
var uv = (0, _s2Geometry.STToUV)(st);
|
|
28
|
+
var xyz = (0, _s2Geometry.FaceUVToXYZ)(face, uv);
|
|
29
|
+
var lngLat = (0, _s2Geometry.XYZToLngLat)(xyz);
|
|
30
|
+
if (Math.abs(lngLat[1]) > 89.999) {
|
|
31
|
+
lngLat[0] = prevLng;
|
|
32
|
+
}
|
|
33
|
+
var deltaLng = lngLat[0] - prevLng;
|
|
34
|
+
lngLat[0] += deltaLng > 180 ? -360 : deltaLng < -180 ? 360 : 0;
|
|
35
|
+
result[ptIndex++] = lngLat[0];
|
|
36
|
+
result[ptIndex++] = lngLat[1];
|
|
37
|
+
prevLng = lngLat[0];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
result[ptIndex++] = result[0];
|
|
41
|
+
result[ptIndex++] = result[1];
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=s2-to-boundary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-to-boundary.js","names":["_s2Geometry","require","MAX_RESOLUTION","getS2BoundaryFlatFromS2Cell","s2cell","face","ij","level","offsets","resolution","Math","max","ceil","pow","result","Float64Array","ptIndex","prevLng","i","offset","slice","nextOffset","stepI","stepJ","j","st","IJToST","uv","STToUV","xyz","FaceUVToXYZ","lngLat","XYZToLngLat","abs","deltaLng"],"sources":["../../../../../../src/lib/utils/s2/converters/s2-to-boundary.ts"],"sourcesContent":["import type {S2Cell} from '../s2geometry/s2-geometry';\nimport {IJToST, STToUV, FaceUVToXYZ, XYZToLngLat} from '../s2geometry/s2-geometry';\n\nconst MAX_RESOLUTION = 100;\n\n/**\n * Get a polygon with corner coordinates for an S2 cell\n * @param s2cell {S2Cell} S2 cell\n * @return {Float64Array} - a simple polygon in flat array format: [lng0, lat0, lng1, lat1, ...]\n * - the polygon is closed, i.e. last coordinate is a copy of the first coordinate\n */\n// eslint-disable-next-line max-statements\nexport function getS2BoundaryFlatFromS2Cell(s2cell: S2Cell): Float64Array {\n const {face, ij, level} = s2cell;\n const offsets = [\n [0, 0],\n [0, 1],\n [1, 1],\n [1, 0],\n [0, 0]\n ];\n\n // The S2 cell edge is curved: http://s2geometry.io/\n // This is more prominent at lower levels\n // resolution is the number of segments to generate per edge.\n // We exponentially reduce resolution as level increases so it doesn't affect perf\n // when there are a large number of cells\n const resolution = Math.max(1, Math.ceil(MAX_RESOLUTION * Math.pow(2, -level)));\n const result = new Float64Array(4 * resolution * 2 + 2);\n let ptIndex = 0;\n let prevLng = 0;\n\n for (let i = 0; i < 4; i++) {\n const offset = offsets[i].slice(0) as [number, number];\n const nextOffset = offsets[i + 1];\n const stepI = (nextOffset[0] - offset[0]) / resolution;\n const stepJ = (nextOffset[1] - offset[1]) / resolution;\n\n for (let j = 0; j < resolution; j++) {\n offset[0] += stepI;\n offset[1] += stepJ;\n // Cell can be represented by coordinates IJ, ST, UV, XYZ\n // http://s2geometry.io/devguide/s2cell_hierarchy#coordinate-systems\n const st = IJToST(ij, level, offset);\n const uv = STToUV(st);\n const xyz = FaceUVToXYZ(face, uv);\n const lngLat = XYZToLngLat(xyz);\n\n // Adjust longitude for Web Mercator projection\n\n if (Math.abs(lngLat[1]) > 89.999) {\n lngLat[0] = prevLng;\n }\n\n const deltaLng = lngLat[0] - prevLng;\n lngLat[0] += deltaLng > 180 ? -360 : deltaLng < -180 ? 360 : 0;\n\n result[ptIndex++] = lngLat[0];\n result[ptIndex++] = lngLat[1];\n prevLng = lngLat[0];\n }\n }\n // close the loop\n result[ptIndex++] = result[0];\n result[ptIndex++] = result[1];\n return result;\n}\n"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEA,IAAMC,cAAc,GAAG,GAAG;AASnB,SAASC,2BAA2BA,CAACC,MAAc,EAAgB;EACxE,IAAOC,IAAI,GAAeD,MAAM,CAAzBC,IAAI;IAAEC,EAAE,GAAWF,MAAM,CAAnBE,EAAE;IAAEC,KAAK,GAAIH,MAAM,CAAfG,KAAK;EACtB,IAAMC,OAAO,GAAG,CACd,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CAAC,CAAC,EAAE,CAAC,CAAC,CACP;EAOD,IAAMC,UAAU,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,IAAI,CAACV,cAAc,GAAGQ,IAAI,CAACG,GAAG,CAAC,CAAC,EAAE,CAACN,KAAK,CAAC,CAAC,CAAC;EAC/E,IAAMO,MAAM,GAAG,IAAIC,YAAY,CAAC,CAAC,GAAGN,UA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GAAG,GAAG,GAAG,CAAC,GAAG,GAAGA,QAAQ,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC;MAE9DpB,MAAM,CAACE,OAAO,EAAE,CAAC,GAAGe,MAAM,CAAC,CAAC,CAAC;MAC7BjB,MAAM,CAACE,OAAO,EAAE,CAAC,GAAGe,MAAM,CAAC,CAAC,CAAC;MAC7Bd,OAAO,GAAGc,MAAM,CAAC,CAAC,CAAC;IACrB;EACF;EAEAjB,MAAM,CAACE,OAAO,EAAE,CAAC,GAAGF,MAAM,CAAC,CAAC,CAAC;EAC7BA,MAAM,CAACE,OAAO,EAAE,CAAC,GAAGF,MAAM,CAAC,CAAC,CAAC;EAC7B,OAAOA,MAAM;AACf"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getS2OrientedBoundingBoxCornerPoints = getS2OrientedBoundingBoxCornerPoints;
|
|
7
|
+
var _s2CellUtils = require("../s2geometry/s2-cell-utils");
|
|
8
|
+
var _s2ToRegion = require("./s2-to-region");
|
|
9
|
+
var _core = require("@math.gl/core");
|
|
10
|
+
function getS2OrientedBoundingBoxCornerPoints(tokenOrKey, heightInfo) {
|
|
11
|
+
var min = (heightInfo === null || heightInfo === void 0 ? void 0 : heightInfo.minimumHeight) || 0;
|
|
12
|
+
var max = (heightInfo === null || heightInfo === void 0 ? void 0 : heightInfo.maximumHeight) || 0;
|
|
13
|
+
var s2cell = (0, _s2CellUtils.getS2Cell)(tokenOrKey);
|
|
14
|
+
var region = (0, _s2ToRegion.getS2Region)(s2cell);
|
|
15
|
+
var W = region.west;
|
|
16
|
+
var S = region.south;
|
|
17
|
+
var E = region.east;
|
|
18
|
+
var N = region.north;
|
|
19
|
+
var points = [];
|
|
20
|
+
points.push(new _core.Vector3(W, N, min));
|
|
21
|
+
points.push(new _core.Vector3(E, N, min));
|
|
22
|
+
points.push(new _core.Vector3(E, S, min));
|
|
23
|
+
points.push(new _core.Vector3(W, S, min));
|
|
24
|
+
points.push(new _core.Vector3(W, N, max));
|
|
25
|
+
points.push(new _core.Vector3(E, N, max));
|
|
26
|
+
points.push(new _core.Vector3(E, S, max));
|
|
27
|
+
points.push(new _core.Vector3(W, S, max));
|
|
28
|
+
return points;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=s2-to-obb-points.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-to-obb-points.js","names":["_s2CellUtils","require","_s2ToRegion","_core","getS2OrientedBoundingBoxCornerPoints","tokenOrKey","heightInfo","min","minimumHeight","max","maximumHeight","s2cell","getS2Cell","region","getS2Region","W","west","S","south","E","east","N","north","points","push","Vector3"],"sources":["../../../../../../src/lib/utils/s2/converters/s2-to-obb-points.ts"],"sourcesContent":["import {getS2Cell} from '../s2geometry/s2-cell-utils';\nimport {getS2Region} from './s2-to-region';\nimport {Vector3} from '@math.gl/core';\n\nexport type S2HeightInfo = {\n minimumHeight: number;\n maximumHeight: number;\n};\n\n/**\n * Converts S2HeightInfo to corner points of an oriented bounding box\n * Can be used to constuct an OrientedBoundingBox instance\n * @param tokenOrKey {string} A string that is the cell's hex token or the Hilbert quad key (containing /)\n * @param heightInfo {S2HeightInfo} min and max height of the box\n * @returns corner points of the oriented bounding box\n */\nexport function getS2OrientedBoundingBoxCornerPoints(\n tokenOrKey: string, // This can be an S2 key or token\n heightInfo?: S2HeightInfo\n): Vector3[] {\n const min: number = heightInfo?.minimumHeight || 0;\n const max: number = heightInfo?.maximumHeight || 0;\n\n const s2cell = getS2Cell(tokenOrKey);\n const region = getS2Region(s2cell);\n\n // region lng/lat are in degrees\n const W = region.west;\n const S = region.south;\n const E = region.east;\n const N = region.north;\n\n const points: Vector3[] = [];\n\n points.push(new Vector3(W, N, min));\n points.push(new Vector3(E, N, min));\n points.push(new Vector3(E, S, min));\n points.push(new Vector3(W, S, min));\n\n points.push(new Vector3(W, N, max));\n points.push(new Vector3(E, N, max));\n points.push(new Vector3(E, S, max));\n points.push(new Vector3(W, S, max));\n\n return points;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AAcO,SAASG,oCAAoCA,CAClDC,UAAkB,EAClBC,UAAyB,EACd;EACX,IAAMC,GAAW,GAAG,CAAAD,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEE,aAAa,KAAI,CAAC;EAClD,IAAMC,GAAW,GAAG,CAAAH,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAEI,aAAa,KAAI,CAAC;EAElD,IAAMC,MAAM,GAAG,IAAAC,sBAAS,EAACP,UAAU,CAAC;EACpC,IAAMQ,MAAM,GAAG,IAAAC,uBAAW,EAACH,MAAM,CAAC;EAGlC,IAAMI,CAAC,GAAGF,MAAM,CAACG,IAAI;EACrB,IAAMC,CAAC,GAAGJ,MAAM,CAACK,KAAK;EACtB,IAAMC,CAAC,GAAGN,MAAM,CAACO,IAAI;EACrB,IAAMC,CAAC,GAAGR,MAAM,CAACS,KAAK;EAEtB,IAAMC,MAAiB,GAAG,EAAE;EAE5BA,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACV,CAAC,EAAEM,CAAC,EAAEd,GAAG,CAAC,CAAC;EACnCgB,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACN,CAAC,EAAEE,CAAC,EAAEd,GAAG,CAAC,CAAC;EACnCgB,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACN,CAAC,EAAEF,CAAC,EAAEV,GAAG,CAAC,CAAC;EACnCgB,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACV,CAAC,EAAEE,CAAC,EAAEV,GAAG,CAAC,CAAC;EAEnCgB,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACV,CAAC,EAAEM,CAAC,EAAEZ,GAAG,CAAC,CAAC;EACnCc,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACN,CAAC,EAAEE,CAAC,EAAEZ,GAAG,CAAC,CAAC;EACnCc,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACN,CAAC,EAAEF,CAAC,EAAER,GAAG,CAAC,CAAC;EACnCc,MAAM,CAACC,IAAI,CAAC,IAAIC,aAAO,CAACV,CAAC,EAAEE,CAAC,EAAER,GAAG,CAAC,CAAC;EAEnC,OAAOc,MAAM;AACf"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getS2Region = getS2Region;
|
|
7
|
+
var _s2ToBoundary = require("./s2-to-boundary");
|
|
8
|
+
var _s2CellUtils = require("../s2geometry/s2-cell-utils");
|
|
9
|
+
function getS2Region(s2cell) {
|
|
10
|
+
var region;
|
|
11
|
+
if (s2cell.face === 2 || s2cell.face === 5) {
|
|
12
|
+
var corners = null;
|
|
13
|
+
var len = 0;
|
|
14
|
+
for (var i = 0; i < 4; i++) {
|
|
15
|
+
var key = "".concat(s2cell.face, "/").concat(i);
|
|
16
|
+
var cell = (0, _s2CellUtils.getS2Cell)(key);
|
|
17
|
+
var corns = (0, _s2ToBoundary.getS2BoundaryFlatFromS2Cell)(cell);
|
|
18
|
+
if (typeof corners === 'undefined' || corners === null) corners = new Float64Array(4 * corns.length);
|
|
19
|
+
corners.set(corns, len);
|
|
20
|
+
len += corns.length;
|
|
21
|
+
}
|
|
22
|
+
region = get2DRegionFromS2Corners(corners);
|
|
23
|
+
} else {
|
|
24
|
+
var _corners = (0, _s2ToBoundary.getS2BoundaryFlatFromS2Cell)(s2cell);
|
|
25
|
+
region = get2DRegionFromS2Corners(_corners);
|
|
26
|
+
}
|
|
27
|
+
return region;
|
|
28
|
+
}
|
|
29
|
+
function get2DRegionFromS2Corners(corners) {
|
|
30
|
+
if (corners.length % 2 !== 0) {
|
|
31
|
+
throw new Error('Invalid corners');
|
|
32
|
+
}
|
|
33
|
+
var longitudes = [];
|
|
34
|
+
var latitudes = [];
|
|
35
|
+
for (var i = 0; i < corners.length; i += 2) {
|
|
36
|
+
longitudes.push(corners[i]);
|
|
37
|
+
latitudes.push(corners[i + 1]);
|
|
38
|
+
}
|
|
39
|
+
longitudes.sort(function (a, b) {
|
|
40
|
+
return a - b;
|
|
41
|
+
});
|
|
42
|
+
latitudes.sort(function (a, b) {
|
|
43
|
+
return a - b;
|
|
44
|
+
});
|
|
45
|
+
return {
|
|
46
|
+
west: longitudes[0],
|
|
47
|
+
east: longitudes[longitudes.length - 1],
|
|
48
|
+
north: latitudes[latitudes.length - 1],
|
|
49
|
+
south: latitudes[0]
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=s2-to-region.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-to-region.js","names":["_s2ToBoundary","require","_s2CellUtils","getS2Region","s2cell","region","face","corners","len","i","key","concat","cell","getS2Cell","corns","getS2BoundaryFlatFromS2Cell","Float64Array","length","set","get2DRegionFromS2Corners","Error","longitudes","latitudes","push","sort","a","b","west","east","north","south"],"sources":["../../../../../../src/lib/utils/s2/converters/s2-to-region.ts"],"sourcesContent":["import type {S2Cell} from '../s2geometry/s2-geometry';\nimport {getS2BoundaryFlatFromS2Cell} from './s2-to-boundary';\nimport {getS2Cell} from '../s2geometry/s2-cell-utils';\n\n/**\n * Converts S2 cell to the 2D region\n * @param s2cell {S2Cell} S2 cell to convert to 2D region\n * @returns 2D region as an object containing: west, north, east, south in degrees\n */\nexport function getS2Region(s2cell: S2Cell): {\n west: number;\n east: number;\n north: number;\n south: number;\n} {\n let region;\n if (s2cell.face === 2 || s2cell.face === 5) {\n // let corners: Float64Array;\n let corners: any = null;\n let len = 0;\n for (let i = 0; i < 4; i++) {\n const key = `${s2cell.face}/${i}`;\n const cell = getS2Cell(key);\n const corns: Float64Array = getS2BoundaryFlatFromS2Cell(cell);\n if (typeof corners === 'undefined' || corners === null)\n corners = new Float64Array(4 * corns.length);\n corners.set(corns, len);\n len += corns.length;\n }\n region = get2DRegionFromS2Corners(corners);\n } else {\n const corners: Float64Array = getS2BoundaryFlatFromS2Cell(s2cell);\n region = get2DRegionFromS2Corners(corners);\n }\n return region;\n}\n\n/**\n * Converts the S2 cell defined by its corners to the 2D region\n * @param corners {Float64Array} - a simple polygon in flat array format: [lng0, lat0, lng1, lat1, ...]\n * @returns 2D region as an object containing: west, north, east, south in degrees\n */\nfunction get2DRegionFromS2Corners(corners: Float64Array): {\n west: number;\n east: number;\n north: number;\n south: number;\n} {\n if (corners.length % 2 !== 0) {\n throw new Error('Invalid corners');\n }\n const longitudes: number[] = [];\n const latitudes: number[] = [];\n for (let i = 0; i < corners.length; i += 2) {\n longitudes.push(corners[i]);\n latitudes.push(corners[i + 1]);\n }\n\n longitudes.sort((a, b) => a - b);\n latitudes.sort((a, b) => a - b);\n\n // Return the region in degrees\n return {\n west: longitudes[0],\n east: longitudes[longitudes.length - 1],\n north: latitudes[latitudes.length - 1],\n south: latitudes[0]\n };\n}\n"],"mappings":";;;;;;AACA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAOO,SAASE,WAAWA,CAACC,MAAc,EAKxC;EACA,IAAIC,MAAM;EACV,IAAID,MAAM,CAACE,IAAI,KAAK,CAAC,IAAIF,MAAM,CAACE,IAAI,KAAK,CAAC,EAAE;IAE1C,IAAIC,OAAY,GAAG,IAAI;IACvB,IAAIC,GAAG,GAAG,CAAC;IACX,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;MAC1B,IAAMC,GAAG,MAAAC,MAAA,CAAMP,MAAM,CAACE,IAAI,OAAAK,MAAA,CAAIF,CAAC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GC,CAAC;EAAA,EAAC;EAG/B,OAAO;IACLC,IAAI,EAAEN,UAAU,CAAC,CAAC,CAAC;IACnBO,IAAI,EAAEP,UAAU,CAACA,UAAU,CAACJ,MAAM,GAAG,CAAC,CAAC;IACvCY,KAAK,EAAEP,SAAS,CAACA,SAAS,CAACL,MAAM,GAAG,CAAC,CAAC;IACtCa,KAAK,EAAER,SAAS,CAAC,CAAC;EACpB,CAAC;AACH"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "getS2BoundaryFlat", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _s2GeometryFunctions.getS2BoundaryFlat;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "getS2Cell", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function get() {
|
|
15
|
+
return _s2CellUtils.getS2Cell;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "getS2CellFromQuadKey", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function get() {
|
|
21
|
+
return _s2Geometry.getS2CellFromQuadKey;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "getS2CellIdFromQuadkey", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _s2Geometry.getS2CellIdFromQuadkey;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "getS2CellIdFromToken", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _s2TokenFunctions.getS2CellIdFromToken;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "getS2ChildCellId", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _s2TokenFunctions.getS2ChildCellId;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "getS2LngLat", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _s2GeometryFunctions.getS2LngLat;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "getS2LngLatFromS2Cell", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function get() {
|
|
51
|
+
return _s2Geometry.getS2LngLatFromS2Cell;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "getS2OrientedBoundingBoxCornerPoints", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function get() {
|
|
57
|
+
return _s2ToObbPoints.getS2OrientedBoundingBoxCornerPoints;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "getS2QuadKey", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _s2CellUtils.getS2QuadKey;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "getS2QuadkeyFromCellId", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _s2Geometry.getS2QuadkeyFromCellId;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "getS2Region", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _s2ToRegion.getS2Region;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "getS2TokenFromCellId", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function get() {
|
|
81
|
+
return _s2TokenFunctions.getS2TokenFromCellId;
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
var _s2TokenFunctions = require("./s2-token-functions");
|
|
85
|
+
var _s2GeometryFunctions = require("./s2-geometry-functions");
|
|
86
|
+
var _s2CellUtils = require("./s2geometry/s2-cell-utils");
|
|
87
|
+
var _s2Geometry = require("./s2geometry/s2-geometry");
|
|
88
|
+
var _s2ToRegion = require("./converters/s2-to-region");
|
|
89
|
+
var _s2ToObbPoints = require("./converters/s2-to-obb-points");
|
|
90
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["_s2TokenFunctions","require","_s2GeometryFunctions","_s2CellUtils","_s2Geometry","_s2ToRegion","_s2ToObbPoints"],"sources":["../../../../../src/lib/utils/s2/index.ts"],"sourcesContent":["// math.gl MIT license\n\nexport {getS2CellIdFromToken, getS2TokenFromCellId, getS2ChildCellId} from './s2-token-functions';\nexport {getS2BoundaryFlat, getS2LngLat} from './s2-geometry-functions';\n\nexport {getS2Cell, getS2QuadKey} from './s2geometry/s2-cell-utils';\nexport {\n getS2QuadkeyFromCellId,\n getS2CellFromQuadKey,\n getS2CellIdFromQuadkey,\n getS2LngLatFromS2Cell\n} from './s2geometry/s2-geometry';\n\nexport {getS2Region} from './converters/s2-to-region';\n\nexport type {S2HeightInfo} from './converters/s2-to-obb-points';\nexport {getS2OrientedBoundingBoxCornerPoints} from './converters/s2-to-obb-points';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAOA,IAAAI,WAAA,GAAAJ,OAAA;AAGA,IAAAK,cAAA,GAAAL,OAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getS2BoundaryFlat = getS2BoundaryFlat;
|
|
7
|
+
exports.getS2LngLat = getS2LngLat;
|
|
8
|
+
var _s2ToBoundary = require("./converters/s2-to-boundary");
|
|
9
|
+
var _s2Geometry = require("./s2geometry/s2-geometry");
|
|
10
|
+
var _s2CellUtils = require("./s2geometry/s2-cell-utils");
|
|
11
|
+
function getS2LngLat(s2Token) {
|
|
12
|
+
var s2cell = (0, _s2CellUtils.getS2Cell)(s2Token);
|
|
13
|
+
return (0, _s2Geometry.getS2LngLatFromS2Cell)(s2cell);
|
|
14
|
+
}
|
|
15
|
+
function getS2BoundaryFlat(tokenOrKey) {
|
|
16
|
+
var s2cell = (0, _s2CellUtils.getS2Cell)(tokenOrKey);
|
|
17
|
+
return (0, _s2ToBoundary.getS2BoundaryFlatFromS2Cell)(s2cell);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=s2-geometry-functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-geometry-functions.js","names":["_s2ToBoundary","require","_s2Geometry","_s2CellUtils","getS2LngLat","s2Token","s2cell","getS2Cell","getS2LngLatFromS2Cell","getS2BoundaryFlat","tokenOrKey","getS2BoundaryFlatFromS2Cell"],"sources":["../../../../../src/lib/utils/s2/s2-geometry-functions.ts"],"sourcesContent":["// math.gl, MIT license\n\nimport {getS2BoundaryFlatFromS2Cell} from './converters/s2-to-boundary';\nimport {getS2LngLatFromS2Cell} from './s2geometry/s2-geometry';\nimport {getS2Cell} from './s2geometry/s2-cell-utils';\n\n// GEOMETRY\n\n/**\n * Retrieve S2 geometry center\n * @param s2Token {string} A string that is the cell's hex token\n * @returns {[number, number]} Longitude and Latitude coordinates of the S2 cell's center\n */\nexport function getS2LngLat(s2Token: string): [number, number] {\n const s2cell = getS2Cell(s2Token);\n return getS2LngLatFromS2Cell(s2cell);\n}\n\n/**\n * Get a polygon with corner coordinates for an s2 cell\n * @param tokenOrKey {string} A string that is the cell's hex token or the Hilbert quad key (containing /)\n * @return {Float64Array} - a simple polygon in flat array format: [lng0, lat0, lng1, lat1, ...]\n * - the polygon is closed, i.e. last coordinate is a copy of the first coordinate\n */\nexport function getS2BoundaryFlat(tokenOrKey: string): Float64Array {\n const s2cell = getS2Cell(tokenOrKey);\n return getS2BoundaryFlatFromS2Cell(s2cell);\n}\n"],"mappings":";;;;;;;AAEA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AASO,SAASG,WAAWA,CAACC,OAAe,EAAoB;EAC7D,IAAMC,MAAM,GAAG,IAAAC,sBAAS,EAACF,OAAO,CAAC;EACjC,OAAO,IAAAG,iCAAqB,EAACF,MAAM,CAAC;AACtC;AAQO,SAASG,iBAAiBA,CAACC,UAAkB,EAAgB;EAClE,IAAMJ,MAAM,GAAG,IAAAC,sBAAS,EAACG,UAAU,CAAC;EACpC,OAAO,IAAAC,yCAA2B,EAACL,MAAM,CAAC;AAC5C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getS2CellIdFromToken = getS2CellIdFromToken;
|
|
8
|
+
exports.getS2ChildCellId = getS2ChildCellId;
|
|
9
|
+
exports.getS2TokenFromCellId = getS2TokenFromCellId;
|
|
10
|
+
var _long = _interopRequireDefault(require("long"));
|
|
11
|
+
var MAXIMUM_TOKEN_LENGTH = 16;
|
|
12
|
+
function getS2CellIdFromToken(token) {
|
|
13
|
+
if (token === 'X') {
|
|
14
|
+
token = '';
|
|
15
|
+
}
|
|
16
|
+
var paddedToken = token.padEnd(MAXIMUM_TOKEN_LENGTH, '0');
|
|
17
|
+
return _long.default.fromString(paddedToken, true, 16);
|
|
18
|
+
}
|
|
19
|
+
function getS2TokenFromCellId(cellId) {
|
|
20
|
+
if (cellId.isZero()) {
|
|
21
|
+
return 'X';
|
|
22
|
+
}
|
|
23
|
+
var numZeroDigits = cellId.countTrailingZeros();
|
|
24
|
+
var remainder = numZeroDigits % 4;
|
|
25
|
+
numZeroDigits = (numZeroDigits - remainder) / 4;
|
|
26
|
+
var trailingZeroHexChars = numZeroDigits;
|
|
27
|
+
numZeroDigits *= 4;
|
|
28
|
+
var x = cellId.shiftRightUnsigned(numZeroDigits);
|
|
29
|
+
var hexString = x.toString(16).replace(/0+$/, '');
|
|
30
|
+
var zeroString = Array(17 - trailingZeroHexChars - hexString.length).join('0');
|
|
31
|
+
return zeroString + hexString;
|
|
32
|
+
}
|
|
33
|
+
function getS2ChildCellId(cellId, index) {
|
|
34
|
+
var newLsb = lsb(cellId).shiftRightUnsigned(2);
|
|
35
|
+
var childCellId = cellId.add(_long.default.fromNumber(2 * index + 1 - 4).multiply(newLsb));
|
|
36
|
+
return childCellId;
|
|
37
|
+
}
|
|
38
|
+
function lsb(cellId) {
|
|
39
|
+
return cellId.and(cellId.not().add(1));
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=s2-token-functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-token-functions.js","names":["_long","_interopRequireDefault","require","MAXIMUM_TOKEN_LENGTH","getS2CellIdFromToken","token","paddedToken","padEnd","Long","fromString","getS2TokenFromCellId","cellId","isZero","numZeroDigits","countTrailingZeros","remainder","trailingZeroHexChars","x","shiftRightUnsigned","hexString","toString","replace","zeroString","Array","length","join","getS2ChildCellId","index","newLsb","lsb","childCellId","add","fromNumber","multiply","and","not"],"sources":["../../../../../src/lib/utils/s2/s2-token-functions.ts"],"sourcesContent":["// loaders.gl, MIT license\n\nimport Long from 'long';\n\nconst MAXIMUM_TOKEN_LENGTH = 16;\n\n/**\n * Convert the S2 token to the S2 cell ID\n * @param token {string} A string that is the cell's hex token. Zero cell ID is represented as 'X'.\n * @returns {Long} Cell id that is a 64-bit encoding of a face and a Hilbert curve parameter on that face.\n * See {@link https://github.com/google/s2-geometry-library-java/blob/c04b68bf3197a9c34082327eeb3aec7ab7c85da1/src/com/google/common/geometry/S2CellId.java#L439} for more information\n */\nexport function getS2CellIdFromToken(token: string): Long {\n if (token === 'X') {\n token = '';\n }\n // pad token with zeros to make the length 16 that is defined in MAXIMUM_TOKEN_LENGTH\n const paddedToken = token.padEnd(MAXIMUM_TOKEN_LENGTH, '0');\n return Long.fromString(paddedToken, true, 16); // Hex base\n}\n\n/**\n * Convert the S2 cell ID to the S2 token\n * @param cellId {Long} A 64-bit encoding of a face and a Hilbert curve parameter on that face.\n * @returns {string} A string that is the cell's hex token. Zero cell ID is represented as 'X'.\n */\nexport function getS2TokenFromCellId(cellId: Long): string {\n if (cellId.isZero()) {\n return 'X';\n }\n let numZeroDigits = cellId.countTrailingZeros();\n\n const remainder = numZeroDigits % 4;\n numZeroDigits = (numZeroDigits - remainder) / 4;\n const trailingZeroHexChars = numZeroDigits;\n numZeroDigits *= 4;\n\n const x = cellId.shiftRightUnsigned(numZeroDigits);\n const hexString = x.toString(16).replace(/0+$/, '');\n const zeroString = Array(17 - trailingZeroHexChars - hexString.length).join('0');\n return zeroString + hexString;\n}\n\n/**\n * Get one of four S2 cell's children.\n * @param cellId {Long} A 64-bit encoding of a face and a Hilbert curve parameter on that face.\n * The cell must NOT be a leaf one. So, the cell's level is in the range [0-29].\n * @param index {number} Child index defines one of four S2 cell's children. Must be in the range [0-3].\n * @returns The ID of the cell's child.\n */\nexport function getS2ChildCellId(cellId: Long, index: number): Long {\n // Shift sentinel bit 2 positions to the right.\n const newLsb = lsb(cellId).shiftRightUnsigned(2);\n // Insert child index before the sentinel bit.\n const childCellId: Long = cellId.add(Long.fromNumber(2 * index + 1 - 4).multiply(newLsb));\n return childCellId;\n}\n\n/**\n * Return the lowest-numbered bit that is on for this cell id.\n * @private\n * @param cellId {Long} Cell id.\n * @returns {Long} The lowest-numbered bit that is on for this cell id.\n */\nfunction lsb(cellId: Long): Long {\n return cellId.and(cellId.not().add(1)); // eslint-disable-line\n}\n"],"mappings":";;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAMC,oBAAoB,GAAG,EAAE;AAQxB,SAASC,oBAAoBA,CAACC,KAAa,EAAQ;EACxD,IAAIA,KAAK,KAAK,GAAG,EAAE;IACjBA,KAAK,GAAG,EAAE;EACZ;EAEA,IAAMC,WAAW,GAAGD,KAAK,CAACE,MAAM,CAACJ,oBAAoB,EAAE,GAAG,CAAC;EAC3D,OAAOK,aAAI,CAACC,UAAU,CAACH,WAAW,EAAE,IAAI,EAAE,EAAE,CAAC;AAC/C;AAOO,SAASI,oBAAoBA,CAACC,MAAY,EAAU;EACzD,IAAIA,MAAM,CAACC,MAAM,CAAC,CAAC,EAAE;IACnB,OAAO,GAAG;EACZ;EACA,IAAIC,aAAa,GAAGF,MAAM,CAACG,kBAAkB,CAAC,CAAC;EAE/C,IAAMC,SAAS,GAAGF,aAAa,GAAG,CAAC;EACnCA,aAAa,GAAG,CAACA,aAAa,GAAGE,SAAS,IAAI,CAAC;EAC/C,IAAMC,oBAAoB,GAAGH,aAAa;EAC1CA,aAAa,IAAI,CAAC;EAElB,IAAMI,CAAC,GAAGN,MAAM,CAACO,kBAAkB,CAACL,aAAa,CAAC;EAClD,IAAMM,SAAS,GAAGF,CAAC,CAACG,QAAQ,CAAC,EAAE,CAAC,CAACC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;EACnD,IAAMC,UAAU,GAAGC,KAAK,CAAC,EAAE,GAAGP,oBAAoB,GAAGG,SAAS,CAACK,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;EAChF,OAAOH,UAAU,GAAGH,SAAS;AAC/B;AASO,SAASO,gBAAgBA,CAACf,MAAY,EAAEgB,KAAa,EAAQ;EAElE,IAAMC,MAAM,GAAGC,GAAG,CAAClB,MAAM,CAAC,CAACO,kBAAkB,CAAC,CAAC,CAAC;EAEhD,IAAMY,WAAiB,GAAGnB,MAAM,CAACoB,GAAG,CAACvB,aAAI,CAACwB,UAAU,CAAC,CAAC,GAAGL,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAACM,QAAQ,CAACL,MAAM,CAAC,CAAC;EACzF,OAAOE,WAAW;AACpB;AAQA,SAASD,GAAGA,CAAClB,MAAY,EAAQ;EAC/B,OAAOA,MAAM,CAACuB,GAAG,CAACvB,MAAM,CAACwB,GAAG,CAAC,CAAC,CAACJ,GAAG,CAAC,CAAC,CAAC,CAAC;AACxC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getS2Cell = getS2Cell;
|
|
7
|
+
exports.getS2QuadKey = getS2QuadKey;
|
|
8
|
+
var _s2Geometry = require("./s2-geometry");
|
|
9
|
+
var _s2TokenFunctions = require("../s2-token-functions");
|
|
10
|
+
function getS2Cell(tokenOrKey) {
|
|
11
|
+
var key = getS2QuadKey(tokenOrKey);
|
|
12
|
+
var s2cell = (0, _s2Geometry.getS2CellFromQuadKey)(key);
|
|
13
|
+
return s2cell;
|
|
14
|
+
}
|
|
15
|
+
function getS2QuadKey(tokenOrKey) {
|
|
16
|
+
if (tokenOrKey.indexOf('/') > 0) {
|
|
17
|
+
return tokenOrKey;
|
|
18
|
+
}
|
|
19
|
+
var id = (0, _s2TokenFunctions.getS2CellIdFromToken)(tokenOrKey);
|
|
20
|
+
return (0, _s2Geometry.getS2QuadkeyFromCellId)(id);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=s2-cell-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"s2-cell-utils.js","names":["_s2Geometry","require","_s2TokenFunctions","getS2Cell","tokenOrKey","key","getS2QuadKey","s2cell","getS2CellFromQuadKey","indexOf","id","getS2CellIdFromToken","getS2QuadkeyFromCellId"],"sources":["../../../../../../src/lib/utils/s2/s2geometry/s2-cell-utils.ts"],"sourcesContent":["// math.gl, MIT license\n\nimport type {S2Cell} from './s2-geometry';\nimport {getS2CellFromQuadKey, getS2QuadkeyFromCellId} from './s2-geometry';\nimport {getS2CellIdFromToken} from '../s2-token-functions';\n\nimport Long from 'long';\n\n/**\n * Return the S2Cell from the cell's hex token or the Hilbert quad key\n * @param tokenOrKey {string} A string that is the cell's hex token or the Hilbert quad key (containing /)\n * @returns {@link S2Cell}\n */\nexport function getS2Cell(tokenOrKey: string): S2Cell {\n const key = getS2QuadKey(tokenOrKey);\n const s2cell = getS2CellFromQuadKey(key);\n return s2cell;\n}\n\n/**\n * Get the underlying Hilbert quad key\n * @param tokenOrKey {string} A string that is the cell's hex token or the Hilbert quad key (containing /)\n * @returns Hilbert quad key\n */\nexport function getS2QuadKey(tokenOrKey: string): string {\n if (tokenOrKey.indexOf('/') > 0) {\n // is Hilbert quad key\n return tokenOrKey;\n }\n // is S2 cell's hex token\n const id: Long = getS2CellIdFromToken(tokenOrKey);\n return getS2QuadkeyFromCellId(id);\n}\n"],"mappings":";;;;;;;AAGA,IAAAA,WAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AASO,SAASE,SAASA,CAACC,UAAkB,EAAU;EACpD,IAAMC,GAAG,GAAGC,YAAY,CAACF,UAAU,CAAC;EACpC,IAAMG,MAAM,GAAG,IAAAC,gCAAoB,EAACH,GAAG,CAAC;EACxC,OAAOE,MAAM;AACf;AAOO,SAASD,YAAYA,CAACF,UAAkB,EAAU;EACvD,IAAIA,UAAU,CAACK,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;IAE/B,OAAOL,UAAU;EACnB;EAEA,IAAMM,EAAQ,GAAG,IAAAC,sCAAoB,EAACP,UAAU,CAAC;EACjD,OAAO,IAAAQ,kCAAsB,EAACF,EAAE,CAAC;AACnC"}
|