@semcore/d3-chart 2.0.8 → 2.1.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 +19 -0
- package/lib/cjs/GroupBar.js +6 -6
- package/lib/cjs/StackBar.js +6 -6
- package/lib/cjs/StackedArea.js +7 -7
- package/lib/cjs/types/Tooltip.d.ts +5 -3
- package/lib/es6/GroupBar.js +6 -6
- package/lib/es6/StackBar.js +6 -6
- package/lib/es6/StackedArea.js +7 -7
- package/lib/es6/types/Tooltip.d.ts +5 -3
- package/lib/types/Tooltip.d.ts +5 -3
- package/package.json +1 -1
- package/src/types/Tooltip.d.ts +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [2.1.0] - 2022-06-01
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Changed type names from 'ITooltipProps' to 'ITooltipChartProps' so that there are no intersections with other components.
|
|
10
|
+
- Changed type names from 'ITooltipContext' to 'ITooltipChartContext' so that there are no intersections with other components.
|
|
11
|
+
|
|
12
|
+
## [2.0.10] - 2022-05-31
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Version patch update due to children dependencies update (`@semcore/animation` [1.5.1 ~> 1.5.2], `@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/button` [4.0.4 ~> 4.0.5], `@semcore/checkbox` [6.0.3 ~> 6.0.4]).
|
|
17
|
+
|
|
18
|
+
## [2.0.9] - 2022-05-31
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Version patch update due to children dependencies update (`@semcore/checkbox` [6.0.2 ~> 6.0.3]).
|
|
23
|
+
|
|
5
24
|
## [2.0.8] - 2022-05-27
|
|
6
25
|
|
|
7
26
|
### Changed
|
package/lib/cjs/GroupBar.js
CHANGED
|
@@ -42,15 +42,15 @@ var _ref = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
(0, _core.__css__)(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
".
|
|
45
|
+
".___SBar_jslu5_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_jslu5_gg_.__color_jslu5_gg_{fill:var(--color)}.___SBar_jslu5_gg_.__hide_jslu5_gg_{display:none}.___SBackground_jslu5_gg_{fill:#c4c7cf}"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "1kxmrk2_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SBar": "
|
|
51
|
-
"_color": "
|
|
52
|
-
"_hide": "
|
|
53
|
-
"__SBackground": "
|
|
50
|
+
"__SBar": "___SBar_jslu5_gg_",
|
|
51
|
+
"_color": "__color_jslu5_gg_",
|
|
52
|
+
"_hide": "__hide_jslu5_gg_",
|
|
53
|
+
"__SBackground": "___SBackground_jslu5_gg_"
|
|
54
54
|
}),
|
|
55
55
|
style = (0, _extends2["default"])({}, _ref);
|
|
56
56
|
|
package/lib/cjs/StackBar.js
CHANGED
|
@@ -48,15 +48,15 @@ var _ref = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
(0, _core.__css__)(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SBar_9bsm0_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_9bsm0_gg_.__color_9bsm0_gg_{fill:var(--color)}.___SBar_9bsm0_gg_.__hide_9bsm0_gg_{display:none}.___SBackground_9bsm0_gg_{fill:#c4c7cf}"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "nck8si_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SBar": "
|
|
57
|
-
"_color": "
|
|
58
|
-
"_hide": "
|
|
59
|
-
"__SBackground": "
|
|
56
|
+
"__SBar": "___SBar_9bsm0_gg_",
|
|
57
|
+
"_color": "__color_9bsm0_gg_",
|
|
58
|
+
"_hide": "__hide_9bsm0_gg_",
|
|
59
|
+
"__SBackground": "___SBackground_9bsm0_gg_"
|
|
60
60
|
}),
|
|
61
61
|
style = (0, _extends2["default"])({}, _ref);
|
|
62
62
|
|
package/lib/cjs/StackedArea.js
CHANGED
|
@@ -46,16 +46,16 @@ var _ref = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
(0, _core.__css__)(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
".
|
|
49
|
+
".___SArea_12gv4_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_12gv4_gg_.__color_12gv4_gg_{fill:var(--color)}.___SAreaLine_12gv4_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_12gv4_gg_.__color_12gv4_gg_{stroke:var(--color)}.___SArea_12gv4_gg_,.___SAreaLine_12gv4_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_12gv4_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_12gv4_gg_.__hide_12gv4_gg_{display:none}"
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
, "
|
|
51
|
+
, "1v5rl85_gg_")
|
|
52
52
|
/*__reshadow_css_end__*/
|
|
53
53
|
, {
|
|
54
|
-
"__SArea": "
|
|
55
|
-
"_color": "
|
|
56
|
-
"__SAreaLine": "
|
|
57
|
-
"__SNull": "
|
|
58
|
-
"_hide": "
|
|
54
|
+
"__SArea": "___SArea_12gv4_gg_",
|
|
55
|
+
"_color": "__color_12gv4_gg_",
|
|
56
|
+
"__SAreaLine": "___SAreaLine_12gv4_gg_",
|
|
57
|
+
"__SNull": "___SNull_12gv4_gg_",
|
|
58
|
+
"_hide": "__hide_12gv4_gg_"
|
|
59
59
|
}),
|
|
60
60
|
style = (0, _extends2["default"])({}, _ref);
|
|
61
61
|
|
|
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
|
4
4
|
import { IBoxProps } from '@semcore/flex-box';
|
|
5
5
|
import IContext from './context';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
|
|
8
8
|
/** Field from data for XAxis */
|
|
9
9
|
x?: string;
|
|
10
10
|
/** Field from data for YAxis */
|
|
11
11
|
y?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface
|
|
14
|
+
export interface ITooltipChartContext {
|
|
15
15
|
getTriggerProps: PropGetterFn;
|
|
16
16
|
getPopperProps: PropGetterFn;
|
|
17
17
|
/** Index active value for Axis x */
|
|
@@ -20,7 +20,9 @@ export interface ITooltipContext {
|
|
|
20
20
|
yIndex: number | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare const Tooltip: (<T>(
|
|
23
|
+
declare const Tooltip: (<T>(
|
|
24
|
+
props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
|
|
25
|
+
) => ReturnEl) & {
|
|
24
26
|
Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
|
|
25
27
|
Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
|
|
26
28
|
Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
|
package/lib/es6/GroupBar.js
CHANGED
|
@@ -22,15 +22,15 @@ var _ref = (
|
|
|
22
22
|
/*__reshadow_css_start__*/
|
|
23
23
|
__css__(
|
|
24
24
|
/*__inner_css_start__*/
|
|
25
|
-
".
|
|
25
|
+
".___SBar_jslu5_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_jslu5_gg_.__color_jslu5_gg_{fill:var(--color)}.___SBar_jslu5_gg_.__hide_jslu5_gg_{display:none}.___SBackground_jslu5_gg_{fill:#c4c7cf}"
|
|
26
26
|
/*__inner_css_end__*/
|
|
27
|
-
, "
|
|
27
|
+
, "1kxmrk2_gg_")
|
|
28
28
|
/*__reshadow_css_end__*/
|
|
29
29
|
, {
|
|
30
|
-
"__SBar": "
|
|
31
|
-
"_color": "
|
|
32
|
-
"_hide": "
|
|
33
|
-
"__SBackground": "
|
|
30
|
+
"__SBar": "___SBar_jslu5_gg_",
|
|
31
|
+
"_color": "__color_jslu5_gg_",
|
|
32
|
+
"_hide": "__hide_jslu5_gg_",
|
|
33
|
+
"__SBackground": "___SBackground_jslu5_gg_"
|
|
34
34
|
}),
|
|
35
35
|
style = _extends({}, _ref);
|
|
36
36
|
|
package/lib/es6/StackBar.js
CHANGED
|
@@ -27,15 +27,15 @@ var _ref = (
|
|
|
27
27
|
/*__reshadow_css_start__*/
|
|
28
28
|
__css__(
|
|
29
29
|
/*__inner_css_start__*/
|
|
30
|
-
".
|
|
30
|
+
".___SBar_9bsm0_gg_{fill:#2bb3ff;transition-property:height,width,y;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SBar_9bsm0_gg_.__color_9bsm0_gg_{fill:var(--color)}.___SBar_9bsm0_gg_.__hide_9bsm0_gg_{display:none}.___SBackground_9bsm0_gg_{fill:#c4c7cf}"
|
|
31
31
|
/*__inner_css_end__*/
|
|
32
|
-
, "
|
|
32
|
+
, "nck8si_gg_")
|
|
33
33
|
/*__reshadow_css_end__*/
|
|
34
34
|
, {
|
|
35
|
-
"__SBar": "
|
|
36
|
-
"_color": "
|
|
37
|
-
"_hide": "
|
|
38
|
-
"__SBackground": "
|
|
35
|
+
"__SBar": "___SBar_9bsm0_gg_",
|
|
36
|
+
"_color": "__color_9bsm0_gg_",
|
|
37
|
+
"_hide": "__hide_9bsm0_gg_",
|
|
38
|
+
"__SBackground": "___SBackground_9bsm0_gg_"
|
|
39
39
|
}),
|
|
40
40
|
style = _extends({}, _ref);
|
|
41
41
|
|
package/lib/es6/StackedArea.js
CHANGED
|
@@ -26,16 +26,16 @@ var _ref = (
|
|
|
26
26
|
/*__reshadow_css_start__*/
|
|
27
27
|
__css__(
|
|
28
28
|
/*__inner_css_start__*/
|
|
29
|
-
".
|
|
29
|
+
".___SArea_12gv4_gg_{fill:#2bb3ff;fill-opacity:.2}.___SArea_12gv4_gg_.__color_12gv4_gg_{fill:var(--color)}.___SAreaLine_12gv4_gg_{stroke:#2bb3ff;stroke-width:3;fill:transparent}.___SAreaLine_12gv4_gg_.__color_12gv4_gg_{stroke:var(--color)}.___SArea_12gv4_gg_,.___SAreaLine_12gv4_gg_{transition-property:d;transition-duration:var(--duration);transition-timing-function:ease-in-out}.___SNull_12gv4_gg_{fill:transparent;stroke:#8a8e9b;stroke-dasharray:4}.___SNull_12gv4_gg_.__hide_12gv4_gg_{display:none}"
|
|
30
30
|
/*__inner_css_end__*/
|
|
31
|
-
, "
|
|
31
|
+
, "1v5rl85_gg_")
|
|
32
32
|
/*__reshadow_css_end__*/
|
|
33
33
|
, {
|
|
34
|
-
"__SArea": "
|
|
35
|
-
"_color": "
|
|
36
|
-
"__SAreaLine": "
|
|
37
|
-
"__SNull": "
|
|
38
|
-
"_hide": "
|
|
34
|
+
"__SArea": "___SArea_12gv4_gg_",
|
|
35
|
+
"_color": "__color_12gv4_gg_",
|
|
36
|
+
"__SAreaLine": "___SAreaLine_12gv4_gg_",
|
|
37
|
+
"__SNull": "___SNull_12gv4_gg_",
|
|
38
|
+
"_hide": "__hide_12gv4_gg_"
|
|
39
39
|
}),
|
|
40
40
|
style = _extends({}, _ref);
|
|
41
41
|
|
|
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
|
4
4
|
import { IBoxProps } from '@semcore/flex-box';
|
|
5
5
|
import IContext from './context';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
|
|
8
8
|
/** Field from data for XAxis */
|
|
9
9
|
x?: string;
|
|
10
10
|
/** Field from data for YAxis */
|
|
11
11
|
y?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface
|
|
14
|
+
export interface ITooltipChartContext {
|
|
15
15
|
getTriggerProps: PropGetterFn;
|
|
16
16
|
getPopperProps: PropGetterFn;
|
|
17
17
|
/** Index active value for Axis x */
|
|
@@ -20,7 +20,9 @@ export interface ITooltipContext {
|
|
|
20
20
|
yIndex: number | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare const Tooltip: (<T>(
|
|
23
|
+
declare const Tooltip: (<T>(
|
|
24
|
+
props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
|
|
25
|
+
) => ReturnEl) & {
|
|
24
26
|
Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
|
|
25
27
|
Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
|
|
26
28
|
Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
|
package/lib/types/Tooltip.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
|
4
4
|
import { IBoxProps } from '@semcore/flex-box';
|
|
5
5
|
import IContext from './context';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
|
|
8
8
|
/** Field from data for XAxis */
|
|
9
9
|
x?: string;
|
|
10
10
|
/** Field from data for YAxis */
|
|
11
11
|
y?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface
|
|
14
|
+
export interface ITooltipChartContext {
|
|
15
15
|
getTriggerProps: PropGetterFn;
|
|
16
16
|
getPopperProps: PropGetterFn;
|
|
17
17
|
/** Index active value for Axis x */
|
|
@@ -20,7 +20,9 @@ export interface ITooltipContext {
|
|
|
20
20
|
yIndex: number | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare const Tooltip: (<T>(
|
|
23
|
+
declare const Tooltip: (<T>(
|
|
24
|
+
props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
|
|
25
|
+
) => ReturnEl) & {
|
|
24
26
|
Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
|
|
25
27
|
Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
|
|
26
28
|
Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
|
package/package.json
CHANGED
package/src/types/Tooltip.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
|
|
|
4
4
|
import { IBoxProps } from '@semcore/flex-box';
|
|
5
5
|
import IContext from './context';
|
|
6
6
|
|
|
7
|
-
export interface
|
|
7
|
+
export interface ITooltipChartProps extends IPopperProps, IPopperTriggerProps, IContext {
|
|
8
8
|
/** Field from data for XAxis */
|
|
9
9
|
x?: string;
|
|
10
10
|
/** Field from data for YAxis */
|
|
11
11
|
y?: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface
|
|
14
|
+
export interface ITooltipChartContext {
|
|
15
15
|
getTriggerProps: PropGetterFn;
|
|
16
16
|
getPopperProps: PropGetterFn;
|
|
17
17
|
/** Index active value for Axis x */
|
|
@@ -20,7 +20,9 @@ export interface ITooltipContext {
|
|
|
20
20
|
yIndex: number | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
declare const Tooltip: (<T>(
|
|
23
|
+
declare const Tooltip: (<T>(
|
|
24
|
+
props: CProps<ITooltipChartProps & T, ITooltipChartContext>,
|
|
25
|
+
) => ReturnEl) & {
|
|
24
26
|
Trigger: <T>(props: CProps<ComponentProps<typeof Popper.Trigger> & T>) => ReturnEl;
|
|
25
27
|
Popper: <T>(props: CProps<ComponentProps<typeof Popper.Popper> & T>) => ReturnEl;
|
|
26
28
|
Title: <T>(props: CProps<IBoxProps & T>) => ReturnEl;
|