intergalactic 15.80.0-prerelease.0 → 15.81.0-prerelease.1
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/CHANGELOG.md +110 -0
- package/accordion/lib/cjs/Accordion.js +7 -7
- package/accordion/lib/es6/Accordion.js +7 -7
- package/animation/lib/cjs/Animation.js +11 -11
- package/animation/lib/cjs/Collapse.js +28 -28
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/es6/Animation.js +11 -11
- package/animation/lib/es6/Collapse.js +28 -28
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/badge/lib/cjs/Badge.js +6 -6
- package/badge/lib/es6/Badge.js +6 -6
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/breadcrumbs/lib/cjs/Breadcrumbs.js +6 -6
- package/breadcrumbs/lib/es6/Breadcrumbs.js +6 -6
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/es6/Button.js +26 -26
- package/card/lib/cjs/Card.js +8 -8
- package/card/lib/es6/Card.js +8 -8
- package/carousel/lib/cjs/Carousel.js +19 -19
- package/carousel/lib/es6/Carousel.js +19 -19
- package/checkbox/lib/cjs/Checkbox.js +18 -18
- package/checkbox/lib/es6/Checkbox.js +18 -18
- package/color-picker/lib/cjs/ColorPicker.js +23 -23
- package/color-picker/lib/cjs/PaletteManager.js +23 -23
- package/color-picker/lib/cjs/components/InputColor.js +23 -23
- package/color-picker/lib/es6/ColorPicker.js +23 -23
- package/color-picker/lib/es6/PaletteManager.js +23 -23
- package/color-picker/lib/es6/components/InputColor.js +23 -23
- package/components.json +73 -73
- package/counter/lib/cjs/Counter.js +10 -10
- package/counter/lib/es6/Counter.js +10 -10
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +4 -0
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +10 -10
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +8 -8
- package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +9 -9
- package/d3-chart/lib/cjs/Plot.js +7 -5
- package/d3-chart/lib/cjs/Plot.js.map +1 -1
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +11 -11
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +4 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/style/reference-line.shadow.css +1 -1
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +10 -10
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +8 -8
- package/d3-chart/lib/es6/HorizontalBar.js +10 -10
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +9 -9
- package/d3-chart/lib/es6/Plot.js +7 -5
- package/d3-chart/lib/es6/Plot.js.map +1 -1
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +11 -11
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js +4 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/style/reference-line.shadow.css +1 -1
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +4 -0
- package/data-table/lib/cjs/DataTable.js +35 -35
- package/data-table/lib/cjs/Head.js +1 -1
- package/data-table/lib/cjs/Head.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +35 -35
- package/data-table/lib/es6/Head.js +1 -1
- package/data-table/lib/es6/Head.js.map +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +21 -21
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/Calendar.js +21 -21
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
- package/date-picker/lib/es6/components/InputTrigger.js +29 -29
- package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
- package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
- package/divider/lib/cjs/Divider.js +9 -9
- package/divider/lib/es6/Divider.js +9 -9
- package/dot/lib/cjs/Dot.js +10 -10
- package/dot/lib/es6/Dot.js +10 -10
- package/drag-and-drop/lib/cjs/DragAndDrop.js +192 -41
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/style/drag-and-drop.shadow.css +73 -28
- package/drag-and-drop/lib/es6/DragAndDrop.js +192 -41
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/style/drag-and-drop.shadow.css +73 -28
- package/dropdown/lib/cjs/Dropdown.js +2 -2
- package/dropdown/lib/es6/Dropdown.js +2 -2
- package/dropdown-menu/lib/cjs/DropdownMenu.js +19 -19
- package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/cjs/styleScrollArea.js +6 -6
- package/dropdown-menu/lib/es6/DropdownMenu.js +19 -19
- package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/es6/styleScrollArea.js +6 -6
- package/ellipsis/lib/cjs/Ellipsis.js +11 -11
- package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
- package/ellipsis/lib/es6/Ellipsis.js +11 -11
- package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
- package/errors/lib/cjs/Error.js +9 -9
- package/errors/lib/es6/Error.js +9 -9
- package/feature-popover/lib/cjs/FeaturePopover.js +10 -10
- package/feature-popover/lib/es6/FeaturePopover.js +10 -10
- package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
- package/feedback-form/lib/es6/FeedbackForm.js +7 -7
- package/flags/lib/cjs/Flags.js +3 -3
- package/flags/lib/es6/Flags.js +3 -3
- package/flags/lib/sprites/sprite@1x.css +256 -256
- package/flags/lib/sprites/sprite@2x.css +257 -257
- package/flex-box/lib/cjs/Box/useBox.js +3 -3
- package/flex-box/lib/cjs/Flex/useFlex.js +3 -3
- package/flex-box/lib/cjs/invalid-state-box/InvalidStateBox.js +2 -2
- package/flex-box/lib/es6/Box/useBox.js +3 -3
- package/flex-box/lib/es6/Flex/useFlex.js +3 -3
- package/flex-box/lib/es6/invalid-state-box/InvalidStateBox.js +2 -2
- package/format-text/lib/cjs/FormatText.js +5 -5
- package/format-text/lib/es6/FormatText.js +5 -5
- package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
- package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
- package/grid/lib/cjs/Grid.js +114 -114
- package/grid/lib/es6/Grid.js +114 -114
- package/icon/color/Confluence/l/index.js +4 -4
- package/icon/color/Confluence/l/index.mjs +4 -4
- package/icon/color/Confluence/m/index.js +4 -4
- package/icon/color/Confluence/m/index.mjs +4 -4
- package/icon/color/MicrosoftOffice/l/index.js +10 -10
- package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
- package/icon/color/MicrosoftOffice/m/index.js +10 -10
- package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
- package/icon/lib/cjs/Icon.js +5 -5
- package/icon/lib/es6/Icon.js +5 -5
- package/icon/pay/Discover/l/index.js +1 -1
- package/icon/pay/Discover/l/index.mjs +1 -1
- package/icon/pay/Discover/m/index.js +1 -1
- package/icon/pay/Discover/m/index.mjs +1 -1
- package/icon/pay/JCB/l/index.js +10 -10
- package/icon/pay/JCB/l/index.mjs +10 -10
- package/icon/pay/JCB/m/index.js +10 -10
- package/icon/pay/JCB/m/index.mjs +10 -10
- package/icon/pay/Visa/l/index.js +2 -2
- package/icon/pay/Visa/l/index.mjs +2 -2
- package/icon/pay/Visa/m/index.js +2 -2
- package/icon/pay/Visa/m/index.mjs +2 -2
- package/illustration/lib/cjs/index.js +1 -1
- package/illustration/lib/es6/index.js +1 -1
- package/inline-edit/lib/cjs/InlineEdit.js +4 -4
- package/inline-edit/lib/es6/InlineEdit.js +4 -4
- package/inline-input/lib/cjs/InlineInput.js +18 -18
- package/inline-input/lib/es6/InlineInput.js +18 -18
- package/input/lib/cjs/Input.js +17 -17
- package/input/lib/es6/Input.js +17 -17
- package/input-mask/lib/cjs/InputMask.js +6 -6
- package/input-mask/lib/es6/InputMask.js +6 -6
- package/input-number/lib/cjs/InputNumber.js +9 -9
- package/input-number/lib/es6/InputNumber.js +9 -9
- package/input-tags/lib/cjs/InputTags.js +12 -12
- package/input-tags/lib/es6/InputTags.js +12 -12
- package/link/lib/cjs/Link.js +16 -14
- package/link/lib/cjs/Link.js.map +1 -1
- package/link/lib/cjs/style/link.shadow.css +1 -1
- package/link/lib/es6/Link.js +16 -14
- package/link/lib/es6/Link.js.map +1 -1
- package/link/lib/es6/style/link.shadow.css +1 -1
- package/mini-chart/lib/cjs/component/score/Donut.js +9 -9
- package/mini-chart/lib/cjs/component/score/Line.js +17 -17
- package/mini-chart/lib/cjs/component/trend/Bar.js +7 -7
- package/mini-chart/lib/cjs/component/trend/Line.js +7 -7
- package/mini-chart/lib/es6/component/score/Donut.js +9 -9
- package/mini-chart/lib/es6/component/score/Line.js +17 -17
- package/mini-chart/lib/es6/component/trend/Bar.js +7 -7
- package/mini-chart/lib/es6/component/trend/Line.js +7 -7
- package/modal/lib/cjs/Modal.js +9 -9
- package/modal/lib/es6/Modal.js +9 -9
- package/notice/lib/cjs/Notice.js +13 -13
- package/notice/lib/es6/Notice.js +13 -13
- package/notice-bubble/lib/cjs/NoticeBubble.js +12 -12
- package/notice-bubble/lib/es6/NoticeBubble.js +12 -12
- package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
- package/notice-global/lib/es6/NoticeGlobal.js +11 -11
- package/package.json +1 -1
- package/pagination/lib/cjs/Pagination.js +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- package/pills/lib/cjs/Pills.js +13 -13
- package/pills/lib/es6/Pills.js +13 -13
- package/popper/index.d.ts +4 -0
- package/popper/lib/cjs/Popper.js +28 -8
- package/popper/lib/cjs/Popper.js.map +1 -1
- package/popper/lib/cjs/createPopper.js +2 -1
- package/popper/lib/cjs/createPopper.js.map +1 -1
- package/popper/lib/cjs/index.d.js.map +1 -1
- package/popper/lib/cjs/modifiers/cursorAnchoring.js +60 -0
- package/popper/lib/cjs/modifiers/cursorAnchoring.js.map +1 -0
- package/popper/lib/es6/Popper.js +28 -8
- package/popper/lib/es6/Popper.js.map +1 -1
- package/popper/lib/es6/createPopper.js +2 -1
- package/popper/lib/es6/createPopper.js.map +1 -1
- package/popper/lib/es6/index.d.js.map +1 -1
- package/popper/lib/es6/modifiers/cursorAnchoring.js +52 -0
- package/popper/lib/es6/modifiers/cursorAnchoring.js.map +1 -0
- package/popper/lib/types/index.d.ts +4 -0
- package/product-head/lib/cjs/Info.js +4 -4
- package/product-head/lib/cjs/ProductHead.js +5 -5
- package/product-head/lib/cjs/Title.js +4 -4
- package/product-head/lib/es6/Info.js +4 -4
- package/product-head/lib/es6/ProductHead.js +5 -5
- package/product-head/lib/es6/Title.js +4 -4
- package/progress-bar/lib/cjs/ProgressBar.js +15 -15
- package/progress-bar/lib/es6/ProgressBar.js +15 -15
- package/radio/lib/cjs/Radio.js +16 -16
- package/radio/lib/es6/Radio.js +16 -16
- package/scroll-area/lib/cjs/ScrollArea.js +21 -21
- package/scroll-area/lib/cjs/ScrollBar.js +6 -6
- package/scroll-area/lib/es6/ScrollArea.js +21 -21
- package/scroll-area/lib/es6/ScrollBar.js +6 -6
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +8 -8
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +8 -8
- package/side-panel/lib/cjs/SidePanel.js +15 -15
- package/side-panel/lib/es6/SidePanel.js +15 -15
- package/skeleton/lib/cjs/Charts/Area.js +9 -9
- package/skeleton/lib/cjs/Charts/Bar.js +9 -9
- package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
- package/skeleton/lib/cjs/Charts/Donut.js +9 -9
- package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
- package/skeleton/lib/cjs/Charts/Line.js +9 -9
- package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
- package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/cjs/Charts/Venn.js +9 -9
- package/skeleton/lib/cjs/Skeleton.js +8 -8
- package/skeleton/lib/es6/Charts/Area.js +9 -9
- package/skeleton/lib/es6/Charts/Bar.js +9 -9
- package/skeleton/lib/es6/Charts/Bubble.js +9 -9
- package/skeleton/lib/es6/Charts/Donut.js +9 -9
- package/skeleton/lib/es6/Charts/Histogram.js +9 -9
- package/skeleton/lib/es6/Charts/Line.js +9 -9
- package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
- package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
- package/skeleton/lib/es6/Charts/Venn.js +9 -9
- package/skeleton/lib/es6/Skeleton.js +8 -8
- package/slider/lib/cjs/Slider.js +8 -7
- package/slider/lib/cjs/Slider.js.map +1 -1
- package/slider/lib/cjs/style/slider.shadow.css +9 -0
- package/slider/lib/es6/Slider.js +8 -7
- package/slider/lib/es6/Slider.js.map +1 -1
- package/slider/lib/es6/style/slider.shadow.css +9 -0
- package/spin/lib/cjs/Spin.js +13 -13
- package/spin/lib/es6/Spin.js +13 -13
- package/spin-container/lib/cjs/SpinContainer.js +8 -8
- package/spin-container/lib/es6/SpinContainer.js +8 -8
- package/sticky/lib/cjs/Sticky.js +2 -2
- package/sticky/lib/es6/Sticky.js +2 -2
- package/switch/lib/cjs/Switch.js +21 -21
- package/switch/lib/es6/Switch.js +21 -21
- package/tab-line/lib/cjs/TabLine.js +13 -13
- package/tab-line/lib/es6/TabLine.js +13 -13
- package/tab-panel/lib/cjs/TabPanel.js +8 -8
- package/tab-panel/lib/es6/TabPanel.js +8 -8
- package/tag/lib/cjs/Tag.js +20 -20
- package/tag/lib/es6/Tag.js +20 -20
- package/textarea/lib/cjs/Textarea.js +10 -8
- package/textarea/lib/cjs/Textarea.js.map +1 -1
- package/textarea/lib/es6/Textarea.js +10 -8
- package/textarea/lib/es6/Textarea.js.map +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/tooltip/index.d.ts +13 -2
- package/tooltip/lib/cjs/Tooltip.js +9 -9
- package/tooltip/lib/cjs/index.d.js.map +1 -1
- package/tooltip/lib/es6/Tooltip.js +9 -9
- package/tooltip/lib/es6/index.d.js.map +1 -1
- package/tooltip/lib/types/index.d.ts +13 -2
- package/typography/index.d.ts +4 -1
- package/typography/lib/cjs/Blockquote.js +4 -4
- package/typography/lib/cjs/Hint.js +7 -7
- package/typography/lib/cjs/List.js +5 -5
- package/typography/lib/cjs/Text.js +34 -34
- package/typography/lib/cjs/index.d.js.map +1 -1
- package/typography/lib/es6/Blockquote.js +4 -4
- package/typography/lib/es6/Hint.js +7 -7
- package/typography/lib/es6/List.js +5 -5
- package/typography/lib/es6/Text.js +34 -34
- package/typography/lib/es6/index.d.js.map +1 -1
- package/typography/lib/types/index.d.ts +4 -1
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.js +2 -2
- package/utils/lib/components/invalid-state-pattern/InvalidStatePattern.mjs +2 -2
- package/utils/lib/injectStyle.js +1 -1
- package/utils/lib/injectStyle.mjs +1 -1
- package/utils/lib/themes/auto.css +3 -1
- package/utils/lib/themes/default.css +3 -1
- package/utils/lib/themes/default.json +1 -0
- package/utils/lib/themes/light.css +3 -1
- package/utils/lib/themes/light.json +1 -0
- package/widget-empty/lib/cjs/WidgetEmpty.js +8 -6
- package/widget-empty/lib/cjs/WidgetEmpty.js.map +1 -1
- package/widget-empty/lib/es6/WidgetEmpty.js +8 -6
- package/widget-empty/lib/es6/WidgetEmpty.js.map +1 -1
- package/wizard/lib/cjs/Wizard.js +11 -11
- package/wizard/lib/es6/Wizard.js +11 -11
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"AbstractChart.type.js","names":[],"sources":["../../../../src/component/Chart/AbstractChart.type.ts"],"sourcesContent":["import React from 'react';\nimport { FlexProps } from '@semcore/flex-box';\nimport { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';\nimport Icon from '@semcore/icon';\nimport { BaseChartLegendProps } from '../ChartLegend/BaseLegend.type';\nimport { TrendProps } from '../ChartLegend/LegendFlex/LegendFlex.type';\nimport { PatternsConfig } from '../../Pattern';\n// @ts-ignore\nimport { PlotSummarizerConfig } from '../../Plot';\n\nexport type BaseLegendProps = BaseChartLegendProps & {\n /**\n * Disable hover (for transition items legend of each not hovered)\n */\n disableHoverItems?: boolean;\n /**\n * Disable selectable of data items by checkboxes in Legend\n */\n disableSelectItems?: boolean;\n} & (\n | (TrendProps & {\n /**\n * How to render Legend - Flex view. Just list of legend items\n */\n legendType?: never | 'Flex';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Flex'>;\n })\n | {\n /**\n * How to render Legend - Table view. Table of legend items with some additional information in columns\n */\n legendType: 'Table';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Table'>;\n }\n );\n\nexport type ObjectData = Record<string, unknown>;\nexport type ListData = ObjectData[];\n\nexport type BaseChartProps<T extends ListData | ObjectData> = FlexProps & {\n /**\n * Chart data. For all charts except Donut(Pie), Radar and Venn should be an Array\n */\n data: T;\n /**\n * Width of plot\n */\n plotWidth: number;\n /**\n * Height of plot\n */\n plotHeight: number;\n\n /** Enables charts patterns that enhances charts accessibility */\n patterns?: PatternsConfig;\n /**\n * Margin (for Y axis points) from left side of chart container to Y axis\n */\n marginY?: number;\n /**\n * Margin (for X axis points) from bottom of chart container to X axis\n */\n marginX?: number;\n /**\n * invert axis and show horizontal charts (only for Bars!)\n */\n invertAxis?: boolean;\n\n /**\n * Show X axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showXAxis?: boolean;\n /**\n * Show Y axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showYAxis?: boolean;\n /**\n * Map with colors for data items\n */\n colorMap?: Record<string, string>;\n /**\n * Show tooltip's.\n * @default true\n */\n showTooltip?: boolean;\n /**\n * Show sum of values for selected point in tooltip\n */\n showTotalInTooltip?: boolean;\n /**\n * Scale for xAxis (see more in d3-scale)\n */\n xScale?: unknown;\n /**\n * Scale for yAxis (see more in d3-scale)\n */\n yScale?: unknown;\n /**\n * Count of ticks for X axis\n */\n xTicksCount?: number;\n /**\n * Count of ticks for Y axis\n */\n yTicksCount?: number;\n /**\n * Group key for all array-based charts (for get keys of items for legend except that group key)\n */\n groupKey?: string;\n /**\n * function for format axis item text\n */\n axisXValueFormatter?: (value: unknown) => string;\n axisYValueFormatter?: (value: unknown) => string;\n /**\n * Function for format text for tooltip\n */\n tooltipValueFormatter?: (value?: unknown) => string;\n /**\n * Config for a11y summary\n */\n a11yAltTextConfig?: PlotSummarizerConfig;\n} /**\n * By default, we show the Legend for all charts with more the one data item.\n * For hide the Legend, you should set showLegend prop to `false`.\n */ & (\n | {\n /**\n * Don't show legend\n */\n showLegend?: false;\n legendProps?: never;\n }\n | {\n /**\n * By default (if showLegend don't set), for one data item on chart,\n * Legend component will be hide, and show for more then 1 data item.\n * If set `true` - Legend component will show always.\n */\n showLegend?: true;\n /**\n * Props for Legend\n */\n legendProps?: Partial<BaseLegendProps>;\n }\n );\n\ntype LegendDataMap<T extends 'Flex' | 'Table'> = Record<\n LegendItemKey,\n {\n /**\n * Custom label for legend item (by default use keys from data item object)\n */\n label?: string;\n /**\n * Additional text after label\n */\n additionalInfo?: string;\n /**\n * Count after label\n */\n count?: number;\n /**\n * Custom Icon\n */\n icon?: typeof Icon;\n /**\n * Flag for uncheck some items by default\n */\n defaultChecked?: boolean;\n } & (T extends 'Table' ? { columns?: React.ReactNode[] } : { columns?: never })\n>;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"AbstractChart.type.js","names":[],"sources":["../../../../src/component/Chart/AbstractChart.type.ts"],"sourcesContent":["import React from 'react';\nimport { FlexProps } from '@semcore/flex-box';\nimport { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';\nimport Icon from '@semcore/icon';\nimport { BaseChartLegendProps } from '../ChartLegend/BaseLegend.type';\nimport { TrendProps } from '../ChartLegend/LegendFlex/LegendFlex.type';\nimport { PatternsConfig } from '../../Pattern';\n// @ts-ignore\nimport { PlotSummarizerConfig } from '../../Plot';\n\nexport type BaseLegendProps = BaseChartLegendProps & {\n /**\n * Disable hover (for transition items legend of each not hovered)\n */\n disableHoverItems?: boolean;\n /**\n * Disable selectable of data items by checkboxes in Legend\n */\n disableSelectItems?: boolean;\n} & (\n | (TrendProps & {\n /**\n * How to render Legend - Flex view. Just list of legend items\n */\n legendType?: never | 'Flex';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Flex'>;\n })\n | {\n /**\n * How to render Legend - Table view. Table of legend items with some additional information in columns\n */\n legendType: 'Table';\n /**\n * Config for Legend items\n */\n legendMap?: LegendDataMap<'Table'>;\n }\n );\n\nexport type ObjectData = Record<string, unknown>;\nexport type ListData = ObjectData[];\n\nexport type BaseChartProps<T extends ListData | ObjectData> = FlexProps & {\n /**\n * Chart data. For all charts except Donut(Pie), Radar and Venn should be an Array\n */\n data: T;\n /**\n * Width of plot\n */\n plotWidth: number;\n /**\n * Height of plot\n */\n plotHeight: number;\n\n /** Enables charts patterns that enhances charts accessibility */\n patterns?: PatternsConfig;\n /**\n * Margin (for Y axis points) from left side of chart container to Y axis\n */\n marginY?: number;\n /**\n * Margin (for X axis points) from bottom of chart container to X axis\n */\n marginX?: number;\n /**\n * invert axis and show horizontal charts (only for Bars!)\n */\n invertAxis?: boolean;\n\n /**\n * Show X axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showXAxis?: boolean;\n /**\n * Show Y axis\n * @default true (for charts with axis: Area, Line, Bar, ScatterPlot, ...)\n */\n showYAxis?: boolean;\n /**\n * Map with colors for data items\n */\n colorMap?: Record<string, string>;\n /**\n * Show tooltip's.\n * @default true\n */\n showTooltip?: boolean;\n /**\n * Show sum of values for selected point in tooltip\n */\n showTotalInTooltip?: boolean;\n /**\n * Scale for xAxis (see more in d3-scale)\n */\n xScale?: unknown;\n /**\n * Scale for yAxis (see more in d3-scale)\n */\n yScale?: unknown;\n /**\n * Count of ticks for X axis\n */\n xTicksCount?: number;\n /**\n * Count of ticks for Y axis\n */\n yTicksCount?: number;\n /**\n * Group key for all array-based charts (for get keys of items for legend except that group key)\n */\n groupKey?: string;\n /**\n * function for format axis item text\n */\n axisXValueFormatter?: (value: unknown) => string;\n axisYValueFormatter?: (value: unknown) => string;\n /**\n * Function for format text for tooltip\n */\n tooltipValueFormatter?: (value?: unknown) => string;\n /**\n * Config for a11y summary\n */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /**\n * Animations duration, set 0 to disable animations\n */\n duration?: number;\n} /**\n * By default, we show the Legend for all charts with more the one data item.\n * For hide the Legend, you should set showLegend prop to `false`.\n */ & (\n | {\n /**\n * Don't show legend\n */\n showLegend?: false;\n legendProps?: never;\n }\n | {\n /**\n * By default (if showLegend don't set), for one data item on chart,\n * Legend component will be hide, and show for more then 1 data item.\n * If set `true` - Legend component will show always.\n */\n showLegend?: true;\n /**\n * Props for Legend\n */\n legendProps?: Partial<BaseLegendProps>;\n }\n );\n\ntype LegendDataMap<T extends 'Flex' | 'Table'> = Record<\n LegendItemKey,\n {\n /**\n * Custom label for legend item (by default use keys from data item object)\n */\n label?: string;\n /**\n * Additional text after label\n */\n additionalInfo?: string;\n /**\n * Count after label\n */\n count?: number;\n /**\n * Custom Icon\n */\n icon?: typeof Icon;\n /**\n * Flag for uncheck some items by default\n */\n defaultChecked?: boolean;\n } & (T extends 'Table' ? { columns?: React.ReactNode[] } : { columns?: never })\n>;\n"],"mappings":""}
|
@@ -22,10 +22,10 @@ var _BaseLegend2 = require("../BaseLegend");
|
|
22
22
|
var _intergalacticDynamicLocales = require("../../../translations/__intergalactic-dynamic-locales");
|
23
23
|
var _i18nEnhance = _interopRequireDefault(require("intergalactic/utils/lib/enhances/i18nEnhance"));
|
24
24
|
/*__reshadow-styles__:"./legend-flex.shadow.css"*/
|
25
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
26
|
-
"__SLegendFlex": "
|
27
|
-
"_direction_row": "
|
28
|
-
"_direction_column": "
|
25
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_oq150_gg_._direction_row_oq150_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_oq150_gg_._direction_column_oq150_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "oq150_gg_") /*__reshadow_css_end__*/, {
|
26
|
+
"__SLegendFlex": "___SLegendFlex_oq150_gg_",
|
27
|
+
"_direction_row": "_direction_row_oq150_gg_",
|
28
|
+
"_direction_column": "_direction_column_oq150_gg_"
|
29
29
|
});
|
30
30
|
var LegendFlexRoot = /*#__PURE__*/function (_BaseLegend) {
|
31
31
|
(0, _inherits2["default"])(LegendFlexRoot, _BaseLegend);
|
@@ -24,23 +24,23 @@ var _Pattern = require("../../../Pattern");
|
|
24
24
|
var _utils = require("../../../utils");
|
25
25
|
var _excluded = ["color"];
|
26
26
|
/*__reshadow-styles__:"./legend-item.shadow.css"*/
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
28
|
-
"__SLegendItem": "
|
29
|
-
"_disabled": "
|
30
|
-
"__SPointShape": "
|
31
|
-
"_color": "
|
32
|
-
"--color": "--
|
33
|
-
"_shape_Circle": "
|
34
|
-
"_size_l": "
|
35
|
-
"_size_m": "
|
36
|
-
"_shape_Line": "
|
37
|
-
"_shape_Square": "
|
38
|
-
"_shape_Pattern": "
|
39
|
-
"__SIcon": "
|
40
|
-
"__SLabel": "
|
41
|
-
"__SAdditionalLabel": "
|
42
|
-
"__SCount": "
|
43
|
-
"__SPatternSymbol": "
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLegendItem_uedv0_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_uedv0_gg_:hover{cursor:pointer}.___SLegendItem_uedv0_gg_.__disabled_uedv0_gg_:hover{cursor:default}}.___SPointShape_uedv0_gg_.__color_uedv0_gg_{background-color:var(--color_uedv0);margin-right:8px;flex-shrink:0}.___SPointShape_uedv0_gg_._shape_Circle_uedv0_gg_._size_l_uedv0_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_uedv0_gg_._shape_Circle_uedv0_gg_._size_m_uedv0_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_uedv0_gg_._shape_Line_uedv0_gg_._size_l_uedv0_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_uedv0_gg_._shape_Line_uedv0_gg_._size_m_uedv0_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_uedv0_gg_._shape_Square_uedv0_gg_._size_l_uedv0_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_uedv0_gg_._shape_Square_uedv0_gg_._size_m_uedv0_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_uedv0_gg_._shape_Pattern_uedv0_gg_{background-color:transparent;margin-right:4px}.___SIcon_uedv0_gg_{line-height:0;margin-right:4px}.___SIcon_uedv0_gg_._size_l_uedv0_gg_{margin-top:4px}.___SIcon_uedv0_gg_._size_m_uedv0_gg_{margin-top:2px}.___SLabel_uedv0_gg_{min-width:0}.___SAdditionalLabel_uedv0_gg_._size_l_uedv0_gg_,.___SCount_uedv0_gg_._size_l_uedv0_gg_,.___SLabel_uedv0_gg_._size_l_uedv0_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_uedv0_gg_._size_m_uedv0_gg_,.___SCount_uedv0_gg_._size_m_uedv0_gg_,.___SLabel_uedv0_gg_._size_m_uedv0_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_uedv0_gg_,.___SCount_uedv0_gg_{margin-left:4px}.___SAdditionalLabel_uedv0_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_uedv0_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_uedv0_gg_._size_l_uedv0_gg_::before{margin-top:10px}.___SAdditionalLabel_uedv0_gg_._size_m_uedv0_gg_::before{margin-top:8px}.___SPatternSymbol_uedv0_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "uedv0_gg_") /*__reshadow_css_end__*/, {
|
28
|
+
"__SLegendItem": "___SLegendItem_uedv0_gg_",
|
29
|
+
"_disabled": "__disabled_uedv0_gg_",
|
30
|
+
"__SPointShape": "___SPointShape_uedv0_gg_",
|
31
|
+
"_color": "__color_uedv0_gg_",
|
32
|
+
"--color": "--color_uedv0",
|
33
|
+
"_shape_Circle": "_shape_Circle_uedv0_gg_",
|
34
|
+
"_size_l": "_size_l_uedv0_gg_",
|
35
|
+
"_size_m": "_size_m_uedv0_gg_",
|
36
|
+
"_shape_Line": "_shape_Line_uedv0_gg_",
|
37
|
+
"_shape_Square": "_shape_Square_uedv0_gg_",
|
38
|
+
"_shape_Pattern": "_shape_Pattern_uedv0_gg_",
|
39
|
+
"__SIcon": "___SIcon_uedv0_gg_",
|
40
|
+
"__SLabel": "___SLabel_uedv0_gg_",
|
41
|
+
"__SAdditionalLabel": "___SAdditionalLabel_uedv0_gg_",
|
42
|
+
"__SCount": "___SCount_uedv0_gg_",
|
43
|
+
"__SPatternSymbol": "___SPatternSymbol_uedv0_gg_"
|
44
44
|
});
|
45
45
|
var LegendItemRoot = /*#__PURE__*/function (_Component) {
|
46
46
|
(0, _inherits2["default"])(LegendItemRoot, _Component);
|
@@ -18,12 +18,12 @@ var _flexBox = require("intergalactic/flex-box");
|
|
18
18
|
var _LegendItem = require("../LegendItem/LegendItem");
|
19
19
|
var _BaseLegend2 = require("../BaseLegend");
|
20
20
|
/*__reshadow-styles__:"./legend-table.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SLegendTable": "
|
23
|
-
"_columns-count": "__columns-
|
24
|
-
"__SColumnItem": "
|
25
|
-
"_size_l": "
|
26
|
-
"_size_m": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLegendTable_6ho3s_gg_.__columns-count_6ho3s_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_6ho3s_gg_._size_l_6ho3s_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_6ho3s_gg_._size_m_6ho3s_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "6ho3s_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SLegendTable": "___SLegendTable_6ho3s_gg_",
|
23
|
+
"_columns-count": "__columns-count_6ho3s_gg_",
|
24
|
+
"__SColumnItem": "___SColumnItem_6ho3s_gg_",
|
25
|
+
"_size_l": "_size_l_6ho3s_gg_",
|
26
|
+
"_size_m": "_size_m_6ho3s_gg_"
|
27
27
|
});
|
28
28
|
var LegendTableRoot = /*#__PURE__*/function (_BaseLegend) {
|
29
29
|
(0, _inherits2["default"])(LegendTableRoot, _BaseLegend);
|
package/d3-chart/lib/es6/Area.js
CHANGED
@@ -16,17 +16,17 @@ import { definedData, scaleOfBandwidth, getNullData, definedNullData, interpolat
|
|
16
16
|
import AnimatedClipPath from './AnimatedClipPath';
|
17
17
|
import { PatternFill } from './Pattern';
|
18
18
|
/*__reshadow-styles__:"./style/area.shadow.css"*/
|
19
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
20
|
-
"__SArea": "
|
21
|
-
"_color": "
|
22
|
-
"--color": "--
|
23
|
-
"_pattern": "
|
24
|
-
"--pattern": "--
|
25
|
-
"_transparent": "
|
26
|
-
"__SAreaLine": "
|
27
|
-
"--duration": "--
|
28
|
-
"__SNull": "
|
29
|
-
"_hide": "
|
19
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SArea_1htpo_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);fill-opacity:.2}.___SArea_1htpo_gg_.__color_1htpo_gg_{fill:var(--color_1htpo)}.___SArea_1htpo_gg_.__pattern_1htpo_gg_{fill:var(--pattern_1htpo);fill-opacity:.7}.___SArea_1htpo_gg_.__transparent_1htpo_gg_{opacity:.3}.___SAreaLine_1htpo_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SAreaLine_1htpo_gg_.__color_1htpo_gg_{stroke:var(--color_1htpo)}.___SAreaLine_1htpo_gg_.__transparent_1htpo_gg_{opacity:.3}.___SAreaLine_1htpo_gg_,.___SArea_1htpo_gg_{transition-property:d;transition-duration:var(--duration_1htpo);transition-timing-function:ease-in-out}.___SNull_1htpo_gg_{fill:transparent;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf);stroke-dasharray:4}.___SNull_1htpo_gg_.__hide_1htpo_gg_{display:none}" /*__inner_css_end__*/, "1htpo_gg_") /*__reshadow_css_end__*/, {
|
20
|
+
"__SArea": "___SArea_1htpo_gg_",
|
21
|
+
"_color": "__color_1htpo_gg_",
|
22
|
+
"--color": "--color_1htpo",
|
23
|
+
"_pattern": "__pattern_1htpo_gg_",
|
24
|
+
"--pattern": "--pattern_1htpo",
|
25
|
+
"_transparent": "__transparent_1htpo_gg_",
|
26
|
+
"__SAreaLine": "___SAreaLine_1htpo_gg_",
|
27
|
+
"--duration": "--duration_1htpo",
|
28
|
+
"__SNull": "___SNull_1htpo_gg_",
|
29
|
+
"_hide": "__hide_1htpo_gg_"
|
30
30
|
});
|
31
31
|
var AreaRoot = /*#__PURE__*/function (_Component) {
|
32
32
|
_inherits(AreaRoot, _Component);
|
package/d3-chart/lib/es6/Axis.js
CHANGED
@@ -12,20 +12,20 @@ import { Component, sstyled } from 'intergalactic/core';
|
|
12
12
|
import createElement from './createElement';
|
13
13
|
import { scaleOfBandwidth } from './utils';
|
14
14
|
/*__reshadow-styles__:"./style/axis.shadow.css"*/
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
16
|
-
"__SAxis": "
|
17
|
-
"_hide": "
|
18
|
-
"__STick": "
|
19
|
-
"__SGrid": "
|
20
|
-
"__STitle": "
|
21
|
-
"--transform-origin": "--transform-
|
22
|
-
"_position_top": "
|
23
|
-
"_position_bottom": "
|
24
|
-
"_position_right": "
|
25
|
-
"_position_left": "
|
26
|
-
"_verticalWritingMode": "
|
27
|
-
"_position_custom_0": "
|
28
|
-
"_position_custom_1": "
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxis_1kcfu_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SAxis_1kcfu_gg_.__hide_1kcfu_gg_,.___STick_1kcfu_gg_.__hide_1kcfu_gg_{display:none}.___STick_1kcfu_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79)}.___SGrid_1kcfu_gg_{fill:transparent;stroke:var(--intergalactic-border-secondary, #e0e1e9)}.___STitle_1kcfu_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-text-hint, #6c6e79);transform-origin:var(--transform-origin_1kcfu)}.___STitle_1kcfu_gg_._position_top_1kcfu_gg_{text-anchor:middle}.___STitle_1kcfu_gg_._position_bottom_1kcfu_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1kcfu_gg_._position_left_1kcfu_gg_,.___STitle_1kcfu_gg_._position_right_1kcfu_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___STitle_1kcfu_gg_._position_left_1kcfu_gg_.__verticalWritingMode_1kcfu_gg_,.___STitle_1kcfu_gg_._position_right_1kcfu_gg_.__verticalWritingMode_1kcfu_gg_{writing-mode:vertical-rl;transform:none}.___STick_1kcfu_gg_._position_top_1kcfu_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_1kcfu_gg_._position_bottom_1kcfu_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_1kcfu_gg_._position_right_1kcfu_gg_{transform:translateX(16px);text-anchor:start;dominant-baseline:middle}.___STick_1kcfu_gg_._position_left_1kcfu_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}.___STick_1kcfu_gg_._position_custom_0_1kcfu_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_1kcfu_gg_._position_custom_1_1kcfu_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}" /*__inner_css_end__*/, "1kcfu_gg_") /*__reshadow_css_end__*/, {
|
16
|
+
"__SAxis": "___SAxis_1kcfu_gg_",
|
17
|
+
"_hide": "__hide_1kcfu_gg_",
|
18
|
+
"__STick": "___STick_1kcfu_gg_",
|
19
|
+
"__SGrid": "___SGrid_1kcfu_gg_",
|
20
|
+
"__STitle": "___STitle_1kcfu_gg_",
|
21
|
+
"--transform-origin": "--transform-origin_1kcfu",
|
22
|
+
"_position_top": "_position_top_1kcfu_gg_",
|
23
|
+
"_position_bottom": "_position_bottom_1kcfu_gg_",
|
24
|
+
"_position_right": "_position_right_1kcfu_gg_",
|
25
|
+
"_position_left": "_position_left_1kcfu_gg_",
|
26
|
+
"_verticalWritingMode": "__verticalWritingMode_1kcfu_gg_",
|
27
|
+
"_position_custom_0": "_position_custom_0_1kcfu_gg_",
|
28
|
+
"_position_custom_1": "_position_custom_1_1kcfu_gg_"
|
29
29
|
});
|
30
30
|
var CUSTOM_0 = Symbol('custom_0');
|
31
31
|
var CUSTOM_1 = Symbol('custom_1');
|
package/d3-chart/lib/es6/Bar.js
CHANGED
@@ -14,16 +14,16 @@ import AnimatedClipPath from './AnimatedClipPath';
|
|
14
14
|
import { scaleToBand, roundedPath } from './utils';
|
15
15
|
import { PatternFill } from './Pattern';
|
16
16
|
/*__reshadow-styles__:"./style/bar.shadow.css"*/
|
17
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
18
|
-
"__SBar": "
|
19
|
-
"--duration": "--
|
20
|
-
"_color": "
|
21
|
-
"--color": "--
|
22
|
-
"_pattern": "
|
23
|
-
"--pattern": "--
|
24
|
-
"_hide": "
|
25
|
-
"_transparent": "
|
26
|
-
"__SBackground": "
|
17
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_1qmm0_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1qmm0);transition-timing-function:ease-in-out}.___SBar_1qmm0_gg_.__color_1qmm0_gg_{fill:var(--color_1qmm0)}.___SBar_1qmm0_gg_.__pattern_1qmm0_gg_.__color_1qmm0_gg_{fill:var(--pattern_1qmm0);stroke:var(--color_1qmm0);stroke-width:1px}.___SBar_1qmm0_gg_.__hide_1qmm0_gg_{display:none}.___SBar_1qmm0_gg_.__transparent_1qmm0_gg_{opacity:.3}.___SBackground_1qmm0_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9)}" /*__inner_css_end__*/, "1qmm0_gg_") /*__reshadow_css_end__*/, {
|
18
|
+
"__SBar": "___SBar_1qmm0_gg_",
|
19
|
+
"--duration": "--duration_1qmm0",
|
20
|
+
"_color": "__color_1qmm0_gg_",
|
21
|
+
"--color": "--color_1qmm0",
|
22
|
+
"_pattern": "__pattern_1qmm0_gg_",
|
23
|
+
"--pattern": "--pattern_1qmm0",
|
24
|
+
"_hide": "__hide_1qmm0_gg_",
|
25
|
+
"_transparent": "__transparent_1qmm0_gg_",
|
26
|
+
"__SBackground": "___SBackground_1qmm0_gg_"
|
27
27
|
});
|
28
28
|
export var MIN_HEIGHT = 2;
|
29
29
|
var calcPartBarY = function calcPartBarY(y, minHeight, height) {
|
@@ -17,18 +17,18 @@ import { getBubbleChartValueScale, measureText } from './utils';
|
|
17
17
|
import Tooltip from './Tooltip';
|
18
18
|
import { PatternFill } from './Pattern';
|
19
19
|
/*__reshadow-styles__:"./style/bubble.shadow.css"*/
|
20
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
21
|
-
"__SBubble": "
|
22
|
-
"_color": "
|
23
|
-
"--color": "--
|
24
|
-
"_pattern": "
|
25
|
-
"--pattern": "--
|
26
|
-
"_transparent": "
|
27
|
-
"__SCenter": "
|
28
|
-
"__SLabel": "
|
29
|
-
"_position_right": "
|
30
|
-
"_position_left": "
|
31
|
-
"--duration": "--
|
20
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBubble_d0ody_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_d0ody);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_d0ody_gg_:hover{opacity:.8}}.___SBubble_d0ody_gg_.__color_d0ody_gg_{fill:var(--color_d0ody)}.___SBubble_d0ody_gg_.__pattern_d0ody_gg_.__color_d0ody_gg_{fill:var(--pattern_d0ody);stroke:var(--color_d0ody);stroke-width:1px}.___SBubble_d0ody_gg_.__transparent_d0ody_gg_{opacity:.3}.___SCenter_d0ody_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SCenter_d0ody_gg_.__color_d0ody_gg_{stroke:var(--color_d0ody)}.___SCenter_d0ody_gg_.__transparent_d0ody_gg_{opacity:.3}.___SLabel_d0ody_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLabel_d0ody_gg_._position_right_d0ody_gg_{text-anchor:end}.___SLabel_d0ody_gg_._position_left_d0ody_gg_{text-anchor:start}.___SLabel_d0ody_gg_.__color_d0ody_gg_{fill:var(--color_d0ody)}.___SLabel_d0ody_gg_.__transparent_d0ody_gg_{opacity:.3}" /*__inner_css_end__*/, "d0ody_gg_") /*__reshadow_css_end__*/, {
|
21
|
+
"__SBubble": "___SBubble_d0ody_gg_",
|
22
|
+
"_color": "__color_d0ody_gg_",
|
23
|
+
"--color": "--color_d0ody",
|
24
|
+
"_pattern": "__pattern_d0ody_gg_",
|
25
|
+
"--pattern": "--pattern_d0ody",
|
26
|
+
"_transparent": "__transparent_d0ody_gg_",
|
27
|
+
"__SCenter": "___SCenter_d0ody_gg_",
|
28
|
+
"__SLabel": "___SLabel_d0ody_gg_",
|
29
|
+
"_position_right": "_position_right_d0ody_gg_",
|
30
|
+
"_position_left": "_position_left_d0ody_gg_",
|
31
|
+
"--duration": "--duration_d0ody"
|
32
32
|
});
|
33
33
|
var BubbleRoot = /*#__PURE__*/function (_Component) {
|
34
34
|
_inherits(BubbleRoot, _Component);
|
@@ -23,15 +23,15 @@ import { getChartDefaultColorName } from './utils';
|
|
23
23
|
import Tooltip from './Tooltip';
|
24
24
|
import { PatternFill } from './Pattern';
|
25
25
|
/*__reshadow-styles__:"./style/donut.shadow.css"*/
|
26
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
27
|
-
"__SPie": "
|
28
|
-
"_color": "
|
29
|
-
"--color": "--
|
30
|
-
"_pattern": "
|
31
|
-
"--pattern": "--
|
32
|
-
"_transparent": "
|
33
|
-
"__SEmptyData": "
|
34
|
-
"__SLabel": "
|
26
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPie_1iizu_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_1iizu_gg_.__color_1iizu_gg_{fill:var(--color_1iizu)}.___SPie_1iizu_gg_.__pattern_1iizu_gg_.__color_1iizu_gg_{fill:var(--pattern_1iizu);stroke:var(--color_1iizu);stroke-width:1px}.___SPie_1iizu_gg_.__transparent_1iizu_gg_{opacity:.3}.___SEmptyData_1iizu_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_1iizu_gg_.__color_1iizu_gg_{fill:var(--color_1iizu)}.___SLabel_1iizu_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}" /*__inner_css_end__*/, "1iizu_gg_") /*__reshadow_css_end__*/, {
|
27
|
+
"__SPie": "___SPie_1iizu_gg_",
|
28
|
+
"_color": "__color_1iizu_gg_",
|
29
|
+
"--color": "--color_1iizu",
|
30
|
+
"_pattern": "__pattern_1iizu_gg_",
|
31
|
+
"--pattern": "--pattern_1iizu",
|
32
|
+
"_transparent": "__transparent_1iizu_gg_",
|
33
|
+
"__SEmptyData": "___SEmptyData_1iizu_gg_",
|
34
|
+
"__SLabel": "___SLabel_1iizu_gg_"
|
35
35
|
});
|
36
36
|
var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
|
37
37
|
function transitionAnglePie(_ref6) {
|
package/d3-chart/lib/es6/Dots.js
CHANGED
@@ -7,14 +7,14 @@ import trottle from 'intergalactic/utils/lib/rafTrottle';
|
|
7
7
|
import createElement from './createElement';
|
8
8
|
import { eventToPoint, invert, interpolateValue, getChartDefaultColorName } from './utils';
|
9
9
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
10
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
11
|
-
"__SDot": "
|
12
|
-
"_hide": "
|
13
|
-
"_color": "
|
14
|
-
"--color": "--
|
15
|
-
"_transparent": "
|
16
|
-
"__SDots": "
|
17
|
-
"--duration": "--
|
10
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SDots_qsg78_gg_ .___SDot_qsg78_gg_{transition-duration:var(--duration_qsg78)}.___SDot_qsg78_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_qsg78_gg_.__hide_qsg78_gg_{display:none}.___SDot_qsg78_gg_.__color_qsg78_gg_{fill:var(--color_qsg78)}.___SDot_qsg78_gg_.__transparent_qsg78_gg_{opacity:.3}" /*__inner_css_end__*/, "qsg78_gg_") /*__reshadow_css_end__*/, {
|
11
|
+
"__SDot": "___SDot_qsg78_gg_",
|
12
|
+
"_hide": "__hide_qsg78_gg_",
|
13
|
+
"_color": "__color_qsg78_gg_",
|
14
|
+
"--color": "--color_qsg78",
|
15
|
+
"_transparent": "__transparent_qsg78_gg_",
|
16
|
+
"__SDots": "___SDots_qsg78_gg_",
|
17
|
+
"--duration": "--duration_qsg78"
|
18
18
|
});
|
19
19
|
import { PatternSymbol, getPatternSymbolSize } from './Pattern';
|
20
20
|
var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
|
@@ -13,16 +13,16 @@ import AnimatedClipPath from './AnimatedClipPath';
|
|
13
13
|
import { scaleToBand, roundedPath } from './utils';
|
14
14
|
import { PatternFill } from './Pattern';
|
15
15
|
/*__reshadow-styles__:"./style/bar.shadow.css"*/
|
16
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
17
|
-
"__SBar": "
|
18
|
-
"--duration": "--
|
19
|
-
"_color": "
|
20
|
-
"--color": "--
|
21
|
-
"_pattern": "
|
22
|
-
"--pattern": "--
|
23
|
-
"_hide": "
|
24
|
-
"_transparent": "
|
25
|
-
"__SBackground": "
|
16
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SBar_1qmm0_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_1qmm0);transition-timing-function:ease-in-out}.___SBar_1qmm0_gg_.__color_1qmm0_gg_{fill:var(--color_1qmm0)}.___SBar_1qmm0_gg_.__pattern_1qmm0_gg_.__color_1qmm0_gg_{fill:var(--pattern_1qmm0);stroke:var(--color_1qmm0);stroke-width:1px}.___SBar_1qmm0_gg_.__hide_1qmm0_gg_{display:none}.___SBar_1qmm0_gg_.__transparent_1qmm0_gg_{opacity:.3}.___SBackground_1qmm0_gg_{fill:var(--intergalactic-chart-grid-bar-chart-base-bg, #e0e1e9)}" /*__inner_css_end__*/, "1qmm0_gg_") /*__reshadow_css_end__*/, {
|
17
|
+
"__SBar": "___SBar_1qmm0_gg_",
|
18
|
+
"--duration": "--duration_1qmm0",
|
19
|
+
"_color": "__color_1qmm0_gg_",
|
20
|
+
"--color": "--color_1qmm0",
|
21
|
+
"_pattern": "__pattern_1qmm0_gg_",
|
22
|
+
"--pattern": "--pattern_1qmm0",
|
23
|
+
"_hide": "__hide_1qmm0_gg_",
|
24
|
+
"_transparent": "__transparent_1qmm0_gg_",
|
25
|
+
"__SBackground": "___SBackground_1qmm0_gg_"
|
26
26
|
});
|
27
27
|
export var MIN_WIDTH = 2;
|
28
28
|
var calcPartBarX = function calcPartBarX(x, minWidth, width) {
|
@@ -16,9 +16,9 @@ import trottle from 'intergalactic/utils/lib/rafTrottle';
|
|
16
16
|
import createElement from './createElement';
|
17
17
|
import { scaleOfBandwidth, getIndexFromData, eventToPoint, invert, scaleToBand } from './utils';
|
18
18
|
/*__reshadow-styles__:"./style/hover.shadow.css"*/
|
19
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
20
|
-
"__SHoverLine": "
|
21
|
-
"__SHoverRect": "
|
19
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SHoverLine_1ymll_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_1ymll_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "1ymll_gg_") /*__reshadow_css_end__*/, {
|
20
|
+
"__SHoverLine": "___SHoverLine_1ymll_gg_",
|
21
|
+
"__SHoverRect": "___SHoverRect_1ymll_gg_"
|
22
22
|
});
|
23
23
|
import Tooltip from './Tooltip';
|
24
24
|
var Hover = /*#__PURE__*/function (_Component) {
|
package/d3-chart/lib/es6/Line.js
CHANGED
@@ -15,15 +15,15 @@ import Dots from './Dots';
|
|
15
15
|
import AnimatedClipPath from './AnimatedClipPath';
|
16
16
|
import { resolvePatternDasharray } from './Pattern';
|
17
17
|
/*__reshadow-styles__:"./style/line.shadow.css"*/
|
18
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
19
|
-
"__SLine": "
|
20
|
-
"--duration": "--
|
21
|
-
"_color": "
|
22
|
-
"--color": "--
|
23
|
-
"_hide": "
|
24
|
-
"_transparent": "
|
25
|
-
"__SNull": "
|
26
|
-
"__SAria": "
|
18
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLine_t70zy_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_t70zy);transition-timing-function:ease-in-out}.___SLine_t70zy_gg_.__color_t70zy_gg_{stroke:var(--color_t70zy)}.___SLine_t70zy_gg_.__hide_t70zy_gg_{display:none}.___SLine_t70zy_gg_.__transparent_t70zy_gg_{opacity:.3}.___SNull_t70zy_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_t70zy_gg_.__hide_t70zy_gg_{display:none}.___SAria_t70zy_gg_{transition-property:d;transition-duration:var(--duration_t70zy);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SAria_t70zy_gg_.__color_t70zy_gg_{fill:var(--color_t70zy)}" /*__inner_css_end__*/, "t70zy_gg_") /*__reshadow_css_end__*/, {
|
19
|
+
"__SLine": "___SLine_t70zy_gg_",
|
20
|
+
"--duration": "--duration_t70zy",
|
21
|
+
"_color": "__color_t70zy_gg_",
|
22
|
+
"--color": "--color_t70zy",
|
23
|
+
"_hide": "__hide_t70zy_gg_",
|
24
|
+
"_transparent": "__transparent_t70zy_gg_",
|
25
|
+
"__SNull": "___SNull_t70zy_gg_",
|
26
|
+
"__SAria": "___SAria_t70zy_gg_"
|
27
27
|
});
|
28
28
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
29
29
|
_inherits(LineRoot, _Component);
|
package/d3-chart/lib/es6/Plot.js
CHANGED
@@ -18,9 +18,9 @@ import { PlotA11yModule } from './a11y/PlotA11yModule';
|
|
18
18
|
import { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';
|
19
19
|
import colorResolverEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
|
20
20
|
/*__reshadow-styles__:"./style/plot.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SPlot": "
|
23
|
-
"_keyboardFocused": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlot_10lpw_gg_{overflow:hidden}.___SPlot_10lpw_gg_:active,.___SPlot_10lpw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_10lpw_gg_.__keyboardFocused_10lpw_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "10lpw_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SPlot": "___SPlot_10lpw_gg_",
|
23
|
+
"_keyboardFocused": "__keyboardFocused_10lpw_gg_"
|
24
24
|
});
|
25
25
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
26
26
|
_inherits(PlotRoot, _Component);
|
@@ -77,7 +77,8 @@ var PlotRoot = /*#__PURE__*/function (_Component) {
|
|
77
77
|
height = _this$asProps.height,
|
78
78
|
locale = _this$asProps.locale,
|
79
79
|
resolveColor = _this$asProps.resolveColor,
|
80
|
-
patterns = _this$asProps.patterns
|
80
|
+
patterns = _this$asProps.patterns,
|
81
|
+
duration = _this$asProps.duration;
|
81
82
|
var yScaleDomain = scale === null || scale === void 0 ? void 0 : (_scale$ = scale[1]) === null || _scale$ === void 0 ? void 0 : (_scale$$domain = _scale$.domain) === null || _scale$$domain === void 0 ? void 0 : _scale$$domain.call(_scale$);
|
82
83
|
if (yScaleDomain !== null && yScaleDomain !== void 0 && yScaleDomain.length && data !== null && data !== void 0 && data.length) {
|
83
84
|
this.dataHintsHandler.setPointsDensity(data.length / width, Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height);
|
@@ -92,7 +93,8 @@ var PlotRoot = /*#__PURE__*/function (_Component) {
|
|
92
93
|
rootRef: this.rootRef,
|
93
94
|
dataHintsHandler: this.dataHintsHandler,
|
94
95
|
resolveColor: resolveColor,
|
95
|
-
patterns: patterns
|
96
|
+
patterns: patterns,
|
97
|
+
duration: duration
|
96
98
|
}
|
97
99
|
};
|
98
100
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Plot.js","names":["React","createComponent","Component","Root","sstyled","Box","EventEmitter","keyboardFocusEnhance","eventToPoint","uniqueId","PlotA11yModule","makeDataHintsHandlers","makeDataHintsContainer","colorResolverEnhance","style","_sstyled","insert","PlotRoot","_Component","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","createRef","dataHints","dataStructureHints","e","scale","asProps","eventEmitter","emit","length","_scale","_slicedToArray","xScale","yScale","_eventToPoint","rootRef","current","_eventToPoint2","pX","pY","_xScale$range","range","_xScale$range2","minX","maxX","_yScale$range","_yScale$range2","maxY","minY","_createClass","key","value","setContext","_scale$","_scale$$domain","_this$asProps","data","width","height","locale","resolveColor","patterns","yScaleDomain","domain","dataHintsHandler","setPointsDensity","Math","abs","$rootProps","size","render","_ref","_ref2","SPlot","_this$asProps2","styles","Children","a11yAltTextConfig","label","createElement","cn","_objectSpread","_assignProps","handlerMouseMove","handlerMouseLeave","plotId"],"sources":["../../src/Plot.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport EventEmitter from '@semcore/utils/lib/eventEmitter';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { eventToPoint, uniqueId } from './utils';\nimport { PlotA11yModule } from './a11y/PlotA11yModule';\nimport { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';\nimport colorResolverEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\n\nimport style from './style/plot.shadow.css';\n\nclass PlotRoot extends Component {\n static displayName = 'Plot';\n static style = style;\n\n constructor(props) {\n super(props);\n this.eventEmitter = props.eventEmitter || new EventEmitter();\n }\n\n static defaultProps = () => ({\n width: 0,\n height: 0,\n });\n\n static enhance = [keyboardFocusEnhance(), colorResolverEnhance()];\n\n plotId = uniqueId();\n\n rootRef = React.createRef();\n\n dataStructureHints = this.props.dataHints || makeDataHintsContainer();\n dataHintsHandler = makeDataHintsHandlers(this.dataStructureHints);\n\n handlerMouseMove = (e) => {\n const { scale } = this.asProps;\n this.eventEmitter.emit('onMouseMoveRoot', e);\n\n if (scale && scale.length >= 2) {\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, this.rootRef.current);\n const [minX, maxX] = xScale.range();\n const [maxY, minY] = yScale.range();\n\n if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {\n this.eventEmitter.emit('onMouseMoveChart', e);\n } else {\n this.eventEmitter.emit('onMouseLeaveChart', e);\n }\n }\n };\n\n handlerMouseLeave = (e) => {\n this.eventEmitter.emit('onMouseLeaveRoot', e);\n this.eventEmitter.emit('onMouseLeaveChart', e);\n };\n\n setContext() {\n const { scale, data, width, height, locale, resolveColor, patterns } = this.asProps;\n\n const yScaleDomain = scale?.[1]?.domain?.();\n if (yScaleDomain?.length && data?.length) {\n this.dataHintsHandler.setPointsDensity(\n data.length / width,\n Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height,\n );\n }\n\n return {\n $rootProps: {\n size: [width, height],\n data: data,\n locale,\n scale: scale,\n eventEmitter: this.eventEmitter,\n rootRef: this.rootRef,\n dataHintsHandler: this.dataHintsHandler,\n resolveColor,\n patterns,\n },\n };\n }\n\n render() {\n const SPlot = Root;\n const { styles, width, height, Children, data, a11yAltTextConfig, label, locale } =\n this.asProps;\n\n if (!width || !height) return null;\n\n return sstyled(styles)(\n <SPlot\n render={Box}\n tag='svg'\n __excludeProps={['data', 'scale']}\n ref={this.rootRef}\n onMouseMove={this.handlerMouseMove}\n onMouseLeave={this.handlerMouseLeave}\n aria-label={label}\n tabIndex={0}\n >\n <Children />\n <foreignObject width='100%' height='100%' data-aria-only>\n <PlotA11yModule\n id={this.plotId}\n data={data}\n plotLabel={label}\n locale={locale}\n plotRef={this.rootRef}\n hints={this.dataStruct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YAAY,CAACC,IAAI,CAAC,mBAAmB,EAAEJ,CAAC,CAAC;IAChD,CAAC;IAtCCR,KAAA,CAAKW,YAAY,GAAGZ,KAAK,CAACY,YAAY,IAAI,IAAI5B,YAAY,EAAE;IAAC,OAAAiB,KAAA;EAC/D;EAACiC,YAAA,CAAAvC,QAAA;IAAAwC,GAAA;IAAAC,KAAA,EAuCD,SAAAC,WAAA,EAAa;MAAA,IAAAC,OAAA,EAAAC,cAAA;MACX,IAAAC,aAAA,
|
1
|
+
{"version":3,"file":"Plot.js","names":["React","createComponent","Component","Root","sstyled","Box","EventEmitter","keyboardFocusEnhance","eventToPoint","uniqueId","PlotA11yModule","makeDataHintsHandlers","makeDataHintsContainer","colorResolverEnhance","style","_sstyled","insert","PlotRoot","_Component","_inherits","_super","_createSuper","props","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","createRef","dataHints","dataStructureHints","e","scale","asProps","eventEmitter","emit","length","_scale","_slicedToArray","xScale","yScale","_eventToPoint","rootRef","current","_eventToPoint2","pX","pY","_xScale$range","range","_xScale$range2","minX","maxX","_yScale$range","_yScale$range2","maxY","minY","_createClass","key","value","setContext","_scale$","_scale$$domain","_this$asProps","data","width","height","locale","resolveColor","patterns","duration","yScaleDomain","domain","dataHintsHandler","setPointsDensity","Math","abs","$rootProps","size","render","_ref","_ref2","SPlot","_this$asProps2","styles","Children","a11yAltTextConfig","label","createElement","cn","_objectSpread","_assignProps","handlerMouseMove","handlerMouseLeave","plotId"],"sources":["../../src/Plot.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport EventEmitter from '@semcore/utils/lib/eventEmitter';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { eventToPoint, uniqueId } from './utils';\nimport { PlotA11yModule } from './a11y/PlotA11yModule';\nimport { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';\nimport colorResolverEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\n\nimport style from './style/plot.shadow.css';\n\nclass PlotRoot extends Component {\n static displayName = 'Plot';\n static style = style;\n\n constructor(props) {\n super(props);\n this.eventEmitter = props.eventEmitter || new EventEmitter();\n }\n\n static defaultProps = () => ({\n width: 0,\n height: 0,\n });\n\n static enhance = [keyboardFocusEnhance(), colorResolverEnhance()];\n\n plotId = uniqueId();\n\n rootRef = React.createRef();\n\n dataStructureHints = this.props.dataHints || makeDataHintsContainer();\n dataHintsHandler = makeDataHintsHandlers(this.dataStructureHints);\n\n handlerMouseMove = (e) => {\n const { scale } = this.asProps;\n this.eventEmitter.emit('onMouseMoveRoot', e);\n\n if (scale && scale.length >= 2) {\n const [xScale, yScale] = scale;\n const [pX, pY] = eventToPoint(e, this.rootRef.current);\n const [minX, maxX] = xScale.range();\n const [maxY, minY] = yScale.range();\n\n if (pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) {\n this.eventEmitter.emit('onMouseMoveChart', e);\n } else {\n this.eventEmitter.emit('onMouseLeaveChart', e);\n }\n }\n };\n\n handlerMouseLeave = (e) => {\n this.eventEmitter.emit('onMouseLeaveRoot', e);\n this.eventEmitter.emit('onMouseLeaveChart', e);\n };\n\n setContext() {\n const { scale, data, width, height, locale, resolveColor, patterns, duration } = this.asProps;\n\n const yScaleDomain = scale?.[1]?.domain?.();\n if (yScaleDomain?.length && data?.length) {\n this.dataHintsHandler.setPointsDensity(\n data.length / width,\n Math.abs(yScaleDomain[1] - yScaleDomain[0]) / height,\n );\n }\n\n return {\n $rootProps: {\n size: [width, height],\n data: data,\n locale,\n scale: scale,\n eventEmitter: this.eventEmitter,\n rootRef: this.rootRef,\n dataHintsHandler: this.dataHintsHandler,\n resolveColor,\n patterns,\n duration,\n },\n };\n }\n\n render() {\n const SPlot = Root;\n const { styles, width, height, Children, data, a11yAltTextConfig, label, locale } =\n this.asProps;\n\n if (!width || !height) return null;\n\n return sstyled(styles)(\n <SPlot\n render={Box}\n tag='svg'\n __excludeProps={['data', 'scale']}\n ref={this.rootRef}\n onMouseMove={this.handlerMouseMove}\n onMouseLeave={this.handlerMouseLeave}\n aria-label={label}\n tabIndex={0}\n >\n <Children />\n <foreignObject width='100%' height='100%' data-aria-only>\n <PlotA11yModule\n id={this.plotId}\n data={data}\n plotLabel={label}\n locale={locale}\n plotRef={this.rootRef}\n hints={this.dataStructureHints}\n config={a11yAltTextConfig}\n />\n </foreignObject>\n </SPlot>,\n );\n }\n}\n\nexport default createComponent(PlotRoot);\n"],"mappings":";;;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,SAAS,EAAEC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACzE,SAASC,GAAG,QAAQ,mBAAmB;AACvC,OAAOC,YAAY,MAAM,iCAAiC;AAC1D,OAAOC,oBAAoB,MAAM,kDAAkD;AACnF,SAASC,YAAY,EAAEC,QAAQ,QAAQ,SAAS;AAChD,SAASC,cAAc,QAAQ,uBAAuB;AACtD,SAASC,qBAAqB,EAAEC,sBAAsB,QAAQ,cAAc;AAC5E,OAAOC,oBAAoB,MAAM,iDAAiD;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;AAAA;AAAA,IAI7EC,QAAQ,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,QAAA;EAIZ,SAAAA,SAAYK,KAAK,EAAE;IAAA,IAAAC,KAAA;IAAAC,eAAA,OAAAP,QAAA;IACjBM,KAAA,GAAAH,MAAA,CAAAK,IAAA,OAAMH,KAAK;IAAEI,eAAA,CAAAC,sBAAA,CAAAJ,KAAA,aAWNd,QAAQ,EAAE;IAAAiB,eAAA,CAAAC,sBAAA,CAAAJ,KAAA,2BAETvB,KAAK,CAAC4B,SAAS,EAAE;IAAAF,eAAA,CAAAC,sBAAA,CAAAJ,KAAA,yBAENA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N,KAAK,EAAAD,KAAA,CAAAQ,EAAA,UAAAC,aAAA,KAAAC,YAAA;QAAA,OAEA,KAAK;QAAA,kBACO,CAAC,MAAM,EAAE,OAAO,CAAC;QAAA,OAC5B,IAAI,CAAChD,OAAO;QAAA,eACJ,IAAI,CAACiD,gBAAgB;QAAA,gBACpB,IAAI,CAACC,iBAAiB;QAAA,cACxBN,KAAK;QAAA,YACP;MAAC,GAAAP,IAAA,kBAEX/E,KAAA,CAAAuF,aAAA,CAACH,QAAQ,EAAAJ,KAAA,CAAAQ,EAAA,iBAAG,eACZxF,KAAA,CAAAuF,aAAA,kBAAAP,KAAA,CAAAQ,EAAA;QAAA,SAAqB,MAAM;QAAA,UAAQ,MAAM;QAAA;MAAA,iBACvCxF,KAAA,CAAAuF,aAAA,CAAC7E,cAAc,EAAAsE,KAAA,CAAAQ,EAAA;QAAA,MACT,IAAI,CAACK,MAAM;QAAA,QACT9B,IAAI;QAAA,aACCuB,KAAK;QAAA,UACRpB,MAAM;QAAA,WACL,IAAI,CAACxB,OAAO;QAAA,SACd,IAAI,CAACZ,kBAAkB;QAAA,UACtBuD;MAAiB,GACzB,CACY,CACV;IAEZ;EAAC;EAAA,OAAApE,QAAA;AAAA,EAzGoBf,SAAS;AAAAwB,eAAA,CAA1BT,QAAQ,iBACS,MAAM;AAAAS,eAAA,CADvBT,QAAQ,WAEGH,KAAK;AAAAY,eAAA,CAFhBT,QAAQ,kBASU;EAAA,OAAO;IAC3B+C,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;AAAA,CAAC;AAAAvC,eAAA,CAZET,QAAQ,aAcK,CAACV,oBAAoB,EAAE,EAAEM,oBAAoB,EAAE,CAAC;AA8FnE,eAAeZ,eAAe,CAACgB,QAAQ,CAAC"}
|
@@ -22,25 +22,25 @@ import { eventToPoint, getChartDefaultColorName, measureText } from './utils';
|
|
22
22
|
import Tooltip from './Tooltip';
|
23
23
|
import { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';
|
24
24
|
/*__reshadow-styles__:"./style/radar.shadow.css"*/
|
25
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
26
|
-
"__SAxis": "
|
27
|
-
"__SAxisLine": "
|
28
|
-
"__SAxisTick": "
|
29
|
-
"_active": "
|
30
|
-
"__SAxisLabel": "
|
31
|
-
"_xDirection": "
|
32
|
-
"--xDirection": "--
|
33
|
-
"_yDirection": "
|
34
|
-
"--yDirection": "--
|
35
|
-
"__SPolygon": "
|
36
|
-
"_color": "
|
37
|
-
"--color": "--
|
38
|
-
"_pattern": "
|
39
|
-
"--pattern": "--
|
40
|
-
"__SPolygonDot": "
|
41
|
-
"_transparent": "
|
42
|
-
"__SPolygonLine": "
|
43
|
-
"__SPieRect": "
|
25
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxisLine_m383u_gg_,.___SAxisTick_m383u_gg_,.___SAxis_m383u_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_m383u_gg_,.___SAxisTick_m383u_gg_{stroke-dasharray:2}.___SAxisLine_m383u_gg_.__active_m383u_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_m383u_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_m383u_gg_.__xDirection_m383u_gg_{text-anchor:var(--xDirection_m383u)}.___SAxisLabel_m383u_gg_.__yDirection_m383u_gg_{dominant-baseline:var(--yDirection_m383u)}.___SPolygonDot_m383u_gg_,.___SPolygon_m383u_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_m383u_gg_{opacity:.2}.___SPolygon_m383u_gg_.__color_m383u_gg_{fill:var(--color_m383u)}.___SPolygon_m383u_gg_.__pattern_m383u_gg_.__color_m383u_gg_{fill:var(--pattern_m383u);stroke:var(--color_m383u);stroke-width:1px}.___SPolygonDot_m383u_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_m383u_gg_.__transparent_m383u_gg_{opacity:.3}.___SPolygonDot_m383u_gg_.__color_m383u_gg_{fill:var(--color_m383u)}.___SPolygonLine_m383u_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_m383u_gg_.__transparent_m383u_gg_{opacity:.3}.___SPolygonLine_m383u_gg_.__color_m383u_gg_{stroke:var(--color_m383u)}.___SPieRect_m383u_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "m383u_gg_") /*__reshadow_css_end__*/, {
|
26
|
+
"__SAxis": "___SAxis_m383u_gg_",
|
27
|
+
"__SAxisLine": "___SAxisLine_m383u_gg_",
|
28
|
+
"__SAxisTick": "___SAxisTick_m383u_gg_",
|
29
|
+
"_active": "__active_m383u_gg_",
|
30
|
+
"__SAxisLabel": "___SAxisLabel_m383u_gg_",
|
31
|
+
"_xDirection": "__xDirection_m383u_gg_",
|
32
|
+
"--xDirection": "--xDirection_m383u",
|
33
|
+
"_yDirection": "__yDirection_m383u_gg_",
|
34
|
+
"--yDirection": "--yDirection_m383u",
|
35
|
+
"__SPolygon": "___SPolygon_m383u_gg_",
|
36
|
+
"_color": "__color_m383u_gg_",
|
37
|
+
"--color": "--color_m383u",
|
38
|
+
"_pattern": "__pattern_m383u_gg_",
|
39
|
+
"--pattern": "--pattern_m383u",
|
40
|
+
"__SPolygonDot": "___SPolygonDot_m383u_gg_",
|
41
|
+
"_transparent": "__transparent_m383u_gg_",
|
42
|
+
"__SPolygonLine": "___SPolygonLine_m383u_gg_",
|
43
|
+
"__SPieRect": "___SPieRect_m383u_gg_"
|
44
44
|
});
|
45
45
|
var clampAngle = function clampAngle(angle) {
|
46
46
|
angle = angle % (2 * Math.PI);
|