@map-colonies/react-components 3.7.4 → 3.10.0
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/.storybook/main.js +1 -4
- package/CHANGELOG.md +36 -0
- package/dist/assets/img/map-marker.gif +0 -0
- package/dist/autocomplete/autocomplete.d.ts +0 -1
- package/dist/autocomplete/autocomplete.js +22 -9
- package/dist/autocomplete/index.d.ts +0 -1
- package/dist/autocomplete/index.js +2 -2
- package/dist/box/box.d.ts +0 -1
- package/dist/box/box.js +3 -2
- package/dist/box/index.d.ts +0 -1
- package/dist/box/index.js +2 -2
- package/dist/cesium-map/data-sources/custom.data-source.d.ts +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.js +3 -2
- package/dist/cesium-map/data-sources/drawings.data-source.d.ts +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.js +29 -16
- package/dist/cesium-map/data-sources/index.d.ts +0 -1
- package/dist/cesium-map/data-sources/index.js +12 -6
- package/dist/cesium-map/entities/entity.d.ts +0 -1
- package/dist/cesium-map/entities/entity.description.d.ts +0 -1
- package/dist/cesium-map/entities/entity.description.js +5 -3
- package/dist/cesium-map/entities/entity.js +3 -2
- package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.js +3 -2
- package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.js +3 -2
- package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.js +3 -2
- package/dist/cesium-map/entities/index.d.ts +0 -1
- package/dist/cesium-map/entities/index.js +14 -8
- package/dist/cesium-map/index.d.ts +0 -1
- package/dist/cesium-map/index.js +17 -11
- package/dist/cesium-map/layers/3d.tileset.d.ts +0 -1
- package/dist/cesium-map/layers/3d.tileset.js +5 -4
- package/dist/cesium-map/layers/3d.tileset.update.d.ts +1 -0
- package/dist/cesium-map/layers/3d.tileset.update.js +5 -0
- package/dist/cesium-map/layers/geojson.layer.d.ts +0 -1
- package/dist/cesium-map/layers/geojson.layer.js +3 -2
- package/dist/cesium-map/layers/imagery.layer.d.ts +0 -1
- package/dist/cesium-map/layers/imagery.layer.js +22 -9
- package/dist/cesium-map/layers/index.d.ts +0 -1
- package/dist/cesium-map/layers/index.js +17 -11
- package/dist/cesium-map/layers/osm.layer.d.ts +0 -1
- package/dist/cesium-map/layers/osm.layer.js +3 -2
- package/dist/cesium-map/layers/wms.layer.d.ts +0 -1
- package/dist/cesium-map/layers/wms.layer.js +3 -2
- package/dist/cesium-map/layers/wmts.layer.d.ts +0 -1
- package/dist/cesium-map/layers/wmts.layer.js +3 -2
- package/dist/cesium-map/layers/xyz.layer.d.ts +0 -1
- package/dist/cesium-map/layers/xyz.layer.js +3 -2
- package/dist/cesium-map/layers-manager.d.ts +2 -2
- package/dist/cesium-map/layers-manager.js +3 -7
- package/dist/cesium-map/map.d.ts +2 -2
- package/dist/cesium-map/map.js +59 -37
- package/dist/cesium-map/map.types.d.ts +0 -1
- package/dist/cesium-map/map.types.js +1 -1
- package/dist/cesium-map/proxied.types.d.ts +0 -1
- package/dist/cesium-map/proxied.types.js +4 -2
- package/dist/cesium-map/settings/base-maps.d.ts +0 -1
- package/dist/cesium-map/settings/base-maps.js +22 -12
- package/dist/cesium-map/settings/scene-modes.d.ts +0 -1
- package/dist/cesium-map/settings/scene-modes.js +17 -4
- package/dist/cesium-map/settings/settings.d.ts +0 -1
- package/dist/cesium-map/settings/settings.js +20 -7
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.d.ts +3 -0
- package/dist/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.js +245 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.d.ts +9 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-decoder.js +202 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.d.ts +50 -0
- package/dist/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.js +136 -0
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js +17 -4
- package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.js +17 -4
- package/dist/cesium-map/tools/draw/drawHelper.d.ts +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.js +16 -3
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts +1 -2
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.js +3 -2
- package/dist/cesium-map/tools/geojson/index.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/index.js +12 -6
- package/dist/cesium-map/tools/geojson/point.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.js +3 -2
- package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.js +3 -2
- package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.js +17 -4
- package/dist/cesium-map/tools/inspector.tool.d.ts +4 -0
- package/dist/cesium-map/tools/inspector.tool.js +33 -0
- package/dist/cesium-map/tools/scale-tracker.tool.d.ts +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.js +19 -6
- package/dist/cesium-map/tools/terranian-height.tool.d.ts +4 -0
- package/dist/cesium-map/tools/terranian-height.tool.js +113 -0
- package/dist/cssbaseline/cssbaseline.d.ts +0 -1
- package/dist/cssbaseline/cssbaseline.js +5 -3
- package/dist/cssbaseline/index.d.ts +0 -1
- package/dist/cssbaseline/index.js +3 -3
- package/dist/date-picker/date-picker.css +9 -0
- package/dist/date-picker/date-picker.d.ts +14 -0
- package/dist/date-picker/date-picker.js +78 -0
- package/dist/date-picker/index.d.ts +1 -0
- package/dist/date-picker/index.js +13 -0
- package/dist/date-range-picker/date-range-picker.d.ts +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.d.ts +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.js +36 -21
- package/dist/date-range-picker/date-range-picker.js +29 -16
- package/dist/date-range-picker/index.d.ts +0 -1
- package/dist/date-range-picker/index.js +12 -6
- package/dist/file-picker/file-picker.css +56 -0
- package/dist/file-picker/file-picker.d.ts +275 -0
- package/dist/file-picker/file-picker.js +146 -0
- package/dist/file-picker/fs-map.json +1557 -0
- package/dist/file-picker/index.d.ts +1 -0
- package/dist/file-picker/index.js +13 -0
- package/dist/file-picker/localization.d.ts +6 -0
- package/dist/file-picker/localization.js +100 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +23 -15
- package/dist/map-filter-container/container-map.d.ts +0 -1
- package/dist/map-filter-container/container-map.js +3 -2
- package/dist/map-filter-container/index.d.ts +0 -1
- package/dist/map-filter-container/index.js +11 -5
- package/dist/map-filter-container/map-filter-container.d.ts +0 -1
- package/dist/map-filter-container/map-filter-container.js +17 -4
- package/dist/map-filter-container/polygon-selection-ui.d.ts +0 -1
- package/dist/map-filter-container/polygon-selection-ui.js +3 -2
- package/dist/models/defaults.d.ts +11 -1
- package/dist/models/defaults.js +12 -1
- package/dist/models/enums.d.ts +2 -2
- package/dist/models/enums.js +2 -1
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +11 -5
- package/dist/ol-map/feature.d.ts +0 -1
- package/dist/ol-map/feature.js +3 -2
- package/dist/ol-map/index.d.ts +0 -1
- package/dist/ol-map/index.js +16 -10
- package/dist/ol-map/interactions/draw.d.ts +0 -1
- package/dist/ol-map/interactions/draw.js +4 -4
- package/dist/ol-map/interactions/index.d.ts +0 -1
- package/dist/ol-map/interactions/index.js +11 -5
- package/dist/ol-map/layers/index.d.ts +0 -1
- package/dist/ol-map/layers/index.js +13 -7
- package/dist/ol-map/layers/tile-layer.d.ts +0 -1
- package/dist/ol-map/layers/tile-layer.js +19 -5
- package/dist/ol-map/layers/vector-layer.d.ts +0 -1
- package/dist/ol-map/layers/vector-layer.js +19 -5
- package/dist/ol-map/layers/vector-tile-layer.d.ts +0 -1
- package/dist/ol-map/layers/vector-tile-layer.js +19 -5
- package/dist/ol-map/map.d.ts +0 -1
- package/dist/ol-map/map.js +24 -10
- package/dist/ol-map/source/index.d.ts +0 -1
- package/dist/ol-map/source/index.js +16 -10
- package/dist/ol-map/source/mvt.d.ts +0 -1
- package/dist/ol-map/source/mvt.js +7 -4
- package/dist/ol-map/source/osm.d.ts +0 -1
- package/dist/ol-map/source/osm.js +3 -2
- package/dist/ol-map/source/vector-source.d.ts +1 -2
- package/dist/ol-map/source/vector-source.js +19 -5
- package/dist/ol-map/source/wms.d.ts +0 -1
- package/dist/ol-map/source/wms.js +5 -3
- package/dist/ol-map/source/wmts.d.ts +0 -1
- package/dist/ol-map/source/wmts.js +5 -3
- package/dist/ol-map/source/xyz.d.ts +0 -1
- package/dist/ol-map/source/xyz.js +5 -3
- package/dist/ol-map/style.d.ts +0 -1
- package/dist/ol-map/style.js +1 -1
- package/dist/popover/index.d.ts +0 -1
- package/dist/popover/index.js +2 -2
- package/dist/popover/popover.d.ts +0 -1
- package/dist/popover/popover.js +3 -2
- package/dist/smart-table/__mock-data__/smartTableMocks.d.ts +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.js +1 -1
- package/dist/smart-table/index.d.ts +0 -1
- package/dist/smart-table/index.js +12 -6
- package/dist/smart-table/smart-table-head.d.ts +0 -1
- package/dist/smart-table/smart-table-head.js +1 -1
- package/dist/smart-table/smart-table-row.d.ts +0 -2
- package/dist/smart-table/smart-table-row.js +18 -8
- package/dist/smart-table/smart-table-types.d.ts +0 -2
- package/dist/smart-table/smart-table-types.js +0 -1
- package/dist/smart-table/smart-table.d.ts +0 -1
- package/dist/smart-table/smart-table.js +15 -3
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.js +11 -5
- package/dist/theme/theme.d.ts +0 -1
- package/dist/theme/theme.js +1 -1
- package/dist/utils/map.d.ts +0 -1
- package/dist/utils/map.js +7 -4
- package/dist/utils/projections.d.ts +0 -1
- package/dist/utils/projections.js +1 -1
- package/dist/utils/story.d.ts +0 -1
- package/dist/utils/story.js +0 -1
- package/package.json +8 -4
- package/public/assets/img/map-marker.gif +0 -0
- package/src/lib/cesium-map/context-menu.stories.tsx +1 -2
- package/src/lib/cesium-map/layers/3d.tileset.stories.tsx +1 -2
- package/src/lib/cesium-map/layers/3d.tileset.update.ts +72 -0
- package/src/lib/cesium-map/layers/layers.rect.stories.tsx +171 -0
- package/src/lib/cesium-map/layers-manager.stories.tsx +2 -3
- package/src/lib/cesium-map/layers-manager.ts +3 -1
- package/src/lib/cesium-map/map.stories.tsx +3 -3
- package/src/lib/cesium-map/map.tsx +22 -11
- package/src/lib/cesium-map/terrain-providers/custom/dummy-quantized-mesh-tile.ts +243 -0
- package/src/lib/cesium-map/terrain-providers/custom/quantized-mesh-decoder.ts +321 -0
- package/src/lib/cesium-map/terrain-providers/custom/quantized-mesh-terrain-provider.ts +237 -0
- package/src/lib/cesium-map/terrain-providers/terrain-provider-heights-tool.stories.tsx +155 -0
- package/src/lib/cesium-map/terrain-providers/terrain-provider.stories.tsx +185 -0
- package/src/lib/cesium-map/tools/inspector.tool.tsx +15 -0
- package/src/lib/cesium-map/tools/terranian-height.tool.tsx +167 -0
- package/src/lib/date-picker/date-picker.css +9 -0
- package/src/lib/date-picker/date-picker.stories.tsx +130 -0
- package/src/lib/date-picker/date-picker.tsx +90 -0
- package/src/lib/date-picker/index.ts +1 -0
- package/src/lib/date-range-picker/date-range-picker.form-control.tsx +9 -7
- package/src/lib/date-range-picker/{stories/DateRangePicker.stories.tsx → date-range-picker.stories.tsx} +5 -5
- package/src/lib/date-range-picker/date-range-picker.tsx +12 -10
- package/src/lib/file-picker/file-picker.css +56 -0
- package/src/lib/file-picker/file-picker.stories.tsx +381 -0
- package/src/lib/file-picker/file-picker.tsx +163 -0
- package/src/lib/file-picker/fs-map.json +1557 -0
- package/src/lib/file-picker/index.ts +1 -0
- package/src/lib/file-picker/localization.ts +135 -0
- package/src/lib/index.ts +2 -0
- package/src/lib/models/defaults.ts +12 -0
- package/src/lib/models/enums.ts +1 -0
- package/src/types/quantized-mesh-decoder.d.ts +1 -0
- package/storybook-static/mock/{tileset → tileset_1}/ll.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/lr.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/parent.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/tileset.json +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/ul.b3dm +0 -0
- package/storybook-static/mock/{tileset → tileset_1}/ur.b3dm +0 -0
- package/tsbuildconfig.json +2 -2
- package/dist/autocomplete/autocomplete.d.ts.map +0 -1
- package/dist/autocomplete/autocomplete.js.map +0 -1
- package/dist/autocomplete/index.d.ts.map +0 -1
- package/dist/autocomplete/index.js.map +0 -1
- package/dist/box/box.d.ts.map +0 -1
- package/dist/box/box.js.map +0 -1
- package/dist/box/index.d.ts.map +0 -1
- package/dist/box/index.js.map +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/custom.data-source.js.map +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/drawings.data-source.js.map +0 -1
- package/dist/cesium-map/data-sources/index.d.ts.map +0 -1
- package/dist/cesium-map/data-sources/index.js.map +0 -1
- package/dist/cesium-map/entities/entity.d.ts.map +0 -1
- package/dist/cesium-map/entities/entity.description.d.ts.map +0 -1
- package/dist/cesium-map/entities/entity.description.js.map +0 -1
- package/dist/cesium-map/entities/entity.js.map +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/polygon.graphics.js.map +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/polyline.graphics.js.map +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.d.ts.map +0 -1
- package/dist/cesium-map/entities/graphics/rectangle.graphics.js.map +0 -1
- package/dist/cesium-map/entities/index.d.ts.map +0 -1
- package/dist/cesium-map/entities/index.js.map +0 -1
- package/dist/cesium-map/index.d.ts.map +0 -1
- package/dist/cesium-map/index.js.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.d.ts.map +0 -1
- package/dist/cesium-map/layers/3d.tileset.js.map +0 -1
- package/dist/cesium-map/layers/geojson.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/geojson.layer.js.map +0 -1
- package/dist/cesium-map/layers/imagery.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/imagery.layer.js.map +0 -1
- package/dist/cesium-map/layers/index.d.ts.map +0 -1
- package/dist/cesium-map/layers/index.js.map +0 -1
- package/dist/cesium-map/layers/osm.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/osm.layer.js.map +0 -1
- package/dist/cesium-map/layers/wms.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/wms.layer.js.map +0 -1
- package/dist/cesium-map/layers/wmts.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/wmts.layer.js.map +0 -1
- package/dist/cesium-map/layers/xyz.layer.d.ts.map +0 -1
- package/dist/cesium-map/layers/xyz.layer.js.map +0 -1
- package/dist/cesium-map/layers-manager.d.ts.map +0 -1
- package/dist/cesium-map/layers-manager.js.map +0 -1
- package/dist/cesium-map/map.d.ts.map +0 -1
- package/dist/cesium-map/map.js.map +0 -1
- package/dist/cesium-map/map.types.d.ts.map +0 -1
- package/dist/cesium-map/map.types.js.map +0 -1
- package/dist/cesium-map/proxied.types.d.ts.map +0 -1
- package/dist/cesium-map/proxied.types.js.map +0 -1
- package/dist/cesium-map/settings/base-maps.d.ts.map +0 -1
- package/dist/cesium-map/settings/base-maps.js.map +0 -1
- package/dist/cesium-map/settings/scene-modes.d.ts.map +0 -1
- package/dist/cesium-map/settings/scene-modes.js.map +0 -1
- package/dist/cesium-map/settings/settings.d.ts.map +0 -1
- package/dist/cesium-map/settings/settings.js.map +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.d.ts.map +0 -1
- package/dist/cesium-map/tools/cesium/primitives-conversions.cesium.js.map +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.d.ts.map +0 -1
- package/dist/cesium-map/tools/coordinates-tracker.tool.js.map +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.d.ts.map +0 -1
- package/dist/cesium-map/tools/draw/drawHelper.js.map +0 -1
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/geojson-to-primitive.js.map +0 -1
- package/dist/cesium-map/tools/geojson/index.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/index.js.map +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/point.geojson.js.map +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/polygon.geojson.js.map +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.d.ts.map +0 -1
- package/dist/cesium-map/tools/geojson/rectangle.geojson.js.map +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.d.ts.map +0 -1
- package/dist/cesium-map/tools/scale-tracker.tool.js.map +0 -1
- package/dist/cssbaseline/cssbaseline.d.ts.map +0 -1
- package/dist/cssbaseline/cssbaseline.js.map +0 -1
- package/dist/cssbaseline/index.d.ts.map +0 -1
- package/dist/cssbaseline/index.js.map +0 -1
- package/dist/date-range-picker/date-range-picker.d.ts.map +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.d.ts.map +0 -1
- package/dist/date-range-picker/date-range-picker.form-control.js.map +0 -1
- package/dist/date-range-picker/date-range-picker.js.map +0 -1
- package/dist/date-range-picker/index.d.ts.map +0 -1
- package/dist/date-range-picker/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/map-filter-container/container-map.d.ts.map +0 -1
- package/dist/map-filter-container/container-map.js.map +0 -1
- package/dist/map-filter-container/index.d.ts.map +0 -1
- package/dist/map-filter-container/index.js.map +0 -1
- package/dist/map-filter-container/map-filter-container.d.ts.map +0 -1
- package/dist/map-filter-container/map-filter-container.js.map +0 -1
- package/dist/map-filter-container/polygon-selection-ui.d.ts.map +0 -1
- package/dist/map-filter-container/polygon-selection-ui.js.map +0 -1
- package/dist/models/defaults.d.ts.map +0 -1
- package/dist/models/defaults.js.map +0 -1
- package/dist/models/enums.d.ts.map +0 -1
- package/dist/models/enums.js.map +0 -1
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js.map +0 -1
- package/dist/ol-map/feature.d.ts.map +0 -1
- package/dist/ol-map/feature.js.map +0 -1
- package/dist/ol-map/index.d.ts.map +0 -1
- package/dist/ol-map/index.js.map +0 -1
- package/dist/ol-map/interactions/draw.d.ts.map +0 -1
- package/dist/ol-map/interactions/draw.js.map +0 -1
- package/dist/ol-map/interactions/index.d.ts.map +0 -1
- package/dist/ol-map/interactions/index.js.map +0 -1
- package/dist/ol-map/layers/index.d.ts.map +0 -1
- package/dist/ol-map/layers/index.js.map +0 -1
- package/dist/ol-map/layers/tile-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/tile-layer.js.map +0 -1
- package/dist/ol-map/layers/vector-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/vector-layer.js.map +0 -1
- package/dist/ol-map/layers/vector-tile-layer.d.ts.map +0 -1
- package/dist/ol-map/layers/vector-tile-layer.js.map +0 -1
- package/dist/ol-map/map.d.ts.map +0 -1
- package/dist/ol-map/map.js.map +0 -1
- package/dist/ol-map/source/index.d.ts.map +0 -1
- package/dist/ol-map/source/index.js.map +0 -1
- package/dist/ol-map/source/mvt.d.ts.map +0 -1
- package/dist/ol-map/source/mvt.js.map +0 -1
- package/dist/ol-map/source/osm.d.ts.map +0 -1
- package/dist/ol-map/source/osm.js.map +0 -1
- package/dist/ol-map/source/vector-source.d.ts.map +0 -1
- package/dist/ol-map/source/vector-source.js.map +0 -1
- package/dist/ol-map/source/wms.d.ts.map +0 -1
- package/dist/ol-map/source/wms.js.map +0 -1
- package/dist/ol-map/source/wmts.d.ts.map +0 -1
- package/dist/ol-map/source/wmts.js.map +0 -1
- package/dist/ol-map/source/xyz.d.ts.map +0 -1
- package/dist/ol-map/source/xyz.js.map +0 -1
- package/dist/ol-map/style.d.ts.map +0 -1
- package/dist/ol-map/style.js.map +0 -1
- package/dist/popover/index.d.ts.map +0 -1
- package/dist/popover/index.js.map +0 -1
- package/dist/popover/popover.d.ts.map +0 -1
- package/dist/popover/popover.js.map +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.d.ts.map +0 -1
- package/dist/smart-table/__mock-data__/smartTableMocks.js.map +0 -1
- package/dist/smart-table/index.d.ts.map +0 -1
- package/dist/smart-table/index.js.map +0 -1
- package/dist/smart-table/smart-table-head.d.ts.map +0 -1
- package/dist/smart-table/smart-table-head.js.map +0 -1
- package/dist/smart-table/smart-table-row.d.ts.map +0 -1
- package/dist/smart-table/smart-table-row.js.map +0 -1
- package/dist/smart-table/smart-table-types.d.ts.map +0 -1
- package/dist/smart-table/smart-table-types.js.map +0 -1
- package/dist/smart-table/smart-table.d.ts.map +0 -1
- package/dist/smart-table/smart-table.js.map +0 -1
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/theme.d.ts.map +0 -1
- package/dist/theme/theme.js.map +0 -1
- package/dist/utils/map.d.ts.map +0 -1
- package/dist/utils/map.js.map +0 -1
- package/dist/utils/projections.d.ts.map +0 -1
- package/dist/utils/projections.js.map +0 -1
- package/dist/utils/story.d.ts.map +0 -1
- package/dist/utils/story.js.map +0 -1
package/.storybook/main.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,42 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.10.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.8.0...@map-colonies/react-components@3.10.0) (2022-02-09)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* height tool_ pin points from csv ([#114](https://github.com/MapColonies/shared-components/issues/114)) ([3af82b8](https://github.com/MapColonies/shared-components/commit/3af82b88226ea3bd19646e87b9d1add0b13e81e6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* file picker ([#113](https://github.com/MapColonies/shared-components/issues/113)) ([829d275](https://github.com/MapColonies/shared-components/commit/829d275e01a3417912fe82036cabae3a5247cc24))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## 3.8.1 (2022-01-13)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
|
|
25
|
+
* dem quantized mesh ([#112](https://github.com/MapColonies/shared-components/issues/112)) ([3cd2010](https://github.com/MapColonies/shared-components/commit/3cd20105a63f2335a5dd3b178eb9d38f9690022c))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# [3.8.0](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.4...@map-colonies/react-components@3.8.0) (2021-11-01)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* date time picker component ([#109](https://github.com/MapColonies/shared-components/issues/109)) ([d2d6312](https://github.com/MapColonies/shared-components/commit/d2d631288324c6212301fbecff1088c179614664))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
6
42
|
## [3.7.4](https://github.com/MapColonies/shared-components/compare/@map-colonies/react-components@3.7.3...@map-colonies/react-components@3.7.4) (2021-10-25)
|
|
7
43
|
|
|
8
44
|
**Note:** Version bump only for package @map-colonies/react-components
|
|
Binary file
|
|
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
13
32
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
33
|
var t = {};
|
|
15
34
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -21,17 +40,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
40
|
}
|
|
22
41
|
return t;
|
|
23
42
|
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
28
|
-
result["default"] = mod;
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
43
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32
44
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
33
45
|
};
|
|
34
46
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.AutocompleteWithDefauls = void 0;
|
|
35
48
|
/* eslint-disable */
|
|
36
49
|
var react_1 = __importStar(require("react"));
|
|
37
50
|
var textarea_caret_1 = __importDefault(require("textarea-caret"));
|
|
@@ -456,12 +469,12 @@ var defaultProps = {
|
|
|
456
469
|
mode: 'assist',
|
|
457
470
|
direction: 'ltr',
|
|
458
471
|
};
|
|
459
|
-
|
|
472
|
+
var AutocompleteWithDefauls = function (props) {
|
|
460
473
|
var compProps = __assign(__assign({}, defaultProps), props);
|
|
461
474
|
if (props.mode === 'autocomplete') {
|
|
462
475
|
compProps = __assign(__assign({}, compProps), { trigger: '', regex: '.', spacer: '' });
|
|
463
476
|
}
|
|
464
477
|
return react_1.default.createElement(Autocomplete, __assign({}, compProps));
|
|
465
478
|
};
|
|
479
|
+
exports.AutocompleteWithDefauls = AutocompleteWithDefauls;
|
|
466
480
|
exports.default = exports.AutocompleteWithDefauls;
|
|
467
|
-
//# sourceMappingURL=autocomplete.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Autocomplete = void 0;
|
|
3
4
|
var autocomplete_1 = require("./autocomplete");
|
|
4
|
-
exports
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
Object.defineProperty(exports, "Autocomplete", { enumerable: true, get: function () { return autocomplete_1.AutocompleteWithDefauls; } });
|
package/dist/box/box.d.ts
CHANGED
package/dist/box/box.js
CHANGED
|
@@ -25,10 +25,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.McBox = void 0;
|
|
28
29
|
var react_1 = __importDefault(require("react"));
|
|
29
30
|
var core_1 = require("@material-ui/core");
|
|
30
|
-
|
|
31
|
+
var McBox = function (props) {
|
|
31
32
|
var children = props.children, rest = __rest(props, ["children"]);
|
|
32
33
|
return react_1.default.createElement(core_1.Box, __assign({}, rest), children);
|
|
33
34
|
};
|
|
34
|
-
|
|
35
|
+
exports.McBox = McBox;
|
package/dist/box/index.d.ts
CHANGED
package/dist/box/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Box = void 0;
|
|
3
4
|
var box_1 = require("./box");
|
|
4
|
-
exports
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
5
|
+
Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return box_1.McBox; } });
|
|
@@ -3,4 +3,3 @@ import { CustomDataSourceProps } from 'resium/dist/types/src/CustomDataSource/Cu
|
|
|
3
3
|
export interface RCesiumCustomDataSourceProps extends CustomDataSourceProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumCustomDataSource: React.FC<RCesiumCustomDataSourceProps>;
|
|
6
|
-
//# sourceMappingURL=custom.data-source.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumCustomDataSource = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumCustomDataSource = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.CustomDataSource, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumCustomDataSource = CesiumCustomDataSource;
|
|
@@ -3,10 +3,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
9
|
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -23,21 +25,32 @@ var __assign = (this && this.__assign) || function () {
|
|
|
23
25
|
};
|
|
24
26
|
return __assign.apply(this, arguments);
|
|
25
27
|
};
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
28
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
29
|
+
if (k2 === undefined) k2 = k;
|
|
30
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
31
|
+
}) : (function(o, m, k, k2) {
|
|
32
|
+
if (k2 === undefined) k2 = k;
|
|
33
|
+
o[k2] = m[k];
|
|
34
|
+
}));
|
|
35
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
36
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
37
|
+
}) : function(o, v) {
|
|
38
|
+
o["default"] = v;
|
|
39
|
+
});
|
|
33
40
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
34
41
|
if (mod && mod.__esModule) return mod;
|
|
35
42
|
var result = {};
|
|
36
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result
|
|
37
|
-
result
|
|
43
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
38
45
|
return result;
|
|
39
46
|
};
|
|
47
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
48
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
49
|
+
to[j] = from[i];
|
|
50
|
+
return to;
|
|
51
|
+
};
|
|
40
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.CesiumDrawingsDataSource = exports.CesiumColor = void 0;
|
|
41
54
|
var react_1 = __importStar(require("react"));
|
|
42
55
|
var cesium_1 = require("cesium");
|
|
43
56
|
var models_1 = require("../../models");
|
|
@@ -60,7 +73,7 @@ var CesiumColor = /** @class */ (function (_super) {
|
|
|
60
73
|
return CesiumColor;
|
|
61
74
|
}(cesium_1.Color));
|
|
62
75
|
exports.CesiumColor = CesiumColor;
|
|
63
|
-
|
|
76
|
+
var CesiumDrawingsDataSource = function (props) {
|
|
64
77
|
var drawState = props.drawState, drawingMaterial = props.drawingMaterial, drawingVertexColor = props.drawingVertexColor, material = props.material, hollow = props.hollow, outlineWidth = props.outlineWidth;
|
|
65
78
|
var mapViewer = map_1.useCesiumMap();
|
|
66
79
|
var _a = react_1.useState(), drawHelper = _a[0], setDrawHelper = _a[1];
|
|
@@ -140,9 +153,9 @@ exports.CesiumDrawingsDataSource = function (props) {
|
|
|
140
153
|
if (hollow !== true) {
|
|
141
154
|
switch (drawEntity.type) {
|
|
142
155
|
case models_1.DrawType.BOX:
|
|
143
|
-
return (react_1.default.createElement(rectangle_graphics_1.CesiumRectangleGraphics, { coordinates: coordinates, material:
|
|
156
|
+
return (react_1.default.createElement(rectangle_graphics_1.CesiumRectangleGraphics, { coordinates: coordinates, material: material !== null && material !== void 0 ? material : drawingMaterial }));
|
|
144
157
|
case models_1.DrawType.POLYGON:
|
|
145
|
-
return (react_1.default.createElement(polygon_graphics_1.CesiumPolygonGraphics, { hierarchy: new cesium_1.PolygonHierarchy(coordinates), material:
|
|
158
|
+
return (react_1.default.createElement(polygon_graphics_1.CesiumPolygonGraphics, { hierarchy: new cesium_1.PolygonHierarchy(coordinates), material: material !== null && material !== void 0 ? material : drawingMaterial }));
|
|
146
159
|
default:
|
|
147
160
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
148
161
|
}
|
|
@@ -153,14 +166,14 @@ exports.CesiumDrawingsDataSource = function (props) {
|
|
|
153
166
|
coordinates = primitives_conversions_cesium_1.rectangleToPositions(coordinates);
|
|
154
167
|
break;
|
|
155
168
|
case models_1.DrawType.POLYGON:
|
|
156
|
-
coordinates =
|
|
169
|
+
coordinates = __spreadArray(__spreadArray([], coordinates), [
|
|
157
170
|
coordinates[0],
|
|
158
171
|
]);
|
|
159
172
|
break;
|
|
160
173
|
default:
|
|
161
174
|
return react_1.default.createElement(react_1.default.Fragment, null);
|
|
162
175
|
}
|
|
163
|
-
return (react_1.default.createElement(polyline_graphics_1.CesiumPolylineGraphics, { positions: coordinates, width:
|
|
176
|
+
return (react_1.default.createElement(polyline_graphics_1.CesiumPolylineGraphics, { positions: coordinates, width: outlineWidth !== null && outlineWidth !== void 0 ? outlineWidth : 1, material: material !== null && material !== void 0 ? material : drawingMaterial }));
|
|
164
177
|
}
|
|
165
178
|
};
|
|
166
179
|
return (react_1.default.createElement(custom_data_source_1.CesiumCustomDataSource, __assign({}, props), props.drawings.map(function (drawEntity, i) { return (react_1.default.createElement(entity_1.CesiumEntity, { key: drawEntity.id, name: drawEntity.name },
|
|
@@ -171,4 +184,4 @@ exports.CesiumDrawingsDataSource = function (props) {
|
|
|
171
184
|
react_1.default.createElement("p", null, "This is description of drawed entity")),
|
|
172
185
|
renderGraphicsComponent(drawEntity))); })));
|
|
173
186
|
};
|
|
174
|
-
|
|
187
|
+
exports.CesiumDrawingsDataSource = CesiumDrawingsDataSource;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./custom.data-source"), exports);
|
|
14
|
+
__exportStar(require("./drawings.data-source"), exports);
|
|
@@ -4,4 +4,3 @@ export interface RCesiumEntityDescriptionProps extends EntityDescriptionProps {
|
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumEntityDescription: React.FC<RCesiumEntityDescriptionProps>;
|
|
6
6
|
export declare const CesiumEntityStaticDescription: React.FC;
|
|
7
|
-
//# sourceMappingURL=entity.description.d.ts.map
|
|
@@ -14,12 +14,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumEntityStaticDescription = exports.CesiumEntityDescription = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumEntityDescription = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.EntityDescription, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
exports.
|
|
23
|
+
exports.CesiumEntityDescription = CesiumEntityDescription;
|
|
24
|
+
var CesiumEntityStaticDescription = function (props) {
|
|
23
25
|
return react_1.default.createElement(resium_1.EntityStaticDescription, __assign({}, props));
|
|
24
26
|
};
|
|
25
|
-
|
|
27
|
+
exports.CesiumEntityStaticDescription = CesiumEntityStaticDescription;
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumEntity = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumEntity = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.Entity, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumEntity = CesiumEntity;
|
|
@@ -3,4 +3,3 @@ import { PolygonGraphicsProps } from 'resium/dist/types/src/PolygonGraphics/Poly
|
|
|
3
3
|
export interface RCesiumPolygonGraphicsProps extends PolygonGraphicsProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumPolygonGraphics: React.FC<RCesiumPolygonGraphicsProps>;
|
|
6
|
-
//# sourceMappingURL=polygon.graphics.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumPolygonGraphics = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumPolygonGraphics = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.PolygonGraphics, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumPolygonGraphics = CesiumPolygonGraphics;
|
|
@@ -3,4 +3,3 @@ import { PolylineGraphicsProps } from 'resium/dist/types/src/PolylineGraphics/Po
|
|
|
3
3
|
export interface RCesiumPolylineGraphicsProps extends PolylineGraphicsProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumPolylineGraphics: React.FC<RCesiumPolylineGraphicsProps>;
|
|
6
|
-
//# sourceMappingURL=polyline.graphics.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumPolylineGraphics = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumPolylineGraphics = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.PolylineGraphics, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumPolylineGraphics = CesiumPolylineGraphics;
|
|
@@ -3,4 +3,3 @@ import { RectangleGraphicsProps } from 'resium/dist/types/src/RectangleGraphics/
|
|
|
3
3
|
export interface RCesiumRectangleGraphicsProps extends RectangleGraphicsProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumRectangleGraphics: React.FC<RCesiumRectangleGraphicsProps>;
|
|
6
|
-
//# sourceMappingURL=rectangle.graphics.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumRectangleGraphics = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumRectangleGraphics = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.RectangleGraphics, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumRectangleGraphics = CesiumRectangleGraphics;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./entity"), exports);
|
|
14
|
+
__exportStar(require("./entity.description"), exports);
|
|
15
|
+
__exportStar(require("./graphics/polygon.graphics"), exports);
|
|
16
|
+
__exportStar(require("./graphics/rectangle.graphics"), exports);
|
package/dist/cesium-map/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
5
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
13
|
+
__exportStar(require("./map"), exports);
|
|
14
|
+
__exportStar(require("./map.types"), exports);
|
|
15
|
+
__exportStar(require("./layers"), exports);
|
|
16
|
+
__exportStar(require("../utils/projections"), exports);
|
|
17
|
+
__exportStar(require("./entities"), exports);
|
|
18
|
+
__exportStar(require("./data-sources"), exports);
|
|
19
|
+
__exportStar(require("./proxied.types"), exports);
|
|
@@ -14,15 +14,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.Cesium3DTileset = void 0;
|
|
17
18
|
var cesium_1 = require("cesium");
|
|
18
19
|
var react_1 = __importDefault(require("react"));
|
|
19
20
|
var resium_1 = require("resium");
|
|
20
21
|
var map_1 = require("../map");
|
|
21
|
-
|
|
22
|
+
var Cesium3DTileset = function (props) {
|
|
22
23
|
var mapViewer = map_1.useCesiumMap();
|
|
23
24
|
return (react_1.default.createElement(resium_1.Cesium3DTileset, __assign({}, props, { onReady: function (tileset) {
|
|
24
|
-
var _a
|
|
25
|
-
(
|
|
25
|
+
var _a;
|
|
26
|
+
(_a = props.onReady) === null || _a === void 0 ? void 0 : _a.call(props, tileset);
|
|
26
27
|
if (props.isZoomTo) {
|
|
27
28
|
void mapViewer.zoomTo(tileset);
|
|
28
29
|
}
|
|
@@ -35,4 +36,4 @@ exports.Cesium3DTileset = function (props) {
|
|
|
35
36
|
}
|
|
36
37
|
} })));
|
|
37
38
|
};
|
|
38
|
-
|
|
39
|
+
exports.Cesium3DTileset = Cesium3DTileset;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
https://sandcastle.cesium.com/index.html?#c=fVZtTxs5EP4re3xho0YOkOv1jgC6ElIuiAQKKaWQqnJ2nayL187Z3qCk4r/f+GXf8nKWot3YzzOeGT8z6wWWQRdLTRTFvB2cBl14y1JUznXGfMxbreBSYq798tV9gKOIKBVoESxFJgMqeICVIlqNuTfRFxzFZIozpj9a8Ei8EA5b7JPlVTK5jOgNvep/WfUPh7Sv+vzufdTt/9F/mT8+dK/+QgD6N758MSA6GJ3/HB712gN60H66fHq5Ht0l39K+vvnaWw27h/RmFP+8ueitBqvB+8FqRq+7V/MnMDa8+Kz6KUtieB+MPv8+/Am/i8HBoH2AztvdD0NBlu2n28do+uHHp8fz3rdXKiN91J6qLyS64/eHR5+YHv65b3OwgFRFNrQRkRJTfivFgsZEllmLJMGafBWSxR4TNjqOSRijcyVovEnm5DU30NuBsmacoQUlr+u0BzsX7jv3uoJr4BK53wx+jXkAY4IVucZLIm9p9ALs42CKmSJNt6rXXDreHueYv+XRqIhwAj44Z5D9az20b2jGxITA4c91MiJKf5yBFaW9OaBpmZEiIE0ZAeHAtCPPJU2ppguiEI7j0LlYCdY92hcjxwt9iGZkkh0HpfzuiAJtRgRNpUg/GnX247D9oX3UcJQ3ePrEujhWQqQjEXqPPAoJnRD5ShUJpxmPtJF6CKEI2Qgqe0eCK8EIYmLmVzv5LnaLgpvNYxCJ8T6wOxVWTDImIuMx5bMHwbLUZNggUH3W26XTIPSxQpnBecfWHAJHNOH6vMZp1HzdvstWYh5E6aKHrbE6JSAVMWGw7FfQDztRASSEzhJjoO4HSimnaZb+Y5creJCFtpK3htAPqaOunapguJApZoWInAKLokMzAlRNo/tMTnFEhhYdOsNNp66i44WNRsWwmE6dOksASqGn0Tlbni/vI8ywDN3uTR/Z/xuMYF7UO62YSTxPaGSFWvC8e1XuHNZBiCX7NSG2y/oWkevCJWG9rk9PT3f2oZo+zFaSKIjSHKNxsFMuugVUHOJBZc37hwAj2IKEDltUAuwOzv/awJfxKJzOGfG+DYTSFwR6GQNtbw2pGTxb9743EBQpLwrUb6xqUW1E5kHPB987dZRJ4W9rteVD2bDoUqIzyTcyVSmcNaQzVoG+NcpCcy95KrfFVXOiCGeboLQo5VQ/jEJSQlHbl2oKV9lESxxpT2r6MtitbDPWy7NuMmKCkzDfrrmBrvXLtx0t0zR8KUSZAXNUZiLvQ3cEx8tafkqyY+4Uo8kGowqsWNf9VwCZ57XAsfka9RawxbXHlKdSa+NVEZkFW3Y1n6uj4p210tmE5D6Fjd3a2tSPbTUJZbG0ly6XI/+/0lEY4TOdmDL3a8jNeMhUyCA0OGorHR4nntIJ3r2jOxJtTim390y/V3yz7t1jHkdYafh6QE5HYjZj5DzTGjK5n18SehxPoOzhCmMuC82gyHWUELjCxDUBrM+ZsaMFbr/a7NTELiu72uj6KdRzkksq16E9tb3m3onSS0bOHOVvms6F1OYyEyLU0gQ6IthQrUkGQcIhKmVoJ62cdBLTRUDj0/He2v1vvBdEDG7lsDLNGLunKzLeOztpAb5GY6Bu+ArfLIhkeGkgyeHZtZtECJ204O8mSwvBJlhWLP4H
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -3,4 +3,3 @@ import { GeoJsonDataSourceProps } from 'resium/dist/types/src/GeoJsonDataSource/
|
|
|
3
3
|
export interface RCesiumGeojsonLayerProps extends GeoJsonDataSourceProps {
|
|
4
4
|
}
|
|
5
5
|
export declare const CesiumGeojsonLayer: React.FC<RCesiumGeojsonLayerProps>;
|
|
6
|
-
//# sourceMappingURL=geojson.layer.d.ts.map
|
|
@@ -14,9 +14,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.CesiumGeojsonLayer = void 0;
|
|
17
18
|
var react_1 = __importDefault(require("react"));
|
|
18
19
|
var resium_1 = require("resium");
|
|
19
|
-
|
|
20
|
+
var CesiumGeojsonLayer = function (props) {
|
|
20
21
|
return react_1.default.createElement(resium_1.GeoJsonDataSource, __assign({}, props));
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
exports.CesiumGeojsonLayer = CesiumGeojsonLayer;
|
|
@@ -10,6 +10,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
21
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
22
|
+
}) : function(o, v) {
|
|
23
|
+
o["default"] = v;
|
|
24
|
+
});
|
|
25
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
26
|
+
if (mod && mod.__esModule) return mod;
|
|
27
|
+
var result = {};
|
|
28
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
29
|
+
__setModuleDefault(result, mod);
|
|
30
|
+
return result;
|
|
31
|
+
};
|
|
13
32
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
33
|
var t = {};
|
|
15
34
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -21,18 +40,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
40
|
}
|
|
22
41
|
return t;
|
|
23
42
|
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
28
|
-
result["default"] = mod;
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
43
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
+
exports.CesiumImageryLayer = void 0;
|
|
32
45
|
var react_1 = __importStar(require("react"));
|
|
33
46
|
var resium_1 = require("resium");
|
|
34
47
|
var map_1 = require("../map");
|
|
35
|
-
|
|
48
|
+
var CesiumImageryLayer = function (props) {
|
|
36
49
|
// eslint-disable-next-line
|
|
37
50
|
var meta = props.meta, restProps = __rest(props, ["meta"]);
|
|
38
51
|
var mapViewer = map_1.useCesiumMap();
|
|
@@ -48,4 +61,4 @@ exports.CesiumImageryLayer = function (props) {
|
|
|
48
61
|
}, [meta, mapViewer]);
|
|
49
62
|
return react_1.default.createElement(resium_1.ImageryLayer, __assign({}, restProps));
|
|
50
63
|
};
|
|
51
|
-
|
|
64
|
+
exports.CesiumImageryLayer = CesiumImageryLayer;
|