jupytergis-core 0.10.0__py3-none-any.whl → 0.11.1__py3-none-any.whl
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.
- jupytergis_core/_version.py +1 -1
- jupytergis_core/jgis_ydoc.py +9 -0
- jupytergis_core/schema/__init__.py +1 -0
- jupytergis_core/schema/interfaces/__init__.py +1 -1
- jupytergis_core/schema/interfaces/export/__init__.py +1 -1
- jupytergis_core/schema/interfaces/export/exportGeoJson.py +1 -1
- jupytergis_core/schema/interfaces/export/exportGeoTiff.py +1 -1
- jupytergis_core/schema/interfaces/geojson.py +145 -134
- jupytergis_core/schema/interfaces/processing/__init__.py +1 -1
- jupytergis_core/schema/interfaces/processing/boundingBoxes.py +1 -1
- jupytergis_core/schema/interfaces/processing/buffer.py +1 -1
- jupytergis_core/schema/interfaces/processing/centroids.py +1 -1
- jupytergis_core/schema/interfaces/processing/concaveHull.py +1 -1
- jupytergis_core/schema/interfaces/processing/convexHull.py +1 -1
- jupytergis_core/schema/interfaces/processing/dissolve.py +1 -1
- jupytergis_core/schema/interfaces/project/__init__.py +1 -1
- jupytergis_core/schema/interfaces/project/jgis.py +21 -1
- jupytergis_core/schema/interfaces/project/layers/__init__.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/heatmapLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/hillshadeLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/imageLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/rasterLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/stacLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/storySegmentLayer.py +44 -0
- jupytergis_core/schema/interfaces/project/layers/vectorLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/vectorTileLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/layers/webGlLayer.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/__init__.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/geoJsonSource.py +470 -5
- jupytergis_core/schema/interfaces/project/sources/geoParquetSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/geoTiffSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/imageSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/markerSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/rasterDemSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/rasterSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/shapefileSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/vectorTileSource.py +1 -1
- jupytergis_core/schema/interfaces/project/sources/videoSource.py +1 -1
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/package.json +5 -5
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/schemas/@jupytergis/jupytergis-core/jupytergis-settings.json +5 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/schemas/@jupytergis/jupytergis-core/package.json.orig +4 -4
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/154.81bef68e01fc6079be77.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/211.dda210219d9ad86e1e84.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/234.ea90a64ba283577248b6.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.1f6ad99534ea85406d43.js +2 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/294.5fc61ad02851426049c0.js +8 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/376.28855d079a25782d0411.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/407.abbc95102c4ad7922738.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/432.4ba21c44d69bd7bb9b58.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/472.a64789520e563e648e15.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/542.01890bd351511c4a49a8.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/552.a4ebd32e9302cb6c9dce.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/555.f67c28bf17db0a6ce7f9.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/618.f39bbf3c06f1a62a664a.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.2b7be4ca03f1b0985a34.js +8 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/99.43df5aa4900a464c8c36.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/990.1fe67e669bf8d31bc0ac.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/991.ce3807f873148de479ba.js +1 -0
- jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/remoteEntry.1181005e666f657a70d5.js +1 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/third-party-licenses.json +312 -6
- {jupytergis_core-0.10.0.dist-info → jupytergis_core-0.11.1.dist-info}/METADATA +4 -3
- jupytergis_core-0.11.1.dist-info/RECORD +121 -0
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/154.234a33e9fcda783cc84b.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/211.083574a3909f85924cc7.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/234.2f0fc49f516ad354aa18.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/250.a749c8a61c81e7156744.js +0 -8
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.6ee794baeb00791424c2.js +0 -2
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/376.1dc881bb3edbaa917d71.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/397.075ccafc191603fcad13.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/407.e9ba4ebc707a690bc548.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/432.b81aa01fd224321ff376.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/472.5e2408d0777222e455cc.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/542.9766a06057be72a32b09.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/552.0936beb209d3ea5a1229.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/555.1cd3070a2aa23b05356b.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/618.f4d7698f69b3ad75e162.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.5f3759c98814aa602705.js +0 -8
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/875.3862770905b6ec887529.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/991.9dbbbf18ad1725320b95.js +0 -1
- jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/remoteEntry.2bb7bef2a307eb614492.js +0 -1
- jupytergis_core-0.10.0.dist-info/RECORD +0 -120
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/etc/jupyter/jupyter_server_config.d/jupytergis_core.json +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/026680ab0cd1523edc87.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/02ff7d503bbd90b21fc4.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/062a9554f6b4caac9713.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/064f37cecb8130ad66e8.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/08da2741746ddab81d04.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/0c6a0352b82839119f95.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/13c485bb93f5567f02fd.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1474207a6b3ca1001e78.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/14b98240613d5256c621.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1b97ea0f2b3af717cffa.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1d440270da19a2f22fee.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/1ed164e010f3c0306d15.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2218dfba22fc2b08e948.png +0 -0
- /jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.6ee794baeb00791424c2.js.LICENSE.txt → /jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/27.1f6ad99534ea85406d43.js.LICENSE.txt +0 -0
- /jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/250.a749c8a61c81e7156744.js.LICENSE.txt → /jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/294.5fc61ad02851426049c0.js.LICENSE.txt +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2ab791b60c4058e664f8.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2b24b6a745c11511f055.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2d676bc0a01c2cd2fccb.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/2f02309ea499725612ea.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/32c7a73662cceb5bb1d7.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/350eec4ce9ae4bc10bca.wasm +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/363ca7c5f78deb6fd033.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/3ae0bf244442de7efc35.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/3d48be10ffea86eb15de.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/415edc3fa381260cf31e.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/42cbddf5e883673bc4e2.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/527ef171d5df15dc7da5.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5bb02252f243f8c7494f.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5d181edc3c046e1454a1.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/5f32ad48aefe00e51312.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/6e4f6b4d0dfca3bd4450.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/71d436fb44627b6bfbd7.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/7b225dc2d37cd3582156.png +0 -0
- /jupytergis_core-0.10.0.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.5f3759c98814aa602705.js.LICENSE.txt → /jupytergis_core-0.11.1.data/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/803.2b7be4ca03f1b0985a34.js.LICENSE.txt +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/843ab141e62516b9df5c.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/8814e17f6b110e8f3e42.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/88b2ae0d29edb684eae5.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/971a42d174dd17b9451a.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a3c609f5bff95a7a53be.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a86d626c9ed2e222d190.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/a9e286b0c0264a9fc737.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/ab309078b494f850430a.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/b15e3989b7b90b5a8d9d.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/b36717fbb06f21d53b01.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/ba4b6e82fe5a816c40a5.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/bb2b310570da7a3587e9.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/be92bcf7bb99753b4b3d.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/c2ffa011d7f52a0ddf45.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/d83457b1b925c1718f6d.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/e473e1e9f20af114bbb4.data +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/f2617180c6907263a7ff.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/fe99a6dbf5a71d308989.png +0 -0
- {jupytergis_core-0.10.0.data → jupytergis_core-0.11.1.data}/data/share/jupyter/labextensions/@jupytergis/jupytergis-core/static/style.js +0 -0
- {jupytergis_core-0.10.0.dist-info → jupytergis_core-0.11.1.dist-info}/WHEEL +0 -0
- {jupytergis_core-0.10.0.dist-info → jupytergis_core-0.11.1.dist-info}/entry_points.txt +0 -0
- {jupytergis_core-0.10.0.dist-info → jupytergis_core-0.11.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,14 +1,477 @@
|
|
|
1
1
|
# generated by datamodel-codegen:
|
|
2
2
|
# filename: project/sources/geoJsonSource.json
|
|
3
|
-
# timestamp: 2025-12-
|
|
3
|
+
# timestamp: 2025-12-18T13:58:26+00:00
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
|
-
from
|
|
7
|
+
from enum import Enum
|
|
8
|
+
from typing import Any, Dict, List, Optional, Union
|
|
8
9
|
|
|
9
|
-
from pydantic import BaseModel, ConfigDict, Field
|
|
10
|
+
from pydantic import BaseModel, ConfigDict, Field, RootModel
|
|
10
11
|
|
|
11
|
-
|
|
12
|
+
|
|
13
|
+
class Type(Enum):
|
|
14
|
+
Point = 'Point'
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class Data(BaseModel):
|
|
18
|
+
type: Type
|
|
19
|
+
coordinates: List[float] = Field(..., min_length=2)
|
|
20
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Type1(Enum):
|
|
24
|
+
LineString = 'LineString'
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class Coordinate(RootModel[List[float]]):
|
|
28
|
+
root: List[float]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class Data1(BaseModel):
|
|
32
|
+
type: Type1
|
|
33
|
+
coordinates: List[Coordinate] = Field(..., min_length=2)
|
|
34
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Type2(Enum):
|
|
38
|
+
Polygon = 'Polygon'
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class Data2(BaseModel):
|
|
42
|
+
type: Type2
|
|
43
|
+
coordinates: List[List[Coordinate]]
|
|
44
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class Type3(Enum):
|
|
48
|
+
MultiPoint = 'MultiPoint'
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class Data3(BaseModel):
|
|
52
|
+
type: Type3
|
|
53
|
+
coordinates: List[List[float]]
|
|
54
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class Type4(Enum):
|
|
58
|
+
MultiLineString = 'MultiLineString'
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
class Data4(BaseModel):
|
|
62
|
+
type: Type4
|
|
63
|
+
coordinates: List[List[Coordinate]]
|
|
64
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class Type5(Enum):
|
|
68
|
+
MultiPolygon = 'MultiPolygon'
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
class Data5(BaseModel):
|
|
72
|
+
type: Type5
|
|
73
|
+
coordinates: List[List[List[Coordinate]]]
|
|
74
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class Type6(Enum):
|
|
78
|
+
GeometryCollection = 'GeometryCollection'
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class Type7(Enum):
|
|
82
|
+
Point = 'Point'
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class Geometries(BaseModel):
|
|
86
|
+
type: Type7
|
|
87
|
+
coordinates: List[float] = Field(..., min_length=2)
|
|
88
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class Type8(Enum):
|
|
92
|
+
LineString = 'LineString'
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class Geometries1(BaseModel):
|
|
96
|
+
type: Type8
|
|
97
|
+
coordinates: List[Coordinate] = Field(..., min_length=2)
|
|
98
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
class Type9(Enum):
|
|
102
|
+
Polygon = 'Polygon'
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
class Geometries2(BaseModel):
|
|
106
|
+
type: Type9
|
|
107
|
+
coordinates: List[List[Coordinate]]
|
|
108
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class Type10(Enum):
|
|
112
|
+
MultiPoint = 'MultiPoint'
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
class Geometries3(BaseModel):
|
|
116
|
+
type: Type10
|
|
117
|
+
coordinates: List[List[float]]
|
|
118
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class Type11(Enum):
|
|
122
|
+
MultiLineString = 'MultiLineString'
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
class Geometries4(BaseModel):
|
|
126
|
+
type: Type11
|
|
127
|
+
coordinates: List[List[Coordinate]]
|
|
128
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class Type12(Enum):
|
|
132
|
+
MultiPolygon = 'MultiPolygon'
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
class Geometries5(BaseModel):
|
|
136
|
+
type: Type12
|
|
137
|
+
coordinates: List[List[List[Coordinate]]]
|
|
138
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class Data6(BaseModel):
|
|
142
|
+
type: Type6
|
|
143
|
+
geometries: List[
|
|
144
|
+
Union[
|
|
145
|
+
Geometries, Geometries1, Geometries2, Geometries3, Geometries4, Geometries5
|
|
146
|
+
]
|
|
147
|
+
]
|
|
148
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
class Type13(Enum):
|
|
152
|
+
Feature = 'Feature'
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
class Type14(Enum):
|
|
156
|
+
Point = 'Point'
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class Geometry(BaseModel):
|
|
160
|
+
type: Type14
|
|
161
|
+
coordinates: List[float] = Field(..., min_length=2)
|
|
162
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class Type15(Enum):
|
|
166
|
+
LineString = 'LineString'
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
class Geometry1(BaseModel):
|
|
170
|
+
type: Type15
|
|
171
|
+
coordinates: List[Coordinate] = Field(..., min_length=2)
|
|
172
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
class Type16(Enum):
|
|
176
|
+
Polygon = 'Polygon'
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class Geometry2(BaseModel):
|
|
180
|
+
type: Type16
|
|
181
|
+
coordinates: List[List[Coordinate]]
|
|
182
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
class Type17(Enum):
|
|
186
|
+
MultiPoint = 'MultiPoint'
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
class Geometry3(BaseModel):
|
|
190
|
+
type: Type17
|
|
191
|
+
coordinates: List[List[float]]
|
|
192
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
class Type18(Enum):
|
|
196
|
+
MultiLineString = 'MultiLineString'
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class Geometry4(BaseModel):
|
|
200
|
+
type: Type18
|
|
201
|
+
coordinates: List[List[Coordinate]]
|
|
202
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
class Type19(Enum):
|
|
206
|
+
MultiPolygon = 'MultiPolygon'
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
class Geometry5(BaseModel):
|
|
210
|
+
type: Type19
|
|
211
|
+
coordinates: List[List[List[Coordinate]]]
|
|
212
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
class Type20(Enum):
|
|
216
|
+
GeometryCollection = 'GeometryCollection'
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
class Type21(Enum):
|
|
220
|
+
Point = 'Point'
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
class Geometries6(BaseModel):
|
|
224
|
+
type: Type21
|
|
225
|
+
coordinates: List[float] = Field(..., min_length=2)
|
|
226
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
class Type22(Enum):
|
|
230
|
+
LineString = 'LineString'
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
class Geometries7(BaseModel):
|
|
234
|
+
type: Type22
|
|
235
|
+
coordinates: List[Coordinate] = Field(..., min_length=2)
|
|
236
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
class Type23(Enum):
|
|
240
|
+
Polygon = 'Polygon'
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
class Geometries8(BaseModel):
|
|
244
|
+
type: Type23
|
|
245
|
+
coordinates: List[List[Coordinate]]
|
|
246
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
class Type24(Enum):
|
|
250
|
+
MultiPoint = 'MultiPoint'
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
class Geometries9(BaseModel):
|
|
254
|
+
type: Type24
|
|
255
|
+
coordinates: List[List[float]]
|
|
256
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class Type25(Enum):
|
|
260
|
+
MultiLineString = 'MultiLineString'
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
class Geometries10(BaseModel):
|
|
264
|
+
type: Type25
|
|
265
|
+
coordinates: List[List[Coordinate]]
|
|
266
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
class Type26(Enum):
|
|
270
|
+
MultiPolygon = 'MultiPolygon'
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
class Geometries11(BaseModel):
|
|
274
|
+
type: Type26
|
|
275
|
+
coordinates: List[List[List[Coordinate]]]
|
|
276
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
class Geometry6(BaseModel):
|
|
280
|
+
type: Type20
|
|
281
|
+
geometries: List[
|
|
282
|
+
Union[
|
|
283
|
+
Geometries6,
|
|
284
|
+
Geometries7,
|
|
285
|
+
Geometries8,
|
|
286
|
+
Geometries9,
|
|
287
|
+
Geometries10,
|
|
288
|
+
Geometries11,
|
|
289
|
+
]
|
|
290
|
+
]
|
|
291
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
class Data7(BaseModel):
|
|
295
|
+
type: Type13
|
|
296
|
+
id: Optional[Union[float, str]] = None
|
|
297
|
+
properties: Optional[Dict[str, Any]] = None
|
|
298
|
+
geometry: Optional[
|
|
299
|
+
Union[
|
|
300
|
+
Geometry, Geometry1, Geometry2, Geometry3, Geometry4, Geometry5, Geometry6
|
|
301
|
+
]
|
|
302
|
+
] = None
|
|
303
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
class Type27(Enum):
|
|
307
|
+
FeatureCollection = 'FeatureCollection'
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
class Type28(Enum):
|
|
311
|
+
Feature = 'Feature'
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
class Type29(Enum):
|
|
315
|
+
Point = 'Point'
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
class Geometry7(BaseModel):
|
|
319
|
+
type: Type29
|
|
320
|
+
coordinates: List[float] = Field(..., min_length=2)
|
|
321
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
class Type30(Enum):
|
|
325
|
+
LineString = 'LineString'
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
class Geometry8(BaseModel):
|
|
329
|
+
type: Type30
|
|
330
|
+
coordinates: List[Coordinate] = Field(..., min_length=2)
|
|
331
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
class Type31(Enum):
|
|
335
|
+
Polygon = 'Polygon'
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
class Geometry9(BaseModel):
|
|
339
|
+
type: Type31
|
|
340
|
+
coordinates: List[List[Coordinate]]
|
|
341
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
class Type32(Enum):
|
|
345
|
+
MultiPoint = 'MultiPoint'
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
class Geometry10(BaseModel):
|
|
349
|
+
type: Type32
|
|
350
|
+
coordinates: List[List[float]]
|
|
351
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
class Type33(Enum):
|
|
355
|
+
MultiLineString = 'MultiLineString'
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
class Geometry11(BaseModel):
|
|
359
|
+
type: Type33
|
|
360
|
+
coordinates: List[List[Coordinate]]
|
|
361
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
class Type34(Enum):
|
|
365
|
+
MultiPolygon = 'MultiPolygon'
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
class Geometry12(BaseModel):
|
|
369
|
+
type: Type34
|
|
370
|
+
coordinates: List[List[List[Coordinate]]]
|
|
371
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
class Type35(Enum):
|
|
375
|
+
GeometryCollection = 'GeometryCollection'
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
class Type36(Enum):
|
|
379
|
+
Point = 'Point'
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
class Geometries12(BaseModel):
|
|
383
|
+
type: Type36
|
|
384
|
+
coordinates: List[float] = Field(..., min_length=2)
|
|
385
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
class Type37(Enum):
|
|
389
|
+
LineString = 'LineString'
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
class Geometries13(BaseModel):
|
|
393
|
+
type: Type37
|
|
394
|
+
coordinates: List[Coordinate] = Field(..., min_length=2)
|
|
395
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
class Type38(Enum):
|
|
399
|
+
Polygon = 'Polygon'
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
class Geometries14(BaseModel):
|
|
403
|
+
type: Type38
|
|
404
|
+
coordinates: List[List[Coordinate]]
|
|
405
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
class Type39(Enum):
|
|
409
|
+
MultiPoint = 'MultiPoint'
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
class Geometries15(BaseModel):
|
|
413
|
+
type: Type39
|
|
414
|
+
coordinates: List[List[float]]
|
|
415
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
class Type40(Enum):
|
|
419
|
+
MultiLineString = 'MultiLineString'
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
class Geometries16(BaseModel):
|
|
423
|
+
type: Type40
|
|
424
|
+
coordinates: List[List[Coordinate]]
|
|
425
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
class Type41(Enum):
|
|
429
|
+
MultiPolygon = 'MultiPolygon'
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
class Geometries17(BaseModel):
|
|
433
|
+
type: Type41
|
|
434
|
+
coordinates: List[List[List[Coordinate]]]
|
|
435
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
class Geometry13(BaseModel):
|
|
439
|
+
type: Type35
|
|
440
|
+
geometries: List[
|
|
441
|
+
Union[
|
|
442
|
+
Geometries12,
|
|
443
|
+
Geometries13,
|
|
444
|
+
Geometries14,
|
|
445
|
+
Geometries15,
|
|
446
|
+
Geometries16,
|
|
447
|
+
Geometries17,
|
|
448
|
+
]
|
|
449
|
+
]
|
|
450
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
451
|
+
|
|
452
|
+
|
|
453
|
+
class Feature(BaseModel):
|
|
454
|
+
type: Type28
|
|
455
|
+
id: Optional[Union[float, str]] = None
|
|
456
|
+
properties: Optional[Dict[str, Any]] = None
|
|
457
|
+
geometry: Optional[
|
|
458
|
+
Union[
|
|
459
|
+
Geometry7,
|
|
460
|
+
Geometry8,
|
|
461
|
+
Geometry9,
|
|
462
|
+
Geometry10,
|
|
463
|
+
Geometry11,
|
|
464
|
+
Geometry12,
|
|
465
|
+
Geometry13,
|
|
466
|
+
]
|
|
467
|
+
] = None
|
|
468
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
class Data8(BaseModel):
|
|
472
|
+
type: Type27
|
|
473
|
+
features: List[Feature]
|
|
474
|
+
bbox: Optional[List[float]] = Field(None, min_length=4)
|
|
12
475
|
|
|
13
476
|
|
|
14
477
|
class IGeoJSONSource(BaseModel):
|
|
@@ -16,5 +479,7 @@ class IGeoJSONSource(BaseModel):
|
|
|
16
479
|
extra='forbid',
|
|
17
480
|
)
|
|
18
481
|
path: Optional[str] = Field(None, description='The local path to a GeoJSON file')
|
|
19
|
-
data: Optional[
|
|
482
|
+
data: Optional[
|
|
483
|
+
Union[Data, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8]
|
|
484
|
+
] = Field(None, description='The GeoJSON data')
|
|
20
485
|
valid: Optional[bool] = Field(None, description='Whether the data are valid or not')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/jupytergis-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "JupyterGIS core extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"watch:labextension": "jupyter labextension watch ."
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@jupyter/collaborative-drive": "^
|
|
57
|
-
"@jupytergis/base": "^0.
|
|
58
|
-
"@jupytergis/schema": "^0.
|
|
56
|
+
"@jupyter/collaborative-drive": "^4.1.2",
|
|
57
|
+
"@jupytergis/base": "^0.11.1",
|
|
58
|
+
"@jupytergis/schema": "^0.11.1",
|
|
59
59
|
"@jupyterlab/application": "^4.3.0",
|
|
60
60
|
"@jupyterlab/apputils": "^4.3.0",
|
|
61
61
|
"@jupyterlab/docregistry": "^4.3.0",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"_build": {
|
|
123
|
-
"load": "static/remoteEntry.
|
|
123
|
+
"load": "static/remoteEntry.1181005e666f657a70d5.js",
|
|
124
124
|
"extension": "./extension",
|
|
125
125
|
"style": "./style"
|
|
126
126
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupytergis/jupytergis-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "JupyterGIS core extension",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jupyter",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"watch:labextension": "jupyter labextension watch ."
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@jupyter/collaborative-drive": "^
|
|
57
|
-
"@jupytergis/base": "^0.
|
|
58
|
-
"@jupytergis/schema": "^0.
|
|
56
|
+
"@jupyter/collaborative-drive": "^4.1.2",
|
|
57
|
+
"@jupytergis/base": "^0.11.1",
|
|
58
|
+
"@jupytergis/schema": "^0.11.1",
|
|
59
59
|
"@jupyterlab/application": "^4.3.0",
|
|
60
60
|
"@jupyterlab/apputils": "^4.3.0",
|
|
61
61
|
"@jupyterlab/docregistry": "^4.3.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_jupytergis_jupytergis_core=self.webpackChunk_jupytergis_jupytergis_core||[]).push([[154],{74660(e,t,r){function n(e,t){let r=e.length-t,n=0;do{for(let r=t;r>0;r--)e[n+t]+=e[n],n++;r-=t}while(r>0)}function o(e,t,r){let n=0,o=e.length;const i=o/r;for(;o>t;){for(let r=t;r>0;--r)e[n+t]+=e[n],++n;o-=t}const s=e.slice();for(let t=0;t<i;++t)for(let n=0;n<r;++n)e[r*t+n]=s[(r-n-1)*i+t]}r.d(t,{A:()=>i});class i{async decode(e,t){const r=await this.decodeBlock(t),i=e.Predictor||1;if(1!==i){const t=!e.StripOffsets;return function(e,t,r,i,s,l){if(!t||1===t)return e;for(let e=0;e<s.length;++e){if(s[e]%8!=0)throw new Error("When decoding with predictor, only multiple of 8 bits are supported.");if(s[e]!==s[0])throw new Error("When decoding with predictor, all samples must have the same size.")}const c=s[0]/8,f=2===l?1:s.length;for(let l=0;l<i&&!(l*f*r*c>=e.byteLength);++l){let i;if(2===t){switch(s[0]){case 8:i=new Uint8Array(e,l*f*r*c,f*r*c);break;case 16:i=new Uint16Array(e,l*f*r*c,f*r*c/2);break;case 32:i=new Uint32Array(e,l*f*r*c,f*r*c/4);break;default:throw new Error(`Predictor 2 not allowed with ${s[0]} bits per sample.`)}n(i,f)}else 3===t&&(i=new Uint8Array(e,l*f*r*c,f*r*c),o(i,f,c))}return e}(r,i,t?e.TileWidth:e.ImageWidth,t?e.TileLength:e.RowsPerStrip||e.ImageLength,e.BitsPerSample,e.PlanarConfiguration)}return r}}},87154(e,t,r){r.d(t,{default:()=>i});var n=r(74660);function o(e,t){for(let r=t.length-1;r>=0;r--)e.push(t[r]);return e}class i extends n.A{decodeBlock(e){return function(e){const t=new Uint16Array(4093),r=new Uint8Array(4093);for(let e=0;e<=257;e++)t[e]=4096,r[e]=e;let n=258,i=9,s=0;function l(){n=258,i=9}function c(e){const t=function(e,t,r){const n=t%8,o=Math.floor(t/8),i=8-n,s=t+r-8*(o+1);let l=8*(o+2)-(t+r);const c=8*(o+2)-t;if(l=Math.max(0,l),o>=e.length)return console.warn("ran off the end of the buffer before finding EOI_CODE (end on input code)"),257;let f=e[o]&2**(8-n)-1;f<<=r-i;let a=f;if(o+1<e.length){let t=e[o+1]>>>l;t<<=Math.max(0,r-c),a+=t}if(s>8&&o+2<e.length){const n=8*(o+3)-(t+r);a+=e[o+2]>>>n}return a}(e,s,i);return s+=i,t}function f(e,o){return r[n]=o,t[n]=e,n++,n-1}function a(e){const n=[];for(let o=e;4096!==o;o=t[o])n.push(r[o]);return n}const u=[];l();const h=new Uint8Array(e);let d,w=c(h);for(;257!==w;){if(256===w){for(l(),w=c(h);256===w;)w=c(h);if(257===w)break;if(w>256)throw new Error(`corrupted code at scanline ${w}`);o(u,a(w)),d=w}else if(w<n){const e=a(w);o(u,e),f(d,e[e.length-1]),d=w}else{const e=a(d);if(!e)throw new Error(`Bogus entry. Not in dictionary, ${d} / ${n}, position: ${s}`);o(u,e),u.push(e[e.length-1]),f(d,e[e.length-1]),d=w}n+1>=2**i&&(12===i?d=void 0:i++),w=c(h)}return new Uint8Array(u)}(e).buffer}}}}]);
|