intergalactic 15.52.0-prerelease.0-prerelease-15fe9f5e → 15.53.0-prerelease-dfe34e97
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 +31 -4
- package/accordion/lib/cjs/Accordion.js +7 -6
- package/accordion/lib/cjs/Accordion.js.map +1 -1
- package/accordion/lib/cjs/style/accordion.shadow.css +2 -2
- package/accordion/lib/es6/Accordion.js +7 -6
- package/accordion/lib/es6/Accordion.js.map +1 -1
- package/accordion/lib/es6/style/accordion.shadow.css +2 -2
- package/components.json +12 -12
- package/d3-chart/Pattern.d.ts +336 -0
- package/d3-chart/Plot.d.ts +4 -0
- package/d3-chart/RadialTree.d.ts +7 -2
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +3 -0
- package/d3-chart/component/ChartLegend/BaseLegend.type.d.ts +3 -0
- package/d3-chart/component/ChartLegend/LegendItem/LegendItem.type.d.ts +7 -1
- package/d3-chart/index.d.ts +3 -0
- package/d3-chart/lib/cjs/Area.js +25 -13
- package/d3-chart/lib/cjs/Area.js.map +1 -1
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +23 -12
- package/d3-chart/lib/cjs/Bar.js.map +1 -1
- package/d3-chart/lib/cjs/Bubble.js +25 -13
- package/d3-chart/lib/cjs/Bubble.js.map +1 -1
- package/d3-chart/lib/cjs/Donut.js +28 -12
- package/d3-chart/lib/cjs/Donut.js.map +1 -1
- package/d3-chart/lib/cjs/Dots.js +55 -28
- package/d3-chart/lib/cjs/Dots.js.map +1 -1
- package/d3-chart/lib/cjs/GroupBar.js +4 -2
- package/d3-chart/lib/cjs/GroupBar.js.map +1 -1
- package/d3-chart/lib/cjs/HorizontalBar.js +23 -12
- package/d3-chart/lib/cjs/HorizontalBar.js.map +1 -1
- package/d3-chart/lib/cjs/Hover.js +9 -6
- package/d3-chart/lib/cjs/Hover.js.map +1 -1
- package/d3-chart/lib/cjs/Line.js +23 -15
- package/d3-chart/lib/cjs/Line.js.map +1 -1
- package/d3-chart/lib/cjs/Pattern.js +540 -0
- package/d3-chart/lib/cjs/Pattern.js.map +1 -0
- 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 +126 -83
- package/d3-chart/lib/cjs/Radar.js.map +1 -1
- package/d3-chart/lib/cjs/RadialTree.js +126 -100
- package/d3-chart/lib/cjs/RadialTree.js.map +1 -1
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +22 -10
- package/d3-chart/lib/cjs/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/cjs/StackBar.js +8 -4
- package/d3-chart/lib/cjs/StackBar.js.map +1 -1
- package/d3-chart/lib/cjs/StackedArea.js +4 -1
- package/d3-chart/lib/cjs/StackedArea.js.map +1 -1
- package/d3-chart/lib/cjs/Tooltip.js +21 -11
- package/d3-chart/lib/cjs/Tooltip.js.map +1 -1
- package/d3-chart/lib/cjs/Venn.js +28 -12
- package/d3-chart/lib/cjs/Venn.js.map +1 -1
- 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 +7 -3
- 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/BaseLegend.js +4 -2
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.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 +80 -53
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +17 -3
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/index.js +19 -0
- package/d3-chart/lib/cjs/index.js.map +1 -1
- package/d3-chart/lib/cjs/style/area.shadow.css +6 -1
- package/d3-chart/lib/cjs/style/bar.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/bubble.shadow.css +8 -1
- package/d3-chart/lib/cjs/style/donut.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/dot.shadow.css +2 -2
- package/d3-chart/lib/cjs/style/radar.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/radial-tree.shadow.css +5 -0
- package/d3-chart/lib/cjs/style/scatterplot.shadow.css +8 -1
- package/d3-chart/lib/cjs/style/tooltip.shadow.css +6 -6
- package/d3-chart/lib/cjs/style/venn.shadow.css +11 -0
- package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/index.d.js +12 -0
- package/d3-chart/lib/cjs/types/index.d.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +25 -13
- package/d3-chart/lib/es6/Area.js.map +1 -1
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +23 -12
- package/d3-chart/lib/es6/Bar.js.map +1 -1
- package/d3-chart/lib/es6/Bubble.js +25 -13
- package/d3-chart/lib/es6/Bubble.js.map +1 -1
- package/d3-chart/lib/es6/Donut.js +28 -12
- package/d3-chart/lib/es6/Donut.js.map +1 -1
- package/d3-chart/lib/es6/Dots.js +56 -29
- package/d3-chart/lib/es6/Dots.js.map +1 -1
- package/d3-chart/lib/es6/GroupBar.js +4 -2
- package/d3-chart/lib/es6/GroupBar.js.map +1 -1
- package/d3-chart/lib/es6/HorizontalBar.js +23 -12
- package/d3-chart/lib/es6/HorizontalBar.js.map +1 -1
- package/d3-chart/lib/es6/Hover.js +9 -6
- package/d3-chart/lib/es6/Hover.js.map +1 -1
- package/d3-chart/lib/es6/Line.js +24 -16
- package/d3-chart/lib/es6/Line.js.map +1 -1
- package/d3-chart/lib/es6/Pattern.js +534 -0
- package/d3-chart/lib/es6/Pattern.js.map +1 -0
- 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 +126 -83
- package/d3-chart/lib/es6/Radar.js.map +1 -1
- package/d3-chart/lib/es6/RadialTree.js +127 -101
- package/d3-chart/lib/es6/RadialTree.js.map +1 -1
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +22 -10
- package/d3-chart/lib/es6/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/es6/StackBar.js +8 -4
- package/d3-chart/lib/es6/StackBar.js.map +1 -1
- package/d3-chart/lib/es6/StackedArea.js +4 -1
- package/d3-chart/lib/es6/StackedArea.js.map +1 -1
- package/d3-chart/lib/es6/Tooltip.js +22 -11
- package/d3-chart/lib/es6/Tooltip.js.map +1 -1
- package/d3-chart/lib/es6/Venn.js +28 -12
- package/d3-chart/lib/es6/Venn.js.map +1 -1
- 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 +7 -3
- 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/BaseLegend.js +4 -2
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.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 +80 -53
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +17 -3
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/index.js +1 -0
- package/d3-chart/lib/es6/index.js.map +1 -1
- package/d3-chart/lib/es6/style/area.shadow.css +6 -1
- package/d3-chart/lib/es6/style/bar.shadow.css +7 -1
- package/d3-chart/lib/es6/style/bubble.shadow.css +8 -1
- package/d3-chart/lib/es6/style/donut.shadow.css +7 -1
- package/d3-chart/lib/es6/style/dot.shadow.css +2 -2
- package/d3-chart/lib/es6/style/radar.shadow.css +7 -1
- package/d3-chart/lib/es6/style/radial-tree.shadow.css +5 -0
- package/d3-chart/lib/es6/style/scatterplot.shadow.css +8 -1
- package/d3-chart/lib/es6/style/tooltip.shadow.css +6 -6
- package/d3-chart/lib/es6/style/venn.shadow.css +11 -0
- package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/es6/types/index.d.js +3 -0
- package/d3-chart/lib/es6/types/index.d.js.map +1 -1
- package/d3-chart/lib/types/Pattern.d.ts +336 -0
- package/d3-chart/lib/types/Plot.d.ts +4 -0
- package/d3-chart/lib/types/RadialTree.d.ts +7 -2
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +3 -0
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.type.d.ts +3 -0
- package/d3-chart/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +7 -1
- package/d3-chart/lib/types/index.d.ts +3 -0
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +8 -4
- package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/RangePickerAbstract.js +8 -4
- package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/drag-and-drop/index.d.ts +13 -2
- package/drag-and-drop/lib/cjs/DragAndDrop.js +96 -44
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/index.d.js.map +1 -1
- package/drag-and-drop/lib/cjs/translations/de.json +5 -0
- package/drag-and-drop/lib/cjs/translations/en.json +5 -0
- package/drag-and-drop/lib/cjs/translations/es.json +5 -0
- package/drag-and-drop/lib/cjs/translations/fr.json +5 -0
- package/drag-and-drop/lib/cjs/translations/it.json +5 -0
- package/drag-and-drop/lib/cjs/translations/ja.json +5 -0
- package/drag-and-drop/lib/cjs/translations/ko.json +5 -0
- package/drag-and-drop/lib/cjs/translations/nl.json +5 -0
- package/drag-and-drop/lib/cjs/translations/pl.json +5 -0
- package/drag-and-drop/lib/cjs/translations/pt.json +5 -0
- package/drag-and-drop/lib/cjs/translations/sv.json +5 -0
- package/drag-and-drop/lib/cjs/translations/tr.json +5 -0
- package/drag-and-drop/lib/cjs/translations/vi.json +5 -0
- package/drag-and-drop/lib/cjs/translations/zh.json +5 -0
- package/drag-and-drop/lib/es6/DragAndDrop.js +96 -44
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/index.d.js.map +1 -1
- package/drag-and-drop/lib/es6/translations/de.json +5 -0
- package/drag-and-drop/lib/es6/translations/en.json +5 -0
- package/drag-and-drop/lib/es6/translations/es.json +5 -0
- package/drag-and-drop/lib/es6/translations/fr.json +5 -0
- package/drag-and-drop/lib/es6/translations/it.json +5 -0
- package/drag-and-drop/lib/es6/translations/ja.json +5 -0
- package/drag-and-drop/lib/es6/translations/ko.json +5 -0
- package/drag-and-drop/lib/es6/translations/nl.json +5 -0
- package/drag-and-drop/lib/es6/translations/pl.json +5 -0
- package/drag-and-drop/lib/es6/translations/pt.json +5 -0
- package/drag-and-drop/lib/es6/translations/sv.json +5 -0
- package/drag-and-drop/lib/es6/translations/tr.json +5 -0
- package/drag-and-drop/lib/es6/translations/vi.json +5 -0
- package/drag-and-drop/lib/es6/translations/zh.json +5 -0
- package/drag-and-drop/lib/types/index.d.ts +13 -2
- package/package.json +3 -3
- package/pills/lib/cjs/Pills.js +44 -57
- package/pills/lib/cjs/Pills.js.map +1 -1
- package/pills/lib/cjs/style/pills.shadow.css +3 -9
- package/pills/lib/es6/Pills.js +44 -57
- package/pills/lib/es6/Pills.js.map +1 -1
- package/pills/lib/es6/style/pills.shadow.css +3 -9
- package/utils/lib/enhances/a11yEnhance.d.ts +9 -3
- package/utils/lib/enhances/a11yEnhance.js +11 -11
- package/utils/lib/enhances/a11yEnhance.js.map +1 -1
- package/utils/lib/enhances/a11yEnhance.mjs +11 -11
- package/utils/lib/enhances/a11yEnhance.mjs.map +1 -1
- package/utils/lib/themes/auto.css +3 -3
- package/utils/lib/themes/dark.css +2 -2
- package/utils/lib/themes/dark.json +1 -1
- package/utils/lib/themes/default.css +1 -1
- package/utils/lib/themes/light.css +1 -1
@@ -6,6 +6,7 @@ SScatterPlot {
|
|
6
6
|
transition-duration: var(--duration);
|
7
7
|
transition-timing-function: ease-in-out;
|
8
8
|
opacity: 0.5;
|
9
|
+
|
9
10
|
&:hover {
|
10
11
|
opacity: 0.8;
|
11
12
|
}
|
@@ -15,6 +16,12 @@ SScatterPlot[color] {
|
|
15
16
|
fill: var(--color);
|
16
17
|
}
|
17
18
|
|
19
|
+
SScatterPlot[pattern][color] {
|
20
|
+
fill: var(--pattern);
|
21
|
+
stroke: var(--color);
|
22
|
+
stroke-width: 1px;
|
23
|
+
}
|
24
|
+
|
18
25
|
SScatterPlot[transparent] {
|
19
26
|
opacity: 0.3;
|
20
27
|
}
|
@@ -31,4 +38,4 @@ SValue[color] {
|
|
31
38
|
|
32
39
|
SValue[transparent] {
|
33
40
|
opacity: 0.3;
|
34
|
-
}
|
41
|
+
}
|
@@ -23,17 +23,17 @@ SDotGroup {
|
|
23
23
|
}
|
24
24
|
|
25
25
|
SDot {
|
26
|
-
width: 8px;
|
27
|
-
height: 8px;
|
28
|
-
border-radius: 50%;
|
29
26
|
margin-right: var(--intergalactic-spacing-2x, 8px);
|
30
|
-
background: var(--intergalactic-icon-secondary-info, #2bb3ff);
|
31
27
|
}
|
32
28
|
|
33
|
-
|
34
|
-
background: var(--color);
|
29
|
+
SDotCircle[color] {
|
30
|
+
background-color: var(--color);
|
31
|
+
width: 12px;
|
32
|
+
height: 12px;
|
33
|
+
border-radius: 50%;
|
35
34
|
}
|
36
35
|
|
36
|
+
|
37
37
|
SFooter {
|
38
38
|
background: var(--intergalactic-bg-secondary-neutral, #f4f5f9);
|
39
39
|
padding: var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);
|
@@ -18,6 +18,17 @@ SCircle[color] {
|
|
18
18
|
fill: var(--color);
|
19
19
|
}
|
20
20
|
|
21
|
+
SCircle[pattern][color] {
|
22
|
+
fill: var(--pattern);
|
23
|
+
fill-opacity: 0.7;
|
24
|
+
stroke: var(--color);
|
25
|
+
stroke-width: 1px;
|
26
|
+
|
27
|
+
&:hover {
|
28
|
+
fill-opacity: 0.85;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
21
32
|
SCircle[transparent] {
|
22
33
|
opacity: 0.3;
|
23
34
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Context } from './context';\nimport { DataStructureHints } from './a11y/hints';\n\n/** @deprecated */\nexport interface IPlotProps extends PlotProps, UnknownProperties {}\nexport type PlotProps = Context &\n BoxProps & {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Optional container for data hints (use it if you have a legend component upper in tree)\n */\n dataHints?: DataStructureHints;\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /** @deprecated */\n eventEmitter?: unknown;\n };\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n /** Additional field for extra text description to the data\n * **/\n additionalFields?: string[];\n};\n\n/** @deprecated */\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\nexport type IntergalacticD3Component<BaseTag extends Intergalactic.Tag, Props, Context = {}> = (<\n Tag extends Intergalactic.Tag = BaseTag,\n>(\n props: Intergalactic.InternalTypings.PropsRenderingResultComponentProps<Tag, Props, Context>,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<BaseTag, BaseTag, Props>;\n\ndeclare const Plot: IntergalacticD3Component<'svg', PlotProps, Context>;\nexport default Plot;\n"],"mappings":""}
|
1
|
+
{"version":3,"file":"Plot.d.js","names":[],"sources":["../../../src/types/Plot.d.ts"],"sourcesContent":["import { BoxProps } from '@semcore/flex-box';\nimport { UnknownProperties, Intergalactic } from '@semcore/core';\nimport { Context } from './context';\nimport { DataStructureHints } from './a11y/hints';\nimport { PatternsConfig } from '../Pattern';\n\n/** @deprecated */\nexport interface IPlotProps extends PlotProps, UnknownProperties {}\nexport type PlotProps = Context &\n BoxProps & {\n /** Width of the svg element\n * @default 0*/\n width?: number;\n /** Height of the svg element\n * @default 0*/\n height?: number;\n /** Human readable chart name (e.g \"Last market trends\") */\n label?: string;\n /**\n * Locale for displaying the days of a week and months, to be transferred to `Intl`\n * @default en\n * */\n locale?: NavigatorLanguage['language'];\n /**\n * Optional container for data hints (use it if you have a legend component upper in tree)\n */\n dataHints?: DataStructureHints;\n /** Optional prop to tune up alt text generating for charts */\n a11yAltTextConfig?: PlotSummarizerConfig;\n\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n\n /** @deprecated */\n eventEmitter?: unknown;\n };\n\nexport type PlotSummarizerConfig = {\n /** Totally disable automatic data summarization */\n disable?: boolean;\n /** Disable automatic data summarization and use provided text */\n override?: string;\n /** Tuning up time series trends analyzing. Represents angle tangens of time series change of different strength */\n trendTangens?: {\n /** Angle tangens of time series that have meaningful trending change\n * @default 1/15\n */\n static?: number;\n /** Angle tangens of time series that have weak trending change\n * @default 1/10\n */\n weak?: number;\n /** Angle tangens of time series that have medium trending change\n * @default 1/5\n */\n medium?: number;\n /** Angle tangens of time series that have strong trending change\n * @default Infinity\n */\n strong?: number;\n };\n /** Tuning up time series local trends detection based on moving averages */\n movingAverage?: {\n /** Frame size of long moving average\n * @default Math.sqrt(data.length)\n */\n longSize?: number;\n /** Frame size of short moving average\n * @default Math.sqrt(data.length)/2\n */\n shortSize?: number;\n /** Absolute difference between values on moving averages crossing to\n * be handled as local trend change.\n * @default StandardDeviation/10\n */\n notableDiff?: number;\n };\n /** The way data to be interpreted as. By default is based on used used Plot elements and data structure.\n */\n dataType?: 'time-series' | 'points-cloud' | 'values-set';\n /** Grid size to split data of point clouds into clusters.\n */\n clustersGridSize?: number;\n /** Limits some output lists in chart alt text\n * @default 100\n * **/\n maxListSymbols?: number;\n /** Always add time to dates in chart alt text **/\n datesWithTime?: boolean;\n /** Described clusters count before text \"and X more\"\n * @default false\n * **/\n clustersLimit?: number;\n /** Described values count before text \"and X more\"\n * @default false\n * **/\n valuesLimit?: number;\n /** Described grouped value groups count before text \"and X more\"\n * @default false\n * **/\n groupsLimit?: number;\n /** Additional field for extra text description to the data\n * **/\n additionalFields?: string[];\n};\n\n/** @deprecated */\nexport type MapProps<Props, Ctx = {}, UCProps = {}> = Props & {\n children?:\n | ((props: Props & Ctx, handlers: UCProps) => Props | React.PropsWithChildren)\n | React.ReactNode;\n};\n\nexport type IntergalacticD3Component<BaseTag extends Intergalactic.Tag, Props, Context = {}> = (<\n Tag extends Intergalactic.Tag = BaseTag,\n>(\n props: Intergalactic.InternalTypings.PropsRenderingResultComponentProps<Tag, Props, Context>,\n) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<BaseTag, BaseTag, Props>;\n\ndeclare const Plot: IntergalacticD3Component<'svg', PlotProps, Context>;\nexport default Plot;\n"],"mappings":""}
|
@@ -60,6 +60,9 @@ export * from './component/ChartLegend/LegendFlex/LegendFlex.type';
|
|
60
60
|
export * from './component/ChartLegend/LegendTable/LegendTable.type';
|
61
61
|
// @ts-ignore
|
62
62
|
export * from './component/ChartLegend/LegendItem/LegendItem.type';
|
63
|
+
|
64
|
+
// @ts-ignore
|
65
|
+
export * from './Pattern';
|
63
66
|
export { default as Chart } from './component/Chart';
|
64
67
|
export * from './component/Chart/AbstractChart.type';
|
65
68
|
export * from './component/Chart/LineChart.type';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.js","names":["makeDataHintsContainer","default","Plot","ResponsiveContainer","Line","Bar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","Radar","Donut","Tooltip","ScatterPlot","Bubble","ReferenceLine","Venn","RadialTree","ChartLegend","ChartLegendTable","Chart"],"sources":["../../../src/types/index.d.ts"],"sourcesContent":["// Utils\nexport declare function minMax(data: any, key: string | number): any;\nexport declare const interpolateValue: Symbol;\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\n// Color\n/**\n * @deprecated\n * This export will be removed in the next major release.\n */\nexport declare const colors: { [key: string]: string };\n\nexport { default as Plot } from './Plot';\nexport * from './Plot';\n\nexport * from './Axis';\nexport * from './Hover';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport * from './ResponsiveContainer';\n\nexport { default as Line } from './Line';\nexport * from './Line';\n\nexport { default as Bar } from './Bar';\nexport * from './Bar';\n\nexport { default as HorizontalBar } from './HorizontalBar';\nexport * from './HorizontalBar';\n\nexport { default as GroupBar } from './GroupBar';\nexport * from './GroupBar';\n\nexport { default as StackBar } from './StackBar';\nexport * from './StackBar';\n\nexport { default as Area } from './Area';\nexport * from './Area';\n\nexport { default as StackedArea } from './StackedArea';\nexport * from './StackedArea';\n\nexport { default as Radar } from './Radar';\nexport * from './Radar';\n\nexport { default as Donut } from './Donut';\nexport * from './Donut';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as ScatterPlot } from './ScatterPlot';\nexport * from './ScatterPlot';\n\nexport { default as Bubble } from './Bubble';\nexport * from './Bubble';\n\nexport { default as ReferenceLine } from './ReferenceLine';\nexport * from './ReferenceLine';\n\nexport { default as Venn } from './Venn';\nexport * from './Venn';\n\n/** It becomes resolvable after building and moving file to lib dir */\n\n// @ts-ignore\nexport { default as RadialTree } from './RadialTree';\n\n// @ts-ignore\nexport * from './RadialTree';\n\n// @ts-ignore\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\n\n// @ts-ignore\nexport * from './component/ChartLegend/LegendFlex/LegendFlex.type';\n// @ts-ignore\nexport * from './component/ChartLegend/LegendTable/LegendTable.type';\n// @ts-ignore\nexport * from './component/ChartLegend/LegendItem/LegendItem.type';\n\nexport { default as Chart } from './component/Chart';\nexport * from './component/Chart/AbstractChart.type';\nexport * from './component/Chart/LineChart.type';\nexport * from './component/Chart/BarChart.type';\nexport * from './component/Chart/HistogramChart.type';\nexport * from './component/Chart/ScatterPlotChart.type';\nexport * from './component/Chart/AreaChart.type';\nexport * from './component/Chart/BubbleChart.type';\nexport * from './component/Chart/DonutChart.type';\nexport * from './component/Chart/VennChart.type';\nexport * from './component/Chart/RadarChart.type';\nexport * from './component/Chart/ScatterPlotChart.type';\n"],"mappings":"AAAA;;AAIA,SAASA,sBAAsB,QAAQ,cAAc;;AAErD;AACA;AACA;AACA;AACA;;AAGA,SAASC,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;AAEtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AAEvB,SAASD,OAAO,IAAIE,mBAAmB,QAAQ,uBAAuB;AACtE,cAAc,uBAAuB;AAErC,SAASF,OAAO,IAAIG,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;AAEtB,SAASH,OAAO,IAAII,GAAG,QAAQ,OAAO;AACtC,cAAc,OAAO;AAErB,SAASJ,OAAO,IAAIK,aAAa,QAAQ,iBAAiB;AAC1D,cAAc,iBAAiB;AAE/B,SAASL,OAAO,IAAIM,QAAQ,QAAQ,YAAY;AAChD,cAAc,YAAY;AAE1B,SAASN,OAAO,IAAIO,QAAQ,QAAQ,YAAY;AAChD,cAAc,YAAY;AAE1B,SAASP,OAAO,IAAIQ,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;AAEtB,SAASR,OAAO,IAAIS,WAAW,QAAQ,eAAe;AACtD,cAAc,eAAe;AAE7B,SAAST,OAAO,IAAIU,KAAK,QAAQ,SAAS;AAC1C,cAAc,SAAS;AAEvB,SAASV,OAAO,IAAIW,KAAK,QAAQ,SAAS;AAC1C,cAAc,SAAS;AAEvB,SAASX,OAAO,IAAIY,OAAO,QAAQ,WAAW;AAC9C,cAAc,WAAW;AAEzB,SAASZ,OAAO,IAAIa,WAAW,QAAQ,eAAe;AACtD,cAAc,eAAe;AAE7B,SAASb,OAAO,IAAIc,MAAM,QAAQ,UAAU;AAC5C,cAAc,UAAU;AAExB,SAASd,OAAO,IAAIe,aAAa,QAAQ,iBAAiB;AAC1D,cAAc,iBAAiB;AAE/B,SAASf,OAAO,IAAIgB,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;;AAEtB;;AAEA;AACA,SAAShB,OAAO,IAAIiB,UAAU,QAAQ,cAAc;;AAEpD;AACA,cAAc,cAAc;;AAE5B;AACA,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,yBAAyB;;AAEvE;AACA,cAAc,oDAAoD;AAClE;AACA,cAAc,sDAAsD;AACpE;AACA,cAAc,oDAAoD;
|
1
|
+
{"version":3,"file":"index.d.js","names":["makeDataHintsContainer","default","Plot","ResponsiveContainer","Line","Bar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","Radar","Donut","Tooltip","ScatterPlot","Bubble","ReferenceLine","Venn","RadialTree","ChartLegend","ChartLegendTable","Chart"],"sources":["../../../src/types/index.d.ts"],"sourcesContent":["// Utils\nexport declare function minMax(data: any, key: string | number): any;\nexport declare const interpolateValue: Symbol;\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\n// Color\n/**\n * @deprecated\n * This export will be removed in the next major release.\n */\nexport declare const colors: { [key: string]: string };\n\nexport { default as Plot } from './Plot';\nexport * from './Plot';\n\nexport * from './Axis';\nexport * from './Hover';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport * from './ResponsiveContainer';\n\nexport { default as Line } from './Line';\nexport * from './Line';\n\nexport { default as Bar } from './Bar';\nexport * from './Bar';\n\nexport { default as HorizontalBar } from './HorizontalBar';\nexport * from './HorizontalBar';\n\nexport { default as GroupBar } from './GroupBar';\nexport * from './GroupBar';\n\nexport { default as StackBar } from './StackBar';\nexport * from './StackBar';\n\nexport { default as Area } from './Area';\nexport * from './Area';\n\nexport { default as StackedArea } from './StackedArea';\nexport * from './StackedArea';\n\nexport { default as Radar } from './Radar';\nexport * from './Radar';\n\nexport { default as Donut } from './Donut';\nexport * from './Donut';\n\nexport { default as Tooltip } from './Tooltip';\nexport * from './Tooltip';\n\nexport { default as ScatterPlot } from './ScatterPlot';\nexport * from './ScatterPlot';\n\nexport { default as Bubble } from './Bubble';\nexport * from './Bubble';\n\nexport { default as ReferenceLine } from './ReferenceLine';\nexport * from './ReferenceLine';\n\nexport { default as Venn } from './Venn';\nexport * from './Venn';\n\n/** It becomes resolvable after building and moving file to lib dir */\n\n// @ts-ignore\nexport { default as RadialTree } from './RadialTree';\n\n// @ts-ignore\nexport * from './RadialTree';\n\n// @ts-ignore\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\n\n// @ts-ignore\nexport * from './component/ChartLegend/LegendFlex/LegendFlex.type';\n// @ts-ignore\nexport * from './component/ChartLegend/LegendTable/LegendTable.type';\n// @ts-ignore\nexport * from './component/ChartLegend/LegendItem/LegendItem.type';\n\n// @ts-ignore\nexport * from './Pattern';\n\nexport { default as Chart } from './component/Chart';\nexport * from './component/Chart/AbstractChart.type';\nexport * from './component/Chart/LineChart.type';\nexport * from './component/Chart/BarChart.type';\nexport * from './component/Chart/HistogramChart.type';\nexport * from './component/Chart/ScatterPlotChart.type';\nexport * from './component/Chart/AreaChart.type';\nexport * from './component/Chart/BubbleChart.type';\nexport * from './component/Chart/DonutChart.type';\nexport * from './component/Chart/VennChart.type';\nexport * from './component/Chart/RadarChart.type';\nexport * from './component/Chart/ScatterPlotChart.type';\n"],"mappings":"AAAA;;AAIA,SAASA,sBAAsB,QAAQ,cAAc;;AAErD;AACA;AACA;AACA;AACA;;AAGA,SAASC,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;AAEtB,cAAc,QAAQ;AACtB,cAAc,SAAS;AAEvB,SAASD,OAAO,IAAIE,mBAAmB,QAAQ,uBAAuB;AACtE,cAAc,uBAAuB;AAErC,SAASF,OAAO,IAAIG,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;AAEtB,SAASH,OAAO,IAAII,GAAG,QAAQ,OAAO;AACtC,cAAc,OAAO;AAErB,SAASJ,OAAO,IAAIK,aAAa,QAAQ,iBAAiB;AAC1D,cAAc,iBAAiB;AAE/B,SAASL,OAAO,IAAIM,QAAQ,QAAQ,YAAY;AAChD,cAAc,YAAY;AAE1B,SAASN,OAAO,IAAIO,QAAQ,QAAQ,YAAY;AAChD,cAAc,YAAY;AAE1B,SAASP,OAAO,IAAIQ,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;AAEtB,SAASR,OAAO,IAAIS,WAAW,QAAQ,eAAe;AACtD,cAAc,eAAe;AAE7B,SAAST,OAAO,IAAIU,KAAK,QAAQ,SAAS;AAC1C,cAAc,SAAS;AAEvB,SAASV,OAAO,IAAIW,KAAK,QAAQ,SAAS;AAC1C,cAAc,SAAS;AAEvB,SAASX,OAAO,IAAIY,OAAO,QAAQ,WAAW;AAC9C,cAAc,WAAW;AAEzB,SAASZ,OAAO,IAAIa,WAAW,QAAQ,eAAe;AACtD,cAAc,eAAe;AAE7B,SAASb,OAAO,IAAIc,MAAM,QAAQ,UAAU;AAC5C,cAAc,UAAU;AAExB,SAASd,OAAO,IAAIe,aAAa,QAAQ,iBAAiB;AAC1D,cAAc,iBAAiB;AAE/B,SAASf,OAAO,IAAIgB,IAAI,QAAQ,QAAQ;AACxC,cAAc,QAAQ;;AAEtB;;AAEA;AACA,SAAShB,OAAO,IAAIiB,UAAU,QAAQ,cAAc;;AAEpD;AACA,cAAc,cAAc;;AAE5B;AACA,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,yBAAyB;;AAEvE;AACA,cAAc,oDAAoD;AAClE;AACA,cAAc,sDAAsD;AACpE;AACA,cAAc,oDAAoD;;AAElE;AACA,cAAc,WAAW;AAEzB,SAASnB,OAAO,IAAIoB,KAAK,QAAQ,mBAAmB;AACpD,cAAc,sCAAsC;AACpD,cAAc,kCAAkC;AAChD,cAAc,iCAAiC;AAC/C,cAAc,uCAAuC;AACrD,cAAc,yCAAyC;AACvD,cAAc,kCAAkC;AAChD,cAAc,oCAAoC;AAClD,cAAc,mCAAmC;AACjD,cAAc,kCAAkC;AAChD,cAAc,mCAAmC;AACjD,cAAc,yCAAyC"}
|
@@ -0,0 +1,336 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
/**
|
3
|
+
* Object that is fully describes the pattern
|
4
|
+
*/
|
5
|
+
export type Pattern = {
|
6
|
+
/**
|
7
|
+
* SVG jsx element and svg viewbox of the SVG pattern
|
8
|
+
* used to fill chart elements such bars or areas
|
9
|
+
*/
|
10
|
+
fill: {
|
11
|
+
viewBox: string;
|
12
|
+
children: React.ReactNode;
|
13
|
+
};
|
14
|
+
/**
|
15
|
+
* SVG jsx element, viewbox and render size of the single
|
16
|
+
* pattern image used on line dots or caps
|
17
|
+
*/
|
18
|
+
symbol: {
|
19
|
+
viewBox: string;
|
20
|
+
size: [width: number, height: number];
|
21
|
+
children: React.ReactNode;
|
22
|
+
};
|
23
|
+
/**
|
24
|
+
* SVG stroke-dasharray property that defines line chart
|
25
|
+
* lines dash pattern
|
26
|
+
*/
|
27
|
+
dasharray?: string;
|
28
|
+
};
|
29
|
+
declare const defaultPatterns: {
|
30
|
+
starSmall: {
|
31
|
+
fill: {
|
32
|
+
viewBox: string;
|
33
|
+
children: JSX.Element;
|
34
|
+
};
|
35
|
+
symbol: {
|
36
|
+
viewBox: string;
|
37
|
+
size: [number, number];
|
38
|
+
children: JSX.Element;
|
39
|
+
};
|
40
|
+
dasharray: string;
|
41
|
+
};
|
42
|
+
romb: {
|
43
|
+
fill: {
|
44
|
+
viewBox: string;
|
45
|
+
children: JSX.Element;
|
46
|
+
};
|
47
|
+
symbol: {
|
48
|
+
viewBox: string;
|
49
|
+
size: [number, number];
|
50
|
+
children: JSX.Element;
|
51
|
+
};
|
52
|
+
dasharray: string;
|
53
|
+
};
|
54
|
+
circleOutline: {
|
55
|
+
fill: {
|
56
|
+
viewBox: string;
|
57
|
+
children: JSX.Element;
|
58
|
+
};
|
59
|
+
symbol: {
|
60
|
+
viewBox: string;
|
61
|
+
size: [number, number];
|
62
|
+
children: JSX.Element;
|
63
|
+
};
|
64
|
+
dasharray: string;
|
65
|
+
};
|
66
|
+
triangleDown: {
|
67
|
+
fill: {
|
68
|
+
viewBox: string;
|
69
|
+
children: JSX.Element;
|
70
|
+
};
|
71
|
+
symbol: {
|
72
|
+
viewBox: string;
|
73
|
+
size: [number, number];
|
74
|
+
children: JSX.Element;
|
75
|
+
};
|
76
|
+
dasharray: string;
|
77
|
+
};
|
78
|
+
rombOutline: {
|
79
|
+
fill: {
|
80
|
+
viewBox: string;
|
81
|
+
children: JSX.Element;
|
82
|
+
};
|
83
|
+
symbol: {
|
84
|
+
viewBox: string;
|
85
|
+
size: [number, number];
|
86
|
+
children: JSX.Element;
|
87
|
+
};
|
88
|
+
dasharray: string;
|
89
|
+
};
|
90
|
+
square: {
|
91
|
+
fill: {
|
92
|
+
viewBox: string;
|
93
|
+
children: JSX.Element;
|
94
|
+
};
|
95
|
+
symbol: {
|
96
|
+
viewBox: string;
|
97
|
+
size: [number, number];
|
98
|
+
children: JSX.Element;
|
99
|
+
};
|
100
|
+
dasharray: string;
|
101
|
+
};
|
102
|
+
trees: {
|
103
|
+
fill: {
|
104
|
+
viewBox: string;
|
105
|
+
children: JSX.Element;
|
106
|
+
};
|
107
|
+
symbol: {
|
108
|
+
viewBox: string;
|
109
|
+
size: [number, number];
|
110
|
+
children: JSX.Element;
|
111
|
+
};
|
112
|
+
dasharray: string;
|
113
|
+
};
|
114
|
+
wave: {
|
115
|
+
fill: {
|
116
|
+
viewBox: string;
|
117
|
+
children: JSX.Element;
|
118
|
+
};
|
119
|
+
symbol: {
|
120
|
+
viewBox: string;
|
121
|
+
size: [number, number];
|
122
|
+
children: JSX.Element;
|
123
|
+
};
|
124
|
+
dasharray: string;
|
125
|
+
};
|
126
|
+
star: {
|
127
|
+
fill: {
|
128
|
+
viewBox: string;
|
129
|
+
children: JSX.Element;
|
130
|
+
};
|
131
|
+
symbol: {
|
132
|
+
viewBox: string;
|
133
|
+
size: [number, number];
|
134
|
+
children: JSX.Element;
|
135
|
+
};
|
136
|
+
dasharray: string;
|
137
|
+
};
|
138
|
+
cogwheel: {
|
139
|
+
fill: {
|
140
|
+
viewBox: string;
|
141
|
+
children: JSX.Element;
|
142
|
+
};
|
143
|
+
symbol: {
|
144
|
+
viewBox: string;
|
145
|
+
size: [number, number];
|
146
|
+
children: JSX.Element;
|
147
|
+
};
|
148
|
+
dasharray: string;
|
149
|
+
};
|
150
|
+
crossesDiagonal: {
|
151
|
+
fill: {
|
152
|
+
viewBox: string;
|
153
|
+
children: JSX.Element;
|
154
|
+
};
|
155
|
+
symbol: {
|
156
|
+
viewBox: string;
|
157
|
+
size: [number, number];
|
158
|
+
children: JSX.Element;
|
159
|
+
};
|
160
|
+
dasharray: string;
|
161
|
+
};
|
162
|
+
triangleOutline: {
|
163
|
+
fill: {
|
164
|
+
viewBox: string;
|
165
|
+
children: JSX.Element;
|
166
|
+
};
|
167
|
+
symbol: {
|
168
|
+
viewBox: string;
|
169
|
+
size: [number, number];
|
170
|
+
children: JSX.Element;
|
171
|
+
};
|
172
|
+
dasharray: string;
|
173
|
+
};
|
174
|
+
chain: {
|
175
|
+
fill: {
|
176
|
+
viewBox: string;
|
177
|
+
children: JSX.Element;
|
178
|
+
};
|
179
|
+
symbol: {
|
180
|
+
viewBox: string;
|
181
|
+
size: [number, number];
|
182
|
+
children: JSX.Element;
|
183
|
+
};
|
184
|
+
dasharray: string;
|
185
|
+
};
|
186
|
+
squama: {
|
187
|
+
fill: {
|
188
|
+
viewBox: string;
|
189
|
+
children: JSX.Element;
|
190
|
+
};
|
191
|
+
symbol: {
|
192
|
+
viewBox: string;
|
193
|
+
size: [number, number];
|
194
|
+
children: JSX.Element;
|
195
|
+
};
|
196
|
+
dasharray: string;
|
197
|
+
};
|
198
|
+
linesDouble: {
|
199
|
+
fill: {
|
200
|
+
viewBox: string;
|
201
|
+
children: JSX.Element;
|
202
|
+
};
|
203
|
+
symbol: {
|
204
|
+
viewBox: string;
|
205
|
+
size: [number, number];
|
206
|
+
children: JSX.Element;
|
207
|
+
};
|
208
|
+
dasharray: string;
|
209
|
+
};
|
210
|
+
zigzagVertical: {
|
211
|
+
fill: {
|
212
|
+
viewBox: string;
|
213
|
+
children: JSX.Element;
|
214
|
+
};
|
215
|
+
symbol: {
|
216
|
+
viewBox: string;
|
217
|
+
size: [number, number];
|
218
|
+
children: JSX.Element;
|
219
|
+
};
|
220
|
+
dasharray: string;
|
221
|
+
};
|
222
|
+
triangleDownOutline: {
|
223
|
+
fill: {
|
224
|
+
viewBox: string;
|
225
|
+
children: JSX.Element;
|
226
|
+
};
|
227
|
+
symbol: {
|
228
|
+
viewBox: string;
|
229
|
+
size: [number, number];
|
230
|
+
children: JSX.Element;
|
231
|
+
};
|
232
|
+
dasharray: string;
|
233
|
+
};
|
234
|
+
crosses: {
|
235
|
+
fill: {
|
236
|
+
viewBox: string;
|
237
|
+
children: JSX.Element;
|
238
|
+
};
|
239
|
+
symbol: {
|
240
|
+
viewBox: string;
|
241
|
+
size: [number, number];
|
242
|
+
children: JSX.Element;
|
243
|
+
};
|
244
|
+
dasharray: string;
|
245
|
+
};
|
246
|
+
linesDoubleHorizontal: {
|
247
|
+
fill: {
|
248
|
+
viewBox: string;
|
249
|
+
children: JSX.Element;
|
250
|
+
};
|
251
|
+
symbol: {
|
252
|
+
viewBox: string;
|
253
|
+
size: [number, number];
|
254
|
+
children: JSX.Element;
|
255
|
+
};
|
256
|
+
dasharray: string;
|
257
|
+
};
|
258
|
+
waveVertical: {
|
259
|
+
fill: {
|
260
|
+
viewBox: string;
|
261
|
+
children: JSX.Element;
|
262
|
+
};
|
263
|
+
symbol: {
|
264
|
+
viewBox: string;
|
265
|
+
size: [number, number];
|
266
|
+
children: JSX.Element;
|
267
|
+
};
|
268
|
+
dasharray: string;
|
269
|
+
};
|
270
|
+
squareOutline: {
|
271
|
+
fill: {
|
272
|
+
viewBox: string;
|
273
|
+
children: JSX.Element;
|
274
|
+
};
|
275
|
+
symbol: {
|
276
|
+
viewBox: string;
|
277
|
+
size: [number, number];
|
278
|
+
children: JSX.Element;
|
279
|
+
};
|
280
|
+
dasharray: string;
|
281
|
+
};
|
282
|
+
triangle: {
|
283
|
+
fill: {
|
284
|
+
viewBox: string;
|
285
|
+
children: JSX.Element;
|
286
|
+
};
|
287
|
+
symbol: {
|
288
|
+
viewBox: string;
|
289
|
+
size: [number, number];
|
290
|
+
children: JSX.Element;
|
291
|
+
};
|
292
|
+
dasharray: string;
|
293
|
+
};
|
294
|
+
crescent: {
|
295
|
+
fill: {
|
296
|
+
viewBox: string;
|
297
|
+
children: JSX.Element;
|
298
|
+
};
|
299
|
+
symbol: {
|
300
|
+
viewBox: string;
|
301
|
+
size: [number, number];
|
302
|
+
children: JSX.Element;
|
303
|
+
};
|
304
|
+
dasharray: string;
|
305
|
+
};
|
306
|
+
zigzag: {
|
307
|
+
fill: {
|
308
|
+
viewBox: string;
|
309
|
+
children: JSX.Element;
|
310
|
+
};
|
311
|
+
symbol: {
|
312
|
+
viewBox: string;
|
313
|
+
size: [number, number];
|
314
|
+
children: JSX.Element;
|
315
|
+
};
|
316
|
+
dasharray: string;
|
317
|
+
};
|
318
|
+
};
|
319
|
+
export type PatternsConfig = true | keyof typeof defaultPatterns | Pattern | Pattern[];
|
320
|
+
export declare const PatternFill: ({ id, color, patternKey, patterns, }: {
|
321
|
+
id: string;
|
322
|
+
color: string;
|
323
|
+
patternKey: string;
|
324
|
+
patterns?: PatternsConfig | undefined;
|
325
|
+
}) => JSX.Element;
|
326
|
+
export declare const getPatternSymbolSize: ({ patternKey, patterns, }: {
|
327
|
+
patternKey: string;
|
328
|
+
patterns?: PatternsConfig | undefined;
|
329
|
+
}) => [width: number, height: number];
|
330
|
+
export declare const PatternSymbol: React.FC<{
|
331
|
+
color: string;
|
332
|
+
patternKey: string;
|
333
|
+
patterns?: PatternsConfig;
|
334
|
+
} & React.ComponentProps<'svg'>>;
|
335
|
+
export declare const resolvePatternDasharray: (patternKey: string, patterns: PatternsConfig) => string | undefined;
|
336
|
+
export {};
|
@@ -2,6 +2,7 @@ import { BoxProps } from 'intergalactic/flex-box';
|
|
2
2
|
import { UnknownProperties, Intergalactic } from 'intergalactic/core';
|
3
3
|
import { Context } from './context';
|
4
4
|
import { DataStructureHints } from './a11y/hints';
|
5
|
+
import { PatternsConfig } from '../Pattern';
|
5
6
|
|
6
7
|
/** @deprecated */
|
7
8
|
export interface IPlotProps extends PlotProps, UnknownProperties {}
|
@@ -27,6 +28,9 @@ export type PlotProps = Context &
|
|
27
28
|
/** Optional prop to tune up alt text generating for charts */
|
28
29
|
a11yAltTextConfig?: PlotSummarizerConfig;
|
29
30
|
|
31
|
+
/** Enables charts patterns that enhances charts accessability */
|
32
|
+
patterns?: PatternsConfig;
|
33
|
+
|
30
34
|
/** @deprecated */
|
31
35
|
eventEmitter?: unknown;
|
32
36
|
};
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { UnknownProperties, Intergalactic } from 'intergalactic/core';
|
3
|
+
import { PatternsConfig } from './Pattern';
|
3
4
|
type RadianData = {
|
4
5
|
/**
|
5
6
|
* Text label on the end of radian.
|
@@ -154,11 +155,15 @@ export type RadialTreeRadianCapProps = {
|
|
154
155
|
transparent?: boolean;
|
155
156
|
['data-radial-animation']?: `${string}-cap-circle`;
|
156
157
|
['data-radian-index']?: number;
|
158
|
+
/** Enables charts patterns that enhances charts accessability */
|
159
|
+
patterns?: PatternsConfig;
|
157
160
|
};
|
158
|
-
type RadialTreeRadianCapAsProps =
|
161
|
+
type RadialTreeRadianCapAsProps = RadialTreeRadianCapProps & {
|
159
162
|
Element: React.FC<{
|
160
|
-
render: string;
|
163
|
+
render: React.FC<any> | string;
|
161
164
|
transparent: boolean;
|
165
|
+
patternKey?: string;
|
166
|
+
pattern?: boolean;
|
162
167
|
} & React.SVGProps<any>>;
|
163
168
|
styles: React.CSSProperties;
|
164
169
|
resolveColor: (color?: string) => string;
|
@@ -4,6 +4,7 @@ import { LegendItemKey } from '../ChartLegend/LegendItem/LegendItem.type';
|
|
4
4
|
import Icon from 'intergalactic/icon';
|
5
5
|
import { BaseChartLegendProps } from '../ChartLegend/BaseLegend.type';
|
6
6
|
import { TrendProps } from '../ChartLegend/LegendFlex/LegendFlex.type';
|
7
|
+
import { PatternsConfig } from '../../Pattern';
|
7
8
|
export type BaseLegendProps = BaseChartLegendProps & {
|
8
9
|
/**
|
9
10
|
* Disable hover (for transition items legend of each not hovered)
|
@@ -47,6 +48,8 @@ export type BaseChartProps<T extends ListData | ObjectData> = FlexProps & {
|
|
47
48
|
* Height of plot
|
48
49
|
*/
|
49
50
|
plotHeight: number;
|
51
|
+
/** Enables charts patterns that enhances charts accessability */
|
52
|
+
patterns?: PatternsConfig;
|
50
53
|
/**
|
51
54
|
* Margin (for Y axis points) from left side of chart container to Y axis
|
52
55
|
*/
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { BoxProps, FlexProps } from 'intergalactic/flex-box';
|
2
2
|
import { LegendItem, LegendItemKey, ShapeType } from './LegendItem/LegendItem.type';
|
3
3
|
import { DataStructureHints } from '../../a11y/hints';
|
4
|
+
import type { PatternsConfig } from '../../Pattern';
|
4
5
|
export type LSize = 'm' | 'l';
|
5
6
|
export type BaseChartLegendProps = FlexProps & {
|
6
7
|
/**
|
@@ -24,4 +25,6 @@ export type LegendProps = BoxProps & BaseChartLegendProps & {
|
|
24
25
|
* Legend items
|
25
26
|
*/
|
26
27
|
items: LegendItem[];
|
28
|
+
/** Enables charts patterns that enhances charts accessability */
|
29
|
+
patterns?: PatternsConfig;
|
27
30
|
};
|
@@ -3,6 +3,7 @@ import { Intergalactic, Root } from 'intergalactic/core';
|
|
3
3
|
import Icon from 'intergalactic/icon';
|
4
4
|
import { Text } from 'intergalactic/typography';
|
5
5
|
import { LSize } from '../BaseLegend.type';
|
6
|
+
import { PatternsConfig } from '../../../Pattern';
|
6
7
|
/**
|
7
8
|
* Key of chart data item
|
8
9
|
*/
|
@@ -36,6 +37,9 @@ export type LegendItem = {
|
|
36
37
|
} | {
|
37
38
|
count: number;
|
38
39
|
};
|
40
|
+
patternKey?: string;
|
41
|
+
/** Enables patterns symbols that enhances charts accessability */
|
42
|
+
patterns?: PatternsConfig;
|
39
43
|
};
|
40
44
|
export type LegendItemProps = LegendItem & {
|
41
45
|
/**
|
@@ -51,12 +55,14 @@ export type LegendItemProps = LegendItem & {
|
|
51
55
|
* !Need to redefine onClick, because we don't have `event` in it.
|
52
56
|
*/
|
53
57
|
onClick: () => void;
|
58
|
+
/** Enables patterns symbols that enhances charts accessability */
|
59
|
+
patterns?: PatternsConfig;
|
54
60
|
};
|
55
61
|
export type ShapeProps = LegendItem & {
|
56
62
|
size: LSize;
|
57
63
|
shape: ShapeType;
|
58
64
|
};
|
59
|
-
export declare const StaticShapes: readonly ["Circle", "Line", "Square"];
|
65
|
+
export declare const StaticShapes: readonly ["Circle", "Line", "Square", "Pattern"];
|
60
66
|
export type ShapeType = 'Checkbox' | typeof StaticShapes[number];
|
61
67
|
export type LegendItemType = Intergalactic.Component<typeof Flex, Partial<LegendItemProps>> & {
|
62
68
|
Shape: Intergalactic.Component<typeof Root, Partial<ShapeProps>>;
|
@@ -80,6 +80,9 @@ export * from './component/ChartLegend/LegendTable/LegendTable.type';
|
|
80
80
|
// @ts-ignore
|
81
81
|
export * from './component/ChartLegend/LegendItem/LegendItem.type';
|
82
82
|
|
83
|
+
// @ts-ignore
|
84
|
+
export * from './Pattern';
|
85
|
+
|
83
86
|
export { default as Chart } from './component/Chart';
|
84
87
|
export * from './component/Chart/AbstractChart.type';
|
85
88
|
export * from './component/Chart/LineChart.type';
|
@@ -257,7 +257,7 @@ var RangePickerAbstract = /*#__PURE__*/function (_Component) {
|
|
257
257
|
mr: 2
|
258
258
|
}, /*#__PURE__*/_react["default"].createElement(Picker.Header, null, /*#__PURE__*/_react["default"].createElement(Picker.Prev, null), /*#__PURE__*/_react["default"].createElement(Picker.Title, null)), /*#__PURE__*/_react["default"].createElement(Picker.Calendar, null)), /*#__PURE__*/_react["default"].createElement(_flexBox.Box, {
|
259
259
|
ml: 2
|
260
|
-
}, /*#__PURE__*/_react["default"].createElement(Picker.Header, null, /*#__PURE__*/_react["default"].createElement(Picker.Title, null), /*#__PURE__*/_react["default"].createElement(Picker.Next, null)), /*#__PURE__*/_react["default"].createElement(Picker.Calendar, null)), periods.length
|
260
|
+
}, /*#__PURE__*/_react["default"].createElement(Picker.Header, null, /*#__PURE__*/_react["default"].createElement(Picker.Title, null), /*#__PURE__*/_react["default"].createElement(Picker.Next, null)), /*#__PURE__*/_react["default"].createElement(Picker.Calendar, null)), periods.length > 0 && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
261
261
|
m: "-16px 16px",
|
262
262
|
orientation: "vertical",
|
263
263
|
h: "auto"
|
@@ -265,9 +265,13 @@ var RangePickerAbstract = /*#__PURE__*/function (_Component) {
|
|
265
265
|
direction: "column"
|
266
266
|
}, /*#__PURE__*/_react["default"].createElement(Picker.Period, null), /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, {
|
267
267
|
mt: "auto"
|
268
|
-
}, buttons)))
|
269
|
-
|
270
|
-
|
268
|
+
}, buttons)))), periods.length === 0 && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
269
|
+
m: "16px -16px",
|
270
|
+
orientation: "horizontal",
|
271
|
+
w: "auto"
|
272
|
+
}), /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, null, /*#__PURE__*/_react["default"].createElement(Picker.Period, null), /*#__PURE__*/_react["default"].createElement(_flexBox.Flex, {
|
273
|
+
mt: "auto"
|
274
|
+
}, buttons))))
|
271
275
|
};
|
272
276
|
}
|
273
277
|
}, {
|