@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,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/map/components/DotLayer/functions/resolve-icon-background.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { _getCanvasColor as getCanvasColor } from '@dynatrace/strato-components-preview/charts';\n\nimport { DEFAULT_ICON_BACKGROUND_COLOR } from '../../../constants.js';\n\nexport const resolveIconBackground = (background: string | boolean) => {\n if (typeof background === 'string') {\n return {\n enabled: true,\n color: getCanvasColor(background, DEFAULT_ICON_BACKGROUND_COLOR),\n };\n }\n\n return {\n enabled: background,\n color: getCanvasColor(DEFAULT_ICON_BACKGROUND_COLOR),\n };\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,mBAAmBA,MAAsB,8CAElD,OAAS,iCAAAC,MAAqC,wBAEvC,MAAMC,EAAyBC,GAChC,OAAOA,GAAe,SACjB,CACL,QAAS,GACT,MAAOH,EAAeG,EAAYF,CAA6B,CACjE,EAGK,CACL,QAASE,EACT,MAAOH,EAAeC,CAA6B,CACrD",
|
|
6
|
+
"names": ["getCanvasColor", "DEFAULT_ICON_BACKGROUND_COLOR", "resolveIconBackground", "background"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import{isUndefined as r}from"lodash-es";import e,{forwardRef as D,useContext as V,useRef as O}from"react";import{Layer as i,Map as R,Source as _}from"react-map-gl/maplibre";import{_useGraphSize as x}from"@dynatrace/strato-components-preview/charts";import{useMergeRefs as U}from"@dynatrace/strato-components-preview/core";import{MapToolbar as W}from"./toolbar/MapToolbar.js";import{DEFAULT_COUNTRIES_BORDER_COLOR as b,DEFAULT_COUNTRIES_FILL_COLOR as F}from"../constants.js";import{LayerIdsContext as H}from"../contexts/layer-ids.context.js";import{getColorFromToken as n}from"../functions/get-color-from-token.js";import{toMapBoxInitialViewState as j}from"../functions/to-mapbox-initial-view-state.js";import{useActiveInteraction as k}from"../hooks/use-active-interaction.js";import{useHoverInteraction as A}from"../hooks/use-hover-interaction.js";import{useInitialViewState as N}from"../hooks/use-initial-view-state.js";import{useMapConfig as z}from"../hooks/use-map-config.js";import{useMapSource as B}from"../hooks/use-map-source.js";import{useOverlayEvents as G}from"../hooks/use-overlay-events.js";import{useTooltipEventListeners as Z}from"../hooks/use-tooltip-event-listeners.js";import{defaultStyle as $}from"../map-styles/default-style.js";const q={id:"geojson-line",type:"line"},J={id:"geojson-fill",type:"fill"},K=()=>{const o=B();return e.createElement(_,{id:"data",type:"geojson",data:o},e.createElement(i,{...J,paint:{"fill-color":n(F)}}),e.createElement(i,{...q,paint:{"line-color":n(b)}}))},Q=({children:o})=>(A(),k(),o),X=D((o,a)=>{const{initialViewState:s,children:p,style:l,mapStyle:m=$,onViewStateChange:f,...d}=o,u=O(null),M=U([u,a]);Z();const{toolbar:c,interactions:h}=z(),L=V(H),y=!r(c)||!r(h),{height:g,width:v}=x(),{handleMouseEnter:C,handleMouseMove:S,handleMouseLeave:E,handleMouseClick:w,handleZoom:I,handleDrag:T}=G(),P=N(s);return e.createElement("div",{"data-testid":"map-container",ref:M,onMouseEnter:C,onMouseLeave:E},e.createElement(R,{onMove:t=>{f?.(t.viewState)},initialViewState:j(P),style:{width:v,height:`${g}px`,...l},mapStyle:m,dragRotate:!1,fadeDuration:0,RTLTextPlugin:!1,renderWorldCopies:!1,interactiveLayerIds:L,onMouseMove:t=>S(t),onClick:t=>w(t),onZoom:I,onDrag:T,interactive:!0,...d},e.createElement(K,null),e.createElement(Q,null,p),y?e.createElement(W,null):null))});X.displayName="MapContent";export{X as MapContent};
|
|
16
|
+
//# sourceMappingURL=MapContent.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/map/components/MapContent.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { isUndefined } from 'lodash-es';\nimport { MapLayerMouseEvent } from 'maplibre-gl';\nimport React, {\n forwardRef,\n PropsWithChildren,\n useContext,\n useRef,\n} from 'react';\nimport { Layer, LayerProps, Map, Source } from 'react-map-gl/maplibre';\n\nimport { _useGraphSize as useGraphSize } from '@dynatrace/strato-components-preview/charts';\nimport { useMergeRefs } from '@dynatrace/strato-components-preview/core';\n\nimport { MapToolbar } from './toolbar/MapToolbar.js';\nimport {\n DEFAULT_COUNTRIES_BORDER_COLOR,\n DEFAULT_COUNTRIES_FILL_COLOR,\n} from '../constants.js';\nimport { LayerIdsContext } from '../contexts/layer-ids.context.js';\nimport { getColorFromToken } from '../functions/get-color-from-token.js';\nimport { toMapBoxInitialViewState } from '../functions/to-mapbox-initial-view-state.js';\nimport { useActiveInteraction } from '../hooks/use-active-interaction.js';\nimport { useHoverInteraction } from '../hooks/use-hover-interaction.js';\nimport { useInitialViewState } from '../hooks/use-initial-view-state.js';\nimport { useMapConfig } from '../hooks/use-map-config.js';\nimport { useMapSource } from '../hooks/use-map-source.js';\nimport { useOverlayEvents } from '../hooks/use-overlay-events.js';\nimport { useTooltipEventListeners } from '../hooks/use-tooltip-event-listeners.js';\nimport { defaultStyle } from '../map-styles/default-style.js';\nimport { MapViewProps } from '../types/map-view.js';\n\nconst lineLayer: LayerProps = {\n id: 'geojson-line',\n type: 'line',\n};\n\nconst fillLayer: LayerProps = {\n id: 'geojson-fill',\n type: 'fill',\n};\n\nconst MapSource = () => {\n const mapData = useMapSource();\n\n return (\n <Source id=\"data\" type=\"geojson\" data={mapData}>\n <Layer\n {...fillLayer}\n paint={{\n 'fill-color': getColorFromToken(DEFAULT_COUNTRIES_FILL_COLOR),\n }}\n ></Layer>\n <Layer\n {...lineLayer}\n paint={{\n 'line-color': getColorFromToken(DEFAULT_COUNTRIES_BORDER_COLOR),\n }}\n ></Layer>\n </Source>\n );\n};\n\nconst MapInteractions = ({ children }: PropsWithChildren) => {\n useHoverInteraction();\n useActiveInteraction();\n\n return children;\n};\n\nexport const MapContent = forwardRef<\n HTMLDivElement,\n PropsWithChildren<MapViewProps>\n>((props, forwardedRef) => {\n const {\n initialViewState: initialViewStateProp,\n children,\n style,\n mapStyle = defaultStyle,\n onViewStateChange,\n ...remaining\n } = props;\n\n const mapContainerRef = useRef<HTMLDivElement>(null);\n const mergedRefs = useMergeRefs([mapContainerRef, forwardedRef]);\n\n useTooltipEventListeners();\n\n const { toolbar: toolbarConfig, interactions: interactionsConfig } =\n useMapConfig();\n const layerIds = useContext(LayerIdsContext);\n const shouldRenderToolbar =\n !isUndefined(toolbarConfig) || !isUndefined(interactionsConfig);\n\n const { height: graphHeight, width: graphWidth } = useGraphSize();\n\n const {\n handleMouseEnter,\n handleMouseMove,\n handleMouseLeave,\n handleMouseClick,\n handleZoom,\n handleDrag,\n } = useOverlayEvents();\n\n const initialViewState = useInitialViewState(initialViewStateProp);\n\n return (\n <div\n data-testid=\"map-container\"\n ref={mergedRefs}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n <Map\n onMove={(evt) => {\n onViewStateChange?.(evt.viewState);\n }}\n initialViewState={toMapBoxInitialViewState(initialViewState)}\n style={{\n width: graphWidth,\n height: `${graphHeight}px`,\n ...style,\n }}\n mapStyle={mapStyle}\n dragRotate={false}\n fadeDuration={0}\n RTLTextPlugin={false}\n renderWorldCopies={false}\n interactiveLayerIds={layerIds}\n onMouseMove={(e) => handleMouseMove(e as MapLayerMouseEvent)}\n onClick={(e) => handleMouseClick(e as MapLayerMouseEvent)}\n onZoom={handleZoom}\n onDrag={handleDrag}\n interactive\n {...remaining}\n >\n <MapSource />\n <MapInteractions>{children}</MapInteractions>\n {shouldRenderToolbar ? <MapToolbar /> : null}\n </Map>\n </div>\n );\n});\n\nMapContent['displayName'] = 'MapContent';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,eAAAA,MAAmB,YAE5B,OAAOC,GACL,cAAAC,EAEA,cAAAC,EACA,UAAAC,MACK,QACP,OAAS,SAAAC,EAAmB,OAAAC,EAAK,UAAAC,MAAc,wBAE/C,OAAS,iBAAiBC,MAAoB,8CAC9C,OAAS,gBAAAC,MAAoB,4CAE7B,OAAS,cAAAC,MAAkB,0BAC3B,OACE,kCAAAC,EACA,gCAAAC,MACK,kBACP,OAAS,mBAAAC,MAAuB,mCAChC,OAAS,qBAAAC,MAAyB,uCAClC,OAAS,4BAAAC,MAAgC,+CACzC,OAAS,wBAAAC,MAA4B,qCACrC,OAAS,uBAAAC,MAA2B,oCACpC,OAAS,uBAAAC,MAA2B,qCACpC,OAAS,gBAAAC,MAAoB,6BAC7B,OAAS,gBAAAC,MAAoB,6BAC7B,OAAS,oBAAAC,MAAwB,iCACjC,OAAS,4BAAAC,MAAgC,0CACzC,OAAS,gBAAAC,MAAoB,iCAG7B,MAAMC,EAAwB,CAC5B,GAAI,eACJ,KAAM,MACR,EAEMC,EAAwB,CAC5B,GAAI,eACJ,KAAM,MACR,EAEMC,EAAY,IAAM,CACtB,MAAMC,EAAUP,EAAa,EAE7B,OACEnB,EAAA,cAACM,EAAA,CAAO,GAAG,OAAO,KAAK,UAAU,KAAMoB,GACrC1B,EAAA,cAACI,EAAA,CACE,GAAGoB,EACJ,MAAO,CACL,aAAcX,EAAkBF,CAA4B,CAC9D,EACD,EACDX,EAAA,cAACI,EAAA,CACE,GAAGmB,EACJ,MAAO,CACL,aAAcV,EAAkBH,CAA8B,CAChE,EACD,CACH,CAEJ,EAEMiB,EAAkB,CAAC,CAAE,SAAAC,CAAS,KAClCZ,EAAoB,EACpBD,EAAqB,EAEda,GAGIC,EAAa5B,EAGxB,CAAC6B,EAAOC,IAAiB,CACzB,KAAM,CACJ,iBAAkBC,EAClB,SAAAJ,EACA,MAAAK,EACA,SAAAC,EAAWZ,EACX,kBAAAa,EACA,GAAGC,CACL,EAAIN,EAEEO,EAAkBlC,EAAuB,IAAI,EAC7CmC,EAAa9B,EAAa,CAAC6B,EAAiBN,CAAY,CAAC,EAE/DV,EAAyB,EAEzB,KAAM,CAAE,QAASkB,EAAe,aAAcC,CAAmB,EAC/DtB,EAAa,EACTuB,EAAWvC,EAAWU,CAAe,EACrC8B,EACJ,CAAC3C,EAAYwC,CAAa,GAAK,CAACxC,EAAYyC,CAAkB,EAE1D,CAAE,OAAQG,EAAa,MAAOC,CAAW,EAAIrC,EAAa,EAE1D,CACJ,iBAAAsC,EACA,gBAAAC,EACA,iBAAAC,EACA,iBAAAC,EACA,WAAAC,EACA,WAAAC,CACF,EAAI9B,EAAiB,EAEf+B,EAAmBlC,EAAoBe,CAAoB,EAEjE,OACEhC,EAAA,cAAC,OACC,cAAY,gBACZ,IAAKsC,EACL,aAAcO,EACd,aAAcE,GAEd/C,EAAA,cAACK,EAAA,CACC,OAAS+C,GAAQ,CACfjB,IAAoBiB,EAAI,SAAS,CACnC,EACA,iBAAkBtC,EAAyBqC,CAAgB,EAC3D,MAAO,CACL,MAAOP,EACP,OAAQ,GAAGD,CAAW,KACtB,GAAGV,CACL,EACA,SAAUC,EACV,WAAY,GACZ,aAAc,EACd,cAAe,GACf,kBAAmB,GACnB,oBAAqBO,EACrB,YAAcY,GAAMP,EAAgBO,CAAuB,EAC3D,QAAUA,GAAML,EAAiBK,CAAuB,EACxD,OAAQJ,EACR,OAAQC,EACR,YAAW,GACV,GAAGd,GAEJpC,EAAA,cAACyB,EAAA,IAAU,EACXzB,EAAA,cAAC2B,EAAA,KAAiBC,CAAS,EAC1Bc,EAAsB1C,EAAA,cAACS,EAAA,IAAW,EAAK,IAC1C,CACF,CAEJ,CAAC,EAEDoB,EAAW,YAAiB",
|
|
6
|
+
"names": ["isUndefined", "React", "forwardRef", "useContext", "useRef", "Layer", "Map", "Source", "useGraphSize", "useMergeRefs", "MapToolbar", "DEFAULT_COUNTRIES_BORDER_COLOR", "DEFAULT_COUNTRIES_FILL_COLOR", "LayerIdsContext", "getColorFromToken", "toMapBoxInitialViewState", "useActiveInteraction", "useHoverInteraction", "useInitialViewState", "useMapConfig", "useMapSource", "useOverlayEvents", "useTooltipEventListeners", "defaultStyle", "lineLayer", "fillLayer", "MapSource", "mapData", "MapInteractions", "children", "MapContent", "props", "forwardedRef", "initialViewStateProp", "style", "mapStyle", "onViewStateChange", "remaining", "mapContainerRef", "mergedRefs", "toolbarConfig", "interactionsConfig", "layerIds", "shouldRenderToolbar", "graphHeight", "graphWidth", "handleMouseEnter", "handleMouseMove", "handleMouseLeave", "handleMouseClick", "handleZoom", "handleDrag", "initialViewState", "evt", "e"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import l from"react";import{_ChartLegend as c,_useChartLayoutOrientation as m,_getLegendOrientation as d,_buildCategoricalItemsFromScale as g}from"@dynatrace/strato-components-preview/charts";import{useColorScale as u}from"../../hooks/use-color-scale.js";import{useSetStateSelection as L}from"../../store/store.js";const _=()=>{const{orientation:n}=m(),o=u(),t=L(),i=d(n),a=g(o),r=e=>{t({highlightedSeries:e})};function s(e){t({visible:e})}return l.createElement(c,{items:a,orientation:i,onClick:s,onHover:r})};export{_ as CategoricalLegendRenderer};
|
|
16
|
+
//# sourceMappingURL=CategoricalLegendRenderer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/map/components/legend/CategoricalLegendRenderer.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ScaleOrdinal } from 'd3-scale';\nimport React from 'react';\n\nimport {\n _ChartLegend as ChartLegend,\n _useChartLayoutOrientation as useChartLayoutOrientation,\n _getLegendOrientation as getLegendOrientation,\n _LegendItem as LegendItem,\n _buildCategoricalItemsFromScale as buildCategoricalItemsFromScale,\n} from '@dynatrace/strato-components-preview/charts';\n\nimport { useColorScale } from '../../hooks/use-color-scale.js';\nimport { useSetStateSelection } from '../../store/store.js';\n\nexport const CategoricalLegendRenderer = () => {\n const { orientation: layoutOrientation } = useChartLayoutOrientation();\n const scale = useColorScale() as ScaleOrdinal<string, string>;\n const updateStateSelection = useSetStateSelection();\n const orientation = getLegendOrientation(layoutOrientation);\n const items = buildCategoricalItemsFromScale(scale);\n\n const handleHover = (items: LegendItem[]) => {\n updateStateSelection({ highlightedSeries: items });\n };\n\n function handleClick(items: LegendItem[]) {\n updateStateSelection({ visible: items });\n }\n\n return (\n <ChartLegend\n items={items}\n orientation={orientation}\n onClick={handleClick}\n onHover={handleHover}\n />\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAOA,MAAW,QAElB,OACE,gBAAgBC,EAChB,8BAA8BC,EAC9B,yBAAyBC,EAEzB,mCAAmCC,MAC9B,8CAEP,OAAS,iBAAAC,MAAqB,iCAC9B,OAAS,wBAAAC,MAA4B,uBAE9B,MAAMC,EAA4B,IAAM,CAC7C,KAAM,CAAE,YAAaC,CAAkB,EAAIN,EAA0B,EAC/DO,EAAQJ,EAAc,EACtBK,EAAuBJ,EAAqB,EAC5CK,EAAcR,EAAqBK,CAAiB,EACpDI,EAAQR,EAA+BK,CAAK,EAE5CI,EAAeD,GAAwB,CAC3CF,EAAqB,CAAE,kBAAmBE,CAAM,CAAC,CACnD,EAEA,SAASE,EAAYF,EAAqB,CACxCF,EAAqB,CAAE,QAASE,CAAM,CAAC,CACzC,CAEA,OACEZ,EAAA,cAACC,EAAA,CACC,MAAOW,EACP,YAAaD,EACb,QAASG,EACT,QAASD,EACX,CAEJ",
|
|
6
|
+
"names": ["React", "ChartLegend", "useChartLayoutOrientation", "getLegendOrientation", "buildCategoricalItemsFromScale", "useColorScale", "useSetStateSelection", "CategoricalLegendRenderer", "layoutOrientation", "scale", "updateStateSelection", "orientation", "items", "handleHover", "handleClick"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import e from"react";import{CategoricalLegendRenderer as n}from"./CategoricalLegendRenderer.js";import{SequentialLegendRenderer as o}from"./SequentialLegendRenderer.js";import{ThresholdLegendRenderer as t}from"./ThresholdLegendRenderer.js";import{useMapConfig as d}from"../../hooks/use-map-config.js";const i={sequential:e.createElement(o,null),categorical:e.createElement(n,null),threshold:e.createElement(t,null)},s=()=>{const{legend:r}=d();return r?i[r.type]??null:null};export{s as MapLegendRenderer};
|
|
16
|
+
//# sourceMappingURL=MapLegendRenderer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/map/components/legend/MapLegendRenderer.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\n\nimport { CategoricalLegendRenderer } from './CategoricalLegendRenderer.js';\nimport { SequentialLegendRenderer } from './SequentialLegendRenderer.js';\nimport { ThresholdLegendRenderer } from './ThresholdLegendRenderer.js';\nimport { useMapConfig } from '../../hooks/use-map-config.js';\n\nconst LEGEND_RENDERERS = {\n sequential: <SequentialLegendRenderer />,\n categorical: <CategoricalLegendRenderer />,\n threshold: <ThresholdLegendRenderer />,\n};\n\nexport const MapLegendRenderer = () => {\n const { legend } = useMapConfig();\n\n if (!legend) {\n return null;\n }\n\n return LEGEND_RENDERERS[legend.type] ?? null;\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAOA,MAAW,QAElB,OAAS,6BAAAC,MAAiC,iCAC1C,OAAS,4BAAAC,MAAgC,gCACzC,OAAS,2BAAAC,MAA+B,+BACxC,OAAS,gBAAAC,MAAoB,gCAE7B,MAAMC,EAAmB,CACvB,WAAYL,EAAA,cAACE,EAAA,IAAyB,EACtC,YAAaF,EAAA,cAACC,EAAA,IAA0B,EACxC,UAAWD,EAAA,cAACG,EAAA,IAAwB,CACtC,EAEaG,EAAoB,IAAM,CACrC,KAAM,CAAE,OAAAC,CAAO,EAAIH,EAAa,EAEhC,OAAKG,EAIEF,EAAiBE,EAAO,IAAI,GAAK,KAH/B,IAIX",
|
|
6
|
+
"names": ["React", "CategoricalLegendRenderer", "SequentialLegendRenderer", "ThresholdLegendRenderer", "useMapConfig", "LEGEND_RENDERERS", "MapLegendRenderer", "legend"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import{isUndefined as o}from"lodash-es";import r from"react";import{_buildQuantizedRangeItems as a,_getLegendOrientation as s,_RangeLegend as m,_useChartLayoutOrientation as u}from"@dynatrace/strato-components-preview/charts";import{DEFAULT_FORMATTER as d}from"../../constants.js";import{useColorScale as g}from"../../hooks/use-color-scale.js";const z=()=>{const{orientation:n}=u(),e=g();if(o(e))return null;const t=s(n),i=a(e,t==="vertical");return r.createElement(m,{items:i,orientation:t,formatter:d})};export{z as SequentialLegendRenderer};
|
|
16
|
+
//# sourceMappingURL=SequentialLegendRenderer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/map/components/legend/SequentialLegendRenderer.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ScaleQuantize } from 'd3-scale';\nimport { isUndefined } from 'lodash-es';\nimport React from 'react';\n\nimport {\n _buildQuantizedRangeItems as buildQuantizedRangeItems,\n _getLegendOrientation as getLegendOrientation,\n _RangeLegend as RangeLegend,\n _useChartLayoutOrientation as useChartLayoutOrientation,\n} from '@dynatrace/strato-components-preview/charts';\n\nimport { DEFAULT_FORMATTER } from '../../constants.js';\nimport { useColorScale } from '../../hooks/use-color-scale.js';\n\nexport const SequentialLegendRenderer = () => {\n const { orientation: layoutOrientation } = useChartLayoutOrientation();\n const scale = useColorScale() as ScaleQuantize<string>;\n if (isUndefined(scale)) {\n return null;\n }\n\n const orientation = getLegendOrientation(layoutOrientation);\n const invertItems = orientation === 'vertical';\n const items = buildQuantizedRangeItems(scale, invertItems);\n\n return (\n <RangeLegend\n items={items}\n orientation={orientation}\n formatter={DEFAULT_FORMATTER}\n />\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAiBA,OAAS,eAAAA,MAAmB,YAC5B,OAAOC,MAAW,QAElB,OACE,6BAA6BC,EAC7B,yBAAyBC,EACzB,gBAAgBC,EAChB,8BAA8BC,MACzB,8CAEP,OAAS,qBAAAC,MAAyB,qBAClC,OAAS,iBAAAC,MAAqB,iCAEvB,MAAMC,EAA2B,IAAM,CAC5C,KAAM,CAAE,YAAaC,CAAkB,EAAIJ,EAA0B,EAC/DK,EAAQH,EAAc,EAC5B,GAAIP,EAAYU,CAAK,EACnB,OAAO,KAGT,MAAMC,EAAcR,EAAqBM,CAAiB,EAEpDG,EAAQV,EAAyBQ,EADnBC,IAAgB,UACqB,EAEzD,OACEV,EAAA,cAACG,EAAA,CACC,MAAOQ,EACP,YAAaD,EACb,UAAWL,EACb,CAEJ",
|
|
6
|
+
"names": ["isUndefined", "React", "buildQuantizedRangeItems", "getLegendOrientation", "RangeLegend", "useChartLayoutOrientation", "DEFAULT_FORMATTER", "useColorScale", "SequentialLegendRenderer", "layoutOrientation", "scale", "orientation", "items"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import a from"react";import{_buildLegendItemsFromRange as s,_getLegendOrientation as g,_RangeLegend as m,_useChartLayoutOrientation as d}from"@dynatrace/strato-components-preview/charts";import{DEFAULT_FORMATTER as L,DEFAULT_RANGE_COLOR as f}from"../../constants.js";import{useMapConfig as u}from"../../hooks/use-map-config.js";const T=()=>{const{orientation:n}=d(),{legend:o}=u(),{ranges:r}=o,e=g(n),i=e==="vertical",t=s(r,f);return i&&t.reverse(),a.createElement(m,{items:t,orientation:e,formatter:L})};export{T as ThresholdLegendRenderer};
|
|
16
|
+
//# sourceMappingURL=ThresholdLegendRenderer.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/map/components/legend/ThresholdLegendRenderer.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\n\nimport {\n _buildLegendItemsFromRange as buildLegendItemsFromRange,\n _getLegendOrientation as getLegendOrientation,\n _RangeLegend as RangeLegend,\n _useChartLayoutOrientation as useChartLayoutOrientation,\n} from '@dynatrace/strato-components-preview/charts';\n\nimport { DEFAULT_FORMATTER, DEFAULT_RANGE_COLOR } from '../../constants.js';\nimport { useMapConfig } from '../../hooks/use-map-config.js';\nimport { ThresholdLegendConfig } from '../../types/legend.js';\n\nexport const ThresholdLegendRenderer = () => {\n const { orientation: layoutOrientation } = useChartLayoutOrientation();\n\n const { legend } = useMapConfig();\n\n const { ranges } = legend as ThresholdLegendConfig;\n\n const orientation = getLegendOrientation(layoutOrientation);\n const invertItems = orientation === 'vertical';\n const items = buildLegendItemsFromRange(ranges, DEFAULT_RANGE_COLOR);\n invertItems && items.reverse();\n\n return (\n <RangeLegend\n items={items}\n orientation={orientation}\n formatter={DEFAULT_FORMATTER}\n />\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAOA,MAAW,QAElB,OACE,8BAA8BC,EAC9B,yBAAyBC,EACzB,gBAAgBC,EAChB,8BAA8BC,MACzB,8CAEP,OAAS,qBAAAC,EAAmB,uBAAAC,MAA2B,qBACvD,OAAS,gBAAAC,MAAoB,gCAGtB,MAAMC,EAA0B,IAAM,CAC3C,KAAM,CAAE,YAAaC,CAAkB,EAAIL,EAA0B,EAE/D,CAAE,OAAAM,CAAO,EAAIH,EAAa,EAE1B,CAAE,OAAAI,CAAO,EAAID,EAEbE,EAAcV,EAAqBO,CAAiB,EACpDI,EAAcD,IAAgB,WAC9BE,EAAQb,EAA0BU,EAAQL,CAAmB,EACnE,OAAAO,GAAeC,EAAM,QAAQ,EAG3Bd,EAAA,cAACG,EAAA,CACC,MAAOW,EACP,YAAaF,EACb,UAAWP,EACb,CAEJ",
|
|
6
|
+
"names": ["React", "buildLegendItemsFromRange", "getLegendOrientation", "RangeLegend", "useChartLayoutOrientation", "DEFAULT_FORMATTER", "DEFAULT_RANGE_COLOR", "useMapConfig", "ThresholdLegendRenderer", "layoutOrientation", "legend", "ranges", "orientation", "invertItems", "items"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/const d=(e,n)=>{if(typeof n=="string"){const r=e;if(r.domain().includes(n))return r(n)}if(typeof n=="number"){const r=e,[i,t]=r.domain();if(n&&n>=i&&n<=t)return r(n)}};export{d as resolveColor};
|
|
16
|
+
//# sourceMappingURL=resolve-color.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/map/components/legend/functions/resolve-color.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ScaleOrdinal, ScaleQuantize, ScaleThreshold } from 'd3-scale';\n\n/**\n * Resolves a color inside the given scale just if it fits its domain\n *\n * @param scale - given scale\n * @param value - given value\n */\nexport const resolveColor = (\n scale:\n | ScaleQuantize<string>\n | ScaleThreshold<number, string>\n | ScaleOrdinal<string, string>,\n value: number | string | undefined,\n) => {\n if (typeof value === 'string') {\n const castedScale = scale as ScaleOrdinal<string, string>;\n const categories = castedScale.domain();\n\n if (categories.includes(value)) {\n return castedScale(value);\n }\n }\n\n if (typeof value === 'number') {\n const castedScale = scale as\n | ScaleQuantize<string>\n | ScaleThreshold<number, string>;\n const [min, max] = castedScale.domain();\n if (value && value >= min && value <= max) {\n return castedScale(value);\n }\n }\n\n return undefined;\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAuBO,MAAMA,EAAe,CAC1BC,EAIAC,IACG,CACH,GAAI,OAAOA,GAAU,SAAU,CAC7B,MAAMC,EAAcF,EAGpB,GAFmBE,EAAY,OAAO,EAEvB,SAASD,CAAK,EAC3B,OAAOC,EAAYD,CAAK,CAE5B,CAEA,GAAI,OAAOA,GAAU,SAAU,CAC7B,MAAMC,EAAcF,EAGd,CAACG,EAAKC,CAAG,EAAIF,EAAY,OAAO,EACtC,GAAID,GAASA,GAASE,GAAOF,GAASG,EACpC,OAAOF,EAAYD,CAAK,CAE5B,CAGF",
|
|
6
|
+
"names": ["resolveColor", "scale", "value", "castedScale", "min", "max"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import o from"react";import{_ChartToolbarRenderer as d}from"@dynatrace/strato-components-preview/charts";import{MapDownloadDataButton as b}from"./buttons/MapDownloadDataButton.js";import{MapResetButton as f}from"./buttons/MapResetButton.js";import{MapZoomInOutButtons as u}from"./buttons/MapZoomInOutButtons.js";import{MapZoomToFitButton as M}from"./buttons/MapZoomToFitButton.js";import{initialA11yToolbarTabIndexContext as c}from"./constants.js";import{useMapConfig as T}from"../../hooks/use-map-config.js";import{MapInitialViewProvider as g}from"../../providers/map-initial-view.provider.js";import{useMapOverlayState as C}from"../../store/selectors.js";import{useSetStateTooltip as h}from"../../store/store.js";const v="top-right",w=()=>{const{toolbar:t,interactions:a}=T(),{mouseInBounds:i}=C(),r=h(),e=a?.zoom?.enabled??!1,n=a?.zoomToFit?.enabled??!1,l=t?.downloadData??!1,s=e||n||l,m=()=>{r({enabled:!1})},p=()=>{r({enabled:!0})};return s?o.createElement(g,null,o.createElement(d,{visible:i,collapsed:t?.collapsed,draggable:t?.draggable,placement:t?.placement??v,initialA11yState:c,onMouseEnter:m,onMouseLeave:p},e&&o.createElement(u,null),e&&o.createElement(f,null),n&&o.createElement(M,null),l&&o.createElement(b,null))):null};w.displayName="MapToolbar";export{w as MapToolbar};
|
|
16
|
+
//# sourceMappingURL=MapToolbar.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/map/components/toolbar/MapToolbar.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\n\nimport { _ChartToolbarRenderer as ChartToolbarRenderer } from '@dynatrace/strato-components-preview/charts';\n\nimport { MapDownloadDataButton } from './buttons/MapDownloadDataButton.js';\nimport { MapResetButton } from './buttons/MapResetButton.js';\nimport { MapZoomInOutButtons } from './buttons/MapZoomInOutButtons.js';\nimport { MapZoomToFitButton } from './buttons/MapZoomToFitButton.js';\nimport { initialA11yToolbarTabIndexContext } from './constants.js';\nimport { useMapConfig } from '../../hooks/use-map-config.js';\nimport { MapInitialViewProvider } from '../../providers/map-initial-view.provider.js';\nimport { useMapOverlayState } from '../../store/selectors.js';\nimport { useSetStateTooltip } from '../../store/store.js';\n\nconst defaultToolbarPlacement = 'top-right';\n\nexport const MapToolbar = () => {\n const { toolbar: toolbarConfig, interactions: interactionsConfig } =\n useMapConfig();\n\n const { mouseInBounds } = useMapOverlayState();\n const setTooltipState = useSetStateTooltip();\n\n const isZoomEnabled = interactionsConfig?.zoom?.enabled ?? false;\n const isZoomToFitEnabled = interactionsConfig?.zoomToFit?.enabled ?? false;\n const isDownloadDataEnabled = toolbarConfig?.downloadData ?? false;\n\n const hasControls =\n isZoomEnabled || isZoomToFitEnabled || isDownloadDataEnabled;\n\n const handleMouseEnter = () => {\n setTooltipState({\n enabled: false,\n });\n };\n\n const handleMouseLeave = () => {\n setTooltipState({\n enabled: true,\n });\n };\n\n return hasControls ? (\n <MapInitialViewProvider>\n <ChartToolbarRenderer\n visible={mouseInBounds}\n collapsed={toolbarConfig?.collapsed}\n draggable={toolbarConfig?.draggable}\n placement={toolbarConfig?.placement ?? defaultToolbarPlacement}\n initialA11yState={initialA11yToolbarTabIndexContext}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n >\n {isZoomEnabled && <MapZoomInOutButtons />}\n {isZoomEnabled && <MapResetButton />}\n {isZoomToFitEnabled && <MapZoomToFitButton />}\n {isDownloadDataEnabled && <MapDownloadDataButton />}\n </ChartToolbarRenderer>\n </MapInitialViewProvider>\n ) : null;\n};\n\nMapToolbar['displayName'] = 'MapToolbar';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAOA,MAAW,QAElB,OAAS,yBAAyBC,MAA4B,8CAE9D,OAAS,yBAAAC,MAA6B,qCACtC,OAAS,kBAAAC,MAAsB,8BAC/B,OAAS,uBAAAC,MAA2B,mCACpC,OAAS,sBAAAC,MAA0B,kCACnC,OAAS,qCAAAC,MAAyC,iBAClD,OAAS,gBAAAC,MAAoB,gCAC7B,OAAS,0BAAAC,MAA8B,+CACvC,OAAS,sBAAAC,MAA0B,2BACnC,OAAS,sBAAAC,MAA0B,uBAEnC,MAAMC,EAA0B,YAEnBC,EAAa,IAAM,CAC9B,KAAM,CAAE,QAASC,EAAe,aAAcC,CAAmB,EAC/DP,EAAa,EAET,CAAE,cAAAQ,CAAc,EAAIN,EAAmB,EACvCO,EAAkBN,EAAmB,EAErCO,EAAgBH,GAAoB,MAAM,SAAW,GACrDI,EAAqBJ,GAAoB,WAAW,SAAW,GAC/DK,EAAwBN,GAAe,cAAgB,GAEvDO,EACJH,GAAiBC,GAAsBC,EAEnCE,EAAmB,IAAM,CAC7BL,EAAgB,CACd,QAAS,EACX,CAAC,CACH,EAEMM,EAAmB,IAAM,CAC7BN,EAAgB,CACd,QAAS,EACX,CAAC,CACH,EAEA,OAAOI,EACLpB,EAAA,cAACQ,EAAA,KACCR,EAAA,cAACC,EAAA,CACC,QAASc,EACT,UAAWF,GAAe,UAC1B,UAAWA,GAAe,UAC1B,UAAWA,GAAe,WAAaF,EACvC,iBAAkBL,EAClB,aAAce,EACd,aAAcC,GAEbL,GAAiBjB,EAAA,cAACI,EAAA,IAAoB,EACtCa,GAAiBjB,EAAA,cAACG,EAAA,IAAe,EACjCe,GAAsBlB,EAAA,cAACK,EAAA,IAAmB,EAC1Cc,GAAyBnB,EAAA,cAACE,EAAA,IAAsB,CACnD,CACF,EACE,IACN,EAEAU,EAAW,YAAiB",
|
|
6
|
+
"names": ["React", "ChartToolbarRenderer", "MapDownloadDataButton", "MapResetButton", "MapZoomInOutButtons", "MapZoomToFitButton", "initialA11yToolbarTabIndexContext", "useMapConfig", "MapInitialViewProvider", "useMapOverlayState", "useSetStateTooltip", "defaultToolbarPlacement", "MapToolbar", "toolbarConfig", "interactionsConfig", "mouseInBounds", "setTooltipState", "isZoomEnabled", "isZoomToFitEnabled", "isDownloadDataEnabled", "hasControls", "handleMouseEnter", "handleMouseLeave"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import t,{useRef as s}from"react";import{useIntl as f}from"react-intl";import{_ChartToolbarRenderer as i}from"@dynatrace/strato-components-preview/charts";import{DownloadIcon as p}from"@dynatrace/strato-icons";import{buildAndDownloadCsv as a}from"../../../functions/build-and-download-csv.js";import{useA11yToolbarTabIndex as D}from"../../../hooks/use-a11y-toolbar-tab-index.js";import{useMapRawData as b}from"../../../hooks/use-map-raw-data.js";import{TOOLBAR_MESSAGES as w}from"../constants.js";const M=()=>{const n=s(),r=f(),e=D("download-data"),o=b(),d=m=>{m.key==="Enter"&&a(o)},l=()=>{a(o)};return t.createElement(i.Control,{ref:n,prefixIcon:t.createElement(p,null),tooltipText:r.formatMessage(w.downloadData),testId:"map-toolbar-download",onKeyDown:d,onClick:l,tabIndex:e})};export{M as MapDownloadDataButton};
|
|
16
|
+
//# sourceMappingURL=MapDownloadDataButton.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/map/components/toolbar/buttons/MapDownloadDataButton.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React, { useRef } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport { _ChartToolbarRenderer as ChartToolbarRenderer } from '@dynatrace/strato-components-preview/charts';\nimport { DownloadIcon } from '@dynatrace/strato-icons';\n\nimport { buildAndDownloadCsv } from '../../../functions/build-and-download-csv.js';\nimport { useA11yToolbarTabIndex } from '../../../hooks/use-a11y-toolbar-tab-index.js';\nimport { useMapRawData } from '../../../hooks/use-map-raw-data.js';\nimport { TOOLBAR_MESSAGES } from '../constants.js';\n\nexport const MapDownloadDataButton = () => {\n const downloadDataButtonRef = useRef<HTMLButtonElement>();\n const intl = useIntl();\n const tabIndex = useA11yToolbarTabIndex('download-data');\n const data = useMapRawData();\n\n /** Handles the download button when event keydown.*/\n const handleDownloadDataKeyboard = (event: KeyboardEvent) => {\n if (event.key === 'Enter') {\n buildAndDownloadCsv(data);\n }\n };\n\n /** Handles the download button when clicked. */\n const handleDownloadDataToolbar = () => {\n buildAndDownloadCsv(data);\n };\n\n return (\n <ChartToolbarRenderer.Control\n ref={downloadDataButtonRef}\n prefixIcon={<DownloadIcon />}\n tooltipText={intl.formatMessage(TOOLBAR_MESSAGES.downloadData)}\n testId=\"map-toolbar-download\"\n onKeyDown={handleDownloadDataKeyboard}\n onClick={handleDownloadDataToolbar}\n tabIndex={tabIndex}\n />\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAOA,GAAS,UAAAC,MAAc,QAC9B,OAAS,WAAAC,MAAe,aAExB,OAAS,yBAAyBC,MAA4B,8CAC9D,OAAS,gBAAAC,MAAoB,0BAE7B,OAAS,uBAAAC,MAA2B,+CACpC,OAAS,0BAAAC,MAA8B,+CACvC,OAAS,iBAAAC,MAAqB,qCAC9B,OAAS,oBAAAC,MAAwB,kBAE1B,MAAMC,EAAwB,IAAM,CACzC,MAAMC,EAAwBT,EAA0B,EAClDU,EAAOT,EAAQ,EACfU,EAAWN,EAAuB,eAAe,EACjDO,EAAON,EAAc,EAGrBO,EAA8BC,GAAyB,CACvDA,EAAM,MAAQ,SAChBV,EAAoBQ,CAAI,CAE5B,EAGMG,EAA4B,IAAM,CACtCX,EAAoBQ,CAAI,CAC1B,EAEA,OACEb,EAAA,cAACG,EAAqB,QAArB,CACC,IAAKO,EACL,WAAYV,EAAA,cAACI,EAAA,IAAa,EAC1B,YAAaO,EAAK,cAAcH,EAAiB,YAAY,EAC7D,OAAO,uBACP,UAAWM,EACX,QAASE,EACT,SAAUJ,EACZ,CAEJ",
|
|
6
|
+
"names": ["React", "useRef", "useIntl", "ChartToolbarRenderer", "DownloadIcon", "buildAndDownloadCsv", "useA11yToolbarTabIndex", "useMapRawData", "TOOLBAR_MESSAGES", "MapDownloadDataButton", "downloadDataButtonRef", "intl", "tabIndex", "data", "handleDownloadDataKeyboard", "event", "handleDownloadDataToolbar"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import t,{useRef as p}from"react";import{useIntl as c}from"react-intl";import{useMap as d}from"react-map-gl/maplibre";import{_ChartToolbarRenderer as u}from"@dynatrace/strato-components-preview/charts";import{ResetIcon as b}from"@dynatrace/strato-icons";import{useA11yToolbarTabIndex as I}from"../../../hooks/use-a11y-toolbar-tab-index.js";import{useInitialViewContext as R}from"../../../hooks/use-initial-view-context.js";import{TOOLBAR_MESSAGES as T}from"../constants.js";const w=()=>{const{current:e}=d(),{longitude:r=0,latitude:n=0,zoom:s=0}=R(),m=c(),a=p(),i=I("reset"),o=()=>{e?.flyTo({center:[r,n],zoom:s})},l=f=>{f.code==="Enter"&&o()};return t.createElement(u.Control,{ref:a,prefixIcon:t.createElement(b,null),tooltipText:m.formatMessage(T.zoomActionReset),testId:"map-toolbar-reset",onKeyDown:l,onClick:o,tabIndex:i})};export{w as MapResetButton};
|
|
16
|
+
//# sourceMappingURL=MapResetButton.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/map/components/toolbar/buttons/MapResetButton.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useRef } from 'react';\nimport { useIntl } from 'react-intl';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { _ChartToolbarRenderer as ChartToolbarRenderer } from '@dynatrace/strato-components-preview/charts';\nimport { ResetIcon } from '@dynatrace/strato-icons';\n\nimport { useA11yToolbarTabIndex } from '../../../hooks/use-a11y-toolbar-tab-index.js';\nimport { useInitialViewContext } from '../../../hooks/use-initial-view-context.js';\nimport { TOOLBAR_MESSAGES } from '../constants.js';\n\nexport const MapResetButton = () => {\n const { current: map } = useMap();\n const { longitude = 0, latitude = 0, zoom = 0 } = useInitialViewContext();\n const intl = useIntl();\n\n const resetButtonRef = useRef<HTMLButtonElement>();\n const tabIndex = useA11yToolbarTabIndex('reset');\n\n const handleReset = () => {\n map?.flyTo({ center: [longitude, latitude], zoom: zoom });\n };\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.code === 'Enter') {\n handleReset();\n }\n };\n\n return (\n <ChartToolbarRenderer.Control\n ref={resetButtonRef}\n prefixIcon={<ResetIcon />}\n tooltipText={intl.formatMessage(TOOLBAR_MESSAGES.zoomActionReset)}\n testId=\"map-toolbar-reset\"\n onKeyDown={handleKeyDown}\n onClick={handleReset}\n tabIndex={tabIndex}\n />\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAOA,GAAS,UAAAC,MAAc,QAC9B,OAAS,WAAAC,MAAe,aACxB,OAAS,UAAAC,MAAc,wBAEvB,OAAS,yBAAyBC,MAA4B,8CAC9D,OAAS,aAAAC,MAAiB,0BAE1B,OAAS,0BAAAC,MAA8B,+CACvC,OAAS,yBAAAC,MAA6B,6CACtC,OAAS,oBAAAC,MAAwB,kBAE1B,MAAMC,EAAiB,IAAM,CAClC,KAAM,CAAE,QAASC,CAAI,EAAIP,EAAO,EAC1B,CAAE,UAAAQ,EAAY,EAAG,SAAAC,EAAW,EAAG,KAAAC,EAAO,CAAE,EAAIN,EAAsB,EAClEO,EAAOZ,EAAQ,EAEfa,EAAiBd,EAA0B,EAC3Ce,EAAWV,EAAuB,OAAO,EAEzCW,EAAc,IAAM,CACxBP,GAAK,MAAM,CAAE,OAAQ,CAACC,EAAWC,CAAQ,EAAG,KAAMC,CAAK,CAAC,CAC1D,EAEMK,EAAiBC,GAAyB,CAC1CA,EAAM,OAAS,SACjBF,EAAY,CAEhB,EAEA,OACEjB,EAAA,cAACI,EAAqB,QAArB,CACC,IAAKW,EACL,WAAYf,EAAA,cAACK,EAAA,IAAU,EACvB,YAAaS,EAAK,cAAcN,EAAiB,eAAe,EAChE,OAAO,oBACP,UAAWU,EACX,QAASD,EACT,SAAUD,EACZ,CAEJ",
|
|
6
|
+
"names": ["React", "useRef", "useIntl", "useMap", "ChartToolbarRenderer", "ResetIcon", "useA11yToolbarTabIndex", "useInitialViewContext", "TOOLBAR_MESSAGES", "MapResetButton", "map", "longitude", "latitude", "zoom", "intl", "resetButtonRef", "tabIndex", "handleReset", "handleKeyDown", "event"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import n,{useRef as i}from"react";import{useIntl as Z}from"react-intl";import{useMap as b}from"react-map-gl/maplibre";import{_ChartToolbarRenderer as a}from"@dynatrace/strato-components-preview/charts";import{ZoomInIcon as M,ZoomOutIcon as x}from"@dynatrace/strato-icons";import{useA11yToolbarTabIndex as s}from"../../../hooks/use-a11y-toolbar-tab-index.js";import{TOOLBAR_MESSAGES as u}from"../constants.js";const E=()=>{const{current:o}=b(),d=o&&o?.getMaxZoom()===o?.getZoom(),l=o&&o?.getMinZoom()===o?.getZoom(),f=i(),p=i(),e=Z(),I=s("zoom-in"),z=s("zoom-out"),r=(t,c)=>{t.code==="Enter"&&m(c)},m=t=>{t==="zoom-in"&&o?.zoomIn(),t==="zoom-out"&&o?.zoomOut()};return n.createElement(n.Fragment,null,n.createElement(a.Control,{ref:f,prefixIcon:n.createElement(M,null),tooltipText:e.formatMessage(u.zoomActionZoomIn),testId:"map-toolbar-zoom-in",onKeyDown:t=>r(t,"zoom-in"),onClick:()=>m("zoom-in"),tabIndex:I,disabled:d}),n.createElement(a.Control,{ref:p,prefixIcon:n.createElement(x,null),tooltipText:e.formatMessage(u.zoomActionZoomOut),testId:"map-toolbar-zoom-out",onKeyDown:t=>r(t,"zoom-out"),onClick:()=>m("zoom-out"),tabIndex:z,disabled:l}))};export{E as MapZoomInOutButtons};
|
|
16
|
+
//# sourceMappingURL=MapZoomInOutButtons.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/map/components/toolbar/buttons/MapZoomInOutButtons.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { useRef } from 'react';\nimport { useIntl } from 'react-intl';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { _ChartToolbarRenderer as ChartToolbarRenderer } from '@dynatrace/strato-components-preview/charts';\nimport { ZoomInIcon, ZoomOutIcon } from '@dynatrace/strato-icons';\n\nimport { useA11yToolbarTabIndex } from '../../../hooks/use-a11y-toolbar-tab-index.js';\nimport { TOOLBAR_MESSAGES } from '../constants.js';\n\ntype ZoomBehavior = 'zoom-in' | 'zoom-out';\nexport const MapZoomInOutButtons = () => {\n const { current: map } = useMap();\n const isMaxZoom = map && map?.getMaxZoom() === map?.getZoom();\n const isMinZoom = map && map?.getMinZoom() === map?.getZoom();\n\n const zoomInButtonRef = useRef<HTMLButtonElement>();\n const zoomButtonOutRef = useRef<HTMLButtonElement>();\n const intl = useIntl();\n const tabIndexIn = useA11yToolbarTabIndex('zoom-in');\n const tabIndexOut = useA11yToolbarTabIndex('zoom-out');\n\n const handleZoomKeyboardMode = (\n event: KeyboardEvent,\n zoomBehavior: ZoomBehavior,\n ) => {\n if (event.code === 'Enter') {\n handleZoomStepToolbarMode(zoomBehavior);\n }\n };\n\n const handleZoomStepToolbarMode = (zoomBehavior: ZoomBehavior) => {\n if (zoomBehavior === 'zoom-in') {\n map?.zoomIn();\n }\n if (zoomBehavior === 'zoom-out') {\n map?.zoomOut();\n }\n };\n\n return (\n <>\n <ChartToolbarRenderer.Control\n ref={zoomInButtonRef}\n prefixIcon={<ZoomInIcon />}\n tooltipText={intl.formatMessage(TOOLBAR_MESSAGES.zoomActionZoomIn)}\n testId=\"map-toolbar-zoom-in\"\n onKeyDown={(event) => handleZoomKeyboardMode(event, 'zoom-in')}\n onClick={() => handleZoomStepToolbarMode('zoom-in')}\n tabIndex={tabIndexIn}\n disabled={isMaxZoom}\n />\n <ChartToolbarRenderer.Control\n ref={zoomButtonOutRef}\n prefixIcon={<ZoomOutIcon />}\n tooltipText={intl.formatMessage(TOOLBAR_MESSAGES.zoomActionZoomOut)}\n testId=\"map-toolbar-zoom-out\"\n onKeyDown={(event) => handleZoomKeyboardMode(event, 'zoom-out')}\n onClick={() => handleZoomStepToolbarMode('zoom-out')}\n tabIndex={tabIndexOut}\n disabled={isMinZoom}\n />\n </>\n );\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAOA,GAAS,UAAAC,MAAc,QAC9B,OAAS,WAAAC,MAAe,aACxB,OAAS,UAAAC,MAAc,wBAEvB,OAAS,yBAAyBC,MAA4B,8CAC9D,OAAS,cAAAC,EAAY,eAAAC,MAAmB,0BAExC,OAAS,0BAAAC,MAA8B,+CACvC,OAAS,oBAAAC,MAAwB,kBAG1B,MAAMC,EAAsB,IAAM,CACvC,KAAM,CAAE,QAASC,CAAI,EAAIP,EAAO,EAC1BQ,EAAYD,GAAOA,GAAK,WAAW,IAAMA,GAAK,QAAQ,EACtDE,EAAYF,GAAOA,GAAK,WAAW,IAAMA,GAAK,QAAQ,EAEtDG,EAAkBZ,EAA0B,EAC5Ca,EAAmBb,EAA0B,EAC7Cc,EAAOb,EAAQ,EACfc,EAAaT,EAAuB,SAAS,EAC7CU,EAAcV,EAAuB,UAAU,EAE/CW,EAAyB,CAC7BC,EACAC,IACG,CACCD,EAAM,OAAS,SACjBE,EAA0BD,CAAY,CAE1C,EAEMC,EAA6BD,GAA+B,CAC5DA,IAAiB,WACnBV,GAAK,OAAO,EAEVU,IAAiB,YACnBV,GAAK,QAAQ,CAEjB,EAEA,OACEV,EAAA,cAAAA,EAAA,cACEA,EAAA,cAACI,EAAqB,QAArB,CACC,IAAKS,EACL,WAAYb,EAAA,cAACK,EAAA,IAAW,EACxB,YAAaU,EAAK,cAAcP,EAAiB,gBAAgB,EACjE,OAAO,sBACP,UAAYW,GAAUD,EAAuBC,EAAO,SAAS,EAC7D,QAAS,IAAME,EAA0B,SAAS,EAClD,SAAUL,EACV,SAAUL,EACZ,EACAX,EAAA,cAACI,EAAqB,QAArB,CACC,IAAKU,EACL,WAAYd,EAAA,cAACM,EAAA,IAAY,EACzB,YAAaS,EAAK,cAAcP,EAAiB,iBAAiB,EAClE,OAAO,uBACP,UAAYW,GAAUD,EAAuBC,EAAO,UAAU,EAC9D,QAAS,IAAME,EAA0B,UAAU,EACnD,SAAUJ,EACV,SAAUL,EACZ,CACF,CAEJ",
|
|
6
|
+
"names": ["React", "useRef", "useIntl", "useMap", "ChartToolbarRenderer", "ZoomInIcon", "ZoomOutIcon", "useA11yToolbarTabIndex", "TOOLBAR_MESSAGES", "MapZoomInOutButtons", "map", "isMaxZoom", "isMinZoom", "zoomInButtonRef", "zoomButtonOutRef", "intl", "tabIndexIn", "tabIndexOut", "handleZoomKeyboardMode", "event", "zoomBehavior", "handleZoomStepToolbarMode"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import t,{useRef as f}from"react";import{useIntl as p}from"react-intl";import{useMap as d}from"react-map-gl/maplibre";import{_ChartToolbarRenderer as c}from"@dynatrace/strato-components-preview/charts";import{ZoomToFitIcon as T}from"@dynatrace/strato-icons";import{FIT_BOUNDS_OPTIONS as l}from"../../../constants.js";import{useA11yToolbarTabIndex as u}from"../../../hooks/use-a11y-toolbar-tab-index.js";import{useDataBoundingBox as b}from"../../../hooks/use-data-bounding-box.js";import{TOOLBAR_MESSAGES as I}from"../constants.js";const x=()=>{const r=f(),{current:n}=d(),e=u("zoom-to-fit"),m=p(),i=b(),o=()=>{n?.fitBounds(i,l)},a=s=>{s.code==="Enter"&&o()};return t.createElement(c.Control,{ref:r,prefixIcon:t.createElement(T,null),tooltipText:m.formatMessage(I.zoomActionZoomToFit),testId:"map-toolbar-zoom-to-fit",onKeyDown:a,onClick:o,tabIndex:e})};x.displayName="MapZoomToFit";export{x as MapZoomToFitButton};
|
|
16
|
+
//# sourceMappingURL=MapZoomToFitButton.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../src/map/components/toolbar/buttons/MapZoomToFitButton.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React, { useRef } from 'react';\nimport { useIntl } from 'react-intl';\nimport { useMap } from 'react-map-gl/maplibre';\n\nimport { _ChartToolbarRenderer as ChartToolbarRenderer } from '@dynatrace/strato-components-preview/charts';\nimport { ZoomToFitIcon } from '@dynatrace/strato-icons';\n\nimport { FIT_BOUNDS_OPTIONS } from '../../../constants.js';\nimport { useA11yToolbarTabIndex } from '../../../hooks/use-a11y-toolbar-tab-index.js';\nimport { useDataBoundingBox } from '../../../hooks/use-data-bounding-box.js';\nimport { TOOLBAR_MESSAGES } from '../constants.js';\n\nexport const MapZoomToFitButton = () => {\n const resetButtonRef = useRef();\n const { current: map } = useMap();\n const tabIndex = useA11yToolbarTabIndex('zoom-to-fit');\n const intl = useIntl();\n const boundingBox = useDataBoundingBox();\n const handleZoomToFit = () => {\n map?.fitBounds(boundingBox, FIT_BOUNDS_OPTIONS);\n };\n\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.code === 'Enter') {\n handleZoomToFit();\n }\n };\n\n return (\n <ChartToolbarRenderer.Control\n ref={resetButtonRef}\n prefixIcon={<ZoomToFitIcon />}\n tooltipText={intl.formatMessage(TOOLBAR_MESSAGES.zoomActionZoomToFit)}\n testId=\"map-toolbar-zoom-to-fit\"\n onKeyDown={handleKeyDown}\n onClick={handleZoomToFit}\n tabIndex={tabIndex}\n />\n );\n};\n\nMapZoomToFitButton['displayName'] = 'MapZoomToFit';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAOA,GAAS,UAAAC,MAAc,QAC9B,OAAS,WAAAC,MAAe,aACxB,OAAS,UAAAC,MAAc,wBAEvB,OAAS,yBAAyBC,MAA4B,8CAC9D,OAAS,iBAAAC,MAAqB,0BAE9B,OAAS,sBAAAC,MAA0B,wBACnC,OAAS,0BAAAC,MAA8B,+CACvC,OAAS,sBAAAC,MAA0B,0CACnC,OAAS,oBAAAC,MAAwB,kBAE1B,MAAMC,EAAqB,IAAM,CACtC,MAAMC,EAAiBV,EAAO,EACxB,CAAE,QAASW,CAAI,EAAIT,EAAO,EAC1BU,EAAWN,EAAuB,aAAa,EAC/CO,EAAOZ,EAAQ,EACfa,EAAcP,EAAmB,EACjCQ,EAAkB,IAAM,CAC5BJ,GAAK,UAAUG,EAAaT,CAAkB,CAChD,EAEMW,EAAiBC,GAAyB,CAC1CA,EAAM,OAAS,SACjBF,EAAgB,CAEpB,EAEA,OACEhB,EAAA,cAACI,EAAqB,QAArB,CACC,IAAKO,EACL,WAAYX,EAAA,cAACK,EAAA,IAAc,EAC3B,YAAaS,EAAK,cAAcL,EAAiB,mBAAmB,EACpE,OAAO,0BACP,UAAWQ,EACX,QAASD,EACT,SAAUH,EACZ,CAEJ,EAEAH,EAAmB,YAAiB",
|
|
6
|
+
"names": ["React", "useRef", "useIntl", "useMap", "ChartToolbarRenderer", "ZoomToFitIcon", "FIT_BOUNDS_OPTIONS", "useA11yToolbarTabIndex", "useDataBoundingBox", "TOOLBAR_MESSAGES", "MapZoomToFitButton", "resetButtonRef", "map", "tabIndex", "intl", "boundingBox", "handleZoomToFit", "handleKeyDown", "event"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import{defineMessage as o}from"react-intl";const n=[{"zoom-in":0},{"zoom-out":-1},{reset:-1},{"zoom-to-fit":-1},{"download-data":-1}],r={zoomActionZoomIn:o({id:"11eDVd4MkXWk8Bok",defaultMessage:"Zoom in",description:'Text in a tooltip shown when hovering the "Zoom in" action in the geo map chart toolbar'}),zoomActionZoomOut:o({id:"5DTYqeFoXLMaXUHR",defaultMessage:"Zoom out",description:'Text in a tooltip shown when hovering the "Zoom out" action in the geo map chart toolbar'}),zoomActionReset:o({id:"hVE7x0G0Q7/ih93A",defaultMessage:"Reset",description:'Text in a tooltip shown when hovering the "Reset" action in the geo map chart toolbar'}),zoomActionZoomToFit:o({id:"EhcEZc1+Xc9wYsXg",defaultMessage:"Zoom to fit",description:'Text in a tooltip shown when hovering the "Zoom to fit" action in the geo map chart toolbar'}),downloadData:o({id:"hlwWx47trlDMOy+V",defaultMessage:"Download Data as CSV",description:'Text in a tooltip shown when hovering the "Download Data" action in the geo map chart toolbar'})};export{r as TOOLBAR_MESSAGES,n as initialA11yToolbarTabIndexContext};
|
|
16
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../src/map/components/toolbar/constants.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { defineMessage, MessageDescriptor } from 'react-intl';\n\nimport { A11yToolbarTabIndex } from '../../types/toolbar.js';\n\nexport const initialA11yToolbarTabIndexContext: A11yToolbarTabIndex[] = [\n { 'zoom-in': 0 },\n { 'zoom-out': -1 },\n { reset: -1 },\n { 'zoom-to-fit': -1 },\n { 'download-data': -1 },\n];\n\nexport const TOOLBAR_MESSAGES: Record<string, MessageDescriptor> = {\n zoomActionZoomIn: defineMessage({\n id: '11eDVd4MkXWk8Bok',\n defaultMessage: 'Zoom in',\n description:\n 'Text in a tooltip shown when hovering the \"Zoom in\" action in the geo map chart toolbar',\n }),\n zoomActionZoomOut: defineMessage({\n id: '5DTYqeFoXLMaXUHR',\n defaultMessage: 'Zoom out',\n description:\n 'Text in a tooltip shown when hovering the \"Zoom out\" action in the geo map chart toolbar',\n }),\n zoomActionReset: defineMessage({\n id: 'hVE7x0G0Q7/ih93A',\n defaultMessage: 'Reset',\n description:\n 'Text in a tooltip shown when hovering the \"Reset\" action in the geo map chart toolbar',\n }),\n zoomActionZoomToFit: defineMessage({\n id: 'EhcEZc1+Xc9wYsXg',\n defaultMessage: 'Zoom to fit',\n description:\n 'Text in a tooltip shown when hovering the \"Zoom to fit\" action in the geo map chart toolbar',\n }),\n downloadData: defineMessage({\n id: 'hlwWx47trlDMOy+V',\n defaultMessage: 'Download Data as CSV',\n description:\n 'Text in a tooltip shown when hovering the \"Download Data\" action in the geo map chart toolbar',\n }),\n};\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,iBAAAA,MAAwC,aAI1C,MAAMC,EAA2D,CACtE,CAAE,UAAW,CAAE,EACf,CAAE,WAAY,EAAG,EACjB,CAAE,MAAO,EAAG,EACZ,CAAE,cAAe,EAAG,EACpB,CAAE,gBAAiB,EAAG,CACxB,EAEaC,EAAsD,CACjE,iBAAkBF,EAAc,CAC9B,GAAI,mBACJ,eAAgB,UAChB,YACE,yFACJ,CAAC,EACD,kBAAmBA,EAAc,CAC/B,GAAI,mBACJ,eAAgB,WAChB,YACE,0FACJ,CAAC,EACD,gBAAiBA,EAAc,CAC7B,GAAI,mBACJ,eAAgB,QAChB,YACE,uFACJ,CAAC,EACD,oBAAqBA,EAAc,CACjC,GAAI,mBACJ,eAAgB,cAChB,YACE,6FACJ,CAAC,EACD,aAAcA,EAAc,CAC1B,GAAI,mBACJ,eAAgB,uBAChB,YACE,+FACJ,CAAC,CACH",
|
|
6
|
+
"names": ["defineMessage", "initialA11yToolbarTabIndexContext", "TOOLBAR_MESSAGES"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import{defineMessage as o}from"react-intl";import t from"@dynatrace/strato-design-tokens/colors";const T=t.Theme.Neutral[50],L=t.Background.Surface.Default,I="#00000000",e=90,r=-90,_=180,E=-180,p=[_,e,E,r],C="default",D={padding:20},i=300,a=12,x=20,N=t.Border.Neutral.AccentActive,U=["geojson-line","geojson-fill"],R=1,S=32,l=t.Charts.CategoricalThemed.PurpleRain.Color01,u={minWidth:.1,minHeight:.1,maxWidth:.8,maxHeight:.8},F={maximumFractionDigits:1},B=t.Background.Field.Neutral.Disabled,d=.2,g=.7,m=16,P=t.Background.Container.Neutral.Subdued,f=.6,M=t.Charts.Categorical.Color15.Default,h=t.Icon.Neutral.Default,H=t.Charts.Categorical.Color07.Default,b=12,G=.4,K=1,Y=1,W=["get","__radius"],Z="miter",v="butt",y=2,X=t.Charts.Categorical.Color03.Default,j=[5,2.5],k=1,q=64,w=128,V=1/24,J=t.Charts.Sequential.Blue.Color05.Default,z={copyActionCoords:o({id:"g2qESM+ibB5sUyjf",defaultMessage:"Copy coordinates",description:"Text in a tooltip shown when hovering a tooltip item and hovering the copy button next to its coordinates"})};export{N as ACTIVE_COLOR,U as BASE_LAYER_IDS,G as BUBBLE_DEFAULT_OPACITY,Y as BUBBLE_OUTLINE_STROKE,K as BUBBLE_STROKE,z as COPY_TO_CLIPBOARD_MESSAGES,l as DEFAULT_BASIC_SHAPE_COLOR_TOKEN,H as DEFAULT_BUBBLE_COLOR,J as DEFAULT_CHOROPLETH_COLOR,L as DEFAULT_COUNTRIES_BORDER_COLOR,T as DEFAULT_COUNTRIES_FILL_COLOR,C as DEFAULT_COUNTRY_CODE,F as DEFAULT_FORMATTER,P as DEFAULT_ICON_BACKGROUND_COLOR,h as DEFAULT_ICON_COLOR,f as DEFAULT_ICON_SIZE_RATIO,x as DEFAULT_INPUT_ICON_SIZE,u as DEFAULT_LEGEND_SIZES,v as DEFAULT_LINE_CAP,X as DEFAULT_LINE_COLOR,j as DEFAULT_LINE_DASH_ARRAY,Z as DEFAULT_LINE_JOIN,y as DEFAULT_LINE_THICKNESS,i as DEFAULT_MAP_HEIGHT,a as DEFAULT_MAP_LEGEND_RATIO,b as DEFAULT_RADIUS,W as DEFAULT_RADIUS_EXPRESSION,B as DEFAULT_RANGE_COLOR,M as DEFAULT_SHAPE_COLOR,S as DEFAULT_SYMBOL_SIZE,w as DIRECTION_ICON_OUTPUT_SIZE,V as DIRECTION_ICON_SHRINK_RATIO,D as FIT_BOUNDS_OPTIONS,g as ICON_BACKGROUND_OPACITY,m as ICON_BACKGROUND_RADIUS,d as LEGEND_DIM_OPACITY,e as MAX_LATITUDE,q as MAX_LINE_THICKNESS,_ as MAX_LONGITUDE,r as MIN_LATITUDE,k as MIN_LINE_THICKNESS,E as MIN_LONGITUDE,R as SHAPE_OPACITY,I as TRANSPARENT_BORDER_COLOR,p as WHOLE_WORLD_VIEW_BOUNDARIES};
|
|
16
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/map/constants.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { ExpressionSpecification } from '@maplibre/maplibre-gl-style-spec';\nimport { defineMessage, MessageDescriptor } from 'react-intl';\n\nimport Colors from '@dynatrace/strato-design-tokens/colors';\n\n//region GENERAL\nexport const DEFAULT_COUNTRIES_FILL_COLOR = Colors.Theme.Neutral['50'];\nexport const DEFAULT_COUNTRIES_BORDER_COLOR = Colors.Background.Surface.Default;\nexport const TRANSPARENT_BORDER_COLOR = '#00000000';\nexport const MAX_LATITUDE = 90;\nexport const MIN_LATITUDE = -90;\nexport const MAX_LONGITUDE = 180;\nexport const MIN_LONGITUDE = -180;\nexport const WHOLE_WORLD_VIEW_BOUNDARIES: [number, number, number, number] = [\n MAX_LONGITUDE,\n MAX_LATITUDE,\n MIN_LONGITUDE,\n MIN_LATITUDE,\n];\nexport const DEFAULT_COUNTRY_CODE = 'default';\nexport const FIT_BOUNDS_OPTIONS = { padding: 20 };\nexport const DEFAULT_MAP_HEIGHT = 300;\nexport const DEFAULT_MAP_LEGEND_RATIO = 12;\nexport const DEFAULT_INPUT_ICON_SIZE = 20;\nexport const ACTIVE_COLOR = Colors.Border.Neutral.AccentActive;\nexport const BASE_LAYER_IDS = ['geojson-line', 'geojson-fill'];\nexport const SHAPE_OPACITY = 1;\nexport const DEFAULT_SYMBOL_SIZE = 32;\n//endregion\n\n//region LEGEND\nexport const DEFAULT_BASIC_SHAPE_COLOR_TOKEN =\n Colors.Charts.CategoricalThemed.PurpleRain.Color01;\nexport const DEFAULT_LEGEND_SIZES = {\n // Minimum size in which the legend can be resized (vertical layout)\n minWidth: 0.1,\n // Minimum size in which the legend can be resized (horizontal layout)\n minHeight: 0.1,\n // Maximum size in which the legend can be resized (vertical layout). 80% represent 4 / 5ths of the container.\n maxWidth: 0.8,\n // Maximum size in which the legend can be resized (horizontal layout). 80% represent 4 / 5ths of the container.\n maxHeight: 0.8,\n};\nexport const DEFAULT_FORMATTER = {\n maximumFractionDigits: 1,\n};\nexport const DEFAULT_RANGE_COLOR = Colors.Background.Field.Neutral.Disabled;\nexport const LEGEND_DIM_OPACITY = 0.2;\n//endregion\n\n//region DOT LAYER\nexport const ICON_BACKGROUND_OPACITY = 0.7;\nexport const ICON_BACKGROUND_RADIUS = 16;\nexport const DEFAULT_ICON_BACKGROUND_COLOR =\n Colors.Background.Container.Neutral.Subdued;\nexport const DEFAULT_ICON_SIZE_RATIO = 0.6;\nexport const DEFAULT_SHAPE_COLOR = Colors.Charts.Categorical.Color15.Default;\nexport const DEFAULT_ICON_COLOR = Colors.Icon.Neutral.Default;\n//endregion\n\n//region BUBBLE LAYER\nexport const DEFAULT_BUBBLE_COLOR = Colors.Charts.Categorical.Color07.Default;\nexport const DEFAULT_RADIUS = 12;\nexport const BUBBLE_DEFAULT_OPACITY = 0.4;\nexport const BUBBLE_STROKE = 1;\nexport const BUBBLE_OUTLINE_STROKE = 1;\nexport const DEFAULT_RADIUS_EXPRESSION: ExpressionSpecification = [\n 'get',\n '__radius',\n];\n//endregion\n\n//region CONNECTION LAYER\nexport const DEFAULT_LINE_JOIN: 'bevel' | 'round' | 'miter' = 'miter';\nexport const DEFAULT_LINE_CAP: 'butt' | 'round' | 'square' = 'butt';\nexport const DEFAULT_LINE_THICKNESS = 2;\nexport const DEFAULT_LINE_COLOR = Colors.Charts.Categorical.Color03.Default;\nexport const DEFAULT_LINE_DASH_ARRAY = [5, 2.5];\nexport const MIN_LINE_THICKNESS = 1;\nexport const MAX_LINE_THICKNESS = 64;\nexport const DIRECTION_ICON_OUTPUT_SIZE = 128;\nexport const DIRECTION_ICON_SHRINK_RATIO = 1 / 24;\n//endregion\n\n//region CHOROPLETH LAYER\nexport const DEFAULT_CHOROPLETH_COLOR =\n Colors.Charts.Sequential.Blue.Color05.Default;\n\nexport const COPY_TO_CLIPBOARD_MESSAGES: Record<string, MessageDescriptor> = {\n copyActionCoords: defineMessage({\n id: 'g2qESM+ibB5sUyjf',\n defaultMessage: 'Copy coordinates',\n description:\n 'Text in a tooltip shown when hovering a tooltip item and hovering the copy button next to its coordinates',\n }),\n};\n//endregion\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAS,iBAAAA,MAAwC,aAEjD,OAAOC,MAAY,yCAGZ,MAAMC,EAA+BD,EAAO,MAAM,QAAQ,EAAI,EACxDE,EAAiCF,EAAO,WAAW,QAAQ,QAC3DG,EAA2B,YAC3BC,EAAe,GACfC,EAAe,IACfC,EAAgB,IAChBC,EAAgB,KAChBC,EAAgE,CAC3EF,EACAF,EACAG,EACAF,CACF,EACaI,EAAuB,UACvBC,EAAqB,CAAE,QAAS,EAAG,EACnCC,EAAqB,IACrBC,EAA2B,GAC3BC,EAA0B,GAC1BC,EAAed,EAAO,OAAO,QAAQ,aACrCe,EAAiB,CAAC,eAAgB,cAAc,EAChDC,EAAgB,EAChBC,EAAsB,GAItBC,EACXlB,EAAO,OAAO,kBAAkB,WAAW,QAChCmB,EAAuB,CAElC,SAAU,GAEV,UAAW,GAEX,SAAU,GAEV,UAAW,EACb,EACaC,EAAoB,CAC/B,sBAAuB,CACzB,EACaC,EAAsBrB,EAAO,WAAW,MAAM,QAAQ,SACtDsB,EAAqB,GAIrBC,EAA0B,GAC1BC,EAAyB,GACzBC,EACXzB,EAAO,WAAW,UAAU,QAAQ,QACzB0B,EAA0B,GAC1BC,EAAsB3B,EAAO,OAAO,YAAY,QAAQ,QACxD4B,EAAqB5B,EAAO,KAAK,QAAQ,QAIzC6B,EAAuB7B,EAAO,OAAO,YAAY,QAAQ,QACzD8B,EAAiB,GACjBC,EAAyB,GACzBC,EAAgB,EAChBC,EAAwB,EACxBC,EAAqD,CAChE,MACA,UACF,EAIaC,EAAiD,QACjDC,EAAgD,OAChDC,EAAyB,EACzBC,EAAqBtC,EAAO,OAAO,YAAY,QAAQ,QACvDuC,EAA0B,CAAC,EAAG,GAAG,EACjCC,EAAqB,EACrBC,EAAqB,GACrBC,EAA6B,IAC7BC,EAA8B,EAAI,GAIlCC,EACX5C,EAAO,OAAO,WAAW,KAAK,QAAQ,QAE3B6C,EAAgE,CAC3E,iBAAkB9C,EAAc,CAC9B,GAAI,mBACJ,eAAgB,mBAChB,YACE,2GACJ,CAAC,CACH",
|
|
6
|
+
"names": ["defineMessage", "Colors", "DEFAULT_COUNTRIES_FILL_COLOR", "DEFAULT_COUNTRIES_BORDER_COLOR", "TRANSPARENT_BORDER_COLOR", "MAX_LATITUDE", "MIN_LATITUDE", "MAX_LONGITUDE", "MIN_LONGITUDE", "WHOLE_WORLD_VIEW_BOUNDARIES", "DEFAULT_COUNTRY_CODE", "FIT_BOUNDS_OPTIONS", "DEFAULT_MAP_HEIGHT", "DEFAULT_MAP_LEGEND_RATIO", "DEFAULT_INPUT_ICON_SIZE", "ACTIVE_COLOR", "BASE_LAYER_IDS", "SHAPE_OPACITY", "DEFAULT_SYMBOL_SIZE", "DEFAULT_BASIC_SHAPE_COLOR_TOKEN", "DEFAULT_LEGEND_SIZES", "DEFAULT_FORMATTER", "DEFAULT_RANGE_COLOR", "LEGEND_DIM_OPACITY", "ICON_BACKGROUND_OPACITY", "ICON_BACKGROUND_RADIUS", "DEFAULT_ICON_BACKGROUND_COLOR", "DEFAULT_ICON_SIZE_RATIO", "DEFAULT_SHAPE_COLOR", "DEFAULT_ICON_COLOR", "DEFAULT_BUBBLE_COLOR", "DEFAULT_RADIUS", "BUBBLE_DEFAULT_OPACITY", "BUBBLE_STROKE", "BUBBLE_OUTLINE_STROKE", "DEFAULT_RADIUS_EXPRESSION", "DEFAULT_LINE_JOIN", "DEFAULT_LINE_CAP", "DEFAULT_LINE_THICKNESS", "DEFAULT_LINE_COLOR", "DEFAULT_LINE_DASH_ARRAY", "MIN_LINE_THICKNESS", "MAX_LINE_THICKNESS", "DIRECTION_ICON_OUTPUT_SIZE", "DIRECTION_ICON_SHRINK_RATIO", "DEFAULT_CHOROPLETH_COLOR", "COPY_TO_CLIPBOARD_MESSAGES"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import o from"react";const a=o.createContext([]);a.displayName="A11yToolbarTabIndexContext";export{a as A11yToolbarTabIndexContext};
|
|
16
|
+
//# sourceMappingURL=a11y-toolbar-tab-index.context.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/map/contexts/a11y-toolbar-tab-index.context.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React from 'react';\n\nimport { A11yToolbarTabIndex } from '../types/toolbar.js';\n\nexport const A11yToolbarTabIndexContext = React.createContext<\n A11yToolbarTabIndex[]\n>([]);\n\nA11yToolbarTabIndexContext['displayName'] = 'A11yToolbarTabIndexContext';\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAgBA,OAAOA,MAAW,QAIX,MAAMC,EAA6BD,EAAM,cAE9C,CAAC,CAAC,EAEJC,EAA2B,YAAiB",
|
|
6
|
+
"names": ["React", "A11yToolbarTabIndexContext"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import e from"react";const a=e.createContext(void 0);export{a as ColorScaleContext};
|
|
16
|
+
//# sourceMappingURL=color-scale.context.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/map/contexts/color-scale.context.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ScaleQuantize, ScaleThreshold, ScaleOrdinal } from 'd3-scale';\nimport React from 'react';\n\nexport type ColorScaleContextProps =\n | ScaleQuantize<string>\n | ScaleThreshold<number, string>\n | ScaleOrdinal<string, string>;\n\nexport const ColorScaleContext = React.createContext<\n ColorScaleContextProps | undefined\n>(undefined);\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAiBA,OAAOA,MAAW,QAOX,MAAMC,EAAoBD,EAAM,cAErC,MAAS",
|
|
6
|
+
"names": ["React", "ColorScaleContext"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import{createContext as e}from"react";const t=e(void 0);export{t as LayerColoringStrategyContext};
|
|
16
|
+
//# sourceMappingURL=layer-coloring-strategy.context.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/map/contexts/layer-coloring-strategy.context.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * @license\n * Copyright 2023 Dynatrace LLC\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { createContext } from 'react';\n\nexport const LayerColoringStrategyContext = createContext<\n ((value: number | string) => string | undefined) | undefined\n>(undefined);\n"],
|
|
5
|
+
"mappings": "AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAeA,OAAS,iBAAAA,MAAqB,QAEvB,MAAMC,EAA+BD,EAE1C,MAAS",
|
|
6
|
+
"names": ["createContext", "LayerColoringStrategyContext"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
*/import t from"react";const o=t.createContext([]);export{o as LayerIdsContext};
|
|
16
|
+
//# sourceMappingURL=layer-ids.context.js.map
|