@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,39 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useMemo } from "react";
|
|
3
|
+
import { useResolveValueWithPlaceholders } from "@gooddata/sdk-ui";
|
|
4
|
+
import { EMPTY_DRILLS, EMPTY_OBJECT } from "../../constants/emptyDefaults.js";
|
|
5
|
+
import { applyAreaConfigDefaults } from "../../layers/area/config/defaults.js";
|
|
6
|
+
import { applyPushpinConfigDefaults } from "../../layers/pushpin/config/defaults.js";
|
|
7
|
+
import { applySharedGeoConfigDefaults } from "../../map/style/sharedDefaults.js";
|
|
8
|
+
/**
|
|
9
|
+
* Resolves placeholders, applies defaults, and derives chart type for GeoChartNext.
|
|
10
|
+
*
|
|
11
|
+
* Pipeline: public props → placeholder resolution → defaults → resolved type → executions upstream.
|
|
12
|
+
*
|
|
13
|
+
* @param props - GeoChartNext props potentially containing placeholders
|
|
14
|
+
* @returns Resolved props with placeholders replaced, defaults applied, and chart type derived
|
|
15
|
+
*
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
18
|
+
export function useResolvedGeoChartNextProps(props) {
|
|
19
|
+
const resolvedLayers = useResolveValueWithPlaceholders(props.layers);
|
|
20
|
+
const resolvedType = props.type ?? resolvedLayers[0]?.type ?? props.layers[0]?.type ?? "pushpin";
|
|
21
|
+
const config = applyGeoChartNextConfigDefaults(props.config);
|
|
22
|
+
return useMemo(() => ({
|
|
23
|
+
...props,
|
|
24
|
+
layers: resolvedLayers,
|
|
25
|
+
type: resolvedType,
|
|
26
|
+
drillableItems: props.drillableItems ?? EMPTY_DRILLS,
|
|
27
|
+
execConfig: props.execConfig ?? EMPTY_OBJECT,
|
|
28
|
+
config,
|
|
29
|
+
}), [props, resolvedLayers, resolvedType, config]);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Applies shared + layer-specific config defaults.
|
|
33
|
+
*
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
export function applyGeoChartNextConfigDefaults(config) {
|
|
37
|
+
return applyAreaConfigDefaults(applyPushpinConfigDefaults(applySharedGeoConfigDefaults(config)));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=useResolvedGeoChartNextProps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useResolvedGeoChartNextProps.js","sourceRoot":"","sources":["../../../../src/next/hooks/props/useResolvedGeoChartNextProps.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,OA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import { IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
+
import { IAvailableLegends } from "../../types/common/legends.js";
|
|
5
|
+
interface ILegendContext {
|
|
6
|
+
availableLegends: IAvailableLegends;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Minimal props interface required for pushData functionality
|
|
10
|
+
*
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
interface IPushDataProps {
|
|
14
|
+
pushData?: (data: IPushData) => void;
|
|
15
|
+
}
|
|
16
|
+
interface IUseGeoPushDataConfig<TProps extends IPushDataProps, TLegendContext extends ILegendContext> {
|
|
17
|
+
useProps: () => TProps;
|
|
18
|
+
useLegendContext: () => TLegendContext;
|
|
19
|
+
getLegendVisibility?: (availableLegends: IAvailableLegends) => boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Shared implementation for Analytical Designer pushData updates.
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare function useGeoPushData<TProps extends IPushDataProps, TLegendContext extends ILegendContext>(colorStrategy: IColorStrategy | null, colorPalette: IColorPalette, { useProps, useLegendContext, getLegendVisibility }: IUseGeoPushDataConfig<TProps, TLegendContext>): void;
|
|
27
|
+
export {};
|
|
28
|
+
//# sourceMappingURL=useGeoPushData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeoPushData.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/pushData/useGeoPushData.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAG9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,UAAU,cAAc;IACpB,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;GAIG;AACH,UAAU,cAAc;IACpB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;CACxC;AAED,UAAU,qBAAqB,CAAC,MAAM,SAAS,cAAc,EAAE,cAAc,SAAS,cAAc;IAChG,QAAQ,EAAE,MAAM,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,cAAc,CAAC;IACvC,mBAAmB,CAAC,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,KAAK,OAAO,CAAC;CAC1E;AAOD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,SAAS,cAAc,EAAE,cAAc,SAAS,cAAc,EAC/F,aAAa,EAAE,cAAc,GAAG,IAAI,EACpC,YAAY,EAAE,aAAa,EAC3B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,EAAE,qBAAqB,CAAC,MAAM,EAAE,cAAc,CAAC,GACnG,IAAI,CAyBN"}
|
|
@@ -31,6 +31,6 @@ export function useGeoPushData(colorStrategy, colorPalette, { useProps, useLegen
|
|
|
31
31
|
colorPalette,
|
|
32
32
|
},
|
|
33
33
|
});
|
|
34
|
-
}, [pushData,
|
|
34
|
+
}, [pushData, colorStrategy, colorPalette, initialDataView, isLegendVisible]);
|
|
35
35
|
}
|
|
36
36
|
//# sourceMappingURL=useGeoPushData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeoPushData.js","sourceRoot":"","sources":["../../../../src/next/hooks/pushData/useGeoPushData.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMlC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAsB/E,MAAM,uBAAuB,GAAG,CAAC,gBAAmC,EAAW,EAAE;IAC7E,MAAM,aAAa,GAAG,gBAAgB,CAAC,aAAa,IAAI,KAAK,CAAC;IAC9D,OAAO,OAAO,CAAC,gBAAgB,CAAC,iBAAiB,IAAI,gBAAgB,CAAC,cAAc,IAAI,aAAa,CAAC,CAAC;AAC3G,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAC1B,aAAoC,EACpC,YAA2B,EAC3B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAiD;IAElG,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAC;IACzB,MAAM,EAAE,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAChD,MAAM,EAAE,eAAe,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAClD,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC3B,MAAM,wBAAwB,GAAG,mBAAmB,IAAI,uBAAuB,CAAC;IAEhF,MAAM,eAAe,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;IAEnE,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,QAAQ,IAAI,CAAC,aAAa,EAAE,CAAC;YAC9B,OAAO;QACX,CAAC;QAED,QAAQ,CAAC;YACL,QAAQ,EAAE,eAAe,EAAE,QAAQ;YACnC,cAAc,EAAE;gBACZ,cAAc,EAAE,eAAe;aAClC;YACD,MAAM,EAAE;gBACJ,gBAAgB,EAAE,aAAa,CAAC,kBAAkB,EAAE;gBACpD,YAAY;aACf;SACJ,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC,CAAC;AAClF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook that calls a callback when a value changes.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* This utility hook is useful for notification patterns where you need to
|
|
6
|
+
* call a callback only when a value changes, not on every render.
|
|
7
|
+
*
|
|
8
|
+
* @param value - The value to track for changes
|
|
9
|
+
* @param callback - The callback to invoke when value changes
|
|
10
|
+
* @param shouldTrigger - Optional predicate to gate callback invocation (default: true)
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* // Notify host when loading state changes
|
|
15
|
+
* useCallbackOnChange(isLoading, (loading) => onLoadingChanged?.({ isLoading: loading }));
|
|
16
|
+
*
|
|
17
|
+
* // Only notify when error is truthy
|
|
18
|
+
* useCallbackOnChange(error, (err) => onError?.(err), Boolean(error));
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare function useCallbackOnChange<T>(value: T, callback: ((value: T) => void) | undefined, shouldTrigger?: boolean): void;
|
|
24
|
+
//# sourceMappingURL=useCallbackOnChange.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCallbackOnChange.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/utils/useCallbackOnChange.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACjC,KAAK,EAAE,CAAC,EACR,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,EAC1C,aAAa,GAAE,OAAc,GAC9B,IAAI,CAaN"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* Hook that calls a callback when a value changes.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
* This utility hook is useful for notification patterns where you need to
|
|
8
|
+
* call a callback only when a value changes, not on every render.
|
|
9
|
+
*
|
|
10
|
+
* @param value - The value to track for changes
|
|
11
|
+
* @param callback - The callback to invoke when value changes
|
|
12
|
+
* @param shouldTrigger - Optional predicate to gate callback invocation (default: true)
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```typescript
|
|
16
|
+
* // Notify host when loading state changes
|
|
17
|
+
* useCallbackOnChange(isLoading, (loading) => onLoadingChanged?.({ isLoading: loading }));
|
|
18
|
+
*
|
|
19
|
+
* // Only notify when error is truthy
|
|
20
|
+
* useCallbackOnChange(error, (err) => onError?.(err), Boolean(error));
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export function useCallbackOnChange(value, callback, shouldTrigger = true) {
|
|
26
|
+
const prevValueRef = useRef(undefined);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (!shouldTrigger) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
if (prevValueRef.current !== value) {
|
|
32
|
+
prevValueRef.current = value;
|
|
33
|
+
callback?.(value);
|
|
34
|
+
}
|
|
35
|
+
}, [value, callback, shouldTrigger]);
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=useCallbackOnChange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCallbackOnChange.js","sourceRoot":"","sources":["../../../../src/next/hooks/utils/useCallbackOnChange.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,UAAU,mBAAmB,CAC/B,KAAQ,EACR,QAA0C,EAC1C,gBAAyB,IAAI;IAE7B,MAAM,YAAY,GAAG,MAAM,CAAgB,SAAS,CAAC,CAAC;IAEtD,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,CAAC,aAAa,EAAE,CAAC;YACjB,OAAO;QACX,CAAC;QAED,IAAI,YAAY,CAAC,OAAO,KAAK,KAAK,EAAE,CAAC;YACjC,YAAY,CAAC,OAAO,GAAG,KAAK,CAAC;YAC7B,QAAQ,EAAE,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACL,CAAC,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;AACzC,CAAC"}
|
package/esm/next/index.d.ts
CHANGED
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
export { GeoPushpinChartNext
|
|
2
|
-
export
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
6
|
-
export type {
|
|
7
|
-
export
|
|
8
|
-
export type {
|
|
1
|
+
export { GeoPushpinChartNext } from "./GeoPushpinChartNext.js";
|
|
2
|
+
export { PUSHPIN_LAYER_ID } from "./GeoPushpinChartNext.js";
|
|
3
|
+
export type { IGeoPushpinChartNextBaseProps, IGeoPushpinChartNextProps, } from "./types/props/pushpinChart/public.js";
|
|
4
|
+
export type { ICoreGeoPushpinChartNextProps } from "./types/props/pushpinChart/internal.js";
|
|
5
|
+
export type { IGeoPushpinChartNextConfig } from "./types/config/pushpinChart.js";
|
|
6
|
+
export type { IGeoConfigViewportNext, IGeoConfigViewportAreaNext } from "./types/config/viewport.js";
|
|
7
|
+
export { isValidViewportArea, VALID_VIEWPORT_AREAS } from "./types/config/viewport.js";
|
|
8
|
+
export type { IGeoPointsConfigNext, PushpinSizeOptionNext } from "./types/config/points.js";
|
|
9
|
+
export { isValidPushpinSizeOption, VALID_PUSHPIN_SIZE_OPTIONS } from "./types/config/points.js";
|
|
10
|
+
export type { IGeoLegendConfigNext } from "./types/config/legend.js";
|
|
11
|
+
export { GeoAreaChart } from "./GeoAreaChart.js";
|
|
12
|
+
export { AREA_LAYER_ID } from "./GeoAreaChart.js";
|
|
13
|
+
export type { IGeoAreaChartBaseProps, IGeoAreaChartProps } from "./types/props/areaChart/public.js";
|
|
14
|
+
export type { ICoreGeoAreaChartProps } from "./types/props/areaChart/internal.js";
|
|
15
|
+
export type { IGeoAreaChartConfig } from "./types/config/areaChart.js";
|
|
16
|
+
export type { IGeoAreasConfig } from "./types/config/areas.js";
|
|
17
|
+
export { GeoChartNext, GeoChartNextInternal } from "./GeoChartNext.js";
|
|
18
|
+
export type { IGeoChartNextProps } from "./types/props/geoChartNext/public.js";
|
|
19
|
+
export type { IGeoChartNextConfig } from "./types/config/unified.js";
|
|
20
|
+
export type { IGeoLayer, IGeoLayerPushpin, IGeoLayerArea, GeoLayerType } from "./types/layers/index.js";
|
|
21
|
+
export { isGeoLayerPushpin, isGeoLayerArea } from "./types/layers/index.js";
|
|
22
|
+
export { insightLayerToGeoLayer, insightLayersToGeoLayers, GEO_LAYER_TYPES, } from "./utils/layerConversion.js";
|
|
23
|
+
export { buildLayerExecution } from "./layers/execution/buildLayerExecution.js";
|
|
24
|
+
export { createPushpinLayer } from "./layers/pushpin/layerFactory.js";
|
|
25
|
+
export { createAreaLayer } from "./layers/area/layerFactory.js";
|
|
26
|
+
export { GEO_CHART_DEFAULTS } from "./constants/defaults.js";
|
|
27
|
+
export type { IGeoChartDefaults } from "./constants/defaults.js";
|
|
28
|
+
export type { CenterPositionChangedCallback, ZoomChangedCallback } from "./types/common/callbacks.js";
|
|
9
29
|
//# sourceMappingURL=index.d.ts.map
|
package/esm/next/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,YAAY,EACR,6BAA6B,EAC7B,yBAAyB,GAC5B,MAAM,sCAAsC,CAAC;AAC9C,YAAY,EAAE,6BAA6B,EAAE,MAAM,wCAAwC,CAAC;AAC5F,YAAY,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AACjF,YAAY,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AACrG,OAAO,EAAE,mB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;AAEjE,YAAY,EAAE,6BAA6B,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC"}
|
package/esm/next/index.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
|
-
export { GeoPushpinChartNext
|
|
3
|
-
export {
|
|
2
|
+
export { GeoPushpinChartNext } from "./GeoPushpinChartNext.js";
|
|
3
|
+
export { PUSHPIN_LAYER_ID } from "./GeoPushpinChartNext.js";
|
|
4
|
+
export { isValidViewportArea, VALID_VIEWPORT_AREAS } from "./types/config/viewport.js";
|
|
5
|
+
export { isValidPushpinSizeOption, VALID_PUSHPIN_SIZE_OPTIONS } from "./types/config/points.js";
|
|
6
|
+
export { GeoAreaChart } from "./GeoAreaChart.js";
|
|
7
|
+
export { AREA_LAYER_ID } from "./GeoAreaChart.js";
|
|
8
|
+
export { GeoChartNext, GeoChartNextInternal } from "./GeoChartNext.js";
|
|
9
|
+
export { isGeoLayerPushpin, isGeoLayerArea } from "./types/layers/index.js";
|
|
10
|
+
export { insightLayerToGeoLayer, insightLayersToGeoLayers, GEO_LAYER_TYPES, } from "./utils/layerConversion.js";
|
|
11
|
+
export { buildLayerExecution } from "./layers/execution/buildLayerExecution.js";
|
|
12
|
+
export { createPushpinLayer } from "./layers/pushpin/layerFactory.js";
|
|
13
|
+
export { createAreaLayer } from "./layers/area/layerFactory.js";
|
|
14
|
+
export { GEO_CHART_DEFAULTS } from "./constants/defaults.js";
|
|
4
15
|
//# sourceMappingURL=index.js.map
|
package/esm/next/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/next/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAQ5D,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvF,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAGhG,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAMlD,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAIvE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,EACH,sBAAsB,EACtB,wBAAwB,EACxB,eAAe,GAClB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAEhE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/area/adapter.ts"],"names":[],"mappings":"AAoBA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAK5D,OAAO,EAAE,gBAAgB,EAAsB,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAqGrG,eAAO,MAAM,WAAW,EAAE,gBAAgB,CAAC,aAAa,EAAE,gBAAgB,CAiFzE,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { attributeDisplayFormRef, isIdentifierRef, newBucket, } from "@gooddata/sdk-model";
|
|
3
|
+
import { BucketNames } from "@gooddata/sdk-ui";
|
|
4
|
+
import { deriveCollectionBoundingBox } from "./boundingBox.js";
|
|
5
|
+
import { getAreaColorStrategy } from "./coloring/colorStrategy.js";
|
|
6
|
+
import { transformAreaData } from "./data/transformation.js";
|
|
7
|
+
import { getAreaLayerIds, removeAreaLayer, syncAreaLayerToMap } from "./operations.js";
|
|
8
|
+
import { createAreaDataSource } from "./source.js";
|
|
9
|
+
import { createAreaTooltipConfig } from "./tooltip/tooltipManagement.js";
|
|
10
|
+
import { bboxToViewport } from "../../map/viewport/viewportCalculation.js";
|
|
11
|
+
import { getLocationCollectionMetadata } from "../../utils/geoCollection.js";
|
|
12
|
+
import { getGeoHeaderStrings } from "../../utils/geoHeaders.js";
|
|
13
|
+
import { computeLegend } from "../common/computeLegend.js";
|
|
14
|
+
import { getGeoChartDimensions } from "../common/dimensions.js";
|
|
15
|
+
const COLLECTION_OVERRIDES = {
|
|
16
|
+
region: { collectionId: "regions" },
|
|
17
|
+
};
|
|
18
|
+
function normalizeCollectionId(collectionId) {
|
|
19
|
+
return COLLECTION_OVERRIDES[collectionId]?.collectionId ?? collectionId;
|
|
20
|
+
}
|
|
21
|
+
function createExecution(layer, context) {
|
|
22
|
+
const { backend, workspace, config, execConfig } = context;
|
|
23
|
+
const { area, color, segmentBy, filters = [], sortBy = [] } = layer;
|
|
24
|
+
const { tooltipText } = config ?? {};
|
|
25
|
+
const buckets = [];
|
|
26
|
+
if (area) {
|
|
27
|
+
buckets.push(newBucket(BucketNames.AREA, area));
|
|
28
|
+
}
|
|
29
|
+
if (color) {
|
|
30
|
+
buckets.push(newBucket(BucketNames.COLOR, color));
|
|
31
|
+
}
|
|
32
|
+
if (segmentBy) {
|
|
33
|
+
buckets.push(newBucket(BucketNames.SEGMENT, segmentBy));
|
|
34
|
+
}
|
|
35
|
+
if (tooltipText) {
|
|
36
|
+
buckets.push(newBucket(BucketNames.TOOLTIP_TEXT, tooltipText));
|
|
37
|
+
}
|
|
38
|
+
let execution = backend
|
|
39
|
+
.workspace(workspace)
|
|
40
|
+
.execution()
|
|
41
|
+
.forBuckets(buckets, filters)
|
|
42
|
+
.withSorting(...sortBy)
|
|
43
|
+
.withDimensions(getGeoChartDimensions);
|
|
44
|
+
if (execConfig) {
|
|
45
|
+
execution = execution.withExecConfig(execConfig);
|
|
46
|
+
}
|
|
47
|
+
return execution;
|
|
48
|
+
}
|
|
49
|
+
async function resolveCollectionMetadata(dataView, areaAttribute, context) {
|
|
50
|
+
// First try to get metadata from execution result
|
|
51
|
+
const metadataFromExecution = getLocationCollectionMetadata(dataView);
|
|
52
|
+
if (metadataFromExecution) {
|
|
53
|
+
return {
|
|
54
|
+
...metadataFromExecution,
|
|
55
|
+
collectionId: normalizeCollectionId(metadataFromExecution.collectionId),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// Fallback: fetch from display form
|
|
59
|
+
if (!areaAttribute) {
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
const displayFormRef = attributeDisplayFormRef(areaAttribute);
|
|
63
|
+
if (!isIdentifierRef(displayFormRef)) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
const displayForm = await context.backend
|
|
68
|
+
.workspace(context.workspace)
|
|
69
|
+
.attributes()
|
|
70
|
+
.getAttributeDisplayForm(displayFormRef);
|
|
71
|
+
const geoAreaConfig = displayForm.geoAreaConfig;
|
|
72
|
+
if (geoAreaConfig?.collectionId) {
|
|
73
|
+
return {
|
|
74
|
+
collectionId: normalizeCollectionId(geoAreaConfig.collectionId),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
// Failed to fetch display form metadata
|
|
80
|
+
}
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
async function fetchAreaFeatures(dataView, areaAttribute, metadata) {
|
|
84
|
+
try {
|
|
85
|
+
const result = await dataView.getCollectionItemsForAttribute(areaAttribute, {
|
|
86
|
+
collectionId: metadata.collectionId,
|
|
87
|
+
});
|
|
88
|
+
return result?.features ?? [];
|
|
89
|
+
}
|
|
90
|
+
catch {
|
|
91
|
+
return [];
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export const areaAdapter = {
|
|
95
|
+
type: "area",
|
|
96
|
+
buildExecution(layer, context) {
|
|
97
|
+
return createExecution(layer, context);
|
|
98
|
+
},
|
|
99
|
+
async prepareLayer(layer, dataView, context) {
|
|
100
|
+
if (!context.intl) {
|
|
101
|
+
throw new Error("prepareLayer requires intl in adapter context");
|
|
102
|
+
}
|
|
103
|
+
const { emptyHeaderString, nullHeaderString } = getGeoHeaderStrings(context.intl);
|
|
104
|
+
const geoData = transformAreaData(dataView, emptyHeaderString, nullHeaderString);
|
|
105
|
+
if (!geoData?.area) {
|
|
106
|
+
return null;
|
|
107
|
+
}
|
|
108
|
+
const { colorPalette = [], colorMapping = [] } = context;
|
|
109
|
+
const colorStrategy = getAreaColorStrategy(colorPalette, colorMapping, geoData, dataView);
|
|
110
|
+
// Resolve collection metadata
|
|
111
|
+
const metadata = await resolveCollectionMetadata(dataView, layer.area, context);
|
|
112
|
+
// Fetch boundary features if we have metadata
|
|
113
|
+
let boundaryFeatures = [];
|
|
114
|
+
if (metadata && layer.area) {
|
|
115
|
+
boundaryFeatures = await fetchAreaFeatures(dataView, layer.area, metadata);
|
|
116
|
+
}
|
|
117
|
+
// Get area-specific config with defaults
|
|
118
|
+
const areaConfig = {
|
|
119
|
+
...context.config,
|
|
120
|
+
};
|
|
121
|
+
// Create complete source with all features and styling
|
|
122
|
+
// Boundaries are passed directly - no need to store in geoData
|
|
123
|
+
const source = createAreaDataSource({
|
|
124
|
+
geoData,
|
|
125
|
+
colorStrategy,
|
|
126
|
+
config: areaConfig,
|
|
127
|
+
features: boundaryFeatures,
|
|
128
|
+
});
|
|
129
|
+
const legend = computeLegend(geoData, colorStrategy, {
|
|
130
|
+
layerType: "area",
|
|
131
|
+
hasSizeData: false,
|
|
132
|
+
});
|
|
133
|
+
// Calculate initial viewport from boundary features
|
|
134
|
+
const bbox = deriveCollectionBoundingBox(boundaryFeatures);
|
|
135
|
+
const initialViewport = bboxToViewport(bbox);
|
|
136
|
+
return { source, legend, geoData, colorStrategy, initialViewport };
|
|
137
|
+
},
|
|
138
|
+
syncToMap(layer, map, output, context) {
|
|
139
|
+
if (!output.geoData) {
|
|
140
|
+
removeAreaLayer(map, layer.id);
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
const config = context.config ?? {};
|
|
144
|
+
// Use pre-computed source from output - no transformation needed
|
|
145
|
+
syncAreaLayerToMap(map, layer.id, output.source, config);
|
|
146
|
+
},
|
|
147
|
+
removeFromMap(layer, map) {
|
|
148
|
+
removeAreaLayer(map, layer.id);
|
|
149
|
+
},
|
|
150
|
+
getTooltipConfig(layer, _output, context, { tooltip, drillablePredicates }) {
|
|
151
|
+
if (!tooltip || !context.intl) {
|
|
152
|
+
return undefined;
|
|
153
|
+
}
|
|
154
|
+
const config = context.config ?? {};
|
|
155
|
+
const ids = getAreaLayerIds(layer.id);
|
|
156
|
+
const layerIds = [ids.fillLayerId, ids.outlineLayerId];
|
|
157
|
+
return createAreaTooltipConfig(tooltip, config, drillablePredicates, context.intl, layerIds);
|
|
158
|
+
},
|
|
159
|
+
};
|
|
160
|
+
//# sourceMappingURL=adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../src/next/layers/area/adapter.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAGhC,OAAO,EAGH,uBAAuB,EACvB,eAAe,EACf,SAAS,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAE/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CA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AI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YAClB,eAAe,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;YAC/B,OAAO;QACX,CAAC;QAED,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;QACpC,iEAAiE;QACjE,kBAAkB,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;IAED,aAAa,CAAC,KAAK,EAAE,GAAG;QACpB,eAAe,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAED,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,mBAAmB,EAAE;QACtE,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAC5B,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC;QACpC,MAAM,GAAG,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;QAEvD,OAAO,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACjG,CAAC;CACJ,CAAC"}
|
package/esm/next/{hooks/shared/geoCollectionBoundingBox.d.ts → layers/area/boundingBox.d.ts}
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IGeoJsonFeature } from "@gooddata/sdk-model";
|
|
2
|
+
type NormalizedBBox = [number, number, number, number];
|
|
2
3
|
/**
|
|
3
4
|
* Resolves a bounding box for geo collection features.
|
|
4
5
|
*
|
|
@@ -13,5 +14,6 @@ import { IGeoJsonFeature } from "@gooddata/sdk-model";
|
|
|
13
14
|
*
|
|
14
15
|
* @internal
|
|
15
16
|
*/
|
|
16
|
-
export declare function deriveCollectionBoundingBox(features: IGeoJsonFeature[] | undefined, fallback?:
|
|
17
|
-
|
|
17
|
+
export declare function deriveCollectionBoundingBox(features: IGeoJsonFeature[] | undefined, fallback?: GeoJSON.BBox): NormalizedBBox | undefined;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=boundingBox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundingBox.d.ts","sourceRoot":"","sources":["../../../../src/next/layers/area/boundingBox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAItD,KAAK,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAiGvD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CACvC,QAAQ,EAAE,eAAe,EAAE,GAAG,SAAS,EACvC,QAAQ,CAAC,EAAE,OAAO,CAAC,IAAI,GACxB,cAAc,GAAG,SAAS,CAkB5B"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
|
+
import { isGeoJsonPosition } from "../../utils/guards.js";
|
|
3
|
+
function hasCoordinates(geometry) {
|
|
4
|
+
return geometry.type !== "GeometryCollection";
|
|
5
|
+
}
|
|
2
6
|
function normalizeBoundingBox(bbox) {
|
|
3
7
|
if (!bbox || bbox.length < 4) {
|
|
4
8
|
return undefined;
|
|
@@ -8,10 +12,15 @@ function normalizeBoundingBox(bbox) {
|
|
|
8
12
|
if (!values.every((value) => Number.isFinite(value))) {
|
|
9
13
|
return undefined;
|
|
10
14
|
}
|
|
15
|
+
// After Number.isFinite check, values are guaranteed to be numbers
|
|
11
16
|
return [minLng, minLat, maxLng, maxLat];
|
|
12
17
|
}
|
|
13
18
|
function cloneNormalizedBoundingBox(bbox) {
|
|
14
|
-
|
|
19
|
+
if (!bbox) {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
const cloned = [bbox[0], bbox[1], bbox[2], bbox[3]];
|
|
23
|
+
return cloned;
|
|
15
24
|
}
|
|
16
25
|
function mergeNormalizedBoundingBoxes(a, b) {
|
|
17
26
|
if (!a) {
|
|
@@ -26,18 +35,13 @@ function coordsToBoundingBox(value) {
|
|
|
26
35
|
if (!Array.isArray(value) || value.length === 0) {
|
|
27
36
|
return undefined;
|
|
28
37
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
if (!Number.isFinite(lng) || !Number.isFinite(lat)) {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
const normalizedLng = lng;
|
|
37
|
-
const normalizedLat = lat;
|
|
38
|
-
return [normalizedLng, normalizedLat, normalizedLng, normalizedLat];
|
|
38
|
+
// Check if this is a position [lng, lat]
|
|
39
|
+
if (isGeoJsonPosition(value)) {
|
|
40
|
+
const [lng, lat] = value;
|
|
41
|
+
return [lng, lat, lng, lat];
|
|
39
42
|
}
|
|
40
|
-
|
|
43
|
+
// Otherwise it's a nested array of coordinates
|
|
44
|
+
return value.reduce((acc, entry) => {
|
|
41
45
|
const child = coordsToBoundingBox(entry);
|
|
42
46
|
return mergeNormalizedBoundingBoxes(acc, child);
|
|
43
47
|
}, undefined);
|
|
@@ -52,7 +56,11 @@ function geometryToBoundingBox(geometry) {
|
|
|
52
56
|
return mergeNormalizedBoundingBoxes(acc, childBbox);
|
|
53
57
|
}, undefined);
|
|
54
58
|
}
|
|
55
|
-
|
|
59
|
+
// Use type guard to narrow geometry to types with coordinates
|
|
60
|
+
if (hasCoordinates(geometry)) {
|
|
61
|
+
return coordsToBoundingBox(geometry.coordinates);
|
|
62
|
+
}
|
|
63
|
+
return undefined;
|
|
56
64
|
}
|
|
57
65
|
/**
|
|
58
66
|
* Resolves a bounding box for geo collection features.
|
|
@@ -74,8 +82,7 @@ export function deriveCollectionBoundingBox(features, fallback) {
|
|
|
74
82
|
return cloneNormalizedBoundingBox(initial);
|
|
75
83
|
}
|
|
76
84
|
const resolved = features.reduce((acc, feature) => {
|
|
77
|
-
const featureBbox = normalizeBoundingBox(feature.bbox) ??
|
|
78
|
-
geometryToBoundingBox(feature.geometry);
|
|
85
|
+
const featureBbox = normalizeBoundingBox(feature.bbox) ?? geometryToBoundingBox(feature.geometry);
|
|
79
86
|
if (!featureBbox) {
|
|
80
87
|
return acc;
|
|
81
88
|
}
|
|
@@ -83,4 +90,4 @@ export function deriveCollectionBoundingBox(features, fallback) {
|
|
|
83
90
|
}, initial);
|
|
84
91
|
return cloneNormalizedBoundingBox(resolved);
|
|
85
92
|
}
|
|
86
|
-
//# sourceMappingURL=
|
|
93
|
+
//# sourceMappingURL=boundingBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"boundingBox.js","sourceRoot":"","sources":["../../../../src/next/layers/area/boundingBox.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAIhC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAS1D,SAAS,cAAc,CAAC,QAA0B;IAC9C,OAAO,QAAQ,CAAC,IAAI,KAAK,oBAAoB,CAAC;AAClD,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAmB;IAC7C,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC;IAC9C,MAAM,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CA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,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrC,OAAO,0BAA0B,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAA6B,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC1E,MAAM,WAAW,GAAG,oBAAoB,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAElG,IAAI,CAAC,WAAW,EAAE,CAAC;YACf,OAAO,GAAG,CAAC;QACf,CAAC;QAED,OAAO,4BAA4B,CAAC,GAAG,EAAE,WAAW,CAAC,CAAC;IAC1D,CAAC,EAAE,OAAO,CAAC,CAAC;IAEZ,OAAO,0BAA0B,CAAC,QAAQ,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IColorPalette } from "@gooddata/sdk-model";
|
|
2
2
|
import { DataViewFacade } from "@gooddata/sdk-ui";
|
|
3
3
|
import { IColorMapping, IColorStrategy } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
-
import { IAreaGeoData } from "
|
|
4
|
+
import { IAreaGeoData } from "../../../types/geoData/area.js";
|
|
5
5
|
/**
|
|
6
6
|
* Creates and returns a color strategy for area chart
|
|
7
7
|
*
|
|
@@ -19,4 +19,4 @@ import { IAreaGeoData } from "../../types/shared.js";
|
|
|
19
19
|
* @internal
|
|
20
20
|
*/
|
|
21
21
|
export declare function getAreaColorStrategy(colorPalette: IColorPalette, colorMapping: IColorMapping[], geoData: IAreaGeoData, dv: DataViewFacade): IColorStrategy;
|
|
22
|
-
//# sourceMappingURL=
|
|
22
|
+
//# sourceMappingURL=colorStrategy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorStrategy.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/colorStrategy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAgC,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAClF,OAAO,EAAE,cAAc,EAAoB,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAGH,aAAa,EACb,cAAc,EAIjB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AA4F9D;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,oBAAoB,CAChC,YAAY,EAAE,aAAa,EAC3B,YAAY,EAAE,aAAa,EAAE,EAC7B,OAAO,EAAE,YAAY,EACrB,EAAE,EAAE,cAAc,GACnB,cAAc,CAWhB"}
|
package/esm/next/{features/coloring/areaColorStrategy.js → layers/area/coloring/colorStrategy.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
2
|
import { omit } from "lodash-es";
|
|
3
3
|
import { AttributeColorStrategy, ColorStrategy, getColorFromMapping, isValidMappedColor, } from "@gooddata/sdk-ui-vis-commons";
|
|
4
|
-
import { findAreaAttributesInDimension } from "../data/
|
|
4
|
+
import { findAreaAttributesInDimension } from "../data/transformation.js";
|
|
5
5
|
/**
|
|
6
6
|
* Color strategy for GeoAreaChart
|
|
7
7
|
*
|
|
@@ -80,4 +80,4 @@ export function getAreaColorStrategy(colorPalette, colorMapping, geoData, dv) {
|
|
|
80
80
|
};
|
|
81
81
|
return new AreaColorStrategy(colorPalette, colorMapping, areaAttributeHeader, segmentByAttribute, dv);
|
|
82
82
|
}
|
|
83
|
-
//# sourceMappingURL=
|
|
83
|
+
//# sourceMappingURL=colorStrategy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorStrategy.js","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/colorStrategy.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAIjC,OAAO,EACH,sBAAsB,EACtB,aAAa,EAIb,mBAAmB,EACnB,k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,UAAU,EAAE,aAAa;YACzB,KAAK;SACR,CAAC;IACN,CAAC;CACJ;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,oBAAoB,CAChC,YAA2B,EAC3B,YAA6B,EAC7B,OAAqB,EACrB,EAAkB;IAElB,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAA+B,6BAA6B,CACnG,EAAE,EACF,OAAO,CACV,CAAC;IAEF,MAAM,mBAAmB,GAAyB;QAC9C,eAAe,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;KAChD,CAAC;IAEF,OAAO,IAAI,iBAAiB,CAAC,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,EAAE,CAAC,CAAC;AAC1G,CAAC"}
|
|
@@ -25,4 +25,4 @@ export interface IAreaAreaColor {
|
|
|
25
25
|
* @alpha
|
|
26
26
|
*/
|
|
27
27
|
export declare function getAreaAreaColors(colorData: number[], segmentData: string[], colorStrategy: IColorStrategy | null): IAreaAreaColor[];
|
|
28
|
-
//# sourceMappingURL=
|
|
28
|
+
//# sourceMappingURL=palette.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/palette.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAM9D;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAYD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,MAAM,EAAE,EACnB,WAAW,EAAE,MAAM,EAAE,EACrB,aAAa,EAAE,cAAc,GAAG,IAAI,GACrC,cAAc,EAAE,CAiBlB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// (C) 2025 GoodData Corporation
|
|
2
|
-
import { getPushpinColors } from "
|
|
3
|
-
|
|
2
|
+
import { getPushpinColors } from "../../pushpin/coloring/palette.js";
|
|
3
|
+
import { DEFAULT_AREA_FILL_COLOR } from "../constants.js";
|
|
4
4
|
function mapPushpinColorsToAreas(pushpinColors) {
|
|
5
5
|
if (pushpinColors.length === 0) {
|
|
6
|
-
return [{ fill:
|
|
6
|
+
return [{ fill: DEFAULT_AREA_FILL_COLOR }];
|
|
7
7
|
}
|
|
8
8
|
return pushpinColors.map((pushpinColor) => ({
|
|
9
|
-
fill: pushpinColor.background ??
|
|
9
|
+
fill: pushpinColor.background ?? DEFAULT_AREA_FILL_COLOR,
|
|
10
10
|
}));
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -25,7 +25,7 @@ function mapPushpinColorsToAreas(pushpinColors) {
|
|
|
25
25
|
*/
|
|
26
26
|
export function getAreaAreaColors(colorData, segmentData, colorStrategy) {
|
|
27
27
|
if (!colorStrategy) {
|
|
28
|
-
return [{ fill:
|
|
28
|
+
return [{ fill: DEFAULT_AREA_FILL_COLOR }];
|
|
29
29
|
}
|
|
30
30
|
if (segmentData.length > 0) {
|
|
31
31
|
// Segment-based coloring should provide a stable color per category.
|
|
@@ -36,6 +36,6 @@ export function getAreaAreaColors(colorData, segmentData, colorStrategy) {
|
|
|
36
36
|
const pushpinColors = getPushpinColors(colorData, [], colorStrategy);
|
|
37
37
|
return mapPushpinColorsToAreas(pushpinColors);
|
|
38
38
|
}
|
|
39
|
-
return [{ fill:
|
|
39
|
+
return [{ fill: DEFAULT_AREA_FILL_COLOR }];
|
|
40
40
|
}
|
|
41
|
-
//# sourceMappingURL=
|
|
41
|
+
//# sourceMappingURL=palette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.js","sourceRoot":"","sources":["../../../../../src/next/layers/area/coloring/palette.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAKhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAE,MA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