@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IGeoLegendItem } from "../../types/common/legends.js";
|
|
2
2
|
/**
|
|
3
3
|
* Hook to handle legend item click interactions.
|
|
4
4
|
*
|
|
@@ -12,5 +12,5 @@ import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
|
|
|
12
12
|
*
|
|
13
13
|
* @alpha
|
|
14
14
|
*/
|
|
15
|
-
export declare function useLegendItemClick(allUris: string[]): (item:
|
|
15
|
+
export declare function useLegendItemClick(allUris: string[]): (item: IGeoLegendItem) => void;
|
|
16
16
|
//# sourceMappingURL=useLegendItemClick.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendItemClick.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLegendItemClick.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;GAYG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CASpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendItemClick.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useLegendItemClick.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemClick.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAiB;IAChD,MAAM,EAAE,gBAAgB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE5C,OAAO,WAAW,CACd,CAAC,IAAoB,EAAE,EAAE;QACrB,gBAAgB,CAAC,IAAI,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC,EACD,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAC9B,CAAC;AACN,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IGeoLegendItem } from "../../types/common/legends.js";
|
|
2
2
|
/**
|
|
3
3
|
* Hook to merge legend items with their visibility state from context.
|
|
4
4
|
*
|
|
@@ -18,5 +18,5 @@ import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
|
|
|
18
18
|
*
|
|
19
19
|
* @alpha
|
|
20
20
|
*/
|
|
21
|
-
export declare function useLegendItemsWithState(baseLegendItems:
|
|
21
|
+
export declare function useLegendItemsWithState(baseLegendItems: IGeoLegendItem[]): IGeoLegendItem[];
|
|
22
22
|
//# sourceMappingURL=useLegendItemsWithState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendItemsWithState.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useLegendItemsWithState.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CA2B3F"}
|
|
@@ -26,21 +26,18 @@ export function useLegendItemsWithState(baseLegendItems) {
|
|
|
26
26
|
if (!baseLegendItems.length) {
|
|
27
27
|
return [];
|
|
28
28
|
}
|
|
29
|
-
// No explicit state recorded means everything stays visible (initial state).
|
|
30
29
|
if (enabledLegendItems === null) {
|
|
31
30
|
return baseLegendItems.map((item) => ({
|
|
32
31
|
...item,
|
|
33
32
|
isVisible: true,
|
|
34
33
|
}));
|
|
35
34
|
}
|
|
36
|
-
// Explicitly tracking an empty list means all items are disabled (legacy behavior).
|
|
37
35
|
if (enabledLegendItems.length === 0) {
|
|
38
36
|
return baseLegendItems.map((item) => ({
|
|
39
37
|
...item,
|
|
40
38
|
isVisible: false,
|
|
41
39
|
}));
|
|
42
40
|
}
|
|
43
|
-
// Otherwise, item is visible if it's in the enabled list
|
|
44
41
|
return baseLegendItems.map((item) => ({
|
|
45
42
|
...item,
|
|
46
43
|
isVisible: enabledLegendItems.includes(item.uri),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLegendItemsWithState.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useLegendItemsWithState.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendItemsWithState.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,uBAAuB,CAAC,eAAiC;IACrE,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC;YAC1B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAClC,GAAG,IAAI;gBACP,SAAS,EAAE,IAAI;aAClB,CAAC,CAAC,CAAC;QACR,CAAC;QAED,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBAClC,GAAG,IAAI;gBACP,SAAS,EAAE,KAAK;aACnB,CAAC,CAAC,CAAC;QACR,CAAC;QAED,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAClC,GAAG,IAAI;YACP,SAAS,EAAE,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC;SACnD,CAAC,CAAC,CAAC;IACR,CAAC,EAAE,CAAC,eAAe,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ContentRect } from "react-measure";
|
|
2
|
+
import { IColorStrategy, PositionType } from "@gooddata/sdk-ui-vis-commons";
|
|
3
|
+
import { type IGeoLayerData } from "../../context/GeoLayersContext.js";
|
|
4
|
+
import { IGeoLegendItem } from "../../types/common/legends.js";
|
|
5
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
6
|
+
import { IGeoCommonData } from "../../types/geoData/common.js";
|
|
7
|
+
/**
|
|
8
|
+
* Result of useLegendRenderState hook
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
export interface ILegendRenderState {
|
|
13
|
+
/** Primary layer data for legend */
|
|
14
|
+
primaryLayer: IGeoLayerData | null;
|
|
15
|
+
/** Geo data from primary layer */
|
|
16
|
+
geoData: IGeoCommonData | null;
|
|
17
|
+
/** Color strategy from primary layer */
|
|
18
|
+
colorStrategy: IColorStrategy | null;
|
|
19
|
+
/** Legend items with visibility state */
|
|
20
|
+
legendItems: IGeoLegendItem[];
|
|
21
|
+
/** Selected segment items for filtering */
|
|
22
|
+
selectedSegmentItems: string[];
|
|
23
|
+
/** Computed legend position */
|
|
24
|
+
position: PositionType;
|
|
25
|
+
/** Whether legend should render before map */
|
|
26
|
+
isLegendRenderedFirst: boolean;
|
|
27
|
+
/** Whether layout is row-based (left/right position) */
|
|
28
|
+
isRow: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Hook that consolidates legend-related state and computations.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
* Extracts and combines multiple legend-related hooks into a single result object,
|
|
35
|
+
* reducing boilerplate in the render component and improving readability.
|
|
36
|
+
*
|
|
37
|
+
* @param config - Chart configuration
|
|
38
|
+
* @param chartContainerRect - Container dimensions for responsive behavior
|
|
39
|
+
* @returns Consolidated legend render state
|
|
40
|
+
*
|
|
41
|
+
* @internal
|
|
42
|
+
*/
|
|
43
|
+
export declare function useLegendRenderState(config: IGeoChartNextConfig | undefined, chartContainerRect: ContentRect | null): ILegendRenderState;
|
|
44
|
+
//# sourceMappingURL=useLegendRenderState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLegendRenderState.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendRenderState.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAM5E,OAAO,EAAE,KAAK,aAAa,EAAgB,MAAM,mCAAmC,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B,oCAAoC;IACpC,YAAY,EAAE,aAAa,GAAG,IAAI,CAAC;IACnC,kCAAkC;IAClC,OAAO,EAAE,cAAc,GAAG,IAAI,CAAC;IAC/B,wCAAwC;IACxC,aAAa,EAAE,cAAc,GAAG,IAAI,CAAC;IACrC,yCAAyC;IACzC,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,2CAA2C;IAC3C,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,+BAA+B;IAC/B,QAAQ,EAAE,YAAY,CAAC;IACvB,8CAA8C;IAC9C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,wDAAwD;IACxD,KAAK,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAChC,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,kBAAkB,EAAE,WAAW,GAAG,IAAI,GACvC,kBAAkB,CA0BpB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useLegendConfig } from "./useLegendConfig.js";
|
|
3
|
+
import { useLegendDetails } from "./useLegendDetails.js";
|
|
4
|
+
import { useLegendItemsWithState } from "./useLegendItemsWithState.js";
|
|
5
|
+
import { useSelectedSegments } from "./useSelectedSegments.js";
|
|
6
|
+
import { useGeoLayers } from "../../context/GeoLayersContext.js";
|
|
7
|
+
/**
|
|
8
|
+
* Hook that consolidates legend-related state and computations.
|
|
9
|
+
*
|
|
10
|
+
* @remarks
|
|
11
|
+
* Extracts and combines multiple legend-related hooks into a single result object,
|
|
12
|
+
* reducing boilerplate in the render component and improving readability.
|
|
13
|
+
*
|
|
14
|
+
* @param config - Chart configuration
|
|
15
|
+
* @param chartContainerRect - Container dimensions for responsive behavior
|
|
16
|
+
* @returns Consolidated legend render state
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export function useLegendRenderState(config, chartContainerRect) {
|
|
21
|
+
const { primaryLayer } = useGeoLayers();
|
|
22
|
+
const geoData = primaryLayer?.geoData ?? null;
|
|
23
|
+
const colorStrategy = primaryLayer?.colorStrategy ?? null;
|
|
24
|
+
const baseLegendItems = primaryLayer?.baseLegendItems ?? [];
|
|
25
|
+
const legendItems = useLegendItemsWithState(baseLegendItems);
|
|
26
|
+
const selectedSegmentItems = useSelectedSegments(legendItems);
|
|
27
|
+
const legendConfig = useLegendConfig(config);
|
|
28
|
+
const legendDetails = useLegendDetails(config, geoData, chartContainerRect ?? undefined);
|
|
29
|
+
const position = legendDetails?.position ?? legendConfig.position;
|
|
30
|
+
const isLegendRenderedFirst = position === "top" || position === "left";
|
|
31
|
+
const isRow = position === "left" || position === "right";
|
|
32
|
+
return {
|
|
33
|
+
primaryLayer,
|
|
34
|
+
geoData,
|
|
35
|
+
colorStrategy,
|
|
36
|
+
legendItems,
|
|
37
|
+
selectedSegmentItems,
|
|
38
|
+
position,
|
|
39
|
+
isLegendRenderedFirst,
|
|
40
|
+
isRow,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=useLegendRenderState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useLegendRenderState.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useLegendRenderState.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAMhC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAsB,YAAY,EAAE,MAAM,mCAAmC,CAAC;AA6BrF;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,oBAAoB,CAChC,MAAuC,EACvC,kBAAsC;IAEtC,MAAM,EAAE,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC;IAExC,MAAM,OAAO,GAAG,YAAY,EAAE,OAAO,IAAI,IAAI,CAAC;IAC9C,MAAM,aAAa,GAAG,YAAY,EAAE,aAAa,IAAI,IAAI,CAAC;IAC1D,MAAM,eAAe,GAAG,YAAY,EAAE,eAAe,IAAI,EAAE,CAAC;IAE5D,MAAM,WAAW,GAAG,uBAAuB,CAAC,eAAe,CAAC,CAAC;IAC7D,MAAM,oBAAoB,GAAG,mBAAmB,CAAC,WAAW,CAAC,CAAC;IAC9D,MAAM,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,kBAAkB,IAAI,SAAS,CAAC,CAAC;IACzF,MAAM,QAAQ,GAAG,aAAa,EAAE,QAAQ,IAAI,YAAY,CAAC,QAAQ,CAAC;IAElE,MAAM,qBAAqB,GAAG,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,MAAM,CAAC;IACxE,MAAM,KAAK,GAAG,QAAQ,KAAK,MAAM,IAAI,QAAQ,KAAK,OAAO,CAAC;IAE1D,OAAO;QACH,YAAY;QACZ,OAAO;QACP,aAAa;QACb,WAAW;QACX,oBAAoB;QACpB,QAAQ;QACR,qBAAqB;QACrB,KAAK;KACR,CAAC;AACN,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IGeoLegendItem } from "../../types/common/legends.js";
|
|
2
2
|
/**
|
|
3
3
|
* Hook to compute selected segment URIs from enabled legend items.
|
|
4
4
|
*
|
|
@@ -13,5 +13,5 @@ import { IPushpinCategoryLegendItem } from "@gooddata/sdk-ui-vis-commons";
|
|
|
13
13
|
*
|
|
14
14
|
* @alpha
|
|
15
15
|
*/
|
|
16
|
-
export declare function useSelectedSegments(categoryItems:
|
|
16
|
+
export declare function useSelectedSegments(categoryItems: IGeoLegendItem[]): string[];
|
|
17
17
|
//# sourceMappingURL=useSelectedSegments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectedSegments.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSelectedSegments.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,CAkB7E"}
|
|
@@ -21,15 +21,12 @@ export function useSelectedSegments(categoryItems) {
|
|
|
21
21
|
if (!categoryItems.length) {
|
|
22
22
|
return [];
|
|
23
23
|
}
|
|
24
|
-
// All items enabled (initial state)
|
|
25
24
|
if (enabledLegendItems === null) {
|
|
26
25
|
return [];
|
|
27
26
|
}
|
|
28
|
-
// User explicitly disabled every item -> keep the map unfiltered
|
|
29
27
|
if (enabledLegendItems.length === 0) {
|
|
30
28
|
return [];
|
|
31
29
|
}
|
|
32
|
-
// Filter to only enabled items
|
|
33
30
|
return categoryItems.filter((item) => enabledLegendItems.includes(item.uri)).map((item) => item.uri);
|
|
34
31
|
}, [categoryItems, enabledLegendItems]);
|
|
35
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectedSegments.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useSelectedSegments.js","sourceRoot":"","sources":["../../../../src/next/hooks/legend/useSelectedSegments.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,mBAAmB,CAAC,aAA+B;IAC/D,MAAM,EAAE,kBAAkB,EAAE,GAAG,YAAY,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC;YACxB,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,kBAAkB,KAAK,IAAI,EAAE,CAAC;YAC9B,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,kBAAkB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAClC,OAAO,EAAE,CAAC;QACd,CAAC;QAED,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,kBAAkB,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACzG,CAAC,EAAE,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { IMapFacade } from "../../layers/common/mapFacade.js";
|
|
2
|
+
import type { ILayerExecutionRecord } from "../../types/props/geoChartNext/internal.js";
|
|
2
3
|
/**
|
|
3
4
|
* Calls afterRender callback when map finishes rendering
|
|
4
5
|
*
|
|
@@ -11,9 +12,9 @@ import type { Map as MapLibreMap } from "maplibre-gl";
|
|
|
11
12
|
*
|
|
12
13
|
* @param map - MapLibre map instance
|
|
13
14
|
* @param afterRender - Callback to call when rendering is complete
|
|
14
|
-
* @param resetSignal -
|
|
15
|
+
* @param resetSignal - Layer executions that indicate the map should re-signal completion
|
|
15
16
|
*
|
|
16
17
|
* @internal
|
|
17
18
|
*/
|
|
18
|
-
export declare function useAfterRender(map:
|
|
19
|
+
export declare function useAfterRender(map: IMapFacade | null, afterRender?: () => void, resetSignal?: ILayerExecutionRecord[]): void;
|
|
19
20
|
//# sourceMappingURL=useAfterRender.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAfterRender.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useAfterRender.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useAfterRender.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useAfterRender.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAqCxF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC1B,GAAG,EAAE,UAAU,GAAG,IAAI,EACtB,WAAW,CAAC,EAAE,MAAM,IAAI,EACxB,WAAW,CAAC,EAAE,qBAAqB,EAAE,GACtC,IAAI,CAsCN"}
|
|
@@ -13,11 +13,7 @@ import { useEffect, useRef } from "react";
|
|
|
13
13
|
* @internal
|
|
14
14
|
*/
|
|
15
15
|
function isMapFullyIdle(map) {
|
|
16
|
-
|
|
17
|
-
const tilesLoaded = typeof map.areTilesLoaded === "function"
|
|
18
|
-
? map.areTilesLoaded()
|
|
19
|
-
: true;
|
|
20
|
-
return map.loaded() && tilesLoaded;
|
|
16
|
+
return map.loaded() && map.areTilesLoaded();
|
|
21
17
|
}
|
|
22
18
|
/**
|
|
23
19
|
* Schedule callback to run asynchronously
|
|
@@ -50,44 +46,35 @@ function scheduleAsync(callback) {
|
|
|
50
46
|
*
|
|
51
47
|
* @param map - MapLibre map instance
|
|
52
48
|
* @param afterRender - Callback to call when rendering is complete
|
|
53
|
-
* @param resetSignal -
|
|
49
|
+
* @param resetSignal - Layer executions that indicate the map should re-signal completion
|
|
54
50
|
*
|
|
55
51
|
* @internal
|
|
56
52
|
*/
|
|
57
53
|
export function useAfterRender(map, afterRender, resetSignal) {
|
|
58
54
|
const hasCalledRef = useRef(false);
|
|
59
55
|
const lastResetSignalRef = useRef(resetSignal);
|
|
60
|
-
// Reset the "called" flag when resetSignal changes
|
|
61
56
|
useEffect(() => {
|
|
62
57
|
if (resetSignal !== lastResetSignalRef.current) {
|
|
63
58
|
hasCalledRef.current = false;
|
|
64
59
|
lastResetSignalRef.current = resetSignal;
|
|
65
60
|
}
|
|
66
61
|
}, [resetSignal]);
|
|
67
|
-
// Set up idle listener and invoke callbacks
|
|
68
62
|
useEffect(() => {
|
|
69
|
-
// Guard: skip if no map, already called, or no callbacks
|
|
70
63
|
if (!map || hasCalledRef.current || !afterRender) {
|
|
71
64
|
return;
|
|
72
65
|
}
|
|
73
66
|
const invokeCallbacks = () => {
|
|
74
|
-
// Double-check we haven't called yet (race condition guard)
|
|
75
67
|
if (hasCalledRef.current) {
|
|
76
68
|
return;
|
|
77
69
|
}
|
|
78
70
|
hasCalledRef.current = true;
|
|
79
|
-
|
|
80
|
-
if (afterRender) {
|
|
81
|
-
afterRender();
|
|
82
|
-
}
|
|
71
|
+
afterRender?.();
|
|
83
72
|
};
|
|
84
73
|
const handleIdle = () => {
|
|
85
74
|
map.off("idle", handleIdle);
|
|
86
75
|
invokeCallbacks();
|
|
87
76
|
};
|
|
88
|
-
// Register idle listener
|
|
89
77
|
map.on("idle", handleIdle);
|
|
90
|
-
// If already idle, trigger immediately (async to avoid sync effects)
|
|
91
78
|
if (isMapFullyIdle(map)) {
|
|
92
79
|
scheduleAsync(handleIdle);
|
|
93
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAfterRender.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useAfterRender.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useAfterRender.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useAfterRender.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAK1C;;;;;;;;;;;GAWG;AACH,SAAS,cAAc,CAAC,GAAe;IACnC,OAAO,GAAG,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,cAAc,EAAE,CAAC;AAChD,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,aAAa,CAAC,QAAoB;IACvC,IAAI,OAAO,qBAAqB,KAAK,UAAU,EAAE,CAAC;QAC9C,qBAAqB,CAAC,QAAQ,CAAC,CAAC;IACpC,C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QAChC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,GAAG,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { CenterPositionChangedCallback, ZoomChangedCallback } from "../../types/
|
|
1
|
+
import type { IMapFacade } from "../../layers/common/mapFacade.js";
|
|
2
|
+
import { CenterPositionChangedCallback, ZoomChangedCallback } from "../../types/common/callbacks.js";
|
|
3
3
|
/**
|
|
4
4
|
* Set up map interaction callbacks
|
|
5
5
|
*
|
|
@@ -13,7 +13,7 @@ import { CenterPositionChangedCallback, ZoomChangedCallback } from "../../types/
|
|
|
13
13
|
*
|
|
14
14
|
* @internal
|
|
15
15
|
*/
|
|
16
|
-
export declare function useMapCallbacks(map:
|
|
16
|
+
export declare function useMapCallbacks(map: IMapFacade | null, callbacks: {
|
|
17
17
|
onCenterPositionChanged?: CenterPositionChangedCallback;
|
|
18
18
|
onZoomChanged?: ZoomChangedCallback;
|
|
19
19
|
}): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapCallbacks.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapCallbacks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"useMapCallbacks.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapCallbacks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAErG;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAC3B,GAAG,EAAE,UAAU,GAAG,IAAI,EACtB,SAAS,EAAE;IACP,uBAAuB,CAAC,EAAE,6BAA6B,CAAC;IACxD,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACvC,GACF,IAAI,CAgCN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapCallbacks.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapCallbacks.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useMapCallbacks.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapCallbacks.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKlC;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,eAAe,CAC3B,GAAsB,EACtB,SAGC;IAED,MAAM,EAAE,uBAAuB,EAAE,aAAa,EAAE,GAAG,SAAS,CAAC;IAE7D,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,GAAG,EAAE,CAAC;YACP,OAAO;QACX,CAAC;QAED,MAAM,aAAa,GAAG,GAAG,EAAE;YACvB,IAAI,uBAAuB,EAAE,CAAC;gBAC1B,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,EAAE,CAAC;gBAC/B,uBAAuB,CAAC;oBACpB,GAAG,EAAE,MAAM,CAAC,GAAG;oBACf,GAAG,EAAE,MAAM,CAAC,GAAG;iBAClB,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC;QAEF,MAAM,aAAa,GAAG,GAAG,EAAE;YACvB,IAAI,aAAa,EAAE,CAAC;gBAChB,aAAa,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YACjC,CAAC;QACL,CAAC,CAAC;QAEF,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACjC,GAAG,CAAC,EAAE,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAEjC,OAAO,GAAG,EAAE;YACR,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;YAClC,GAAG,CAAC,GAAG,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QACtC,CAAC,CAAC;IACN,CAAC,EAAE,CAAC,GAAG,EAAE,uBAAuB,EAAE,aAAa,CAAC,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { IMapViewport } from "../../types/mapProvider.js";
|
|
2
|
+
import { IMapFacade, IPopupFacade } from "../../layers/common/mapFacade.js";
|
|
3
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
4
|
+
import { IMapViewport } from "../../types/map/provider.js";
|
|
6
5
|
/**
|
|
7
6
|
* Hook return value
|
|
8
7
|
*
|
|
@@ -10,13 +9,13 @@ import { IMapViewport } from "../../types/mapProvider.js";
|
|
|
10
9
|
*/
|
|
11
10
|
export interface IUseMapInitializationResult {
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
12
|
+
* Map facade instance (null until initialized)
|
|
14
13
|
*/
|
|
15
|
-
map:
|
|
14
|
+
map: IMapFacade | null;
|
|
16
15
|
/**
|
|
17
16
|
* Tooltip popup instance (null until initialized)
|
|
18
17
|
*/
|
|
19
|
-
tooltip:
|
|
18
|
+
tooltip: IPopupFacade | null;
|
|
20
19
|
/**
|
|
21
20
|
* Whether map is ready for use
|
|
22
21
|
*/
|
|
@@ -52,5 +51,5 @@ export interface IUseMapInitializationResult {
|
|
|
52
51
|
*
|
|
53
52
|
* @internal
|
|
54
53
|
*/
|
|
55
|
-
export declare function useMapInitialization(containerRef: RefObject<HTMLDivElement | null>,
|
|
54
|
+
export declare function useMapInitialization(containerRef: RefObject<HTMLDivElement | null>, config?: IGeoChartNextConfig, initialViewport?: Partial<IMapViewport> | null): IUseMapInitializationResult;
|
|
56
55
|
//# sourceMappingURL=useMapInitialization.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapInitialization.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapInitialization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"useMapInitialization.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapInitialization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAwC,MAAM,OAAO,CAAC;AAIxE,OAAO,EACH,UAAU,EACV,YAAY,EAKf,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAG3D;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;OAEG;IACH,GAAG,EAAE,UAAU,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;CACvB;AAmBD;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,EAC9C,MAAM,CAAC,EAAE,mBAAmB,EAC5B,eAAe,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,GAC/C,2BAA2B,CAqF7B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
2
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useIntl } from "react-intl";
|
|
4
|
+
import { createMapFacade, createPopupFacade, } from "../../layers/common/mapFacade.js";
|
|
5
|
+
import { initializeMapLibreMap } from "../../map/runtime/mapInitialization.js";
|
|
4
6
|
import { generateMapLibreLocale } from "../../utils/mapLocale.js";
|
|
5
7
|
/**
|
|
6
8
|
* Cleanup map resources
|
|
@@ -44,48 +46,45 @@ function cleanupMapResources(map, tooltip) {
|
|
|
44
46
|
*
|
|
45
47
|
* @internal
|
|
46
48
|
*/
|
|
47
|
-
export function useMapInitialization(containerRef,
|
|
49
|
+
export function useMapInitialization(containerRef, config, initialViewport) {
|
|
50
|
+
const intl = useIntl();
|
|
48
51
|
const [map, setMap] = useState(null);
|
|
49
52
|
const [tooltip, setTooltip] = useState(null);
|
|
50
53
|
const [isMapReady, setIsMapReady] = useState(false);
|
|
51
54
|
const [error, setError] = useState(null);
|
|
52
|
-
// Refs for instance tracking and cleanup
|
|
53
55
|
const mapInstanceRef = useRef(null);
|
|
54
56
|
const tooltipInstanceRef = useRef(null);
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
// Update initial refs if map hasn't been created yet
|
|
57
|
+
const initialViewportRef = useRef({
|
|
58
|
+
center: initialViewport?.center ?? config?.center,
|
|
59
|
+
zoom: initialViewport?.zoom ?? config?.zoom,
|
|
60
|
+
bounds: initialViewport?.bounds,
|
|
61
|
+
});
|
|
61
62
|
useEffect(() => {
|
|
62
63
|
if (!mapInstanceRef.current) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
initialViewportRef.current = {
|
|
65
|
+
center: initialViewport?.center ?? config?.center,
|
|
66
|
+
zoom: initialViewport?.zoom ?? config?.zoom,
|
|
67
|
+
bounds: initialViewport?.bounds,
|
|
68
|
+
};
|
|
66
69
|
}
|
|
67
70
|
}, [config?.center, config?.zoom, initialViewport]);
|
|
68
|
-
// Generate locale for cooperative gestures
|
|
69
71
|
const cooperativeGestures = config?.cooperativeGestures ?? true;
|
|
70
72
|
const locale = useMemo(() => {
|
|
71
73
|
return cooperativeGestures ? generateMapLibreLocale(intl) : undefined;
|
|
72
74
|
}, [cooperativeGestures, intl]);
|
|
73
75
|
const isExportMode = config?.isExportMode ?? false;
|
|
74
76
|
const isViewportFrozen = Boolean(config?.viewport?.frozen);
|
|
75
|
-
// Create and manage map instance
|
|
76
77
|
useEffect(() => {
|
|
77
78
|
const container = containerRef.current;
|
|
78
79
|
if (!container) {
|
|
79
80
|
return;
|
|
80
81
|
}
|
|
81
82
|
let isMounted = true;
|
|
82
|
-
// Initialize map with captured initial viewport
|
|
83
|
-
// Use bounds if available (calculated from data), otherwise use center/zoom
|
|
84
83
|
initializeMapLibreMap({
|
|
85
84
|
container,
|
|
86
|
-
bounds:
|
|
87
|
-
center:
|
|
88
|
-
zoom:
|
|
85
|
+
bounds: initialViewportRef.current.bounds,
|
|
86
|
+
center: initialViewportRef.current.center,
|
|
87
|
+
zoom: initialViewportRef.current.zoom,
|
|
89
88
|
cooperativeGestures,
|
|
90
89
|
interactive: !isViewportFrozen,
|
|
91
90
|
preserveDrawingBuffer: isExportMode,
|
|
@@ -93,15 +92,13 @@ export function useMapInitialization(containerRef, intl, config, initialViewport
|
|
|
93
92
|
}, locale)
|
|
94
93
|
.then((result) => {
|
|
95
94
|
if (isMounted) {
|
|
96
|
-
// Store in refs and state
|
|
97
95
|
mapInstanceRef.current = result.map;
|
|
98
96
|
tooltipInstanceRef.current = result.tooltip;
|
|
99
|
-
setMap(result.map);
|
|
100
|
-
setTooltip(result.tooltip);
|
|
97
|
+
setMap(createMapFacade(result.map));
|
|
98
|
+
setTooltip(createPopupFacade(result.tooltip));
|
|
101
99
|
setIsMapReady(true);
|
|
102
100
|
}
|
|
103
101
|
else {
|
|
104
|
-
// Component unmounted during initialization - clean up
|
|
105
102
|
cleanupMapResources(result.map, result.tooltip);
|
|
106
103
|
}
|
|
107
104
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapInitialization.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapInitialization.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAa,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|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,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;IAElG,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC;AAC/C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Map as MapLibreMap } from "maplibre-gl";
|
|
2
1
|
import { ContentRect } from "react-measure";
|
|
3
|
-
import {
|
|
2
|
+
import type { IMapFacade } from "../../layers/common/mapFacade.js";
|
|
3
|
+
import { IMapViewport } from "../../types/map/provider.js";
|
|
4
4
|
/**
|
|
5
5
|
* Handle map resize when container dimensions change
|
|
6
6
|
*
|
|
@@ -20,5 +20,5 @@ import { IMapViewport } from "../../types/mapProvider.js";
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
export declare function useMapResize(map:
|
|
23
|
+
export declare function useMapResize(map: IMapFacade | null, isMapReady: boolean, chartContainerRect: ContentRect | null, viewport: Partial<IMapViewport> | null): void;
|
|
24
24
|
//# sourceMappingURL=useMapResize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapResize.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapResize.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"useMapResize.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapResize.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,YAAY,CACxB,GAAG,EAAE,UAAU,GAAG,IAAI,EACtB,UAAU,EAAE,OAAO,EACnB,kBAAkB,EAAE,WAAW,GAAG,IAAI,EACtC,QAAQ,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI,GACvC,IAAI,CAmBN"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
2
|
import { useEffect, useRef } from "react";
|
|
3
|
-
import { applyViewport } from "../../
|
|
3
|
+
import { applyViewport } from "../../map/viewport/viewportCalculation.js";
|
|
4
4
|
/**
|
|
5
5
|
* Handle map resize when container dimensions change
|
|
6
6
|
*
|
|
@@ -21,22 +21,18 @@ import { applyViewport } from "../../features/map/viewportManagement.js";
|
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
23
|
export function useMapResize(map, isMapReady, chartContainerRect, viewport) {
|
|
24
|
-
// Track previous dimensions to detect actual changes
|
|
25
24
|
const prevContainerRect = useRef(null);
|
|
26
25
|
useEffect(() => {
|
|
27
26
|
if (!map || !isMapReady || !chartContainerRect?.client || !viewport) {
|
|
28
27
|
return;
|
|
29
28
|
}
|
|
30
|
-
// Check if dimensions actually changed (not just the object reference)
|
|
31
29
|
const prev = prevContainerRect.current?.client;
|
|
32
30
|
const curr = chartContainerRect.client;
|
|
33
|
-
const
|
|
31
|
+
const { width, height } = curr;
|
|
32
|
+
const hasResized = !prev || prev.width !== width || prev.height !== height;
|
|
34
33
|
if (hasResized) {
|
|
35
34
|
prevContainerRect.current = chartContainerRect;
|
|
36
|
-
// Tell map to recalculate its canvas size to fit the new container dimensions
|
|
37
35
|
map.resize();
|
|
38
|
-
// Reapply viewport so fitBounds can recalculate based on new container size
|
|
39
|
-
// Use applyViewport directly (not applyViewportSafely) since map is already loaded
|
|
40
36
|
applyViewport(map, viewport, false);
|
|
41
37
|
}
|
|
42
38
|
}, [map, isMapReady, chartContainerRect, viewport]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMapResize.js","sourceRoot":"","sources":["../../../../src/next/hooks/map/useMapResize.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE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
|
|
1
|
+
import { IGeoChartNextConfig } from "../../types/config/unified.js";
|
|
2
|
+
import { IGeoChartNextResolvedProps } from "../../types/props/geoChartNext/internal.js";
|
|
3
|
+
import { IGeoChartNextProps } from "../../types/props/geoChartNext/public.js";
|
|
4
|
+
/**
|
|
5
|
+
* Resolves placeholders, applies defaults, and derives chart type for GeoChartNext.
|
|
6
|
+
*
|
|
7
|
+
* Pipeline: public props → placeholder resolution → defaults → resolved type → executions upstream.
|
|
8
|
+
*
|
|
9
|
+
* @param props - GeoChartNext props potentially containing placeholders
|
|
10
|
+
* @returns Resolved props with placeholders replaced, defaults applied, and chart type derived
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export declare function useResolvedGeoChartNextProps(props: IGeoChartNextProps): IGeoChartNextResolvedProps;
|
|
15
|
+
/**
|
|
16
|
+
* Applies shared + layer-specific config defaults.
|
|
17
|
+
*
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export declare function applyGeoChartNextConfigDefaults(config: IGeoChartNextConfig | undefined): IGeoChartNextConfig;
|
|
21
|
+
//# sourceMappingURL=useResolvedGeoChartNextProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResolvedGeoChartNextProps.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/props/useResolvedGeoChartNextProps.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAE9E;;;;;;;;;GASG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,kBAAkB,GAAG,0BAA0B,CAiBlG;AAED;;;;GAIG;AACH,wBAAgB,+BAA+B,CAC3C,MAAM,EAAE,mBAAmB,GAAG,SAAS,GACxC,mBAAmB,CAErB"}
|