@dynatrace/strato-geo 0.6.32
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/LICENSE +174 -0
- package/README.md +15 -0
- package/esm/index.js +16 -0
- package/esm/index.js.map +7 -0
- package/esm/map/MapView.js +16 -0
- package/esm/map/MapView.js.map +7 -0
- package/esm/map/components/BubbleLayer/BubbleCircleLayer.js +16 -0
- package/esm/map/components/BubbleLayer/BubbleCircleLayer.js.map +7 -0
- package/esm/map/components/BubbleLayer/BubbleLayer.js +16 -0
- package/esm/map/components/BubbleLayer/BubbleLayer.js.map +7 -0
- package/esm/map/components/BubbleLayer/BubbleLayerTooltip.js +16 -0
- package/esm/map/components/BubbleLayer/BubbleLayerTooltip.js.map +7 -0
- package/esm/map/components/BubbleLayer/BubbleOutlineLayer.js +16 -0
- package/esm/map/components/BubbleLayer/BubbleOutlineLayer.js.map +7 -0
- package/esm/map/components/BubbleLayer/contexts/size-interpolation.context.js +16 -0
- package/esm/map/components/BubbleLayer/contexts/size-interpolation.context.js.map +7 -0
- package/esm/map/components/BubbleLayer/functions/add-outline-size.js +16 -0
- package/esm/map/components/BubbleLayer/functions/add-outline-size.js.map +7 -0
- package/esm/map/components/BubbleLayer/functions/build-radius-scale.js +16 -0
- package/esm/map/components/BubbleLayer/functions/build-radius-scale.js.map +7 -0
- package/esm/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.js +16 -0
- package/esm/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.js.map +7 -0
- package/esm/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.js +16 -0
- package/esm/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.js.map +7 -0
- package/esm/map/components/BubbleLayer/hooks/use-size-interpolation.js +16 -0
- package/esm/map/components/BubbleLayer/hooks/use-size-interpolation.js.map +7 -0
- package/esm/map/components/ChoroplethLayer.js +16 -0
- package/esm/map/components/ChoroplethLayer.js.map +7 -0
- package/esm/map/components/ChoroplethLayerTooltip.js +16 -0
- package/esm/map/components/ChoroplethLayerTooltip.js.map +7 -0
- package/esm/map/components/ConnectionLayer/ConnectionLayer.js +16 -0
- package/esm/map/components/ConnectionLayer/ConnectionLayer.js.map +7 -0
- package/esm/map/components/ConnectionLayer/ConnectionLayerDirection.js +16 -0
- package/esm/map/components/ConnectionLayer/ConnectionLayerDirection.js.map +7 -0
- package/esm/map/components/ConnectionLayer/ConnectionLayerTooltip.js +16 -0
- package/esm/map/components/ConnectionLayer/ConnectionLayerTooltip.js.map +7 -0
- package/esm/map/components/ConnectionLayer/functions/get-arc-line-features.js +16 -0
- package/esm/map/components/ConnectionLayer/functions/get-arc-line-features.js.map +7 -0
- package/esm/map/components/ConnectionLayer/functions/get-arrows-angles.js +16 -0
- package/esm/map/components/ConnectionLayer/functions/get-arrows-angles.js.map +7 -0
- package/esm/map/components/ConnectionLayer/functions/get-straight-line-features.js +16 -0
- package/esm/map/components/ConnectionLayer/functions/get-straight-line-features.js.map +7 -0
- package/esm/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.js +16 -0
- package/esm/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.js.map +7 -0
- package/esm/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.js +16 -0
- package/esm/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.js.map +7 -0
- package/esm/map/components/DefaultTooltip.js +16 -0
- package/esm/map/components/DefaultTooltip.js.map +7 -0
- package/esm/map/components/DotLayer/BackgroundLayer.js +16 -0
- package/esm/map/components/DotLayer/BackgroundLayer.js.map +7 -0
- package/esm/map/components/DotLayer/DotLayer.js +16 -0
- package/esm/map/components/DotLayer/DotLayer.js.map +7 -0
- package/esm/map/components/DotLayer/DotLayerTooltip.js +16 -0
- package/esm/map/components/DotLayer/DotLayerTooltip.js.map +7 -0
- package/esm/map/components/DotLayer/functions/calculate-circle-translate.js +16 -0
- package/esm/map/components/DotLayer/functions/calculate-circle-translate.js.map +7 -0
- package/esm/map/components/DotLayer/functions/resolve-icon-background.js +16 -0
- package/esm/map/components/DotLayer/functions/resolve-icon-background.js.map +7 -0
- package/esm/map/components/MapContent.js +16 -0
- package/esm/map/components/MapContent.js.map +7 -0
- package/esm/map/components/legend/CategoricalLegendRenderer.js +16 -0
- package/esm/map/components/legend/CategoricalLegendRenderer.js.map +7 -0
- package/esm/map/components/legend/MapLegendRenderer.js +16 -0
- package/esm/map/components/legend/MapLegendRenderer.js.map +7 -0
- package/esm/map/components/legend/SequentialLegendRenderer.js +16 -0
- package/esm/map/components/legend/SequentialLegendRenderer.js.map +7 -0
- package/esm/map/components/legend/ThresholdLegendRenderer.js +16 -0
- package/esm/map/components/legend/ThresholdLegendRenderer.js.map +7 -0
- package/esm/map/components/legend/functions/resolve-color.js +16 -0
- package/esm/map/components/legend/functions/resolve-color.js.map +7 -0
- package/esm/map/components/toolbar/MapToolbar.js +16 -0
- package/esm/map/components/toolbar/MapToolbar.js.map +7 -0
- package/esm/map/components/toolbar/buttons/MapDownloadDataButton.js +16 -0
- package/esm/map/components/toolbar/buttons/MapDownloadDataButton.js.map +7 -0
- package/esm/map/components/toolbar/buttons/MapResetButton.js +16 -0
- package/esm/map/components/toolbar/buttons/MapResetButton.js.map +7 -0
- package/esm/map/components/toolbar/buttons/MapZoomInOutButtons.js +16 -0
- package/esm/map/components/toolbar/buttons/MapZoomInOutButtons.js.map +7 -0
- package/esm/map/components/toolbar/buttons/MapZoomToFitButton.js +16 -0
- package/esm/map/components/toolbar/buttons/MapZoomToFitButton.js.map +7 -0
- package/esm/map/components/toolbar/constants.js +16 -0
- package/esm/map/components/toolbar/constants.js.map +7 -0
- package/esm/map/constants.js +16 -0
- package/esm/map/constants.js.map +7 -0
- package/esm/map/contexts/a11y-toolbar-tab-index.context.js +16 -0
- package/esm/map/contexts/a11y-toolbar-tab-index.context.js.map +7 -0
- package/esm/map/contexts/color-scale.context.js +16 -0
- package/esm/map/contexts/color-scale.context.js.map +7 -0
- package/esm/map/contexts/layer-coloring-strategy.context.js +16 -0
- package/esm/map/contexts/layer-coloring-strategy.context.js.map +7 -0
- package/esm/map/contexts/layer-ids.context.js +16 -0
- package/esm/map/contexts/layer-ids.context.js.map +7 -0
- package/esm/map/contexts/map-configuration.context.js +16 -0
- package/esm/map/contexts/map-configuration.context.js.map +7 -0
- package/esm/map/contexts/map-country-code.context.js +16 -0
- package/esm/map/contexts/map-country-code.context.js.map +7 -0
- package/esm/map/contexts/map-data-bounding-box.context.js +16 -0
- package/esm/map/contexts/map-data-bounding-box.context.js.map +7 -0
- package/esm/map/contexts/map-initial-view.context.js +16 -0
- package/esm/map/contexts/map-initial-view.context.js.map +7 -0
- package/esm/map/contexts/map-raw-data.context.js +16 -0
- package/esm/map/contexts/map-raw-data.context.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/business-locations.js +16 -0
- package/esm/map/functions/__test__/fixtures/business-locations.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/connection-layer.js +16 -0
- package/esm/map/functions/__test__/fixtures/connection-layer.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/countries-stats.js +16 -0
- package/esm/map/functions/__test__/fixtures/countries-stats.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/csv-download-cases.js +16 -0
- package/esm/map/functions/__test__/fixtures/csv-download-cases.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/events-locations.js +16 -0
- package/esm/map/functions/__test__/fixtures/events-locations.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/facilities-locations.js +16 -0
- package/esm/map/functions/__test__/fixtures/facilities-locations.js.map +7 -0
- package/esm/map/functions/__test__/fixtures/flight-connections.js +16 -0
- package/esm/map/functions/__test__/fixtures/flight-connections.js.map +7 -0
- package/esm/map/functions/a11y-toolbar-controls.js +16 -0
- package/esm/map/functions/a11y-toolbar-controls.js.map +7 -0
- package/esm/map/functions/attach-image-from-shape.js +16 -0
- package/esm/map/functions/attach-image-from-shape.js.map +7 -0
- package/esm/map/functions/attach-image-from-string.js +16 -0
- package/esm/map/functions/attach-image-from-string.js.map +7 -0
- package/esm/map/functions/attach-image-from-text.js +16 -0
- package/esm/map/functions/attach-image-from-text.js.map +7 -0
- package/esm/map/functions/attach-image-to-map.js +16 -0
- package/esm/map/functions/attach-image-to-map.js.map +7 -0
- package/esm/map/functions/build-and-download-csv.js +16 -0
- package/esm/map/functions/build-and-download-csv.js.map +7 -0
- package/esm/map/functions/build-categorical-scale.js +16 -0
- package/esm/map/functions/build-categorical-scale.js.map +7 -0
- package/esm/map/functions/build-scale-from-legend-config.js +16 -0
- package/esm/map/functions/build-scale-from-legend-config.js.map +7 -0
- package/esm/map/functions/calculate-hovered-color.js +16 -0
- package/esm/map/functions/calculate-hovered-color.js.map +7 -0
- package/esm/map/functions/create-bitmap-config-options.js +16 -0
- package/esm/map/functions/create-bitmap-config-options.js.map +7 -0
- package/esm/map/functions/define-bearing.js +16 -0
- package/esm/map/functions/define-bearing.js.map +7 -0
- package/esm/map/functions/define-color.js +16 -0
- package/esm/map/functions/define-color.js.map +7 -0
- package/esm/map/functions/define-radius.js +16 -0
- package/esm/map/functions/define-radius.js.map +7 -0
- package/esm/map/functions/extract-layers-data.js +16 -0
- package/esm/map/functions/extract-layers-data.js.map +7 -0
- package/esm/map/functions/get-client-settings.js +16 -0
- package/esm/map/functions/get-client-settings.js.map +7 -0
- package/esm/map/functions/get-color-from-token.js +16 -0
- package/esm/map/functions/get-color-from-token.js.map +7 -0
- package/esm/map/functions/get-countries-geo-code.js +16 -0
- package/esm/map/functions/get-countries-geo-code.js.map +7 -0
- package/esm/map/functions/get-data-layers-bounding-box.js +16 -0
- package/esm/map/functions/get-data-layers-bounding-box.js.map +7 -0
- package/esm/map/functions/get-data-uri.js +16 -0
- package/esm/map/functions/get-data-uri.js.map +7 -0
- package/esm/map/functions/get-map-states-template.js +16 -0
- package/esm/map/functions/get-map-states-template.js.map +7 -0
- package/esm/map/functions/get-scaled-symbol-size.js +16 -0
- package/esm/map/functions/get-scaled-symbol-size.js.map +7 -0
- package/esm/map/functions/get-tenant-country-code.js +16 -0
- package/esm/map/functions/get-tenant-country-code.js.map +7 -0
- package/esm/map/functions/is-valid-shape.js +16 -0
- package/esm/map/functions/is-valid-shape.js.map +7 -0
- package/esm/map/functions/iterate-config-slots.js +16 -0
- package/esm/map/functions/iterate-config-slots.js.map +7 -0
- package/esm/map/functions/parse-dot-data-to-geo-json.js +16 -0
- package/esm/map/functions/parse-dot-data-to-geo-json.js.map +7 -0
- package/esm/map/functions/parse-region-data-to-geo-json.js +16 -0
- package/esm/map/functions/parse-region-data-to-geo-json.js.map +7 -0
- package/esm/map/functions/safe-reactdom-render.js +16 -0
- package/esm/map/functions/safe-reactdom-render.js.map +7 -0
- package/esm/map/functions/set-layers-id.js +16 -0
- package/esm/map/functions/set-layers-id.js.map +7 -0
- package/esm/map/functions/tabularize-layers-data.js +18 -0
- package/esm/map/functions/tabularize-layers-data.js.map +7 -0
- package/esm/map/functions/to-mapbox-initial-view-state.js +16 -0
- package/esm/map/functions/to-mapbox-initial-view-state.js.map +7 -0
- package/esm/map/functions/tooltip-type-guards.js +16 -0
- package/esm/map/functions/tooltip-type-guards.js.map +7 -0
- package/esm/map/hooks/use-a11y-toolbar-tab-index.js +16 -0
- package/esm/map/hooks/use-a11y-toolbar-tab-index.js.map +7 -0
- package/esm/map/hooks/use-active-interaction.js +16 -0
- package/esm/map/hooks/use-active-interaction.js.map +7 -0
- package/esm/map/hooks/use-attach-image-from-icon.js +16 -0
- package/esm/map/hooks/use-attach-image-from-icon.js.map +7 -0
- package/esm/map/hooks/use-attach-symbol-to-map.js +16 -0
- package/esm/map/hooks/use-attach-symbol-to-map.js.map +7 -0
- package/esm/map/hooks/use-color-scale.js +16 -0
- package/esm/map/hooks/use-color-scale.js.map +7 -0
- package/esm/map/hooks/use-connection-direction-interaction-highlighting.js +16 -0
- package/esm/map/hooks/use-connection-direction-interaction-highlighting.js.map +7 -0
- package/esm/map/hooks/use-connection-interaction-highlighting.js +16 -0
- package/esm/map/hooks/use-connection-interaction-highlighting.js.map +7 -0
- package/esm/map/hooks/use-data-bounding-box.js +16 -0
- package/esm/map/hooks/use-data-bounding-box.js.map +7 -0
- package/esm/map/hooks/use-hover-interaction.js +16 -0
- package/esm/map/hooks/use-hover-interaction.js.map +7 -0
- package/esm/map/hooks/use-initial-view-context.js +16 -0
- package/esm/map/hooks/use-initial-view-context.js.map +7 -0
- package/esm/map/hooks/use-initial-view-state.js +16 -0
- package/esm/map/hooks/use-initial-view-state.js.map +7 -0
- package/esm/map/hooks/use-layer-coloring-strategy.js +16 -0
- package/esm/map/hooks/use-layer-coloring-strategy.js.map +7 -0
- package/esm/map/hooks/use-legend-interaction-highlighting.js +16 -0
- package/esm/map/hooks/use-legend-interaction-highlighting.js.map +7 -0
- package/esm/map/hooks/use-legend-interaction-visibility.js +16 -0
- package/esm/map/hooks/use-legend-interaction-visibility.js.map +7 -0
- package/esm/map/hooks/use-load-symbol-into-map.js +16 -0
- package/esm/map/hooks/use-load-symbol-into-map.js.map +7 -0
- package/esm/map/hooks/use-map-config.js +16 -0
- package/esm/map/hooks/use-map-config.js.map +7 -0
- package/esm/map/hooks/use-map-country-code.js +16 -0
- package/esm/map/hooks/use-map-country-code.js.map +7 -0
- package/esm/map/hooks/use-map-raw-data.js +16 -0
- package/esm/map/hooks/use-map-raw-data.js.map +7 -0
- package/esm/map/hooks/use-map-settings.js +16 -0
- package/esm/map/hooks/use-map-settings.js.map +7 -0
- package/esm/map/hooks/use-map-source.js +16 -0
- package/esm/map/hooks/use-map-source.js.map +7 -0
- package/esm/map/hooks/use-overlay-events.js +16 -0
- package/esm/map/hooks/use-overlay-events.js.map +7 -0
- package/esm/map/hooks/use-resolve-color.js +16 -0
- package/esm/map/hooks/use-resolve-color.js.map +7 -0
- package/esm/map/hooks/use-safe-svg-parser.js +16 -0
- package/esm/map/hooks/use-safe-svg-parser.js.map +7 -0
- package/esm/map/hooks/use-tooltip-event-listeners.js +16 -0
- package/esm/map/hooks/use-tooltip-event-listeners.js.map +7 -0
- package/esm/map/hooks/use-tooltip-template.js +16 -0
- package/esm/map/hooks/use-tooltip-template.js.map +7 -0
- package/esm/map/hooks/useDefaultTooltipActions.js +16 -0
- package/esm/map/hooks/useDefaultTooltipActions.js.map +7 -0
- package/esm/map/map-styles/default-style.js +16 -0
- package/esm/map/map-styles/default-style.js.map +7 -0
- package/esm/map/providers/color-scale.provider.js +16 -0
- package/esm/map/providers/color-scale.provider.js.map +7 -0
- package/esm/map/providers/layer-color-strategy.provider.js +16 -0
- package/esm/map/providers/layer-color-strategy.provider.js.map +7 -0
- package/esm/map/providers/map-initial-view.provider.js +16 -0
- package/esm/map/providers/map-initial-view.provider.js.map +7 -0
- package/esm/map/shapes/circle.js +33 -0
- package/esm/map/shapes/circle.js.map +7 -0
- package/esm/map/shapes/cross.js +28 -0
- package/esm/map/shapes/cross.js.map +7 -0
- package/esm/map/shapes/diamond.js +21 -0
- package/esm/map/shapes/diamond.js.map +7 -0
- package/esm/map/shapes/heart.js +28 -0
- package/esm/map/shapes/heart.js.map +7 -0
- package/esm/map/shapes/pin.js +22 -0
- package/esm/map/shapes/pin.js.map +7 -0
- package/esm/map/shapes/shape-picker.js +16 -0
- package/esm/map/shapes/shape-picker.js.map +7 -0
- package/esm/map/shapes/square.js +19 -0
- package/esm/map/shapes/square.js.map +7 -0
- package/esm/map/shapes/star.js +33 -0
- package/esm/map/shapes/star.js.map +7 -0
- package/esm/map/shapes/triangle.js +28 -0
- package/esm/map/shapes/triangle.js.map +7 -0
- package/esm/map/slots/BubbleLayer.js +16 -0
- package/esm/map/slots/BubbleLayer.js.map +7 -0
- package/esm/map/slots/BubbleLayerTooltip.js +16 -0
- package/esm/map/slots/BubbleLayerTooltip.js.map +7 -0
- package/esm/map/slots/CategoricalLegend.js +16 -0
- package/esm/map/slots/CategoricalLegend.js.map +7 -0
- package/esm/map/slots/ChartInteractions.js +16 -0
- package/esm/map/slots/ChartInteractions.js.map +7 -0
- package/esm/map/slots/ChoroplethLayer.js +16 -0
- package/esm/map/slots/ChoroplethLayer.js.map +7 -0
- package/esm/map/slots/ChoroplethLayerTooltip.js +16 -0
- package/esm/map/slots/ChoroplethLayerTooltip.js.map +7 -0
- package/esm/map/slots/ConnectionLayer.js +16 -0
- package/esm/map/slots/ConnectionLayer.js.map +7 -0
- package/esm/map/slots/ConnectionLayerTooltip.js +16 -0
- package/esm/map/slots/ConnectionLayerTooltip.js.map +7 -0
- package/esm/map/slots/DotLayer.js +16 -0
- package/esm/map/slots/DotLayer.js.map +7 -0
- package/esm/map/slots/DotLayerTooltip.js +16 -0
- package/esm/map/slots/DotLayerTooltip.js.map +7 -0
- package/esm/map/slots/SequentialLegend.js +16 -0
- package/esm/map/slots/SequentialLegend.js.map +7 -0
- package/esm/map/slots/ThresholdLegend.js +16 -0
- package/esm/map/slots/ThresholdLegend.js.map +7 -0
- package/esm/map/slots/Tooltip.js +16 -0
- package/esm/map/slots/Tooltip.js.map +7 -0
- package/esm/map/slots/Zoom.js +16 -0
- package/esm/map/slots/Zoom.js.map +7 -0
- package/esm/map/slots/ZoomToFit.js +16 -0
- package/esm/map/slots/ZoomToFit.js.map +7 -0
- package/esm/map/slots/states/DisabledState.js +16 -0
- package/esm/map/slots/states/DisabledState.js.map +7 -0
- package/esm/map/slots/states/ErrorStateSlot.js +16 -0
- package/esm/map/slots/states/ErrorStateSlot.js.map +7 -0
- package/esm/map/sources/CN.js +16 -0
- package/esm/map/sources/CN.js.map +7 -0
- package/esm/map/sources/IL.js +16 -0
- package/esm/map/sources/IL.js.map +7 -0
- package/esm/map/sources/IN.js +16 -0
- package/esm/map/sources/IN.js.map +7 -0
- package/esm/map/sources/countries.js +16 -0
- package/esm/map/sources/countries.js.map +7 -0
- package/esm/map/store/map-store.context.js +16 -0
- package/esm/map/store/map-store.context.js.map +7 -0
- package/esm/map/store/map-store.provider.js +16 -0
- package/esm/map/store/map-store.provider.js.map +7 -0
- package/esm/map/store/selectors.js +16 -0
- package/esm/map/store/selectors.js.map +7 -0
- package/esm/map/store/store.js +16 -0
- package/esm/map/store/store.js.map +7 -0
- package/esm/map/styles/react-mapgl-styles.css +671 -0
- package/esm/map/types/bubble-layer.js +16 -0
- package/esm/map/types/bubble-layer.js.map +7 -0
- package/esm/map/types/choropleth-layer.js +16 -0
- package/esm/map/types/choropleth-layer.js.map +7 -0
- package/esm/map/types/coloring.js +16 -0
- package/esm/map/types/coloring.js.map +7 -0
- package/esm/map/types/configuration.js +16 -0
- package/esm/map/types/configuration.js.map +7 -0
- package/esm/map/types/connection-layer.js +16 -0
- package/esm/map/types/connection-layer.js.map +7 -0
- package/esm/map/types/dot-layer.js +16 -0
- package/esm/map/types/dot-layer.js.map +7 -0
- package/esm/map/types/legend.js +16 -0
- package/esm/map/types/legend.js.map +7 -0
- package/esm/map/types/location.js +16 -0
- package/esm/map/types/location.js.map +7 -0
- package/esm/map/types/map-view.js +16 -0
- package/esm/map/types/map-view.js.map +7 -0
- package/esm/map/types/shapes.js +16 -0
- package/esm/map/types/shapes.js.map +7 -0
- package/esm/map/types/state.js +16 -0
- package/esm/map/types/state.js.map +7 -0
- package/esm/map/types/toolbar.js +16 -0
- package/esm/map/types/toolbar.js.map +7 -0
- package/esm/map/types/tooltip.js +16 -0
- package/esm/map/types/tooltip.js.map +7 -0
- package/index.d.ts +37 -0
- package/index.js +15 -0
- package/map/MapView.d.ts +25 -0
- package/map/MapView.js +15 -0
- package/map/components/BubbleLayer/BubbleCircleLayer.d.ts +20 -0
- package/map/components/BubbleLayer/BubbleCircleLayer.js +15 -0
- package/map/components/BubbleLayer/BubbleLayer.d.ts +22 -0
- package/map/components/BubbleLayer/BubbleLayer.js +15 -0
- package/map/components/BubbleLayer/BubbleLayerTooltip.d.ts +26 -0
- package/map/components/BubbleLayer/BubbleLayerTooltip.js +15 -0
- package/map/components/BubbleLayer/BubbleOutlineLayer.d.ts +5 -0
- package/map/components/BubbleLayer/BubbleOutlineLayer.js +15 -0
- package/map/components/BubbleLayer/contexts/size-interpolation.context.d.ts +2 -0
- package/map/components/BubbleLayer/contexts/size-interpolation.context.js +15 -0
- package/map/components/BubbleLayer/functions/add-outline-size.d.ts +21 -0
- package/map/components/BubbleLayer/functions/add-outline-size.js +15 -0
- package/map/components/BubbleLayer/functions/build-radius-scale.d.ts +18 -0
- package/map/components/BubbleLayer/functions/build-radius-scale.js +15 -0
- package/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.d.ts +28 -0
- package/map/components/BubbleLayer/functions/build-stick-to-distance-expressions.js +15 -0
- package/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.d.ts +35 -0
- package/map/components/BubbleLayer/functions/parse-bubble-data-to-geo-json.js +15 -0
- package/map/components/BubbleLayer/hooks/use-size-interpolation.d.ts +1 -0
- package/map/components/BubbleLayer/hooks/use-size-interpolation.js +15 -0
- package/map/components/ChoroplethLayer.d.ts +21 -0
- package/map/components/ChoroplethLayer.js +15 -0
- package/map/components/ChoroplethLayerTooltip.d.ts +25 -0
- package/map/components/ChoroplethLayerTooltip.js +15 -0
- package/map/components/ConnectionLayer/ConnectionLayer.d.ts +22 -0
- package/map/components/ConnectionLayer/ConnectionLayer.js +15 -0
- package/map/components/ConnectionLayer/ConnectionLayerDirection.d.ts +26 -0
- package/map/components/ConnectionLayer/ConnectionLayerDirection.js +15 -0
- package/map/components/ConnectionLayer/ConnectionLayerTooltip.d.ts +26 -0
- package/map/components/ConnectionLayer/ConnectionLayerTooltip.js +15 -0
- package/map/components/ConnectionLayer/functions/get-arc-line-features.d.ts +18 -0
- package/map/components/ConnectionLayer/functions/get-arc-line-features.js +15 -0
- package/map/components/ConnectionLayer/functions/get-arrows-angles.d.ts +4 -0
- package/map/components/ConnectionLayer/functions/get-arrows-angles.js +15 -0
- package/map/components/ConnectionLayer/functions/get-straight-line-features.d.ts +18 -0
- package/map/components/ConnectionLayer/functions/get-straight-line-features.js +15 -0
- package/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.d.ts +18 -0
- package/map/components/ConnectionLayer/functions/parse-connection-data-to-geo-json.js +15 -0
- package/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.d.ts +7 -0
- package/map/components/ConnectionLayer/functions/parse-direction-data-to-geo-json.js +15 -0
- package/map/components/DefaultTooltip.d.ts +26 -0
- package/map/components/DefaultTooltip.js +15 -0
- package/map/components/DotLayer/BackgroundLayer.d.ts +25 -0
- package/map/components/DotLayer/BackgroundLayer.js +15 -0
- package/map/components/DotLayer/DotLayer.d.ts +25 -0
- package/map/components/DotLayer/DotLayer.js +15 -0
- package/map/components/DotLayer/DotLayerTooltip.d.ts +26 -0
- package/map/components/DotLayer/DotLayerTooltip.js +15 -0
- package/map/components/DotLayer/functions/calculate-circle-translate.d.ts +16 -0
- package/map/components/DotLayer/functions/calculate-circle-translate.js +15 -0
- package/map/components/DotLayer/functions/resolve-icon-background.d.ts +19 -0
- package/map/components/DotLayer/functions/resolve-icon-background.js +15 -0
- package/map/components/MapContent.d.ts +18 -0
- package/map/components/MapContent.js +15 -0
- package/map/components/legend/CategoricalLegendRenderer.d.ts +2 -0
- package/map/components/legend/CategoricalLegendRenderer.js +15 -0
- package/map/components/legend/MapLegendRenderer.d.ts +17 -0
- package/map/components/legend/MapLegendRenderer.js +15 -0
- package/map/components/legend/SequentialLegendRenderer.d.ts +17 -0
- package/map/components/legend/SequentialLegendRenderer.js +15 -0
- package/map/components/legend/ThresholdLegendRenderer.d.ts +17 -0
- package/map/components/legend/ThresholdLegendRenderer.js +15 -0
- package/map/components/legend/functions/resolve-color.d.ts +23 -0
- package/map/components/legend/functions/resolve-color.js +15 -0
- package/map/components/toolbar/MapToolbar.d.ts +20 -0
- package/map/components/toolbar/MapToolbar.js +15 -0
- package/map/components/toolbar/buttons/MapDownloadDataButton.d.ts +17 -0
- package/map/components/toolbar/buttons/MapDownloadDataButton.js +15 -0
- package/map/components/toolbar/buttons/MapResetButton.d.ts +17 -0
- package/map/components/toolbar/buttons/MapResetButton.js +15 -0
- package/map/components/toolbar/buttons/MapZoomInOutButtons.d.ts +17 -0
- package/map/components/toolbar/buttons/MapZoomInOutButtons.js +15 -0
- package/map/components/toolbar/buttons/MapZoomToFitButton.d.ts +20 -0
- package/map/components/toolbar/buttons/MapZoomToFitButton.js +15 -0
- package/map/components/toolbar/constants.d.ts +19 -0
- package/map/components/toolbar/constants.js +15 -0
- package/map/constants.d.ts +73 -0
- package/map/constants.js +15 -0
- package/map/contexts/a11y-toolbar-tab-index.context.d.ts +18 -0
- package/map/contexts/a11y-toolbar-tab-index.context.js +15 -0
- package/map/contexts/color-scale.context.d.ts +19 -0
- package/map/contexts/color-scale.context.js +15 -0
- package/map/contexts/layer-coloring-strategy.context.d.ts +2 -0
- package/map/contexts/layer-coloring-strategy.context.js +15 -0
- package/map/contexts/layer-ids.context.d.ts +17 -0
- package/map/contexts/layer-ids.context.js +15 -0
- package/map/contexts/map-configuration.context.d.ts +18 -0
- package/map/contexts/map-configuration.context.js +15 -0
- package/map/contexts/map-country-code.context.d.ts +17 -0
- package/map/contexts/map-country-code.context.js +15 -0
- package/map/contexts/map-data-bounding-box.context.d.ts +17 -0
- package/map/contexts/map-data-bounding-box.context.js +15 -0
- package/map/contexts/map-initial-view.context.d.ts +18 -0
- package/map/contexts/map-initial-view.context.js +15 -0
- package/map/contexts/map-raw-data.context.d.ts +17 -0
- package/map/contexts/map-raw-data.context.js +15 -0
- package/map/functions/__test__/fixtures/business-locations.d.ts +31 -0
- package/map/functions/__test__/fixtures/business-locations.js +15 -0
- package/map/functions/__test__/fixtures/connection-layer.d.ts +28 -0
- package/map/functions/__test__/fixtures/connection-layer.js +15 -0
- package/map/functions/__test__/fixtures/countries-stats.d.ts +31 -0
- package/map/functions/__test__/fixtures/countries-stats.js +15 -0
- package/map/functions/__test__/fixtures/csv-download-cases.d.ts +59 -0
- package/map/functions/__test__/fixtures/csv-download-cases.js +15 -0
- package/map/functions/__test__/fixtures/events-locations.d.ts +31 -0
- package/map/functions/__test__/fixtures/events-locations.js +15 -0
- package/map/functions/__test__/fixtures/facilities-locations.d.ts +40 -0
- package/map/functions/__test__/fixtures/facilities-locations.js +15 -0
- package/map/functions/__test__/fixtures/flight-connections.d.ts +26 -0
- package/map/functions/__test__/fixtures/flight-connections.js +15 -0
- package/map/functions/a11y-toolbar-controls.d.ts +22 -0
- package/map/functions/a11y-toolbar-controls.js +15 -0
- package/map/functions/attach-image-from-shape.d.ts +18 -0
- package/map/functions/attach-image-from-shape.js +15 -0
- package/map/functions/attach-image-from-string.d.ts +18 -0
- package/map/functions/attach-image-from-string.js +15 -0
- package/map/functions/attach-image-from-text.d.ts +17 -0
- package/map/functions/attach-image-from-text.js +15 -0
- package/map/functions/attach-image-to-map.d.ts +17 -0
- package/map/functions/attach-image-to-map.js +15 -0
- package/map/functions/build-and-download-csv.d.ts +6 -0
- package/map/functions/build-and-download-csv.js +15 -0
- package/map/functions/build-categorical-scale.d.ts +2 -0
- package/map/functions/build-categorical-scale.js +15 -0
- package/map/functions/build-scale-from-legend-config.d.ts +23 -0
- package/map/functions/build-scale-from-legend-config.js +15 -0
- package/map/functions/calculate-hovered-color.d.ts +1 -0
- package/map/functions/calculate-hovered-color.js +15 -0
- package/map/functions/create-bitmap-config-options.d.ts +16 -0
- package/map/functions/create-bitmap-config-options.js +15 -0
- package/map/functions/define-bearing.d.ts +17 -0
- package/map/functions/define-bearing.js +15 -0
- package/map/functions/define-color.d.ts +16 -0
- package/map/functions/define-color.js +15 -0
- package/map/functions/define-radius.d.ts +17 -0
- package/map/functions/define-radius.js +15 -0
- package/map/functions/extract-layers-data.d.ts +7 -0
- package/map/functions/extract-layers-data.js +15 -0
- package/map/functions/get-client-settings.d.ts +16 -0
- package/map/functions/get-client-settings.js +15 -0
- package/map/functions/get-color-from-token.d.ts +1 -0
- package/map/functions/get-color-from-token.js +15 -0
- package/map/functions/get-countries-geo-code.d.ts +16 -0
- package/map/functions/get-countries-geo-code.js +15 -0
- package/map/functions/get-data-layers-bounding-box.d.ts +17 -0
- package/map/functions/get-data-layers-bounding-box.js +15 -0
- package/map/functions/get-data-uri.d.ts +16 -0
- package/map/functions/get-data-uri.js +15 -0
- package/map/functions/get-map-states-template.d.ts +19 -0
- package/map/functions/get-map-states-template.js +15 -0
- package/map/functions/get-scaled-symbol-size.d.ts +17 -0
- package/map/functions/get-scaled-symbol-size.js +15 -0
- package/map/functions/get-tenant-country-code.d.ts +16 -0
- package/map/functions/get-tenant-country-code.js +15 -0
- package/map/functions/is-valid-shape.d.ts +18 -0
- package/map/functions/is-valid-shape.js +15 -0
- package/map/functions/iterate-config-slots.d.ts +23 -0
- package/map/functions/iterate-config-slots.js +15 -0
- package/map/functions/parse-dot-data-to-geo-json.d.ts +31 -0
- package/map/functions/parse-dot-data-to-geo-json.js +15 -0
- package/map/functions/parse-region-data-to-geo-json.d.ts +17 -0
- package/map/functions/parse-region-data-to-geo-json.js +15 -0
- package/map/functions/safe-reactdom-render.d.ts +22 -0
- package/map/functions/safe-reactdom-render.js +15 -0
- package/map/functions/set-layers-id.d.ts +25 -0
- package/map/functions/set-layers-id.js +15 -0
- package/map/functions/tabularize-layers-data.d.ts +27 -0
- package/map/functions/tabularize-layers-data.js +17 -0
- package/map/functions/to-mapbox-initial-view-state.d.ts +1 -0
- package/map/functions/to-mapbox-initial-view-state.js +15 -0
- package/map/functions/tooltip-type-guards.d.ts +32 -0
- package/map/functions/tooltip-type-guards.js +15 -0
- package/map/hooks/use-a11y-toolbar-tab-index.d.ts +22 -0
- package/map/hooks/use-a11y-toolbar-tab-index.js +15 -0
- package/map/hooks/use-active-interaction.d.ts +1 -0
- package/map/hooks/use-active-interaction.js +15 -0
- package/map/hooks/use-attach-image-from-icon.d.ts +18 -0
- package/map/hooks/use-attach-image-from-icon.js +15 -0
- package/map/hooks/use-attach-symbol-to-map.d.ts +18 -0
- package/map/hooks/use-attach-symbol-to-map.js +15 -0
- package/map/hooks/use-color-scale.d.ts +17 -0
- package/map/hooks/use-color-scale.js +15 -0
- package/map/hooks/use-connection-direction-interaction-highlighting.d.ts +1 -0
- package/map/hooks/use-connection-direction-interaction-highlighting.js +15 -0
- package/map/hooks/use-connection-interaction-highlighting.d.ts +1 -0
- package/map/hooks/use-connection-interaction-highlighting.js +15 -0
- package/map/hooks/use-data-bounding-box.d.ts +1 -0
- package/map/hooks/use-data-bounding-box.js +15 -0
- package/map/hooks/use-hover-interaction.d.ts +1 -0
- package/map/hooks/use-hover-interaction.js +15 -0
- package/map/hooks/use-initial-view-context.d.ts +1 -0
- package/map/hooks/use-initial-view-context.js +15 -0
- package/map/hooks/use-initial-view-state.d.ts +2 -0
- package/map/hooks/use-initial-view-state.js +15 -0
- package/map/hooks/use-layer-coloring-strategy.d.ts +1 -0
- package/map/hooks/use-layer-coloring-strategy.js +15 -0
- package/map/hooks/use-legend-interaction-highlighting.d.ts +5 -0
- package/map/hooks/use-legend-interaction-highlighting.js +15 -0
- package/map/hooks/use-legend-interaction-visibility.d.ts +5 -0
- package/map/hooks/use-legend-interaction-visibility.js +15 -0
- package/map/hooks/use-load-symbol-into-map.d.ts +21 -0
- package/map/hooks/use-load-symbol-into-map.js +15 -0
- package/map/hooks/use-map-config.d.ts +1 -0
- package/map/hooks/use-map-config.js +15 -0
- package/map/hooks/use-map-country-code.d.ts +1 -0
- package/map/hooks/use-map-country-code.js +15 -0
- package/map/hooks/use-map-raw-data.d.ts +1 -0
- package/map/hooks/use-map-raw-data.js +15 -0
- package/map/hooks/use-map-settings.d.ts +5 -0
- package/map/hooks/use-map-settings.js +15 -0
- package/map/hooks/use-map-source.d.ts +1 -0
- package/map/hooks/use-map-source.js +15 -0
- package/map/hooks/use-overlay-events.d.ts +24 -0
- package/map/hooks/use-overlay-events.js +15 -0
- package/map/hooks/use-resolve-color.d.ts +16 -0
- package/map/hooks/use-resolve-color.js +15 -0
- package/map/hooks/use-safe-svg-parser.d.ts +23 -0
- package/map/hooks/use-safe-svg-parser.js +15 -0
- package/map/hooks/use-tooltip-event-listeners.d.ts +16 -0
- package/map/hooks/use-tooltip-event-listeners.js +15 -0
- package/map/hooks/use-tooltip-template.d.ts +11 -0
- package/map/hooks/use-tooltip-template.js +15 -0
- package/map/hooks/useDefaultTooltipActions.d.ts +18 -0
- package/map/hooks/useDefaultTooltipActions.js +15 -0
- package/map/map-styles/default-style.d.ts +17 -0
- package/map/map-styles/default-style.js +15 -0
- package/map/providers/color-scale.provider.d.ts +15 -0
- package/map/providers/color-scale.provider.js +15 -0
- package/map/providers/layer-color-strategy.provider.d.ts +30 -0
- package/map/providers/layer-color-strategy.provider.js +15 -0
- package/map/providers/map-initial-view.provider.d.ts +28 -0
- package/map/providers/map-initial-view.provider.js +15 -0
- package/map/shapes/circle.d.ts +16 -0
- package/map/shapes/circle.js +32 -0
- package/map/shapes/cross.d.ts +16 -0
- package/map/shapes/cross.js +27 -0
- package/map/shapes/diamond.d.ts +16 -0
- package/map/shapes/diamond.js +20 -0
- package/map/shapes/heart.d.ts +16 -0
- package/map/shapes/heart.js +27 -0
- package/map/shapes/pin.d.ts +16 -0
- package/map/shapes/pin.js +21 -0
- package/map/shapes/shape-picker.d.ts +2 -0
- package/map/shapes/shape-picker.js +15 -0
- package/map/shapes/square.d.ts +16 -0
- package/map/shapes/square.js +18 -0
- package/map/shapes/star.d.ts +16 -0
- package/map/shapes/star.js +32 -0
- package/map/shapes/triangle.d.ts +16 -0
- package/map/shapes/triangle.js +27 -0
- package/map/slots/BubbleLayer.d.ts +31 -0
- package/map/slots/BubbleLayer.js +15 -0
- package/map/slots/BubbleLayerTooltip.d.ts +22 -0
- package/map/slots/BubbleLayerTooltip.js +15 -0
- package/map/slots/CategoricalLegend.d.ts +21 -0
- package/map/slots/CategoricalLegend.js +15 -0
- package/map/slots/ChartInteractions.d.ts +31 -0
- package/map/slots/ChartInteractions.js +15 -0
- package/map/slots/ChoroplethLayer.d.ts +31 -0
- package/map/slots/ChoroplethLayer.js +15 -0
- package/map/slots/ChoroplethLayerTooltip.d.ts +20 -0
- package/map/slots/ChoroplethLayerTooltip.js +15 -0
- package/map/slots/ConnectionLayer.d.ts +32 -0
- package/map/slots/ConnectionLayer.js +15 -0
- package/map/slots/ConnectionLayerTooltip.d.ts +21 -0
- package/map/slots/ConnectionLayerTooltip.js +15 -0
- package/map/slots/DotLayer.d.ts +33 -0
- package/map/slots/DotLayer.js +15 -0
- package/map/slots/DotLayerTooltip.d.ts +22 -0
- package/map/slots/DotLayerTooltip.js +15 -0
- package/map/slots/SequentialLegend.d.ts +21 -0
- package/map/slots/SequentialLegend.js +15 -0
- package/map/slots/ThresholdLegend.d.ts +21 -0
- package/map/slots/ThresholdLegend.js +15 -0
- package/map/slots/Tooltip.d.ts +29 -0
- package/map/slots/Tooltip.js +15 -0
- package/map/slots/Zoom.d.ts +22 -0
- package/map/slots/Zoom.js +15 -0
- package/map/slots/ZoomToFit.d.ts +22 -0
- package/map/slots/ZoomToFit.js +15 -0
- package/map/slots/states/DisabledState.d.ts +29 -0
- package/map/slots/states/DisabledState.js +15 -0
- package/map/slots/states/ErrorStateSlot.d.ts +20 -0
- package/map/slots/states/ErrorStateSlot.js +15 -0
- package/map/sources/CN.d.ts +16 -0
- package/map/sources/CN.js +15 -0
- package/map/sources/IL.d.ts +16 -0
- package/map/sources/IL.js +15 -0
- package/map/sources/IN.d.ts +16 -0
- package/map/sources/IN.js +15 -0
- package/map/sources/countries.d.ts +41 -0
- package/map/sources/countries.js +15 -0
- package/map/store/map-store.context.d.ts +20 -0
- package/map/store/map-store.context.js +15 -0
- package/map/store/map-store.provider.d.ts +17 -0
- package/map/store/map-store.provider.js +15 -0
- package/map/store/selectors.d.ts +30 -0
- package/map/store/selectors.js +15 -0
- package/map/store/store.d.ts +7 -0
- package/map/store/store.js +15 -0
- package/map/styles/react-mapgl-styles.css +671 -0
- package/map/types/bubble-layer.d.ts +85 -0
- package/map/types/bubble-layer.js +15 -0
- package/map/types/choropleth-layer.d.ts +40 -0
- package/map/types/choropleth-layer.js +15 -0
- package/map/types/coloring.d.ts +46 -0
- package/map/types/coloring.js +15 -0
- package/map/types/configuration.d.ts +25 -0
- package/map/types/configuration.js +15 -0
- package/map/types/connection-layer.d.ts +77 -0
- package/map/types/connection-layer.js +15 -0
- package/map/types/dot-layer.d.ts +62 -0
- package/map/types/dot-layer.js +15 -0
- package/map/types/legend.d.ts +85 -0
- package/map/types/legend.js +15 -0
- package/map/types/location.d.ts +22 -0
- package/map/types/location.js +15 -0
- package/map/types/map-view.d.ts +97 -0
- package/map/types/map-view.js +15 -0
- package/map/types/shapes.d.ts +18 -0
- package/map/types/shapes.js +15 -0
- package/map/types/state.d.ts +39 -0
- package/map/types/state.js +15 -0
- package/map/types/toolbar.d.ts +47 -0
- package/map/types/toolbar.js +15 -0
- package/map/types/tooltip.d.ts +77 -0
- package/map/types/tooltip.js +15 -0
- package/package.json +59 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { LegendColorLayerProps, LocationColorProps } from './coloring.js';
|
|
17
|
+
import { Location } from './location.js';
|
|
18
|
+
/**
|
|
19
|
+
* Base props to configure a BubbleLayer
|
|
20
|
+
* @typeParam T - Object extending Location
|
|
21
|
+
*/
|
|
22
|
+
export interface BubbleLayerBaseProps<T extends Location> {
|
|
23
|
+
/**
|
|
24
|
+
* An array of location data items to be displayed as bubbles in the BubbleLayer
|
|
25
|
+
*/
|
|
26
|
+
data: T[];
|
|
27
|
+
/**
|
|
28
|
+
* Determines the interpolation mode for bubble size.
|
|
29
|
+
* 'zoom': Bubble size changes with zoom.
|
|
30
|
+
* 'fixed': Constant bubble size regardless of zoom level.
|
|
31
|
+
* @defaultValue 'fixed'
|
|
32
|
+
*/
|
|
33
|
+
sizeInterpolation?: 'zoom' | 'fixed';
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* The BubbleLayer props
|
|
37
|
+
* @typeParam T - Object extending Location
|
|
38
|
+
*/
|
|
39
|
+
export type BubbleLayerProps<T extends Location> = BubbleLayerBaseProps<T> & (LocationColorProps<T> | LegendColorLayerProps) & (ScaleRadiusProps<T> | ScaleNoneProps<T>);
|
|
40
|
+
/**
|
|
41
|
+
* When there's no scale provided, the radius prop is used as radius size in pixels
|
|
42
|
+
* @typeParam T - Object extending Location
|
|
43
|
+
*/
|
|
44
|
+
export interface ScaleNoneProps<T> {
|
|
45
|
+
/**
|
|
46
|
+
* The way to indicate that scale should not be used
|
|
47
|
+
*/
|
|
48
|
+
scale: 'none';
|
|
49
|
+
/**
|
|
50
|
+
* The radius property, which determines the size of the bubbles.
|
|
51
|
+
* It can be a constant number or a function that calculates the radius based on the data item
|
|
52
|
+
* @defaultValue 12
|
|
53
|
+
*/
|
|
54
|
+
radius?: number | ((item: T) => number);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* When a scale is provided, all the values in the dataset will be scaled to fit between the `radiusRange`.
|
|
58
|
+
* @typeParam T - Object extending Location
|
|
59
|
+
*/
|
|
60
|
+
export interface ScaleRadiusProps<T extends Location> {
|
|
61
|
+
/**
|
|
62
|
+
* The way the radius is scaled.
|
|
63
|
+
* @defaultValue 'linear'
|
|
64
|
+
*/
|
|
65
|
+
scale?: 'linear' | 'log';
|
|
66
|
+
/**
|
|
67
|
+
* The radius property, which determines the size of the bubbles.
|
|
68
|
+
* It requires a callback that is used as data accessor.
|
|
69
|
+
*/
|
|
70
|
+
radius: (item: T) => number;
|
|
71
|
+
/**
|
|
72
|
+
* It determines the min and max size for the bubble radius
|
|
73
|
+
* @defaultValue [10, 100]
|
|
74
|
+
*/
|
|
75
|
+
radiusRange?: [number, number];
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Type guard to know whether radius should apply the scale
|
|
79
|
+
* @param props - BubbleLayerProps
|
|
80
|
+
*/
|
|
81
|
+
export declare function isScaleRadius<T extends Location>(props: BubbleLayerProps<T>): props is BubbleLayerProps<T> & ScaleRadiusProps<T>;
|
|
82
|
+
/** @internal */
|
|
83
|
+
export type InternalBubbleLayerProps<T extends Location> = {
|
|
84
|
+
layerId: string;
|
|
85
|
+
} & BubbleLayerProps<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var n=Object.defineProperty;var t=Object.getOwnPropertyDescriptor;var i=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var l=(e,o)=>{for(var a in o)n(e,a,{get:o[a],enumerable:!0})},c=(e,o,a,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of i(o))!p.call(e,r)&&r!==a&&n(e,r,{get:()=>o[r],enumerable:!(s=t(o,r))||s.enumerable});return e};var u=e=>c(n({},"__esModule",{value:!0}),e);var L={};l(L,{isScaleRadius:()=>b});module.exports=u(L);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/function b(e){return e.scale!=="none"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ChoroplethCustomColorProps, LegendColorLayerProps } from './coloring.js';
|
|
17
|
+
/**
|
|
18
|
+
* Base props to configure a ChoroplethLayer
|
|
19
|
+
* @typeParam T - Object extending a record of string keys and any type of values
|
|
20
|
+
*/
|
|
21
|
+
export interface ChoroplethLayerBaseProps<T extends Record<string, unknown>> {
|
|
22
|
+
/**
|
|
23
|
+
* An array of data items representing regions to be displayed in the ChoroplethLayer
|
|
24
|
+
*/
|
|
25
|
+
data: T[];
|
|
26
|
+
/**
|
|
27
|
+
* A string property or accessor function that specifies how to access the region identifier from the data items.
|
|
28
|
+
* It can be a string representing the key in the data object or a function that extracts the region identifier
|
|
29
|
+
*/
|
|
30
|
+
regionAccessor: string | ((t: T) => string);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* The ChoroplethLayer props
|
|
34
|
+
* @typeParam T - Object extending a record of string keys and any type of values
|
|
35
|
+
*/
|
|
36
|
+
export type ChoroplethLayerProps<T extends Record<string, unknown>> = ChoroplethLayerBaseProps<T> & (ChoroplethCustomColorProps<T> | LegendColorLayerProps);
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type InternalChoroplethLayerProps<T extends Record<string, unknown>> = {
|
|
39
|
+
layerId: string;
|
|
40
|
+
} & ChoroplethLayerProps<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var l=(r,o,s,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of a(o))!h.call(r,e)&&e!==s&&n(r,e,{get:()=>o[e],enumerable:!(t=p(o,e))||t.enumerable});return r};var C=r=>l(n({},"__esModule",{value:!0}),r);var d={};module.exports=C(d);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Location } from './location.js';
|
|
17
|
+
/**
|
|
18
|
+
* Props to configure any Layer with custom coloring
|
|
19
|
+
* @typeParam T - Object extending Location
|
|
20
|
+
*/
|
|
21
|
+
export interface LocationColorProps<T extends Location> {
|
|
22
|
+
/** Custom color to apply to the layer */
|
|
23
|
+
color?: string | ((item: T) => string);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Props to configure any Layer with legend coloring
|
|
27
|
+
*/
|
|
28
|
+
export interface LegendColorLayerProps {
|
|
29
|
+
/** When the color prop is set to 'legend', a value accessor is needed */
|
|
30
|
+
color: 'legend';
|
|
31
|
+
/** The value accesor to map data point values to legend color */
|
|
32
|
+
valueAccessor: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Props to configure any Layer with custom coloring
|
|
36
|
+
* @typeParam T - Object extending a record of string keys and any type of values
|
|
37
|
+
*/
|
|
38
|
+
export interface ChoroplethCustomColorProps<T extends Record<string, unknown>> {
|
|
39
|
+
/** Color to apply to the layer */
|
|
40
|
+
color?: string | ((item: T) => string);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Detects whether color is linked to legend or not
|
|
44
|
+
* @param props - layer color props
|
|
45
|
+
*/
|
|
46
|
+
export declare function isLegendColoring(props: LocationColorProps<never> | ChoroplethCustomColorProps<never> | LegendColorLayerProps): props is LegendColorLayerProps;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var t=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var c=(o,r)=>{for(var n in r)t(o,n,{get:r[n],enumerable:!0})},g=(o,r,n,s)=>{if(r&&typeof r=="object"||typeof r=="function")for(let e of l(r))!p.call(o,e)&&e!==n&&t(o,e,{get:()=>r[e],enumerable:!(s=i(r,e))||s.enumerable});return o};var C=o=>g(t({},"__esModule",{value:!0}),o);var L={};c(L,{isLegendColoring:()=>a});module.exports=C(L);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/function a(o){return o.color==="legend"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { MapLegendConfig } from './legend.js';
|
|
17
|
+
import { ChartInteractionsConfig, MapToolbarConfig } from './toolbar.js';
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export interface MapConfig {
|
|
22
|
+
toolbar: MapToolbarConfig | undefined;
|
|
23
|
+
interactions: ChartInteractionsConfig | undefined;
|
|
24
|
+
legend: MapLegendConfig | undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var a=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var t=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var d=(o,n,r,i)=>{if(n&&typeof n=="object"||typeof n=="function")for(let e of t(n))!g.call(o,e)&&e!==r&&a(o,e,{get:()=>n[e],enumerable:!(i=f(n,e))||i.enumerable});return o};var C=o=>d(a({},"__esModule",{value:!0}),o);var p={};module.exports=C(p);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Location } from './location.js';
|
|
17
|
+
/**
|
|
18
|
+
* Data type for connections in the Connection Layer.
|
|
19
|
+
* @typeParam L - Object extending Location.
|
|
20
|
+
*/
|
|
21
|
+
export interface Connection<L extends Location> {
|
|
22
|
+
/** Array of connections */
|
|
23
|
+
path: L[];
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the color of the connection path.
|
|
26
|
+
* @defaultValue Colors.Charts.Categorical.Color03.Default
|
|
27
|
+
*/
|
|
28
|
+
color?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Specifies the thickness of the connection path.
|
|
31
|
+
* It can accept numbers from 1 to 64 (included).
|
|
32
|
+
* @defaultValue 2
|
|
33
|
+
*/
|
|
34
|
+
thickness?: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Shape of the Connection Layer Component Props.
|
|
38
|
+
* @typeParam L - Object extending Location.
|
|
39
|
+
* @typeParam T - Object extending Connection<L>.
|
|
40
|
+
*/
|
|
41
|
+
export interface ConnectionLayerProps<L extends Location, T extends Connection<L>> {
|
|
42
|
+
/** Set of data related to the connections */
|
|
43
|
+
data: T[];
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the line type.
|
|
46
|
+
* @defaultValue 'solid'
|
|
47
|
+
*/
|
|
48
|
+
line?: 'dashed' | 'solid';
|
|
49
|
+
/**
|
|
50
|
+
* Position of the arrows in relation of the connection direction
|
|
51
|
+
*/
|
|
52
|
+
directionIndicator?: 'start' | 'end' | 'both';
|
|
53
|
+
/**
|
|
54
|
+
* Declare whether the curve is linear or smooth
|
|
55
|
+
* @defaultValue 'linear'
|
|
56
|
+
*/
|
|
57
|
+
curve?: CurvedLine;
|
|
58
|
+
}
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type InternalConnectionLayerProps<T extends Location> = ConnectionLayerProps<T, Connection<T>> & {
|
|
61
|
+
layerId: string;
|
|
62
|
+
};
|
|
63
|
+
/** @internal */
|
|
64
|
+
export interface FeatureProperties<T extends Location> {
|
|
65
|
+
__lineColor: string;
|
|
66
|
+
__lineHoveredColor: string;
|
|
67
|
+
__lineWidth: number;
|
|
68
|
+
__angle?: number;
|
|
69
|
+
curve?: CurvedLine;
|
|
70
|
+
path: T[];
|
|
71
|
+
}
|
|
72
|
+
export type GeoJSONFeature<T extends GeoJSON.Geometry, N extends Location> = GeoJSON.Feature<T, FeatureProperties<N>>;
|
|
73
|
+
/**
|
|
74
|
+
* This property is responsible for setting the curve type
|
|
75
|
+
* @defaultValue linear
|
|
76
|
+
*/
|
|
77
|
+
export type CurvedLine = 'linear' | 'smooth';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(n,e,i,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of s(e))!c.call(n,t)&&t!==i&&r(n,t,{get:()=>e[t],enumerable:!(o=a(e,t))||o.enumerable});return n};var p=n=>d(r({},"__esModule",{value:!0}),n);var L={};module.exports=p(L);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ReactNode } from 'react';
|
|
17
|
+
import { LegendColorLayerProps, LocationColorProps } from './coloring.js';
|
|
18
|
+
import { Location } from './location.js';
|
|
19
|
+
import { MapShape } from './shapes.js';
|
|
20
|
+
/**
|
|
21
|
+
* Base props to configure a DotLayer.
|
|
22
|
+
* @typeParam T - Object extending Location
|
|
23
|
+
*/
|
|
24
|
+
export interface DotLayerBaseProps<T extends Location> {
|
|
25
|
+
/**
|
|
26
|
+
* An array of location data items to be displayed in the DotLayer
|
|
27
|
+
*/
|
|
28
|
+
data: T[];
|
|
29
|
+
/**
|
|
30
|
+
* The shape of the dots
|
|
31
|
+
* @defaultValue 'circle'
|
|
32
|
+
*/
|
|
33
|
+
shape?: string | MapShape | ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* The bearing property, which determines the rotation angle of the dots.
|
|
36
|
+
* It can be a constant number or a function that calculates the bearing based on the data item
|
|
37
|
+
* @defaultValue 0
|
|
38
|
+
*/
|
|
39
|
+
bearing?: number | ((item: T) => number);
|
|
40
|
+
/**
|
|
41
|
+
* The background setting for the DotLayer.
|
|
42
|
+
* As boolean, it toggles the visibility and sets a default color.
|
|
43
|
+
* As string, it defines the background color.
|
|
44
|
+
* @defaultValue false
|
|
45
|
+
*/
|
|
46
|
+
background?: boolean | string;
|
|
47
|
+
/**
|
|
48
|
+
* The shapeSize property allows to edit the size of the shape, icon, emoji
|
|
49
|
+
* or ReactNode passed to the shape property in pixels.
|
|
50
|
+
* @defaultValue 32
|
|
51
|
+
*/
|
|
52
|
+
shapeSize?: number;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The DotLayer props
|
|
56
|
+
* @typeParam T - Object extending Location
|
|
57
|
+
*/
|
|
58
|
+
export type DotLayerProps<T extends Location> = DotLayerBaseProps<T> & (LocationColorProps<T> | LegendColorLayerProps);
|
|
59
|
+
/** @internal */
|
|
60
|
+
export type InternalDotLayerProps<T extends Location> = {
|
|
61
|
+
layerId: string;
|
|
62
|
+
} & DotLayerProps<T>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var a=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var L=(e,o,p,t)=>{if(o&&typeof o=="object"||typeof o=="function")for(let r of s(o))!i.call(e,r)&&r!==p&&a(e,r,{get:()=>o[r],enumerable:!(t=n(o,r))||t.enumerable});return e};var m=e=>L(a({},"__esModule",{value:!0}),e);var c={};module.exports=m(c);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { ColoredRange, ColorPalette, LegendPosition } from '@dynatrace/strato-components-preview/charts';
|
|
17
|
+
/** The props common to all different legends */
|
|
18
|
+
export interface BaseLegendProps {
|
|
19
|
+
/**
|
|
20
|
+
* The legend position relative to the map
|
|
21
|
+
* @defaultValue 'auto'
|
|
22
|
+
*/
|
|
23
|
+
position?: LegendPosition;
|
|
24
|
+
/**
|
|
25
|
+
* Hides the legend while keeping the coloring
|
|
26
|
+
* @defaultValue false
|
|
27
|
+
*/
|
|
28
|
+
hidden?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** The sequential legend props */
|
|
31
|
+
export interface SequentialLegendProps extends BaseLegendProps {
|
|
32
|
+
/** The min boundary */
|
|
33
|
+
min: number;
|
|
34
|
+
/** The max boundary */
|
|
35
|
+
max: number;
|
|
36
|
+
/** The color palette to apply to the legend */
|
|
37
|
+
colorPalette: string[] | ColorPalette;
|
|
38
|
+
}
|
|
39
|
+
/** The categorical legend props */
|
|
40
|
+
export interface CategoricalLegendProps extends BaseLegendProps {
|
|
41
|
+
/** Available categories to be shown in the legend */
|
|
42
|
+
categories: string[];
|
|
43
|
+
/** The color palette to apply to the legend */
|
|
44
|
+
colorPalette: string[] | ColorPalette;
|
|
45
|
+
}
|
|
46
|
+
/** The threshold legend props */
|
|
47
|
+
export interface ThresholdLegendProps extends BaseLegendProps {
|
|
48
|
+
/** Ranges of the threshold legend */
|
|
49
|
+
ranges: ColoredRange[];
|
|
50
|
+
}
|
|
51
|
+
/** The internal configs common to all different legends */
|
|
52
|
+
export interface BaseLegendConfig {
|
|
53
|
+
/**
|
|
54
|
+
* The legend position relative to the map
|
|
55
|
+
* @defaultValue 'auto'
|
|
56
|
+
*/
|
|
57
|
+
position: LegendPosition;
|
|
58
|
+
/**
|
|
59
|
+
* Hides the legend while keeping the coloring
|
|
60
|
+
* @defaultValue 'false'
|
|
61
|
+
*/
|
|
62
|
+
hidden: boolean;
|
|
63
|
+
}
|
|
64
|
+
/** The sequential legend internal config */
|
|
65
|
+
export interface SequentialLegendConfig extends BaseLegendConfig {
|
|
66
|
+
type: 'sequential';
|
|
67
|
+
/** The min boundary */
|
|
68
|
+
min: number;
|
|
69
|
+
/** The max boundary */
|
|
70
|
+
max: number;
|
|
71
|
+
/** The color palette to apply to the legend */
|
|
72
|
+
colorPalette: string[] | ColorPalette;
|
|
73
|
+
}
|
|
74
|
+
export interface CategoricalLegendConfig extends BaseLegendConfig {
|
|
75
|
+
type: 'categorical';
|
|
76
|
+
categories: string[];
|
|
77
|
+
/** The color palette to apply to the legend */
|
|
78
|
+
colorPalette: string[] | ColorPalette;
|
|
79
|
+
}
|
|
80
|
+
export interface ThresholdLegendConfig extends BaseLegendConfig {
|
|
81
|
+
type: 'threshold';
|
|
82
|
+
/** Ranges of the threshold legend */
|
|
83
|
+
ranges: ColoredRange[];
|
|
84
|
+
}
|
|
85
|
+
export type MapLegendConfig = SequentialLegendConfig | ThresholdLegendConfig | CategoricalLegendConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var r=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var d=(o,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of g(e))!s.call(o,n)&&n!==i&&r(o,n,{get:()=>e[n],enumerable:!(t=a(e,n))||t.enumerable});return o};var l=o=>d(r({},"__esModule",{value:!0}),o);var p={};module.exports=l(p);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
/** A coordinate-based location */
|
|
17
|
+
export interface Location {
|
|
18
|
+
/** The latitude coordinate of the location. */
|
|
19
|
+
latitude: number;
|
|
20
|
+
/** The longitude coordinate of the location. */
|
|
21
|
+
longitude: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var o=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var b=Object.prototype.hasOwnProperty;var c=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of a(e))!b.call(t,n)&&n!==r&&o(t,n,{get:()=>e[n],enumerable:!(i=u(e,n))||i.enumerable});return t};var d=t=>c(o({},"__esModule",{value:!0}),t);var l={};module.exports=d(l);/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2023 Dynatrace LLC
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|