@semcore/d3-chart 3.50.0 → 3.51.0
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 +8 -0
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +12 -12
- package/lib/cjs/CompactHorizontalBar.js +24 -20
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +3 -3
- package/lib/cjs/Line.js +9 -9
- package/lib/cjs/Plot.js +3 -3
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/Reference.js +12 -12
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/StackBar.js +7 -1
- package/lib/cjs/StackBar.js.map +1 -1
- package/lib/cjs/Tooltip.js +9 -9
- package/lib/cjs/Venn.js +17 -13
- package/lib/cjs/Venn.js.map +1 -1
- package/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/lib/cjs/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/cjs/types/Venn.d.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +12 -12
- package/lib/es6/CompactHorizontalBar.js +24 -20
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +3 -3
- package/lib/es6/Line.js +9 -9
- package/lib/es6/Plot.js +3 -3
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/Reference.js +12 -12
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/StackBar.js +7 -1
- package/lib/es6/StackBar.js.map +1 -1
- package/lib/es6/Tooltip.js +9 -9
- package/lib/es6/Venn.js +17 -13
- package/lib/es6/Venn.js.map +1 -1
- package/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/lib/es6/types/CompactHorizontalBar.d.js.map +1 -1
- package/lib/es6/types/Venn.d.js.map +1 -1
- package/lib/types/CompactHorizontalBar.d.ts +17 -12
- package/lib/types/Venn.d.ts +5 -0
- package/package.json +6 -6
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IVennProps extends VennProps, UnknownProperties {}\nexport type VennProps = Context &\n FadeInOutProps & {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n /** Enables charts patterns that enhances charts accessibility */\n patterns?: PatternsConfig;\n };\n\n/** @deprecated */\nexport interface ICircleProps extends CircleProps, UnknownProperties {}\nexport type CircleProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the circle\n * */\n name: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IIntersectionProps extends IntersectionProps, UnknownProperties {}\nexport type IntersectionProps = Context &\n FadeInOutProps & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the intersection\n * */\n name: string;\n /** Enables element transparency */\n transparent?: boolean;\n };\n\ndeclare const Venn: IntergalacticD3Component<'g', VennProps, Context> & {\n Circle: IntergalacticD3Component<'circle', CircleProps, Context>;\n Intersection: IntergalacticD3Component<'path', IntersectionProps, Context>;\n Tooltip: TooltipType<CircleProps>;\n};\n\nexport default Venn;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"Venn.d.js","names":[],"sources":["../../../src/types/Venn.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { TooltipType } from './Tooltip';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IVennProps extends VennProps, UnknownProperties {}\nexport type VennProps = Context &\n FadeInOutProps & {\n /**\n * Rotate sets in the chart\n * @default Math.PI / 2\n */\n orientation?: number;\n /**\n * The function for sorting sets inside the chart\n * @default (circle1, circle2) => circle2.radius - circle1.radius\n */\n orientationOrder?: (c1: number, c2: number) => number;\n /** Enables charts patterns that enhances charts accessibility */\n patterns?: PatternsConfig;\n /**\n * Fallback for minimum value radius\n * @default 6\n * */\n minRadius?: number;\n };\n\n/** @deprecated */\nexport interface ICircleProps extends CircleProps, UnknownProperties {}\nexport type CircleProps = Context & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the circle\n * */\n name: string;\n /** Color circle\n @default #3AB011\n **/\n color?: string;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IIntersectionProps extends IntersectionProps, UnknownProperties {}\nexport type IntersectionProps = Context &\n FadeInOutProps & {\n /**\n * Name of the field in the data\n * */\n dataKey: string;\n /**\n * Human readable name of the intersection\n * */\n name: string;\n /** Enables element transparency */\n transparent?: boolean;\n };\n\ndeclare const Venn: IntergalacticD3Component<'g', VennProps, Context> & {\n Circle: IntergalacticD3Component<'circle', CircleProps, Context>;\n Intersection: IntergalacticD3Component<'path', IntersectionProps, Context>;\n Tooltip: TooltipType<CircleProps>;\n};\n\nexport default Venn;\n"],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { UnknownProperties } from '@semcore/core';
|
|
3
3
|
import { Context } from './context';
|
|
4
|
-
import {
|
|
4
|
+
import { BackgroundProps } from './Bar';
|
|
5
5
|
import { IntergalacticD3Component } from './Plot';
|
|
6
6
|
import { PatternsConfig } from './Pattern';
|
|
7
7
|
import { BoxProps } from '@semcore/flex-box';
|
|
@@ -29,41 +29,49 @@ export type CompactHorizontalBarProps = Context & {
|
|
|
29
29
|
patterns?: PatternsConfig;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
type BarContext = {
|
|
33
|
+
/** Index in `data` array of the current items */
|
|
34
|
+
index: number;
|
|
35
|
+
};
|
|
36
|
+
|
|
32
37
|
export type CompactHorizontalBarHoverProps = BoxProps;
|
|
33
38
|
type Hover = IntergalacticD3Component<'rect', CompactHorizontalBarHoverProps, Context>;
|
|
34
39
|
export type CompactHorizontalBarAnnotationProps = BoxProps;
|
|
35
40
|
type Annotation = IntergalacticD3Component<
|
|
36
41
|
'foreignObject',
|
|
37
42
|
CompactHorizontalBarAnnotationProps,
|
|
38
|
-
Context
|
|
43
|
+
Context & BarContext
|
|
39
44
|
>;
|
|
40
45
|
export type CompactHorizontalBarLabelProps = BoxProps;
|
|
41
|
-
type Label = IntergalacticD3Component<'div', CompactHorizontalBarLabelProps, Context>;
|
|
46
|
+
type Label = IntergalacticD3Component<'div', CompactHorizontalBarLabelProps, Context & BarContext>;
|
|
42
47
|
export type CompactHorizontalBarPercentProps = BoxProps;
|
|
43
|
-
export type CompactHorizontalBarPercentContext = {
|
|
48
|
+
export type CompactHorizontalBarPercentContext = {
|
|
49
|
+
formatted: string;
|
|
50
|
+
percent: number;
|
|
51
|
+
} & BarContext;
|
|
44
52
|
type Percent = IntergalacticD3Component<
|
|
45
53
|
'div',
|
|
46
54
|
CompactHorizontalBarPercentProps,
|
|
47
55
|
Context & CompactHorizontalBarPercentContext
|
|
48
56
|
>;
|
|
49
57
|
export type CompactHorizontalBarValueProps = BoxProps;
|
|
50
|
-
export type CompactHorizontalBarValueContext = { formatted: string; value: number };
|
|
58
|
+
export type CompactHorizontalBarValueContext = { formatted: string; value: number } & BarContext;
|
|
51
59
|
type Value = IntergalacticD3Component<
|
|
52
60
|
'div',
|
|
53
61
|
CompactHorizontalBarValueProps,
|
|
54
62
|
Context & CompactHorizontalBarValueContext
|
|
55
63
|
>;
|
|
56
64
|
export type CompactHorizontalBarBarProps = {};
|
|
57
|
-
type Bar = IntergalacticD3Component<'g', CompactHorizontalBarBarProps, Context>;
|
|
65
|
+
type Bar = IntergalacticD3Component<'g', CompactHorizontalBarBarProps, Context & BarContext>;
|
|
58
66
|
export type CompactHorizontalBarBackgroundProps = BoxProps;
|
|
59
|
-
type Background = IntergalacticD3Component<'rect', BackgroundProps, Context>;
|
|
67
|
+
type Background = IntergalacticD3Component<'rect', BackgroundProps, Context & BarContext>;
|
|
60
68
|
export type CompactHorizontalBarFillProps = BoxProps & {
|
|
61
69
|
patterns?: PatternsConfig;
|
|
62
70
|
color?: string;
|
|
63
71
|
transparent?: boolean;
|
|
64
72
|
hide?: boolean;
|
|
65
73
|
};
|
|
66
|
-
type Fill = IntergalacticD3Component<'rect', CompactHorizontalBarFillProps, Context>;
|
|
74
|
+
type Fill = IntergalacticD3Component<'rect', CompactHorizontalBarFillProps, Context & BarContext>;
|
|
67
75
|
|
|
68
76
|
declare const CompactHorizontalBar: IntergalacticD3Component<
|
|
69
77
|
'g',
|
|
@@ -79,10 +87,7 @@ declare const CompactHorizontalBar: IntergalacticD3Component<
|
|
|
79
87
|
Background: Background;
|
|
80
88
|
Fill: Fill;
|
|
81
89
|
};
|
|
82
|
-
Tooltip: TooltipType<
|
|
83
|
-
/** Index in `data` array of the current items */
|
|
84
|
-
index: number;
|
|
85
|
-
}>;
|
|
90
|
+
Tooltip: TooltipType<BarContext>;
|
|
86
91
|
};
|
|
87
92
|
|
|
88
93
|
export default CompactHorizontalBar;
|
package/lib/types/Venn.d.ts
CHANGED
|
@@ -21,6 +21,11 @@ export type VennProps = Context &
|
|
|
21
21
|
orientationOrder?: (c1: number, c2: number) => number;
|
|
22
22
|
/** Enables charts patterns that enhances charts accessibility */
|
|
23
23
|
patterns?: PatternsConfig;
|
|
24
|
+
/**
|
|
25
|
+
* Fallback for minimum value radius
|
|
26
|
+
* @default 6
|
|
27
|
+
* */
|
|
28
|
+
minRadius?: number;
|
|
24
29
|
};
|
|
25
30
|
|
|
26
31
|
/** @deprecated */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/d3-chart",
|
|
3
3
|
"description": "Semrush D3 Chart Component",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.51.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@formatjs/intl": "2.3.0",
|
|
18
|
-
"@semcore/animation": "2.
|
|
19
|
-
"@semcore/divider": "4.
|
|
20
|
-
"@semcore/flex-box": "5.
|
|
21
|
-
"@semcore/popper": "5.
|
|
22
|
-
"@semcore/utils": "4.
|
|
18
|
+
"@semcore/animation": "2.31.0",
|
|
19
|
+
"@semcore/divider": "4.30.0",
|
|
20
|
+
"@semcore/flex-box": "5.31.0",
|
|
21
|
+
"@semcore/popper": "5.39.0",
|
|
22
|
+
"@semcore/utils": "4.32.0",
|
|
23
23
|
"@types/d3-shape": "^3.1.0",
|
|
24
24
|
"@upsetjs/venn.js": "1.4.2",
|
|
25
25
|
"d3-array": "3.1.6",
|