@gooddata/sdk-ui-geo 11.13.0-alpha.1 → 11.13.0-alpha.3
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/esm/core/geoChart/GeoChartInner.d.ts +1 -1
- package/esm/core/geoChart/GeoChartInner.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartInner.js +4 -2
- package/esm/core/geoChart/GeoChartInner.js.map +1 -1
- package/esm/core/geoChart/GeoChartLegendRenderer.d.ts +1 -1
- package/esm/core/geoChart/GeoChartLegendRenderer.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartLegendRenderer.js +3 -3
- package/esm/core/geoChart/GeoChartLegendRenderer.js.map +1 -1
- package/esm/core/geoChart/GeoChartOptionsWrapper.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartOptionsWrapper.js +38 -25
- package/esm/core/geoChart/GeoChartOptionsWrapper.js.map +1 -1
- package/esm/core/geoChart/GeoChartRenderer.d.ts +1 -2
- package/esm/core/geoChart/GeoChartRenderer.d.ts.map +1 -1
- package/esm/core/geoChart/GeoChartRenderer.js +1 -2
- package/esm/core/geoChart/GeoChartRenderer.js.map +1 -1
- package/esm/core/geoChart/GeoValidatorHOC.d.ts.map +1 -1
- package/esm/core/geoChart/GeoValidatorHOC.js +15 -8
- package/esm/core/geoChart/GeoValidatorHOC.js.map +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.d.ts.map +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.js +1 -1
- package/esm/core/geoChart/legends/PushpinCategoryLegend.js.map +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.d.ts.map +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.js +1 -1
- package/esm/core/geoChart/legends/PushpinSizeLegend.js.map +1 -1
- package/esm/next/GeoAreaChart.d.ts +4 -26
- package/esm/next/GeoAreaChart.d.ts.map +1 -1
- package/esm/next/GeoAreaChart.js +16 -57
- package/esm/next/GeoAreaChart.js.map +1 -1
- package/esm/next/GeoChartNext.d.ts +19 -0
- package/esm/next/GeoChartNext.d.ts.map +1 -0
- package/esm/next/GeoChartNext.js +34 -0
- package/esm/next/GeoChartNext.js.map +1 -0
- package/esm/next/GeoPushpinChartNext.d.ts +5 -6
- package/esm/next/GeoPushpinChartNext.d.ts.map +1 -1
- package/esm/next/GeoPushpinChartNext.js +19 -35
- package/esm/next/GeoPushpinChartNext.js.map +1 -1
- package/esm/next/components/GeoChartNextDataLoader.d.ts +12 -0
- package/esm/next/components/GeoChartNextDataLoader.d.ts.map +1 -0
- package/esm/next/components/GeoChartNextDataLoader.js +42 -0
- package/esm/next/components/GeoChartNextDataLoader.js.map +1 -0
- package/esm/next/components/GeoChartNextProviders.d.ts +13 -0
- package/esm/next/components/GeoChartNextProviders.d.ts.map +1 -0
- package/esm/next/components/GeoChartNextProviders.js +15 -0
- package/esm/next/components/GeoChartNextProviders.js.map +1 -0
- package/esm/next/components/GeoErrorComponent.d.ts +13 -0
- package/esm/next/components/GeoErrorComponent.d.ts.map +1 -0
- package/esm/next/components/{ErrorComponent.js → GeoErrorComponent.js} +4 -4
- package/esm/next/components/GeoErrorComponent.js.map +1 -0
- package/esm/next/components/GeoLoadingComponent.d.ts +5 -0
- package/esm/next/components/GeoLoadingComponent.d.ts.map +1 -0
- package/esm/next/components/{LoadingComponent.js → GeoLoadingComponent.js} +4 -4
- package/esm/next/components/GeoLoadingComponent.js.map +1 -0
- package/esm/next/components/RenderGeoChartNext.d.ts +18 -0
- package/esm/next/components/RenderGeoChartNext.d.ts.map +1 -0
- package/esm/next/components/RenderGeoChartNext.js +51 -0
- package/esm/next/components/RenderGeoChartNext.js.map +1 -0
- package/esm/next/components/legends/Legend.d.ts +5 -4
- package/esm/next/components/legends/Legend.d.ts.map +1 -1
- package/esm/next/components/legends/Legend.js.map +1 -1
- package/esm/next/components/legends/LegendBody.js +1 -1
- package/esm/next/components/legends/LegendBody.js.map +1 -1
- package/esm/next/components/legends/legendPropsAdapter.d.ts.map +1 -1
- package/esm/next/components/legends/legendPropsAdapter.js.map +1 -1
- package/esm/next/components/legends/types.d.ts +5 -4
- package/esm/next/components/legends/types.d.ts.map +1 -1
- package/esm/next/constants/defaults.d.ts +60 -0
- package/esm/next/constants/defaults.d.ts.map +1 -0
- package/esm/next/constants/defaults.js +53 -0
- package/esm/next/constants/defaults.js.map +1 -0
- package/esm/next/constants/{internal.d.ts → emptyDefaults.d.ts} +1 -9
- package/esm/next/constants/emptyDefaults.d.ts.map +1 -0
- package/esm/next/constants/{internal.js → emptyDefaults.js} +1 -9
- package/esm/next/constants/emptyDefaults.js.map +1 -0
- package/esm/next/context/GeoChartNextContext.d.ts +30 -0
- package/esm/next/context/GeoChartNextContext.d.ts.map +1 -0
- package/esm/next/context/GeoChartNextContext.js +44 -0
- package/esm/next/context/GeoChartNextContext.js.map +1 -0
- package/esm/next/context/GeoDataContext.d.ts +6 -51
- package/esm/next/context/GeoDataContext.d.ts.map +1 -1
- package/esm/next/context/GeoDataContext.js +12 -25
- package/esm/next/context/GeoDataContext.js.map +1 -1
- package/esm/next/context/GeoLayersContext.d.ts +111 -0
- package/esm/next/context/GeoLayersContext.d.ts.map +1 -0
- package/esm/next/context/GeoLayersContext.js +67 -0
- package/esm/next/context/GeoLayersContext.js.map +1 -0
- package/esm/next/context/GeoLegendContext.d.ts +23 -33
- package/esm/next/context/GeoLegendContext.d.ts.map +1 -1
- package/esm/next/context/GeoLegendContext.js +34 -31
- package/esm/next/context/GeoLegendContext.js.map +1 -1
- package/esm/next/context/InitialExecutionContext.d.ts +1 -1
- package/esm/next/context/InitialExecutionContext.d.ts.map +1 -1
- package/esm/next/context/MapRuntimeContext.d.ts +15 -0
- package/esm/next/context/MapRuntimeContext.d.ts.map +1 -0
- package/esm/next/context/MapRuntimeContext.js +15 -0
- package/esm/next/context/MapRuntimeContext.js.map +1 -0
- package/esm/next/context/createGeoContext.d.ts +36 -0
- package/esm/next/context/createGeoContext.d.ts.map +1 -0
- package/esm/next/context/createGeoContext.js +45 -0
- package/esm/next/context/createGeoContext.js.map +1 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts +24 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.d.ts.map +1 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js +64 -0
- package/esm/next/hooks/dataLoading/useGeoChartDataPipeline.js.map +1 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts +33 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.d.ts.map +1 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js +36 -0
- package/esm/next/hooks/dataLoading/useNormalizedLayerExecutions.js.map +1 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.d.ts +12 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.d.ts.map +1 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.js +34 -0
- package/esm/next/hooks/layers/useGeoAdapterContext.js.map +1 -0
- package/esm/next/hooks/layers/useLayerTooltips.d.ts +48 -0
- package/esm/next/hooks/layers/useLayerTooltips.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayerTooltips.js +105 -0
- package/esm/next/hooks/layers/useLayerTooltips.js.map +1 -0
- package/esm/next/hooks/layers/useLayersData.d.ts +45 -0
- package/esm/next/hooks/layers/useLayersData.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayersData.js +69 -0
- package/esm/next/hooks/layers/useLayersData.js.map +1 -0
- package/esm/next/hooks/layers/useLayersExecutions.d.ts +27 -0
- package/esm/next/hooks/layers/useLayersExecutions.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayersExecutions.js +15 -0
- package/esm/next/hooks/layers/useLayersExecutions.js.map +1 -0
- package/esm/next/hooks/layers/useLayersPrepare.d.ts +83 -0
- package/esm/next/hooks/layers/useLayersPrepare.d.ts.map +1 -0
- package/esm/next/hooks/layers/useLayersPrepare.js +84 -0
- package/esm/next/hooks/layers/useLayersPrepare.js.map +1 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.d.ts +23 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.d.ts.map +1 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.js +70 -0
- package/esm/next/hooks/layers/useSyncLayersToMap.js.map +1 -0
- package/esm/next/hooks/legend/useLegendConfig.d.ts +2 -2
- package/esm/next/hooks/legend/useLegendConfig.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendConfig.js.map +1 -1
- package/esm/next/hooks/legend/useLegendDetails.d.ts +3 -3
- package/esm/next/hooks/legend/useLegendDetails.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendDetails.js.map +1 -1
- package/esm/next/hooks/legend/useLegendItemClick.d.ts +2 -2
- package/esm/next/hooks/legend/useLegendItemClick.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendItemClick.js.map +1 -1
- package/esm/next/hooks/legend/useLegendItemsWithState.d.ts +2 -2
- package/esm/next/hooks/legend/useLegendItemsWithState.d.ts.map +1 -1
- package/esm/next/hooks/legend/useLegendItemsWithState.js +0 -3
- package/esm/next/hooks/legend/useLegendItemsWithState.js.map +1 -1
- package/esm/next/hooks/legend/useLegendRenderState.d.ts +44 -0
- package/esm/next/hooks/legend/useLegendRenderState.d.ts.map +1 -0
- package/esm/next/hooks/legend/useLegendRenderState.js +43 -0
- package/esm/next/hooks/legend/useLegendRenderState.js.map +1 -0
- package/esm/next/hooks/legend/useSelectedSegments.d.ts +2 -2
- package/esm/next/hooks/legend/useSelectedSegments.d.ts.map +1 -1
- package/esm/next/hooks/legend/useSelectedSegments.js +0 -3
- package/esm/next/hooks/legend/useSelectedSegments.js.map +1 -1
- package/esm/next/hooks/map/useAfterRender.d.ts +4 -3
- package/esm/next/hooks/map/useAfterRender.d.ts.map +1 -1
- package/esm/next/hooks/map/useAfterRender.js +3 -16
- package/esm/next/hooks/map/useAfterRender.js.map +1 -1
- package/esm/next/hooks/map/useMapCallbacks.d.ts +3 -3
- package/esm/next/hooks/map/useMapCallbacks.d.ts.map +1 -1
- package/esm/next/hooks/map/useMapCallbacks.js.map +1 -1
- package/esm/next/hooks/map/useMapInitialization.d.ts +7 -8
- package/esm/next/hooks/map/useMapInitialization.d.ts.map +1 -1
- package/esm/next/hooks/map/useMapInitialization.js +20 -23
- package/esm/next/hooks/map/useMapInitialization.js.map +1 -1
- package/esm/next/hooks/map/useMapResize.d.ts +3 -3
- package/esm/next/hooks/map/useMapResize.d.ts.map +1 -1
- package/esm/next/hooks/map/useMapResize.js +3 -7
- package/esm/next/hooks/map/useMapResize.js.map +1 -1
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts +21 -0
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.d.ts.map +1 -0
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.js +39 -0
- package/esm/next/hooks/props/useResolvedGeoChartNextProps.js.map +1 -0
- package/esm/next/hooks/pushData/useGeoPushData.d.ts +28 -0
- package/esm/next/hooks/pushData/useGeoPushData.d.ts.map +1 -0
- package/esm/next/hooks/{shared → pushData}/useGeoPushData.js +1 -1
- package/esm/next/hooks/pushData/useGeoPushData.js.map +1 -0
- package/esm/next/hooks/utils/useCallbackOnChange.d.ts +24 -0
- package/esm/next/hooks/utils/useCallbackOnChange.d.ts.map +1 -0
- package/esm/next/hooks/utils/useCallbackOnChange.js +37 -0
- package/esm/next/hooks/utils/useCallbackOnChange.js.map +1 -0
- package/esm/next/index.d.ts +28 -8
- package/esm/next/index.d.ts.map +1 -1
- package/esm/next/index.js +13 -2
- package/esm/next/index.js.map +1 -1
- package/esm/next/layers/area/adapter.d.ts +4 -0
- package/esm/next/layers/area/adapter.d.ts.map +1 -0
- package/esm/next/layers/area/adapter.js +160 -0
- package/esm/next/layers/area/adapter.js.map +1 -0
- package/esm/next/{hooks/shared/geoCollectionBoundingBox.d.ts → layers/area/boundingBox.d.ts} +4 -2
- package/esm/next/layers/area/boundingBox.d.ts.map +1 -0
- package/esm/next/{hooks/shared/geoCollectionBoundingBox.js → layers/area/boundingBox.js} +23 -16
- package/esm/next/layers/area/boundingBox.js.map +1 -0
- package/esm/next/{features/coloring/areaColorStrategy.d.ts → layers/area/coloring/colorStrategy.d.ts} +2 -2
- package/esm/next/layers/area/coloring/colorStrategy.d.ts.map +1 -0
- package/esm/next/{features/coloring/areaColorStrategy.js → layers/area/coloring/colorStrategy.js} +2 -2
- package/esm/next/layers/area/coloring/colorStrategy.js.map +1 -0
- package/esm/next/{features/coloring/areaPalette.d.ts → layers/area/coloring/palette.d.ts} +1 -1
- package/esm/next/layers/area/coloring/palette.d.ts.map +1 -0
- package/esm/next/{features/coloring/areaPalette.js → layers/area/coloring/palette.js} +7 -7
- package/esm/next/layers/area/coloring/palette.js.map +1 -0
- package/esm/next/layers/area/config/defaults.d.ts +8 -0
- package/esm/next/layers/area/config/defaults.d.ts.map +1 -0
- package/esm/next/layers/area/config/defaults.js +19 -0
- package/esm/next/layers/area/config/defaults.js.map +1 -0
- package/esm/next/layers/area/constants.d.ts +14 -0
- package/esm/next/layers/area/constants.d.ts.map +1 -0
- package/esm/next/layers/area/constants.js +15 -0
- package/esm/next/layers/area/constants.js.map +1 -0
- package/esm/next/layers/area/data/transformation.d.ts +41 -0
- package/esm/next/layers/area/data/transformation.d.ts.map +1 -0
- package/esm/next/{features/data/areaTransformation.js → layers/area/data/transformation.js} +104 -55
- package/esm/next/layers/area/data/transformation.js.map +1 -0
- package/esm/next/layers/area/layerFactory.d.ts +20 -0
- package/esm/next/layers/area/layerFactory.d.ts.map +1 -0
- package/esm/next/layers/area/layerFactory.js +26 -0
- package/esm/next/layers/area/layerFactory.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayersArea.d.ts → layers/area/layers.d.ts} +7 -7
- package/esm/next/layers/area/layers.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayersArea.js → layers/area/layers.js} +10 -16
- package/esm/next/layers/area/layers.js.map +1 -0
- package/esm/next/layers/area/operations.d.ts +33 -0
- package/esm/next/layers/area/operations.d.ts.map +1 -0
- package/esm/next/layers/area/operations.js +55 -0
- package/esm/next/layers/area/operations.js.map +1 -0
- package/esm/next/layers/area/source.d.ts +36 -0
- package/esm/next/layers/area/source.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataSourceArea.js → layers/area/source.js} +21 -80
- package/esm/next/layers/area/source.js.map +1 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.d.ts +19 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.d.ts.map +1 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.js +127 -0
- package/esm/next/layers/area/tooltip/tooltipManagement.js.map +1 -0
- package/esm/next/layers/common/computeLegend.d.ts +34 -0
- package/esm/next/layers/common/computeLegend.d.ts.map +1 -0
- package/esm/next/layers/common/computeLegend.js +43 -0
- package/esm/next/layers/common/computeLegend.js.map +1 -0
- package/esm/next/layers/common/dimensions.d.ts +15 -0
- package/esm/next/layers/common/dimensions.d.ts.map +1 -0
- package/esm/next/layers/common/dimensions.js +24 -0
- package/esm/next/layers/common/dimensions.js.map +1 -0
- package/esm/next/layers/common/layerOps.d.ts +4 -0
- package/esm/next/layers/common/layerOps.d.ts.map +1 -0
- package/esm/next/layers/common/layerOps.js +21 -0
- package/esm/next/layers/common/layerOps.js.map +1 -0
- package/esm/next/layers/common/mapFacade.d.ts +116 -0
- package/esm/next/layers/common/mapFacade.d.ts.map +1 -0
- package/esm/next/layers/common/mapFacade.js +128 -0
- package/esm/next/layers/common/mapFacade.js.map +1 -0
- package/esm/next/layers/execution/buildLayerExecution.d.ts +15 -0
- package/esm/next/layers/execution/buildLayerExecution.d.ts.map +1 -0
- package/esm/next/layers/execution/buildLayerExecution.js +28 -0
- package/esm/next/layers/execution/buildLayerExecution.js.map +1 -0
- package/esm/next/layers/execution/layerContext.d.ts +33 -0
- package/esm/next/layers/execution/layerContext.d.ts.map +1 -0
- package/esm/next/layers/execution/layerContext.js +39 -0
- package/esm/next/layers/execution/layerContext.js.map +1 -0
- package/esm/next/layers/pushpin/adapter.d.ts +4 -0
- package/esm/next/layers/pushpin/adapter.d.ts.map +1 -0
- package/esm/next/layers/pushpin/adapter.js +122 -0
- package/esm/next/layers/pushpin/adapter.js.map +1 -0
- package/esm/next/layers/pushpin/clustering/clustering.d.ts +8 -0
- package/esm/next/layers/pushpin/clustering/clustering.d.ts.map +1 -0
- package/esm/next/layers/pushpin/clustering/clustering.js +11 -0
- package/esm/next/layers/pushpin/clustering/clustering.js.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.d.ts +2 -2
- package/esm/next/layers/pushpin/coloring/colorStrategy.d.ts.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/colorStrategy.js +4 -4
- package/esm/next/layers/pushpin/coloring/colorStrategy.js.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/palette.d.ts +2 -2
- package/esm/next/layers/pushpin/coloring/palette.d.ts.map +1 -0
- package/esm/next/{features → layers/pushpin}/coloring/palette.js +8 -5
- package/esm/next/layers/pushpin/coloring/palette.js.map +1 -0
- package/esm/next/layers/pushpin/config/defaults.d.ts +12 -0
- package/esm/next/layers/pushpin/config/defaults.d.ts.map +1 -0
- package/esm/next/layers/pushpin/config/defaults.js +19 -0
- package/esm/next/layers/pushpin/config/defaults.js.map +1 -0
- package/esm/next/{constants/geoChart.d.ts → layers/pushpin/constants.d.ts} +1 -9
- package/esm/next/layers/pushpin/constants.d.ts.map +1 -0
- package/esm/next/{constants/geoChart.js → layers/pushpin/constants.js} +1 -9
- package/esm/next/layers/pushpin/constants.js.map +1 -0
- package/esm/next/{features/data/pushpinTransformation.d.ts → layers/pushpin/data/transformation.d.ts} +5 -5
- package/esm/next/layers/pushpin/data/transformation.d.ts.map +1 -0
- package/esm/next/{features/data/pushpinTransformation.js → layers/pushpin/data/transformation.js} +146 -56
- package/esm/next/layers/pushpin/data/transformation.js.map +1 -0
- package/esm/next/layers/pushpin/layerFactory.d.ts +20 -0
- package/esm/next/layers/pushpin/layerFactory.d.ts.map +1 -0
- package/esm/next/layers/pushpin/layerFactory.js +26 -0
- package/esm/next/layers/pushpin/layerFactory.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayers.d.ts → layers/pushpin/layers.d.ts} +12 -8
- package/esm/next/layers/pushpin/layers.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreDataLayers.js → layers/pushpin/layers.js} +39 -35
- package/esm/next/layers/pushpin/layers.js.map +1 -0
- package/esm/next/layers/pushpin/operations.d.ts +37 -0
- package/esm/next/layers/pushpin/operations.d.ts.map +1 -0
- package/esm/next/layers/pushpin/operations.js +74 -0
- package/esm/next/layers/pushpin/operations.js.map +1 -0
- package/esm/next/layers/pushpin/size/calculations.d.ts.map +1 -0
- package/esm/next/layers/pushpin/size/calculations.js.map +1 -0
- package/esm/next/layers/pushpin/source.d.ts +32 -0
- package/esm/next/layers/pushpin/source.d.ts.map +1 -0
- package/esm/next/layers/pushpin/source.js +126 -0
- package/esm/next/layers/pushpin/source.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreTooltip.d.ts → layers/pushpin/tooltip/tooltipManagement.d.ts} +13 -23
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.d.ts.map +1 -0
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.js +208 -0
- package/esm/next/layers/pushpin/tooltip/tooltipManagement.js.map +1 -0
- package/esm/next/layers/registry/adapterRegistry.d.ts +31 -0
- package/esm/next/layers/registry/adapterRegistry.d.ts.map +1 -0
- package/esm/next/layers/registry/adapterRegistry.js +48 -0
- package/esm/next/layers/registry/adapterRegistry.js.map +1 -0
- package/esm/next/layers/registry/adapterTypes.d.ts +295 -0
- package/esm/next/layers/registry/adapterTypes.d.ts.map +1 -0
- package/esm/next/{types/areaInternal.js → layers/registry/adapterTypes.js} +1 -1
- package/esm/next/layers/registry/adapterTypes.js.map +1 -0
- package/esm/next/layers/registry/output.d.ts +9 -0
- package/esm/next/layers/registry/output.d.ts.map +1 -0
- package/esm/next/layers/registry/output.js +22 -0
- package/esm/next/layers/registry/output.js.map +1 -0
- package/esm/next/map/MapController.d.ts +25 -0
- package/esm/next/map/MapController.d.ts.map +1 -0
- package/esm/next/map/MapController.js +39 -0
- package/esm/next/map/MapController.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreConfig.d.ts → map/runtime/mapConfig.d.ts} +5 -4
- package/esm/next/map/runtime/mapConfig.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreConfig.js → map/runtime/mapConfig.js} +5 -4
- package/esm/next/map/runtime/mapConfig.js.map +1 -0
- package/esm/next/{features/map/initializeMap.d.ts → map/runtime/mapInitialization.d.ts} +3 -3
- package/esm/next/map/runtime/mapInitialization.d.ts.map +1 -0
- package/esm/next/{features/map/initializeMap.js → map/runtime/mapInitialization.js} +14 -9
- package/esm/next/map/runtime/mapInitialization.js.map +1 -0
- package/esm/next/{features/data/transformationCommon.d.ts → map/style/dataTransformation.d.ts} +1 -8
- package/esm/next/map/style/dataTransformation.d.ts.map +1 -0
- package/esm/next/{features/data/transformationCommon.js → map/style/dataTransformation.js} +1 -21
- package/esm/next/map/style/dataTransformation.js.map +1 -0
- package/esm/next/map/style/sharedDefaults.d.ts +12 -0
- package/esm/next/map/style/sharedDefaults.d.ts.map +1 -0
- package/esm/next/map/style/sharedDefaults.js +25 -0
- package/esm/next/map/style/sharedDefaults.js.map +1 -0
- package/esm/next/map/style/sharedLayers.d.ts +8 -0
- package/esm/next/map/style/sharedLayers.d.ts.map +1 -0
- package/esm/next/map/style/sharedLayers.js +18 -0
- package/esm/next/map/style/sharedLayers.js.map +1 -0
- package/esm/next/map/style/styleConfig.d.ts +3 -0
- package/esm/next/map/style/styleConfig.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/style.js → map/style/styleConfig.js} +1 -1
- package/esm/next/map/style/styleConfig.js.map +1 -0
- package/esm/next/{features/tooltip/formatting.d.ts → map/style/tooltipFormatting.d.ts} +1 -1
- package/esm/next/map/style/tooltipFormatting.d.ts.map +1 -0
- package/esm/next/{features/tooltip/formatting.js → map/style/tooltipFormatting.js} +1 -1
- package/esm/next/map/style/tooltipFormatting.js.map +1 -0
- package/esm/next/map/styleReconciliation/planBuilder.d.ts +105 -0
- package/esm/next/map/styleReconciliation/planBuilder.d.ts.map +1 -0
- package/esm/next/map/styleReconciliation/planBuilder.js +83 -0
- package/esm/next/map/styleReconciliation/planBuilder.js.map +1 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.d.ts +92 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.d.ts.map +1 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.js +121 -0
- package/esm/next/map/styleReconciliation/reconcileStyle.js.map +1 -0
- package/esm/next/map/styleReconciliation/types.d.ts +138 -0
- package/esm/next/map/styleReconciliation/types.d.ts.map +1 -0
- package/esm/next/{types/shared.js → map/styleReconciliation/types.js} +1 -1
- package/esm/next/map/styleReconciliation/types.js.map +1 -0
- package/esm/next/map/viewport/viewportCalculation.d.ts +33 -0
- package/esm/next/map/viewport/viewportCalculation.d.ts.map +1 -0
- package/esm/next/map/viewport/viewportCalculation.js +94 -0
- package/esm/next/map/viewport/viewportCalculation.js.map +1 -0
- package/esm/next/{providers/maplibre/maplibreViewport.d.ts → map/viewport/viewportPresets.d.ts} +4 -4
- package/esm/next/map/viewport/viewportPresets.d.ts.map +1 -0
- package/esm/next/{providers/maplibre/maplibreViewport.js → map/viewport/viewportPresets.js} +9 -13
- package/esm/next/map/viewport/viewportPresets.js.map +1 -0
- package/esm/next/map/viewport.d.ts +8 -0
- package/esm/next/map/viewport.d.ts.map +1 -0
- package/esm/next/map/viewport.js +44 -0
- package/esm/next/map/viewport.js.map +1 -0
- package/esm/next/pushData/PushDataSync.d.ts +12 -0
- package/esm/next/pushData/PushDataSync.d.ts.map +1 -0
- package/esm/next/pushData/PushDataSync.js +16 -0
- package/esm/next/pushData/PushDataSync.js.map +1 -0
- package/esm/next/types/common/callbacks.d.ts +14 -0
- package/esm/next/types/common/callbacks.d.ts.map +1 -0
- package/esm/next/types/{areaPublic.js → common/callbacks.js} +1 -1
- package/esm/next/types/common/callbacks.js.map +1 -0
- package/esm/next/types/common/coordinates.d.ts +31 -0
- package/esm/next/types/common/coordinates.d.ts.map +1 -0
- package/esm/next/types/{areaConfig.js → common/coordinates.js} +1 -1
- package/esm/next/types/common/coordinates.js.map +1 -0
- package/esm/next/types/common/legends.d.ts +56 -0
- package/esm/next/types/common/legends.d.ts.map +1 -0
- package/esm/next/types/common/legends.js +3 -0
- package/esm/next/types/common/legends.js.map +1 -0
- package/esm/next/types/config/areaChart.d.ts +37 -0
- package/esm/next/types/config/areaChart.d.ts.map +1 -0
- package/esm/next/types/config/areaChart.js +3 -0
- package/esm/next/types/config/areaChart.js.map +1 -0
- package/esm/next/types/config/areas.d.ts +23 -0
- package/esm/next/types/config/areas.d.ts.map +1 -0
- package/esm/next/types/{config.js → config/areas.js} +1 -1
- package/esm/next/types/config/areas.js.map +1 -0
- package/esm/next/types/config/legend.d.ts +26 -0
- package/esm/next/types/config/legend.d.ts.map +1 -0
- package/esm/next/types/config/legend.js +3 -0
- package/esm/next/types/config/legend.js.map +1 -0
- package/esm/next/types/config/points.d.ts +44 -0
- package/esm/next/types/config/points.d.ts.map +1 -0
- package/esm/next/types/config/points.js +23 -0
- package/esm/next/types/config/points.js.map +1 -0
- package/esm/next/types/config/pushpinChart.d.ts +37 -0
- package/esm/next/types/config/pushpinChart.d.ts.map +1 -0
- package/esm/next/types/config/pushpinChart.js +3 -0
- package/esm/next/types/config/pushpinChart.js.map +1 -0
- package/esm/next/types/config/unified.d.ts +93 -0
- package/esm/next/types/config/unified.d.ts.map +1 -0
- package/esm/next/types/config/unified.js +3 -0
- package/esm/next/types/config/unified.js.map +1 -0
- package/esm/next/types/config/viewport.d.ts +38 -0
- package/esm/next/types/config/viewport.d.ts.map +1 -0
- package/esm/next/types/config/viewport.js +25 -0
- package/esm/next/types/config/viewport.js.map +1 -0
- package/esm/next/types/geoData/area.d.ts +32 -0
- package/esm/next/types/geoData/area.d.ts.map +1 -0
- package/esm/next/types/geoData/area.js +3 -0
- package/esm/next/types/geoData/area.js.map +1 -0
- package/esm/next/types/geoData/common.d.ts +72 -0
- package/esm/next/types/geoData/common.d.ts.map +1 -0
- package/esm/next/types/geoData/common.js +3 -0
- package/esm/next/types/geoData/common.js.map +1 -0
- package/esm/next/types/geoData/pushpin.d.ts +51 -0
- package/esm/next/types/geoData/pushpin.d.ts.map +1 -0
- package/esm/next/types/geoData/pushpin.js +3 -0
- package/esm/next/types/geoData/pushpin.js.map +1 -0
- package/esm/next/types/geoData/typeGuards.d.ts +21 -0
- package/esm/next/types/geoData/typeGuards.d.ts.map +1 -0
- package/esm/next/types/geoData/typeGuards.js +24 -0
- package/esm/next/types/geoData/typeGuards.js.map +1 -0
- package/esm/next/types/layers/index.d.ts +207 -0
- package/esm/next/types/layers/index.d.ts.map +1 -0
- package/esm/next/types/layers/index.js +31 -0
- package/esm/next/types/layers/index.js.map +1 -0
- package/esm/next/types/{mapProvider.d.ts → map/provider.d.ts} +5 -51
- package/esm/next/types/map/provider.d.ts.map +1 -0
- package/esm/next/types/map/provider.js +3 -0
- package/esm/next/types/map/provider.js.map +1 -0
- package/esm/next/types/props/areaChart/internal.d.ts +43 -0
- package/esm/next/types/props/areaChart/internal.d.ts.map +1 -0
- package/esm/next/types/props/areaChart/internal.js.map +1 -0
- package/esm/next/types/props/areaChart/public.d.ts +73 -0
- package/esm/next/types/props/areaChart/public.d.ts.map +1 -0
- package/esm/next/types/props/areaChart/public.js +3 -0
- package/esm/next/types/props/areaChart/public.js.map +1 -0
- package/esm/next/types/props/geoChartNext/internal.d.ts +92 -0
- package/esm/next/types/props/geoChartNext/internal.d.ts.map +1 -0
- package/esm/next/types/props/geoChartNext/internal.js +3 -0
- package/esm/next/types/props/geoChartNext/internal.js.map +1 -0
- package/esm/next/types/props/geoChartNext/public.d.ts +50 -0
- package/esm/next/types/props/geoChartNext/public.d.ts.map +1 -0
- package/esm/next/types/props/geoChartNext/public.js +3 -0
- package/esm/next/types/props/geoChartNext/public.js.map +1 -0
- package/esm/next/types/props/pushpinChart/internal.d.ts +43 -0
- package/esm/next/types/props/pushpinChart/internal.d.ts.map +1 -0
- package/esm/next/types/props/pushpinChart/internal.js +3 -0
- package/esm/next/types/props/pushpinChart/internal.js.map +1 -0
- package/esm/next/types/props/pushpinChart/public.d.ts +81 -0
- package/esm/next/types/props/pushpinChart/public.d.ts.map +1 -0
- package/esm/next/types/props/pushpinChart/public.js +3 -0
- package/esm/next/types/props/pushpinChart/public.js.map +1 -0
- package/esm/next/utils/dataValidation.d.ts +85 -0
- package/esm/next/utils/dataValidation.d.ts.map +1 -0
- package/esm/next/utils/dataValidation.js +82 -0
- package/esm/next/utils/dataValidation.js.map +1 -0
- package/esm/next/utils/fingerprint.d.ts +39 -0
- package/esm/next/utils/fingerprint.d.ts.map +1 -0
- package/esm/next/utils/fingerprint.js +44 -0
- package/esm/next/utils/fingerprint.js.map +1 -0
- package/esm/next/utils/geoCollection.d.ts +0 -7
- package/esm/next/utils/geoCollection.d.ts.map +1 -1
- package/esm/next/utils/geoCollection.js +15 -61
- package/esm/next/utils/geoCollection.js.map +1 -1
- package/esm/next/utils/geoHeaders.d.ts +12 -0
- package/esm/next/utils/geoHeaders.d.ts.map +1 -0
- package/esm/next/utils/geoHeaders.js +12 -0
- package/esm/next/utils/geoHeaders.js.map +1 -0
- package/esm/next/utils/guards.d.ts +18 -0
- package/esm/next/utils/guards.d.ts.map +1 -0
- package/esm/next/utils/guards.js +41 -0
- package/esm/next/utils/guards.js.map +1 -0
- package/esm/next/utils/layerConversion.d.ts +38 -0
- package/esm/next/utils/layerConversion.d.ts.map +1 -0
- package/esm/next/utils/layerConversion.js +244 -0
- package/esm/next/utils/layerConversion.js.map +1 -0
- package/package.json +9 -9
- package/styles/css/main.css +18 -0
- package/styles/css/main.css.map +1 -1
- package/styles/scss/geo-chart-next.scss +24 -0
- package/styles/scss/main.scss +1 -0
- package/esm/next/RenderGeoAreaChart.d.ts +0 -15
- package/esm/next/RenderGeoAreaChart.d.ts.map +0 -1
- package/esm/next/RenderGeoAreaChart.js +0 -104
- package/esm/next/RenderGeoAreaChart.js.map +0 -1
- package/esm/next/RenderGeoPushpinChart.d.ts +0 -15
- package/esm/next/RenderGeoPushpinChart.d.ts.map +0 -1
- package/esm/next/RenderGeoPushpinChart.js +0 -111
- package/esm/next/RenderGeoPushpinChart.js.map +0 -1
- package/esm/next/components/ErrorComponent.d.ts +0 -13
- package/esm/next/components/ErrorComponent.d.ts.map +0 -1
- package/esm/next/components/ErrorComponent.js.map +0 -1
- package/esm/next/components/LoadingComponent.d.ts +0 -5
- package/esm/next/components/LoadingComponent.d.ts.map +0 -1
- package/esm/next/components/LoadingComponent.js.map +0 -1
- package/esm/next/constants/geoChart.d.ts.map +0 -1
- package/esm/next/constants/geoChart.js.map +0 -1
- package/esm/next/constants/internal.d.ts.map +0 -1
- package/esm/next/constants/internal.js.map +0 -1
- package/esm/next/context/GeoAreaCollectionContext.d.ts +0 -24
- package/esm/next/context/GeoAreaCollectionContext.d.ts.map +0 -1
- package/esm/next/context/GeoAreaCollectionContext.js +0 -39
- package/esm/next/context/GeoAreaCollectionContext.js.map +0 -1
- package/esm/next/context/GeoAreaDataContext.d.ts +0 -69
- package/esm/next/context/GeoAreaDataContext.d.ts.map +0 -1
- package/esm/next/context/GeoAreaDataContext.js +0 -87
- package/esm/next/context/GeoAreaDataContext.js.map +0 -1
- package/esm/next/context/GeoAreaPropsContext.d.ts +0 -47
- package/esm/next/context/GeoAreaPropsContext.d.ts.map +0 -1
- package/esm/next/context/GeoAreaPropsContext.js +0 -84
- package/esm/next/context/GeoAreaPropsContext.js.map +0 -1
- package/esm/next/context/GeoPushpinDataContext.d.ts +0 -14
- package/esm/next/context/GeoPushpinDataContext.d.ts.map +0 -1
- package/esm/next/context/GeoPushpinDataContext.js +0 -51
- package/esm/next/context/GeoPushpinDataContext.js.map +0 -1
- package/esm/next/context/GeoPushpinPropsContext.d.ts +0 -47
- package/esm/next/context/GeoPushpinPropsContext.d.ts.map +0 -1
- package/esm/next/context/GeoPushpinPropsContext.js +0 -81
- package/esm/next/context/GeoPushpinPropsContext.js.map +0 -1
- package/esm/next/context/MapInstanceContext.d.ts +0 -42
- package/esm/next/context/MapInstanceContext.d.ts.map +0 -1
- package/esm/next/context/MapInstanceContext.js +0 -62
- package/esm/next/context/MapInstanceContext.js.map +0 -1
- package/esm/next/features/clustering/clustering.d.ts +0 -23
- package/esm/next/features/clustering/clustering.d.ts.map +0 -1
- package/esm/next/features/clustering/clustering.js +0 -26
- package/esm/next/features/clustering/clustering.js.map +0 -1
- package/esm/next/features/coloring/areaColorStrategy.d.ts.map +0 -1
- package/esm/next/features/coloring/areaColorStrategy.js.map +0 -1
- package/esm/next/features/coloring/areaPalette.d.ts.map +0 -1
- package/esm/next/features/coloring/areaPalette.js.map +0 -1
- package/esm/next/features/coloring/colorStrategy.d.ts.map +0 -1
- package/esm/next/features/coloring/colorStrategy.js.map +0 -1
- package/esm/next/features/coloring/palette.d.ts.map +0 -1
- package/esm/next/features/coloring/palette.js.map +0 -1
- package/esm/next/features/data/areaTransformation.d.ts +0 -60
- package/esm/next/features/data/areaTransformation.d.ts.map +0 -1
- package/esm/next/features/data/areaTransformation.js.map +0 -1
- package/esm/next/features/data/dataSourceManagement.d.ts +0 -20
- package/esm/next/features/data/dataSourceManagement.d.ts.map +0 -1
- package/esm/next/features/data/dataSourceManagement.js +0 -30
- package/esm/next/features/data/dataSourceManagement.js.map +0 -1
- package/esm/next/features/data/pushpinTransformation.d.ts.map +0 -1
- package/esm/next/features/data/pushpinTransformation.js.map +0 -1
- package/esm/next/features/data/transformationCommon.d.ts.map +0 -1
- package/esm/next/features/data/transformationCommon.js.map +0 -1
- package/esm/next/features/map/areaLayerManagement.d.ts +0 -51
- package/esm/next/features/map/areaLayerManagement.d.ts.map +0 -1
- package/esm/next/features/map/areaLayerManagement.js +0 -81
- package/esm/next/features/map/areaLayerManagement.js.map +0 -1
- package/esm/next/features/map/initializeMap.d.ts.map +0 -1
- package/esm/next/features/map/initializeMap.js.map +0 -1
- package/esm/next/features/map/layerManagement.d.ts +0 -51
- package/esm/next/features/map/layerManagement.d.ts.map +0 -1
- package/esm/next/features/map/layerManagement.js +0 -95
- package/esm/next/features/map/layerManagement.js.map +0 -1
- package/esm/next/features/map/viewportManagement.d.ts +0 -89
- package/esm/next/features/map/viewportManagement.d.ts.map +0 -1
- package/esm/next/features/map/viewportManagement.js +0 -223
- package/esm/next/features/map/viewportManagement.js.map +0 -1
- package/esm/next/features/size/calculations.d.ts.map +0 -1
- package/esm/next/features/size/calculations.js.map +0 -1
- package/esm/next/features/tooltip/formatting.d.ts.map +0 -1
- package/esm/next/features/tooltip/formatting.js.map +0 -1
- package/esm/next/features/tooltip/tooltipManagement.d.ts +0 -47
- package/esm/next/features/tooltip/tooltipManagement.d.ts.map +0 -1
- package/esm/next/features/tooltip/tooltipManagement.js +0 -77
- package/esm/next/features/tooltip/tooltipManagement.js.map +0 -1
- package/esm/next/helpers/areaAttributeResolver.d.ts +0 -10
- package/esm/next/helpers/areaAttributeResolver.d.ts.map +0 -1
- package/esm/next/helpers/areaAttributeResolver.js +0 -26
- package/esm/next/helpers/areaAttributeResolver.js.map +0 -1
- package/esm/next/hooks/init/useInitExecution.d.ts +0 -32
- package/esm/next/hooks/init/useInitExecution.d.ts.map +0 -1
- package/esm/next/hooks/init/useInitExecution.js +0 -107
- package/esm/next/hooks/init/useInitExecution.js.map +0 -1
- package/esm/next/hooks/init/useInitExecutionResult.d.ts +0 -17
- package/esm/next/hooks/init/useInitExecutionResult.d.ts.map +0 -1
- package/esm/next/hooks/init/useInitExecutionResult.js +0 -51
- package/esm/next/hooks/init/useInitExecutionResult.js.map +0 -1
- package/esm/next/hooks/legend/useAreaLegendItems.d.ts +0 -27
- package/esm/next/hooks/legend/useAreaLegendItems.d.ts.map +0 -1
- package/esm/next/hooks/legend/useAreaLegendItems.js +0 -33
- package/esm/next/hooks/legend/useAreaLegendItems.js.map +0 -1
- package/esm/next/hooks/legend/useLegendProps.d.ts +0 -53
- package/esm/next/hooks/legend/useLegendProps.d.ts.map +0 -1
- package/esm/next/hooks/legend/useLegendProps.js +0 -38
- package/esm/next/hooks/legend/useLegendProps.js.map +0 -1
- package/esm/next/hooks/legend/usePushpinLegendItems.d.ts +0 -27
- package/esm/next/hooks/legend/usePushpinLegendItems.d.ts.map +0 -1
- package/esm/next/hooks/legend/usePushpinLegendItems.js +0 -33
- package/esm/next/hooks/legend/usePushpinLegendItems.js.map +0 -1
- package/esm/next/hooks/map/useAreaMapDataSync.d.ts +0 -9
- package/esm/next/hooks/map/useAreaMapDataSync.d.ts.map +0 -1
- package/esm/next/hooks/map/useAreaMapDataSync.js +0 -71
- package/esm/next/hooks/map/useAreaMapDataSync.js.map +0 -1
- package/esm/next/hooks/map/useMapDataSync.d.ts +0 -44
- package/esm/next/hooks/map/useMapDataSync.d.ts.map +0 -1
- package/esm/next/hooks/map/useMapDataSync.js +0 -87
- package/esm/next/hooks/map/useMapDataSync.js.map +0 -1
- package/esm/next/hooks/map/useTooltipHandlers.d.ts +0 -22
- package/esm/next/hooks/map/useTooltipHandlers.d.ts.map +0 -1
- package/esm/next/hooks/map/useTooltipHandlers.js +0 -28
- package/esm/next/hooks/map/useTooltipHandlers.js.map +0 -1
- package/esm/next/hooks/shared/geoCollectionBoundingBox.d.ts.map +0 -1
- package/esm/next/hooks/shared/geoCollectionBoundingBox.js.map +0 -1
- package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts +0 -43
- package/esm/next/hooks/shared/useAreaCollectionFeatures.d.ts.map +0 -1
- package/esm/next/hooks/shared/useAreaCollectionFeatures.js +0 -213
- package/esm/next/hooks/shared/useAreaCollectionFeatures.js.map +0 -1
- package/esm/next/hooks/shared/useAreaDataTransformation.d.ts +0 -21
- package/esm/next/hooks/shared/useAreaDataTransformation.d.ts.map +0 -1
- package/esm/next/hooks/shared/useAreaDataTransformation.js +0 -25
- package/esm/next/hooks/shared/useAreaDataTransformation.js.map +0 -1
- package/esm/next/hooks/shared/useAreaPushData.d.ts +0 -11
- package/esm/next/hooks/shared/useAreaPushData.d.ts.map +0 -1
- package/esm/next/hooks/shared/useAreaPushData.js +0 -20
- package/esm/next/hooks/shared/useAreaPushData.js.map +0 -1
- package/esm/next/hooks/shared/useGeoDataTransformation.d.ts +0 -9
- package/esm/next/hooks/shared/useGeoDataTransformation.d.ts.map +0 -1
- package/esm/next/hooks/shared/useGeoDataTransformation.js +0 -20
- package/esm/next/hooks/shared/useGeoDataTransformation.js.map +0 -1
- package/esm/next/hooks/shared/useGeoPushData.d.ts +0 -20
- package/esm/next/hooks/shared/useGeoPushData.d.ts.map +0 -1
- package/esm/next/hooks/shared/useGeoPushData.js.map +0 -1
- package/esm/next/hooks/shared/usePushData.d.ts +0 -8
- package/esm/next/hooks/shared/usePushData.d.ts.map +0 -1
- package/esm/next/hooks/shared/usePushData.js +0 -15
- package/esm/next/hooks/shared/usePushData.js.map +0 -1
- package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts +0 -23
- package/esm/next/hooks/shared/usePushpinDataTransformation.d.ts.map +0 -1
- package/esm/next/hooks/shared/usePushpinDataTransformation.js +0 -27
- package/esm/next/hooks/shared/usePushpinDataTransformation.js.map +0 -1
- package/esm/next/hooks/shared/useResolvedAreaProps.d.ts +0 -16
- package/esm/next/hooks/shared/useResolvedAreaProps.d.ts.map +0 -1
- package/esm/next/hooks/shared/useResolvedAreaProps.js +0 -36
- package/esm/next/hooks/shared/useResolvedAreaProps.js.map +0 -1
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts +0 -8
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.d.ts.map +0 -1
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.js +0 -11
- package/esm/next/hooks/shared/useResolvedPlaceholderValues.js.map +0 -1
- package/esm/next/hooks/shared/useResolvedProps.d.ts +0 -16
- package/esm/next/hooks/shared/useResolvedProps.d.ts.map +0 -1
- package/esm/next/hooks/shared/useResolvedProps.js +0 -40
- package/esm/next/hooks/shared/useResolvedProps.js.map +0 -1
- package/esm/next/hooks/shared/useSegmentLegendItems.d.ts +0 -17
- package/esm/next/hooks/shared/useSegmentLegendItems.d.ts.map +0 -1
- package/esm/next/hooks/shared/useSegmentLegendItems.js +0 -33
- package/esm/next/hooks/shared/useSegmentLegendItems.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreConfig.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreConfig.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayers.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayers.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayersArea.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataLayersArea.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSource.d.ts +0 -28
- package/esm/next/providers/maplibre/maplibreDataSource.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSource.js +0 -117
- package/esm/next/providers/maplibre/maplibreDataSource.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts +0 -34
- package/esm/next/providers/maplibre/maplibreDataSourceArea.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreDataSourceArea.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreTooltip.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreTooltip.js +0 -174
- package/esm/next/providers/maplibre/maplibreTooltip.js.map +0 -1
- package/esm/next/providers/maplibre/maplibreViewport.d.ts.map +0 -1
- package/esm/next/providers/maplibre/maplibreViewport.js.map +0 -1
- package/esm/next/providers/maplibre/style.d.ts +0 -3
- package/esm/next/providers/maplibre/style.d.ts.map +0 -1
- package/esm/next/providers/maplibre/style.js.map +0 -1
- package/esm/next/types/areaConfig.d.ts +0 -68
- package/esm/next/types/areaConfig.d.ts.map +0 -1
- package/esm/next/types/areaConfig.js.map +0 -1
- package/esm/next/types/areaInternal.d.ts +0 -13
- package/esm/next/types/areaInternal.d.ts.map +0 -1
- package/esm/next/types/areaInternal.js.map +0 -1
- package/esm/next/types/areaPublic.d.ts +0 -68
- package/esm/next/types/areaPublic.d.ts.map +0 -1
- package/esm/next/types/areaPublic.js.map +0 -1
- package/esm/next/types/config.d.ts +0 -89
- package/esm/next/types/config.d.ts.map +0 -1
- package/esm/next/types/config.js.map +0 -1
- package/esm/next/types/internal.d.ts +0 -17
- package/esm/next/types/internal.d.ts.map +0 -1
- package/esm/next/types/internal.js.map +0 -1
- package/esm/next/types/mapProvider.d.ts.map +0 -1
- package/esm/next/types/mapProvider.js +0 -3
- package/esm/next/types/mapProvider.js.map +0 -1
- package/esm/next/types/public.d.ts +0 -84
- package/esm/next/types/public.d.ts.map +0 -1
- package/esm/next/types/public.js +0 -15
- package/esm/next/types/public.js.map +0 -1
- package/esm/next/types/shared.d.ts +0 -245
- package/esm/next/types/shared.d.ts.map +0 -1
- package/esm/next/types/shared.js.map +0 -1
- /package/esm/next/{features → layers/pushpin}/size/calculations.d.ts +0 -0
- /package/esm/next/{features → layers/pushpin}/size/calculations.js +0 -0
- /package/esm/next/types/{internal.js → props/areaChart/internal.js} +0 -0
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useCallback, useEffect, useMemo, useRef } from "react";
|
|
3
|
+
import { getLayerAdapter } from "../../layers/registry/adapterRegistry.js";
|
|
4
|
+
import { buildOutputFromLayerData } from "../../layers/registry/output.js";
|
|
5
|
+
/**
|
|
6
|
+
* Collects tooltip configuration from an adapter.
|
|
7
|
+
*/
|
|
8
|
+
function getLayerTooltipConfig(layerExecution, layerData, adapterContext, tooltip, drillablePredicates) {
|
|
9
|
+
const { layer } = layerExecution;
|
|
10
|
+
const adapter = getLayerAdapter(layer);
|
|
11
|
+
const layerOutput = buildOutputFromLayerData(layerData);
|
|
12
|
+
if (!adapter?.getTooltipConfig || !layerOutput) {
|
|
13
|
+
return null;
|
|
14
|
+
}
|
|
15
|
+
return (adapter.getTooltipConfig(layer, layerOutput, adapterContext, {
|
|
16
|
+
tooltip,
|
|
17
|
+
drillablePredicates,
|
|
18
|
+
}) ?? null);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Hook that manages unified tooltip handling for all layers.
|
|
22
|
+
*
|
|
23
|
+
* @remarks
|
|
24
|
+
* Registers ONE mousemove handler that queries all tooltip-enabled layers.
|
|
25
|
+
* MapLibre returns features in render order (topmost first), so the tooltip
|
|
26
|
+
* is shown for the visually topmost feature.
|
|
27
|
+
*
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
export function useLayerTooltips({ map, isMapReady, tooltip, drillablePredicates, layerExecutions, layers, adapterContext, }) {
|
|
31
|
+
const currentTooltipConfigRef = useRef(null);
|
|
32
|
+
const tooltipConfigs = useMemo(() => {
|
|
33
|
+
if (!tooltip) {
|
|
34
|
+
return [];
|
|
35
|
+
}
|
|
36
|
+
const configs = [];
|
|
37
|
+
for (const layerExecution of layerExecutions) {
|
|
38
|
+
const layerData = layers.get(layerExecution.layerId);
|
|
39
|
+
if (!layerData) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const config = getLayerTooltipConfig(layerExecution, layerData, adapterContext, tooltip, drillablePredicates);
|
|
43
|
+
if (config) {
|
|
44
|
+
configs.push(config);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return configs;
|
|
48
|
+
}, [layerExecutions, layers, adapterContext, tooltip, drillablePredicates]);
|
|
49
|
+
const layerIdToConfig = useMemo(() => {
|
|
50
|
+
const lookup = new Map();
|
|
51
|
+
for (const config of tooltipConfigs) {
|
|
52
|
+
for (const layerId of config.layerIds) {
|
|
53
|
+
lookup.set(layerId, config);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return lookup;
|
|
57
|
+
}, [tooltipConfigs]);
|
|
58
|
+
const allLayerIds = useMemo(() => {
|
|
59
|
+
return tooltipConfigs.flatMap((config) => config.layerIds);
|
|
60
|
+
}, [tooltipConfigs]);
|
|
61
|
+
const hideCurrentTooltip = useCallback((mapInstance) => {
|
|
62
|
+
if (currentTooltipConfigRef.current && mapInstance) {
|
|
63
|
+
currentTooltipConfigRef.current.hideTooltip(mapInstance);
|
|
64
|
+
currentTooltipConfigRef.current = null;
|
|
65
|
+
}
|
|
66
|
+
}, []);
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
if (!map || !isMapReady || allLayerIds.length === 0) {
|
|
69
|
+
hideCurrentTooltip(map);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const handleMouseMove = (e) => {
|
|
73
|
+
const existingLayerIds = allLayerIds.filter((id) => map.getLayer(id));
|
|
74
|
+
if (existingLayerIds.length === 0) {
|
|
75
|
+
hideCurrentTooltip(map);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
const features = map.queryRenderedFeatures(e.point, {
|
|
79
|
+
layers: existingLayerIds,
|
|
80
|
+
});
|
|
81
|
+
if (features && features.length > 0) {
|
|
82
|
+
const topFeature = features[0];
|
|
83
|
+
const featureLayerId = topFeature.layer?.id;
|
|
84
|
+
if (featureLayerId) {
|
|
85
|
+
const config = layerIdToConfig.get(featureLayerId);
|
|
86
|
+
if (config) {
|
|
87
|
+
if (currentTooltipConfigRef.current && currentTooltipConfigRef.current !== config) {
|
|
88
|
+
currentTooltipConfigRef.current.hideTooltip(map);
|
|
89
|
+
}
|
|
90
|
+
config.showTooltip(map, topFeature, e.lngLat);
|
|
91
|
+
currentTooltipConfigRef.current = config;
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
hideCurrentTooltip(map);
|
|
97
|
+
};
|
|
98
|
+
map.on("mousemove", handleMouseMove);
|
|
99
|
+
return () => {
|
|
100
|
+
map.off("mousemove", handleMouseMove);
|
|
101
|
+
hideCurrentTooltip(map);
|
|
102
|
+
};
|
|
103
|
+
}, [map, isMapReady, allLayerIds, layerIdToConfig, hideCurrentTooltip]);
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=useLayerTooltips.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayerTooltips.js","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayerTooltips.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAMhE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAwC3E;;GAEG;AACH,SAAS,qBAAqB,CAC1B,cAAqC,EACrC,SAAwB,EACxB,cAAkC,EAClC,OAAqB,EACrB,mBAAuC;IAEvC,MAAM,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;IACjC,MAAM,OAAO,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IACvC,MAAM,WAAW,GAAG,wBAAwB,CAAC,SAAS,CAAC,CAAC;IAExD,IAAI,CAAC,OAAO,EAAE,gBAAgB,IAAI,CAAC,WAAW,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,CACH,OAAO,CAAC,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE;QACzD,OAAO;QACP,mBAAmB;KACtB,CAAC,IAAI,IAAI,CACb,CAAC;AACN,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAC7B,GAAG,EACH,UAAU,EACV,OAAO,EACP,mBAAmB,EACnB,eAAe,EACf,MAAM,EACN,cAAc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IAAI,MAAM,EAAE,CAAC;wBACT,IAAI,uBAAuB,CAAC,OAAO,IAAI,uBAAuB,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;4BAChF,uBAAuB,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;wBACrD,CAAC;wBAED,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAC9C,uBAAuB,CAAC,OAAO,GAAG,MAAM,CAAC;wBACzC,OAAO;oBACX,CAAC;gBACL,CAAC;YACL,CAAC;YAED,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAC5B,CAAC,CAAC;QAEF,GAAG,CAAC,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;QAErC,OAAO,GAAG,EAAE;YACR,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,eAAe,CAAC,CAAC;YACtC,kBAAkB,CAAC,GAAG,CAAC,CAAC;QAC5B,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC5E,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import { DataViewFacade, GoodDataSdkError, UseCancelablePromiseStatus } from "@gooddata/sdk-ui";
|
|
3
|
+
import type { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
|
|
4
|
+
/**
|
|
5
|
+
* Result of loading all layer execution data in parallel.
|
|
6
|
+
*
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
export interface ILayersDataResult {
|
|
10
|
+
/**
|
|
11
|
+
* Map of layerId to DataViewFacade for each successfully loaded layer.
|
|
12
|
+
* Empty until all layers complete successfully.
|
|
13
|
+
*/
|
|
14
|
+
layerDataViews: Map<string, DataViewFacade>;
|
|
15
|
+
/**
|
|
16
|
+
* Combined loading status for all layers.
|
|
17
|
+
* - "pending" if no executions provided
|
|
18
|
+
* - "loading" while any execution is in progress
|
|
19
|
+
* - "success" when all executions complete successfully
|
|
20
|
+
* - "error" if any execution fails
|
|
21
|
+
*/
|
|
22
|
+
status: UseCancelablePromiseStatus;
|
|
23
|
+
/**
|
|
24
|
+
* First error encountered, if any.
|
|
25
|
+
*/
|
|
26
|
+
error?: GoodDataSdkError;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Hook that executes all layer executions in parallel and returns combined results.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* Uses Promise.all to execute all layers simultaneously. The status is:
|
|
33
|
+
* - "success" only when ALL layers have loaded successfully
|
|
34
|
+
* - "error" if ANY layer fails (returns first error)
|
|
35
|
+
* - "loading" while any layer is still loading
|
|
36
|
+
*
|
|
37
|
+
* @param layerExecutions - Array of layer execution records
|
|
38
|
+
* @param backend - Optional backend override
|
|
39
|
+
* @param workspace - Optional workspace override
|
|
40
|
+
* @returns Combined data views, status, and error
|
|
41
|
+
*
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export declare function useLayersData(layerExecutions: ILayerExecutionRecord[], backend?: IAnalyticalBackend, workspace?: string): ILayersDataResult;
|
|
45
|
+
//# sourceMappingURL=useLayersData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayersData.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayersData.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,cAAc,EACd,gBAAgB,EAChB,0BAA0B,EAK7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;OAGG;IACH,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IAE5C;;;;;;OAMG;IACH,MAAM,EAAE,0BAA0B,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAkCD;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CACzB,eAAe,EAAE,qBAAqB,EAAE,EACxC,OAAO,CAAC,EAAE,kBAAkB,EAC5B,SAAS,CAAC,EAAE,MAAM,GACnB,iBAAiB,CA+BnB"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { DataViewFacade, convertError, useBackendStrict, useCancelablePromise, useWorkspaceStrict, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { createExecutionsFingerprint } from "../../utils/fingerprint.js";
|
|
5
|
+
/**
|
|
6
|
+
* Executes a single layer and returns its data view.
|
|
7
|
+
*
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
async function executeLayerData(layerExecution) {
|
|
11
|
+
try {
|
|
12
|
+
const executionResult = await layerExecution.execution.execute();
|
|
13
|
+
const dataView = await executionResult.readAll();
|
|
14
|
+
return {
|
|
15
|
+
layerId: layerExecution.layerId,
|
|
16
|
+
dataView: DataViewFacade.for(dataView),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
catch (err) {
|
|
20
|
+
throw convertError(err);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Executes all layers in parallel and returns their data views.
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
async function executeAllLayers(layerExecutions) {
|
|
29
|
+
return Promise.all(layerExecutions.map(executeLayerData));
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Hook that executes all layer executions in parallel and returns combined results.
|
|
33
|
+
*
|
|
34
|
+
* @remarks
|
|
35
|
+
* Uses Promise.all to execute all layers simultaneously. The status is:
|
|
36
|
+
* - "success" only when ALL layers have loaded successfully
|
|
37
|
+
* - "error" if ANY layer fails (returns first error)
|
|
38
|
+
* - "loading" while any layer is still loading
|
|
39
|
+
*
|
|
40
|
+
* @param layerExecutions - Array of layer execution records
|
|
41
|
+
* @param backend - Optional backend override
|
|
42
|
+
* @param workspace - Optional workspace override
|
|
43
|
+
* @returns Combined data views, status, and error
|
|
44
|
+
*
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
export function useLayersData(layerExecutions, backend, workspace) {
|
|
48
|
+
const resolvedBackend = useBackendStrict(backend, "useLayersData");
|
|
49
|
+
const resolvedWorkspace = useWorkspaceStrict(workspace, "useLayersData");
|
|
50
|
+
const executionsFingerprint = useMemo(() => createExecutionsFingerprint(layerExecutions), [layerExecutions]);
|
|
51
|
+
const { result, status, error } = useCancelablePromise({
|
|
52
|
+
promise: layerExecutions.length > 0 ? () => executeAllLayers(layerExecutions) : undefined,
|
|
53
|
+
}, [resolvedBackend, resolvedWorkspace, executionsFingerprint]);
|
|
54
|
+
const layerDataViews = useMemo(() => {
|
|
55
|
+
const map = new Map();
|
|
56
|
+
if (result) {
|
|
57
|
+
for (const entry of result) {
|
|
58
|
+
map.set(entry.layerId, entry.dataView);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return map;
|
|
62
|
+
}, [result]);
|
|
63
|
+
return {
|
|
64
|
+
layerDataViews,
|
|
65
|
+
status,
|
|
66
|
+
error,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=useLayersData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayersData.js","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayersData.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EACH,cAAc,EAGd,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,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AAS;KAC5F,EACD,CAAC,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,CAC9D,CAAC;IAEF,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE;QAChC,MAAM,GAAG,GAAG,IAAI,GAAG,EAA0B,CAAC;QAC9C,IAAI,MAAM,EAAE,CAAC;YACT,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;gBACzB,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC3C,CAAC;QACL,CAAC;QACD,OAAO,GAAG,CAAC;IACf,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO;QACH,cAAc;QACd,MAAM;QACN,KAAK;KACR,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { IAnalyticalBackend, IPreparedExecution } from "@gooddata/sdk-backend-spi";
|
|
2
|
+
import type { IExecutionConfig } from "@gooddata/sdk-model";
|
|
3
|
+
import type { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
4
|
+
import type { IGeoLayer } from "../../types/layers/index.js";
|
|
5
|
+
/**
|
|
6
|
+
* Hook that creates prepared executions for all layers using layer adapters.
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* This prepares the standard IDataVisualization execution props (`execution` + `executions`) by
|
|
10
|
+
* building layer-specific executions (via {@link buildLayerExecution}) and splitting the first
|
|
11
|
+
* layer as the primary execution.
|
|
12
|
+
*
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
interface ILayerExecutionsResult {
|
|
16
|
+
primaryExecution?: IPreparedExecution;
|
|
17
|
+
additionalExecutions: IPreparedExecution[];
|
|
18
|
+
}
|
|
19
|
+
export declare function useLayersExecutions(props: {
|
|
20
|
+
layers: IGeoLayer[];
|
|
21
|
+
backend?: IAnalyticalBackend;
|
|
22
|
+
workspace?: string;
|
|
23
|
+
config?: IGeoChartNextConfig;
|
|
24
|
+
execConfig?: IExecutionConfig;
|
|
25
|
+
}): ILayerExecutionsResult;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=useLayersExecutions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayersExecutions.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayersExecutions.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACxF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAI5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAE7D;;;;;;;;;GASG;AACH,UAAU,sBAAsB;IAC5B,gBAAgB,CAAC,EAAE,kBAAkB,CAAC;IACtC,oBAAoB,EAAE,kBAAkB,EAAE,CAAC;CAC9C;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IACvC,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,gBAAgB,CAAC;CACjC,GAAG,sBAAsB,CAazB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useBackendStrict, useWorkspaceStrict } from "@gooddata/sdk-ui";
|
|
4
|
+
import { buildLayerExecution } from "../../layers/execution/buildLayerExecution.js";
|
|
5
|
+
export function useLayersExecutions(props) {
|
|
6
|
+
const { layers, config, execConfig } = props;
|
|
7
|
+
const backend = useBackendStrict(props.backend, "useLayersExecutions");
|
|
8
|
+
const workspace = useWorkspaceStrict(props.workspace, "useLayersExecutions");
|
|
9
|
+
return useMemo(() => {
|
|
10
|
+
const executions = layers.map((layer) => buildLayerExecution(layer, { backend, workspace, config, execConfig }));
|
|
11
|
+
const [primaryExecution, ...additionalExecutions] = executions;
|
|
12
|
+
return { primaryExecution, additionalExecutions };
|
|
13
|
+
}, [layers, backend, workspace, config, execConfig]);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=useLayersExecutions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayersExecutions.js","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayersExecutions.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+CAA+C,CAAC;AAmBpF,MAAM,UAAU,mBAAmB,CAAC,KAMnC;IACG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAC7C,MAAM,OAAO,GAAG,gBAAgB,CAAC,KAAK,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC;IACvE,MAAM,SAAS,GAAG,kBAAkB,CAAC,KAAK,CAAC,SAAS,EAAE,qBAAqB,CAAC,CAAC;IAE7E,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACpC,mBAAmB,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CACzE,CAAC;QACF,MAAM,CAAC,gBAAgB,EAAE,GAAG,oBAAoB,CAAC,GAAG,UAAU,CAAC;QAE/D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,CAAC;IACtD,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { IntlShape } from "react-intl";
|
|
2
|
+
import type { IAnalyticalBackend } from "@gooddata/sdk-backend-spi";
|
|
3
|
+
import type { IColorPalette, IExecutionConfig } from "@gooddata/sdk-model";
|
|
4
|
+
import { DataViewFacade, GoodDataSdkError, UseCancelablePromiseStatus } from "@gooddata/sdk-ui";
|
|
5
|
+
import type { IColorMapping } from "@gooddata/sdk-ui-vis-commons";
|
|
6
|
+
import type { IGeoLayerOutput } from "../../layers/registry/adapterTypes.js";
|
|
7
|
+
import type { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
8
|
+
import type { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
|
|
9
|
+
/**
|
|
10
|
+
* Prepared output for a single layer.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export interface ILayerPreparedData {
|
|
15
|
+
/**
|
|
16
|
+
* Layer ID for reference.
|
|
17
|
+
*/
|
|
18
|
+
layerId: string;
|
|
19
|
+
/**
|
|
20
|
+
* DataViewFacade from execution.
|
|
21
|
+
*/
|
|
22
|
+
dataView: DataViewFacade;
|
|
23
|
+
/**
|
|
24
|
+
* Prepared layer output (features, legend, colorStrategy, etc.).
|
|
25
|
+
* Null if layer preparation returned no data.
|
|
26
|
+
*/
|
|
27
|
+
output: IGeoLayerOutput | null;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Result of preparing all layer outputs.
|
|
31
|
+
*
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export interface ILayersPrepareResult {
|
|
35
|
+
/**
|
|
36
|
+
* Map of layerId to prepared layer data.
|
|
37
|
+
* Empty until all layers are prepared successfully.
|
|
38
|
+
*/
|
|
39
|
+
layerOutputs: Map<string, ILayerPreparedData>;
|
|
40
|
+
/**
|
|
41
|
+
* Combined preparation status for all layers.
|
|
42
|
+
* - "pending" if no dataViews provided or dataViews not ready
|
|
43
|
+
* - "loading" while any preparation is in progress
|
|
44
|
+
* - "success" when all preparations complete successfully
|
|
45
|
+
* - "error" if any preparation fails
|
|
46
|
+
*/
|
|
47
|
+
status: UseCancelablePromiseStatus;
|
|
48
|
+
/**
|
|
49
|
+
* First error encountered, if any.
|
|
50
|
+
*/
|
|
51
|
+
error?: GoodDataSdkError;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Context needed for layer preparation.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
export interface ILayersPrepareContext {
|
|
59
|
+
backend: IAnalyticalBackend;
|
|
60
|
+
workspace: string;
|
|
61
|
+
config?: IGeoChartNextConfig;
|
|
62
|
+
execConfig?: IExecutionConfig;
|
|
63
|
+
colorPalette?: IColorPalette;
|
|
64
|
+
colorMapping?: IColorMapping[];
|
|
65
|
+
intl: IntlShape;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Hook that prepares all layer outputs in parallel once dataViews are available.
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Calls adapter's `prepareLayer` for each layer simultaneously using Promise.all.
|
|
72
|
+
* Only runs when all dataViews are available (status from useLayersData is "success").
|
|
73
|
+
*
|
|
74
|
+
* @param layerExecutions - Array of layer execution records
|
|
75
|
+
* @param layerDataViews - Map of layerId to DataViewFacade (from useLayersData)
|
|
76
|
+
* @param dataStatus - Status from useLayersData ("success" when ready)
|
|
77
|
+
* @param context - Context for layer preparation
|
|
78
|
+
* @returns Prepared layer outputs, status, and error
|
|
79
|
+
*
|
|
80
|
+
* @internal
|
|
81
|
+
*/
|
|
82
|
+
export declare function useLayersPrepare(layerExecutions: ILayerExecutionRecord[], layerDataViews: Map<string, DataViewFacade>, dataStatus: UseCancelablePromiseStatus, context: ILayersPrepareContext): ILayersPrepareResult;
|
|
83
|
+
//# sourceMappingURL=useLayersPrepare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayersPrepare.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayersPrepare.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EACH,cAAc,EAEd,gBAAgB,EAEhB,0BAA0B,EAE7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAGlE,OAAO,KAAK,EAAsB,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACjG,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAGxF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,QAAQ,EAAE,cAAc,CAAC;IAEzB;;;OAGG;IACH,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;OAGG;IACH,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAE9C;;;;;;OAMG;IACH,MAAM,EAAE,0BAA0B,CAAC;IAEnC;;OAEG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC5B;AAED;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC,OAAO,EAAE,kBAAkB,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAC7B,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,aAAa,EAAE,CAAC;IAC/B,IAAI,EAAE,SAAS,CAAC;CACnB;AAsCD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAC5B,eAAe,EAAE,qBAAqB,EAAE,EACxC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,EAC3C,UAAU,EAAE,0BAA0B,EACtC,OAAO,EAAE,qBAAqB,GAC/B,oBAAoB,CA4DtB"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { DefaultColorPalette, UnexpectedSdkError, useCancelablePromise, } from "@gooddata/sdk-ui";
|
|
4
|
+
import { getLayerAdapter } from "../../layers/registry/adapterRegistry.js";
|
|
5
|
+
import { createDataViewsFingerprint } from "../../utils/fingerprint.js";
|
|
6
|
+
/**
|
|
7
|
+
* Prepares a single layer using its adapter.
|
|
8
|
+
*
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
async function prepareSingleLayer(layerExecution, layerDataViews, adapterContext) {
|
|
12
|
+
const { layerId, layer } = layerExecution;
|
|
13
|
+
const dataView = layerDataViews.get(layerId);
|
|
14
|
+
if (!dataView) {
|
|
15
|
+
throw new UnexpectedSdkError(`No dataView found for layer ${layerId}`);
|
|
16
|
+
}
|
|
17
|
+
const adapter = getLayerAdapter(layer);
|
|
18
|
+
const output = await adapter.prepareLayer(layer, dataView, adapterContext);
|
|
19
|
+
return { layerId, dataView, output };
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Prepares all layers in parallel using their adapters.
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
async function prepareAllLayers(layerExecutions, layerDataViews, adapterContext) {
|
|
27
|
+
return Promise.all(layerExecutions.map((le) => prepareSingleLayer(le, layerDataViews, adapterContext)));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Hook that prepares all layer outputs in parallel once dataViews are available.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Calls adapter's `prepareLayer` for each layer simultaneously using Promise.all.
|
|
34
|
+
* Only runs when all dataViews are available (status from useLayersData is "success").
|
|
35
|
+
*
|
|
36
|
+
* @param layerExecutions - Array of layer execution records
|
|
37
|
+
* @param layerDataViews - Map of layerId to DataViewFacade (from useLayersData)
|
|
38
|
+
* @param dataStatus - Status from useLayersData ("success" when ready)
|
|
39
|
+
* @param context - Context for layer preparation
|
|
40
|
+
* @returns Prepared layer outputs, status, and error
|
|
41
|
+
*
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export function useLayersPrepare(layerExecutions, layerDataViews, dataStatus, context) {
|
|
45
|
+
const { backend, workspace, config, execConfig, intl } = context;
|
|
46
|
+
const colorPalette = useMemo(() => context.colorPalette ?? config?.colorPalette ?? DefaultColorPalette, [context.colorPalette, config?.colorPalette]);
|
|
47
|
+
const colorMapping = useMemo(() => context.colorMapping ?? config?.colorMapping ?? [], [context.colorMapping, config?.colorMapping]);
|
|
48
|
+
const dataViewsFingerprint = useMemo(() => createDataViewsFingerprint(layerDataViews, dataStatus === "success"), [dataStatus, layerDataViews]);
|
|
49
|
+
const configFingerprint = useMemo(() => {
|
|
50
|
+
return JSON.stringify({
|
|
51
|
+
colorPalette: colorPalette?.map((c) => c.guid),
|
|
52
|
+
colorMapping: colorMapping?.map((m) => m.color),
|
|
53
|
+
});
|
|
54
|
+
}, [colorPalette, colorMapping]);
|
|
55
|
+
const adapterContext = {
|
|
56
|
+
backend,
|
|
57
|
+
workspace,
|
|
58
|
+
config,
|
|
59
|
+
execConfig,
|
|
60
|
+
colorPalette,
|
|
61
|
+
colorMapping,
|
|
62
|
+
intl,
|
|
63
|
+
};
|
|
64
|
+
const { result, status, error } = useCancelablePromise({
|
|
65
|
+
promise: dataStatus === "success" && layerExecutions.length > 0
|
|
66
|
+
? () => prepareAllLayers(layerExecutions, layerDataViews, adapterContext)
|
|
67
|
+
: undefined,
|
|
68
|
+
}, [backend, workspace, dataViewsFingerprint, configFingerprint, intl]);
|
|
69
|
+
const layerOutputs = useMemo(() => {
|
|
70
|
+
const map = new Map();
|
|
71
|
+
if (result) {
|
|
72
|
+
for (const entry of result) {
|
|
73
|
+
map.set(entry.layerId, entry);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return map;
|
|
77
|
+
}, [result]);
|
|
78
|
+
return {
|
|
79
|
+
layerOutputs,
|
|
80
|
+
status,
|
|
81
|
+
error,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
//# sourceMappingURL=useLayersPrepare.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLayersPrepare.js","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useLayersPrepare.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,EAEH,mBAAmB,EAEnB,kBAAkB,EAElB,oBAAoB,GACvB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAI3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAmExE;;;;GAIG;AACH,KAAK,UAAU,kBAAkB,CAC7B,cAAqC,EACrC,cAA2C,EAC3C,cAAkC;IAElC,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;IAC1C,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAE7C,IAAI,CAAC,QAAQ,EAAE,CAAC;QACZ,MAAM,IAAI,kBAAkB,CAAC,+BAA+B,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,MAAM,OAAO,GAAG,eAAe,CA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from "@gooddata/sdk-ui";
|
|
2
|
+
interface IUseLayerSyncParams {
|
|
3
|
+
/**
|
|
4
|
+
* Drillable predicates for tooltip interactions.
|
|
5
|
+
*/
|
|
6
|
+
drillablePredicates: IHeaderPredicate[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Hook that syncs all pre-loaded layer data to the map.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* This hook replaces the LayerRenderer component. It handles:
|
|
13
|
+
* - Syncing prepared output for all layers to the MapLibre map
|
|
14
|
+
* - Cleanup on unmount or when dependencies change
|
|
15
|
+
*
|
|
16
|
+
* Tooltip registration is delegated to useLayerTooltips hook.
|
|
17
|
+
* All data is pre-loaded before this hook runs - no async operations here.
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare function useSyncLayersToMap({ drillablePredicates }: IUseLayerSyncParams): void;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=useSyncLayersToMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSyncLayersToMap.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useSyncLayersToMap.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAWpD,UAAU,mBAAmB;IACzB;;OAEG;IACH,mBAAmB,EAAE,gBAAgB,EAAE,CAAC;CAC3C;AA0BD;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,mBAAmB,EAAE,EAAE,mBAAmB,GAAG,IAAI,CAyCrF"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useCallback, useEffect, useRef } from "react";
|
|
3
|
+
import { useLayerTooltips } from "./useLayerTooltips.js";
|
|
4
|
+
import { useGeoLayers } from "../../context/GeoLayersContext.js";
|
|
5
|
+
import { useMapRuntime } from "../../context/MapRuntimeContext.js";
|
|
6
|
+
import { getLayerAdapter } from "../../layers/registry/adapterRegistry.js";
|
|
7
|
+
import { buildOutputFromLayerData } from "../../layers/registry/output.js";
|
|
8
|
+
/**
|
|
9
|
+
* Syncs a single layer to the map.
|
|
10
|
+
*/
|
|
11
|
+
function syncLayerToMap(layerExecution, layerData, map, adapterContext) {
|
|
12
|
+
const { layer } = layerExecution;
|
|
13
|
+
const adapter = getLayerAdapter(layer);
|
|
14
|
+
const layerOutput = buildOutputFromLayerData(layerData);
|
|
15
|
+
if (!adapter || !layerOutput) {
|
|
16
|
+
return () => { };
|
|
17
|
+
}
|
|
18
|
+
adapter.syncToMap(layer, map, layerOutput, adapterContext);
|
|
19
|
+
return () => {
|
|
20
|
+
adapter.removeFromMap(layer, map);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Hook that syncs all pre-loaded layer data to the map.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* This hook replaces the LayerRenderer component. It handles:
|
|
28
|
+
* - Syncing prepared output for all layers to the MapLibre map
|
|
29
|
+
* - Cleanup on unmount or when dependencies change
|
|
30
|
+
*
|
|
31
|
+
* Tooltip registration is delegated to useLayerTooltips hook.
|
|
32
|
+
* All data is pre-loaded before this hook runs - no async operations here.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export function useSyncLayersToMap({ drillablePredicates }) {
|
|
37
|
+
const { map, isMapReady, tooltip, adapterContext } = useMapRuntime();
|
|
38
|
+
const { layers, layerExecutions } = useGeoLayers();
|
|
39
|
+
const layerCleanupsRef = useRef(new Map());
|
|
40
|
+
const cleanupLayers = useCallback(() => {
|
|
41
|
+
layerCleanupsRef.current.forEach((cleanup) => cleanup());
|
|
42
|
+
layerCleanupsRef.current.clear();
|
|
43
|
+
}, []);
|
|
44
|
+
useEffect(() => {
|
|
45
|
+
if (!map || !isMapReady) {
|
|
46
|
+
cleanupLayers();
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
cleanupLayers();
|
|
50
|
+
for (const layerExecution of layerExecutions) {
|
|
51
|
+
const layerData = layers.get(layerExecution.layerId);
|
|
52
|
+
if (!layerData) {
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
const layerCleanup = syncLayerToMap(layerExecution, layerData, map, adapterContext);
|
|
56
|
+
layerCleanupsRef.current.set(layerExecution.layerId, layerCleanup);
|
|
57
|
+
}
|
|
58
|
+
return cleanupLayers;
|
|
59
|
+
}, [map, isMapReady, layerExecutions, layers, adapterContext, cleanupLayers]);
|
|
60
|
+
useLayerTooltips({
|
|
61
|
+
map,
|
|
62
|
+
isMapReady,
|
|
63
|
+
tooltip,
|
|
64
|
+
drillablePredicates,
|
|
65
|
+
layerExecutions,
|
|
66
|
+
layers,
|
|
67
|
+
adapterContext,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=useSyncLayersToMap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSyncLayersToMap.js","sourceRoot":"","sources":["../../../../src/next/hooks/layers/useSyncLayersToMap.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAIvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAsB,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAE3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAU3E;;GAEG;AACH,SAAS,cAAc,CACnB,cAAqC,EACrC,SAAwB,EACxB,GAAe,EACf,cAAkC;IAElC,MAAM,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC;IACjC,MAAM,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IAAI,CAAC,SAAS,EAAE,CAAC;gBACb,SAAS;YACb,CAAC;YAED,MAAM,YAAY,GAAG,cAAc,CAAC,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;YACpF,gBAAgB,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QACvE,CAAC;QAED,OAAO,aAAa,CAAC;IACzB,CAAC,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC,CAAC;IAE9E,gBAAgB,CAAC;QACb,GAAG;QACH,UAAU;QACV,OAAO;QACP,mBAAmB;QACnB,eAAe;QACf,MAAM;QACN,cAAc;KACjB,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PositionType } from "@gooddata/sdk-ui-vis-commons";
|
|
2
|
-
import {
|
|
2
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
3
3
|
/**
|
|
4
4
|
* Legend configuration computed from geo config.
|
|
5
5
|
*
|
|
@@ -31,5 +31,5 @@ export interface ILegendConfig {
|
|
|
31
31
|
*
|
|
32
32
|
* @alpha
|
|
33
33
|
*/
|
|
34
|
-
export declare function useLegendConfig(config?:
|
|
34
|
+
export declare function useLegendConfig(config?: IGeoChartNextConfig): ILegendConfig;
|
|
35
35
|
//# sourceMappingURL=useLegendConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendConfig.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useLegendConfig.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendConfig.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEpE;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IAEvB;;OAEG;IACH,UAAU,EAAE,OAAO,GAAG,uBAAuB,CAAC;CACjD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,mBAAmB,GAAG,aAAa,CAU3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendConfig.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendConfig.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AA4BhC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"useLegendConfig.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendConfig.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AA4BhC;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,eAAe,CAAC,MAA4B;IACxD,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,MAAM,YAAY,GAAG,MAAM,EAAE,MAAM,CAAC;QAEpC,OAAO;YACH,OAAO,EAAE,YAAY,EAAE,OAAO,IAAI,IAAI;YACtC,QAAQ,EAAE,YAAY,EAAE,QAAQ,IAAI,KAAK;YACzC,UAAU,EAAE,YAAY,EAAE,UAAU,IAAI,KAAK;SAChD,CAAC;IACN,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContentRect } from "react-measure";
|
|
2
2
|
import { ILegendDetails } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
-
import {
|
|
4
|
-
import { IGeoCommonData } from "../../types/
|
|
3
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
4
|
+
import { IGeoCommonData } from "../../types/geoData/common.js";
|
|
5
5
|
/**
|
|
6
6
|
* Hook to extract legend details from configuration.
|
|
7
7
|
*
|
|
@@ -23,5 +23,5 @@ import { IGeoCommonData } from "../../types/shared.js";
|
|
|
23
23
|
*
|
|
24
24
|
* @alpha
|
|
25
25
|
*/
|
|
26
|
-
export declare function useLegendDetails(config:
|
|
26
|
+
export declare function useLegendDetails(config: IGeoChartNextConfig | undefined, geoData: IGeoCommonData | null, contentRect: ContentRect | undefined): ILegendDetails | null;
|
|
27
27
|
//# sourceMappingURL=useLegendDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendDetails.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EACH,cAAc,EAIjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useLegendDetails.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EACH,cAAc,EAIjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,gBAAgB,CAC5B,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,OAAO,EAAE,cAAc,GAAG,IAAI,EAC9B,WAAW,EAAE,WAAW,GAAG,SAAS,GACrC,cAAc,GAAG,IAAI,CA2BvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendDetails.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendDetails.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAGH,wBAAwB,EACxB,gBAAgB,GACnB,MAAM,8BAA8B,CAAC;AAKtC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,gBAAgB,CAC5B,
|
|
1
|
+
{"version":3,"file":"useLegendDetails.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendDetails.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAIhC,OAAO,EAGH,wBAAwB,EACxB,gBAAgB,GACnB,MAAM,8BAA8B,CAAC;AAKtC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,gBAAgB,CAC5B,MAAuC,EACvC,OAA8B,EAC9B,WAAoC;IAEpC,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,MAAM,WAAW,GAAG,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC;QAC7C,MAAM,kBAAkB,GACpB,WAAW,IAAI,wBAAwB,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC;QACxF,MAAM,iBAAiB,GAAG,WAAW,IAAI,MAAM,CAAC;QAChD,MAAM,UAAU,GAAG,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC;QAC9C,MAAM,WAAW,GAAG,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC;QAE3C,qFAAqF;QACrF,yEAAyE;QACzE,MAAM,qBAAqB,GACvB,MAAM,EAAE,qBAAqB,IAAI,CAAC,iBAAiB,KAAK,MAAM,CAAC,CAAC,CAAC,SAA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