@semcore/d3-chart 2.4.4 → 2.4.6
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 -2
- package/lib/cjs/Area.js +9 -9
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +8 -8
- package/lib/cjs/Bubble.js +10 -10
- package/lib/cjs/Donut.js +7 -7
- package/lib/cjs/Dots.js +9 -9
- package/lib/cjs/HorizontalBar.js +8 -8
- package/lib/cjs/Hover.js +4 -4
- package/lib/cjs/Line.js +8 -8
- package/lib/cjs/Plot.js +4 -4
- package/lib/cjs/RadialTree.js +11 -11
- package/lib/cjs/ReferenceLine.js +75 -45
- package/lib/cjs/ReferenceLine.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +7 -7
- package/lib/cjs/Tooltip.js +8 -8
- package/lib/cjs/Venn.js +7 -7
- package/lib/cjs/a11y/PlotA11yModule.js +3 -3
- package/lib/cjs/a11y/PlotA11yView.js +4 -4
- package/lib/es6/Area.js +9 -9
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +8 -8
- package/lib/es6/Bubble.js +10 -10
- package/lib/es6/Donut.js +7 -7
- package/lib/es6/Dots.js +9 -9
- package/lib/es6/HorizontalBar.js +8 -8
- package/lib/es6/Hover.js +4 -4
- package/lib/es6/Line.js +8 -8
- package/lib/es6/Plot.js +4 -4
- package/lib/es6/RadialTree.js +11 -11
- package/lib/es6/ReferenceLine.js +75 -45
- package/lib/es6/ReferenceLine.js.map +1 -1
- package/lib/es6/ScatterPlot.js +7 -7
- package/lib/es6/Tooltip.js +8 -8
- package/lib/es6/Venn.js +7 -7
- package/lib/es6/a11y/PlotA11yModule.js +3 -3
- package/lib/es6/a11y/PlotA11yView.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [2.4.
|
|
5
|
+
## [2.4.6] - 2022-10-31
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
|
|
9
|
+
- Fixed reference lines were missing dashed style.
|
|
10
|
+
|
|
11
|
+
## [2.4.5] - 2022-10-28
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
8
14
|
|
|
9
|
-
- Version patch update due to children dependencies update (`@semcore/animation` [1.
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/animation` [1.7.0 ~> 1.7.1], `@semcore/utils` [3.40.0 ~> 3.40.0]).
|
|
10
16
|
|
|
11
17
|
## [2.4.3] - 2022-10-20
|
|
12
18
|
|
package/lib/cjs/Area.js
CHANGED
|
@@ -48,18 +48,18 @@ var style = (
|
|
|
48
48
|
/*__reshadow_css_start__*/
|
|
49
49
|
_core.sstyled.insert(
|
|
50
50
|
/*__inner_css_start__*/
|
|
51
|
-
".
|
|
51
|
+
".___SArea_glm2i_gg_ {\n fill: #2bb3ff;\n fill-opacity: 0.2;\n}\n\n.___SArea_glm2i_gg_.__color_glm2i_gg_ {\n fill: var(--color_glm2i);\n}\n\n.___SAreaLine_glm2i_gg_ {\n stroke: #2bb3ff;\n stroke-width: 3;\n fill: transparent;\n}\n\n.___SAreaLine_glm2i_gg_.__color_glm2i_gg_ {\n stroke: var(--color_glm2i);\n}\n\n.___SArea_glm2i_gg_,\n.___SAreaLine_glm2i_gg_ {\n transition-property: d;\n transition-duration: var(--duration_glm2i);\n transition-timing-function: ease-in-out;\n}\n\n.___SNull_glm2i_gg_ {\n fill: transparent;\n stroke: #8a8e9b;\n stroke-dasharray: 4;\n}\n\n.___SNull_glm2i_gg_.__hide_glm2i_gg_ {\n display: none;\n}\n"
|
|
52
52
|
/*__inner_css_end__*/
|
|
53
|
-
, "
|
|
53
|
+
, "glm2i_gg_")
|
|
54
54
|
/*__reshadow_css_end__*/
|
|
55
55
|
, {
|
|
56
|
-
"__SArea": "
|
|
57
|
-
"_color": "
|
|
58
|
-
"--color": "--
|
|
59
|
-
"__SAreaLine": "
|
|
60
|
-
"--duration": "--
|
|
61
|
-
"__SNull": "
|
|
62
|
-
"_hide": "
|
|
56
|
+
"__SArea": "___SArea_glm2i_gg_",
|
|
57
|
+
"_color": "__color_glm2i_gg_",
|
|
58
|
+
"--color": "--color_glm2i",
|
|
59
|
+
"__SAreaLine": "___SAreaLine_glm2i_gg_",
|
|
60
|
+
"--duration": "--duration_glm2i",
|
|
61
|
+
"__SNull": "___SNull_glm2i_gg_",
|
|
62
|
+
"_hide": "__hide_glm2i_gg_"
|
|
63
63
|
});
|
|
64
64
|
|
|
65
65
|
var AreaRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Axis.js
CHANGED
|
@@ -44,23 +44,23 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
47
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SAxis_haesk_gg_ {\n stroke: #c4c7cf;\n}\n\n.___SAxis_haesk_gg_.__hide_haesk_gg_ {\n display: none;\n}\n\n.___STick_haesk_gg_ {\n font-size: 12px;\n fill: #6c6e79;\n}\n\n.___STick_haesk_gg_.__hide_haesk_gg_ {\n display: none;\n}\n\n.___SGrid_haesk_gg_ {\n fill: transparent;\n stroke: #e0e1e9;\n}\n\n.___STitle_haesk_gg_ {\n font-size: 12px;\n fill: #6c6e79;\n transform-origin: var(--transform-origin_haesk);\n}\n\n.___STitle_haesk_gg_._position_top_haesk_gg_ {\n text-anchor: middle;\n}\n\n.___STitle_haesk_gg_._position_bottom_haesk_gg_ {\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STitle_haesk_gg_._position_right_haesk_gg_ {\n transform: rotate(-90deg);\n alignment-baseline: middle;\n text-anchor: middle;\n}\n\n.___STitle_haesk_gg_._position_left_haesk_gg_ {\n transform: rotate(-90deg);\n text-anchor: middle;\n alignment-baseline: middle;\n}\n\n.___STick_haesk_gg_._position_top_haesk_gg_ {\n transform: translateY(-12px);\n text-anchor: middle;\n}\n\n.___STick_haesk_gg_._position_bottom_haesk_gg_ {\n transform: translateY(12px);\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STick_haesk_gg_._position_right_haesk_gg_ {\n transform: translateX(16px);\n text-anchor: start;\n alignment-baseline: middle;\n}\n\n.___STick_haesk_gg_._position_left_haesk_gg_ {\n transform: translateX(-16px);\n text-anchor: end;\n alignment-baseline: middle;\n}\n\n.___STick_haesk_gg_._position_custom_0_haesk_gg_ {\n transform: translateY(12px);\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STick_haesk_gg_._position_custom_1_haesk_gg_ {\n transform: translateX(-16px);\n text-anchor: end;\n alignment-baseline: middle;\n}\n"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "haesk_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SAxis": "
|
|
53
|
-
"_hide": "
|
|
54
|
-
"__STick": "
|
|
55
|
-
"__SGrid": "
|
|
56
|
-
"__STitle": "
|
|
57
|
-
"--transform-origin": "--transform-
|
|
58
|
-
"_position_top": "
|
|
59
|
-
"_position_bottom": "
|
|
60
|
-
"_position_right": "
|
|
61
|
-
"_position_left": "
|
|
62
|
-
"_position_custom_0": "
|
|
63
|
-
"_position_custom_1": "
|
|
52
|
+
"__SAxis": "___SAxis_haesk_gg_",
|
|
53
|
+
"_hide": "__hide_haesk_gg_",
|
|
54
|
+
"__STick": "___STick_haesk_gg_",
|
|
55
|
+
"__SGrid": "___SGrid_haesk_gg_",
|
|
56
|
+
"__STitle": "___STitle_haesk_gg_",
|
|
57
|
+
"--transform-origin": "--transform-origin_haesk",
|
|
58
|
+
"_position_top": "_position_top_haesk_gg_",
|
|
59
|
+
"_position_bottom": "_position_bottom_haesk_gg_",
|
|
60
|
+
"_position_right": "_position_right_haesk_gg_",
|
|
61
|
+
"_position_left": "_position_left_haesk_gg_",
|
|
62
|
+
"_position_custom_0": "_position_custom_0_haesk_gg_",
|
|
63
|
+
"_position_custom_1": "_position_custom_1_haesk_gg_"
|
|
64
64
|
});
|
|
65
65
|
var CUSTOM_0 = Symbol('custom_0');
|
|
66
66
|
var CUSTOM_1 = Symbol('custom_1');
|
package/lib/cjs/Bar.js
CHANGED
|
@@ -44,17 +44,17 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
47
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SBar_1vizy_gg_ {\n fill: #2bb3ff;\n transition-property: height, width, y;\n transition-duration: var(--duration_1vizy);\n transition-timing-function: ease-in-out;\n}\n\n.___SBar_1vizy_gg_.__color_1vizy_gg_ {\n fill: var(--color_1vizy);\n}\n\n.___SBar_1vizy_gg_.__hide_1vizy_gg_ {\n display: none;\n}\n\n.___SBackground_1vizy_gg_ {\n fill: #c4c7cf;\n}\n"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "1vizy_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SBar": "
|
|
53
|
-
"--duration": "--
|
|
54
|
-
"_color": "
|
|
55
|
-
"--color": "--
|
|
56
|
-
"_hide": "
|
|
57
|
-
"__SBackground": "
|
|
52
|
+
"__SBar": "___SBar_1vizy_gg_",
|
|
53
|
+
"--duration": "--duration_1vizy",
|
|
54
|
+
"_color": "__color_1vizy_gg_",
|
|
55
|
+
"--color": "--color_1vizy",
|
|
56
|
+
"_hide": "__hide_1vizy_gg_",
|
|
57
|
+
"__SBackground": "___SBackground_1vizy_gg_"
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
var BarRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Bubble.js
CHANGED
|
@@ -56,19 +56,19 @@ var style = (
|
|
|
56
56
|
/*__reshadow_css_start__*/
|
|
57
57
|
_core.sstyled.insert(
|
|
58
58
|
/*__inner_css_start__*/
|
|
59
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
59
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SBubble_132zu_gg_ {\n fill: #2bb3ff;\n stroke: #fff;\n stroke-width: 2px;\n transition-property: cx, cy;\n transition-duration: var(--duration_132zu);\n transition-timing-function: ease-in-out;\n opacity: 0.5\n}\n\n.___SBubble_132zu_gg_:hover {\n opacity: 0.8;\n }\n\n.___SBubble_132zu_gg_.__color_132zu_gg_ {\n fill: var(--color_132zu);\n}\n\n.___SCenter_132zu_gg_ {\n text-anchor: middle;\n font-size: 11px;\n stroke: #2bb3ff;\n}\n\n.___SCenter_132zu_gg_.__color_132zu_gg_ {\n stroke: var(--color_132zu);\n}\n\n.___SLabel_132zu_gg_ {\n fill: #2bb3ff;\n}\n\n.___SLabel_132zu_gg_._position_right_132zu_gg_ {\n text-anchor: end;\n}\n\n.___SLabel_132zu_gg_._position_left_132zu_gg_ {\n text-anchor: start;\n}\n\n.___SLabel_132zu_gg_.__color_132zu_gg_ {\n fill: var(--color_132zu);\n}\n"
|
|
60
60
|
/*__inner_css_end__*/
|
|
61
|
-
, "
|
|
61
|
+
, "132zu_gg_")
|
|
62
62
|
/*__reshadow_css_end__*/
|
|
63
63
|
, {
|
|
64
|
-
"__SBubble": "
|
|
65
|
-
"--duration": "--
|
|
66
|
-
"_color": "
|
|
67
|
-
"--color": "--
|
|
68
|
-
"__SCenter": "
|
|
69
|
-
"__SLabel": "
|
|
70
|
-
"_position_right": "
|
|
71
|
-
"_position_left": "
|
|
64
|
+
"__SBubble": "___SBubble_132zu_gg_",
|
|
65
|
+
"--duration": "--duration_132zu",
|
|
66
|
+
"_color": "__color_132zu_gg_",
|
|
67
|
+
"--color": "--color_132zu",
|
|
68
|
+
"__SCenter": "___SCenter_132zu_gg_",
|
|
69
|
+
"__SLabel": "___SLabel_132zu_gg_",
|
|
70
|
+
"_position_right": "_position_right_132zu_gg_",
|
|
71
|
+
"_position_left": "_position_left_132zu_gg_"
|
|
72
72
|
});
|
|
73
73
|
|
|
74
74
|
var BubbleRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Donut.js
CHANGED
|
@@ -66,16 +66,16 @@ var style = (
|
|
|
66
66
|
/*__reshadow_css_start__*/
|
|
67
67
|
_core.sstyled.insert(
|
|
68
68
|
/*__inner_css_start__*/
|
|
69
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
69
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPie_ncixh_gg_ {\n stroke: #ffffff;\n fill: #2bb3ff;\n}\n\n.___SPie_ncixh_gg_.__color_ncixh_gg_ {\n fill: var(--color_ncixh);\n}\n\n.___SEmptyData_ncixh_gg_ {\n fill: #e0e1e9;\n}\n\n.___SEmptyData_ncixh_gg_.__color_ncixh_gg_ {\n fill: var(--color_ncixh);\n}\n\n.___SLabel_ncixh_gg_ {\n text-anchor: middle;\n vertical-anchor: middle;\n}\n"
|
|
70
70
|
/*__inner_css_end__*/
|
|
71
|
-
, "
|
|
71
|
+
, "ncixh_gg_")
|
|
72
72
|
/*__reshadow_css_end__*/
|
|
73
73
|
, {
|
|
74
|
-
"__SPie": "
|
|
75
|
-
"_color": "
|
|
76
|
-
"--color": "--
|
|
77
|
-
"__SEmptyData": "
|
|
78
|
-
"__SLabel": "
|
|
74
|
+
"__SPie": "___SPie_ncixh_gg_",
|
|
75
|
+
"_color": "__color_ncixh_gg_",
|
|
76
|
+
"--color": "--color_ncixh",
|
|
77
|
+
"__SEmptyData": "___SEmptyData_ncixh_gg_",
|
|
78
|
+
"__SLabel": "___SLabel_ncixh_gg_"
|
|
79
79
|
});
|
|
80
80
|
var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
|
|
81
81
|
|
package/lib/cjs/Dots.js
CHANGED
|
@@ -32,18 +32,18 @@ var style = (
|
|
|
32
32
|
/*__reshadow_css_start__*/
|
|
33
33
|
_core.sstyled.insert(
|
|
34
34
|
/*__inner_css_start__*/
|
|
35
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
35
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SDots_1g138_gg_ .___SDot_1g138_gg_ {\n transition-duration: var(--duration_1g138);\n }\n\n.___SDot_1g138_gg_ {\n stroke-width: 2px;\n stroke: #fff;\n r: 6px;\n fill: #2bb3ff;\n transition-property: cx, cy;\n transition-timing-function: ease-in-out;\n}\n\n.___SDot_1g138_gg_.__hide_1g138_gg_ {\n display: none;\n}\n\n.___SDot_1g138_gg_.__active_1g138_gg_ {\n r: 8px;\n}\n\n.___SDot_1g138_gg_.__color_1g138_gg_ {\n fill: var(--color_1g138);\n}\n"
|
|
36
36
|
/*__inner_css_end__*/
|
|
37
|
-
, "
|
|
37
|
+
, "1g138_gg_")
|
|
38
38
|
/*__reshadow_css_end__*/
|
|
39
39
|
, {
|
|
40
|
-
"__SDots": "
|
|
41
|
-
"__SDot": "
|
|
42
|
-
"--duration": "--
|
|
43
|
-
"_hide": "
|
|
44
|
-
"_active": "
|
|
45
|
-
"_color": "
|
|
46
|
-
"--color": "--
|
|
40
|
+
"__SDots": "___SDots_1g138_gg_",
|
|
41
|
+
"__SDot": "___SDot_1g138_gg_",
|
|
42
|
+
"--duration": "--duration_1g138",
|
|
43
|
+
"_hide": "__hide_1g138_gg_",
|
|
44
|
+
"_active": "__active_1g138_gg_",
|
|
45
|
+
"_color": "__color_1g138_gg_",
|
|
46
|
+
"--color": "--color_1g138"
|
|
47
47
|
});
|
|
48
48
|
var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
|
|
49
49
|
|
package/lib/cjs/HorizontalBar.js
CHANGED
|
@@ -42,17 +42,17 @@ var style = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
_core.sstyled.insert(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
45
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SBar_1vizy_gg_ {\n fill: #2bb3ff;\n transition-property: height, width, y;\n transition-duration: var(--duration_1vizy);\n transition-timing-function: ease-in-out;\n}\n\n.___SBar_1vizy_gg_.__color_1vizy_gg_ {\n fill: var(--color_1vizy);\n}\n\n.___SBar_1vizy_gg_.__hide_1vizy_gg_ {\n display: none;\n}\n\n.___SBackground_1vizy_gg_ {\n fill: #c4c7cf;\n}\n"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "1vizy_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SBar": "
|
|
51
|
-
"--duration": "--
|
|
52
|
-
"_color": "
|
|
53
|
-
"--color": "--
|
|
54
|
-
"_hide": "
|
|
55
|
-
"__SBackground": "
|
|
50
|
+
"__SBar": "___SBar_1vizy_gg_",
|
|
51
|
+
"--duration": "--duration_1vizy",
|
|
52
|
+
"_color": "__color_1vizy_gg_",
|
|
53
|
+
"--color": "--color_1vizy",
|
|
54
|
+
"_hide": "__hide_1vizy_gg_",
|
|
55
|
+
"__SBackground": "___SBackground_1vizy_gg_"
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
var HorizontalBarRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Hover.js
CHANGED
|
@@ -44,13 +44,13 @@ var style = (
|
|
|
44
44
|
/*__reshadow_css_start__*/
|
|
45
45
|
_core.sstyled.insert(
|
|
46
46
|
/*__inner_css_start__*/
|
|
47
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
47
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SHoverLine_zcouu_gg_ {\n stroke: #a9abb6;\n}\n\n.___SHoverRect_zcouu_gg_ {\n fill: rgba(196, 199, 207, 0.3);\n}\n"
|
|
48
48
|
/*__inner_css_end__*/
|
|
49
|
-
, "
|
|
49
|
+
, "zcouu_gg_")
|
|
50
50
|
/*__reshadow_css_end__*/
|
|
51
51
|
, {
|
|
52
|
-
"__SHoverLine": "
|
|
53
|
-
"__SHoverRect": "
|
|
52
|
+
"__SHoverLine": "___SHoverLine_zcouu_gg_",
|
|
53
|
+
"__SHoverRect": "___SHoverRect_zcouu_gg_"
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
var Hover = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Line.js
CHANGED
|
@@ -46,17 +46,17 @@ var style = (
|
|
|
46
46
|
/*__reshadow_css_start__*/
|
|
47
47
|
_core.sstyled.insert(
|
|
48
48
|
/*__inner_css_start__*/
|
|
49
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
49
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SLine_1pg54_gg_ {\n fill: transparent;\n stroke-width: 3;\n stroke: #2bb3ff;\n transition-property: d;\n transition-duration: var(--duration_1pg54);\n transition-timing-function: ease-in-out;\n}\n\n.___SLine_1pg54_gg_.__color_1pg54_gg_ {\n stroke: var(--color_1pg54);\n}\n\n.___SLine_1pg54_gg_.__hide_1pg54_gg_ {\n display: none;\n}\n\n.___SNull_1pg54_gg_ {\n fill: transparent;\n stroke: #c4c7cf;\n stroke-dasharray: 4;\n}\n\n.___SNull_1pg54_gg_.__hide_1pg54_gg_ {\n display: none;\n}\n"
|
|
50
50
|
/*__inner_css_end__*/
|
|
51
|
-
, "
|
|
51
|
+
, "1pg54_gg_")
|
|
52
52
|
/*__reshadow_css_end__*/
|
|
53
53
|
, {
|
|
54
|
-
"__SLine": "
|
|
55
|
-
"--duration": "--
|
|
56
|
-
"_color": "
|
|
57
|
-
"--color": "--
|
|
58
|
-
"_hide": "
|
|
59
|
-
"__SNull": "
|
|
54
|
+
"__SLine": "___SLine_1pg54_gg_",
|
|
55
|
+
"--duration": "--duration_1pg54",
|
|
56
|
+
"_color": "__color_1pg54_gg_",
|
|
57
|
+
"--color": "--color_1pg54",
|
|
58
|
+
"_hide": "__hide_1pg54_gg_",
|
|
59
|
+
"__SNull": "___SNull_1pg54_gg_"
|
|
60
60
|
});
|
|
61
61
|
|
|
62
62
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/Plot.js
CHANGED
|
@@ -58,13 +58,13 @@ var style = (
|
|
|
58
58
|
/*__reshadow_css_start__*/
|
|
59
59
|
_core.sstyled.insert(
|
|
60
60
|
/*__inner_css_start__*/
|
|
61
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
61
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SPlot_yjcvy_gg_ {\n overflow: hidden;\n}\n\n.___SPlot_yjcvy_gg_:active,\n.___SPlot_yjcvy_gg_:focus {\n outline: 0;\n text-decoration: none;\n}\n\nforeignObject[data-aria-only] {\n pointer-events: none;\n}\n\n.___SPlot_yjcvy_gg_.__keyboardFocused_yjcvy_gg_ {\n border: 1px solid #008ff8;\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n}\n"
|
|
62
62
|
/*__inner_css_end__*/
|
|
63
|
-
, "
|
|
63
|
+
, "yjcvy_gg_")
|
|
64
64
|
/*__reshadow_css_end__*/
|
|
65
65
|
, {
|
|
66
|
-
"__SPlot": "
|
|
67
|
-
"_keyboardFocused": "
|
|
66
|
+
"__SPlot": "___SPlot_yjcvy_gg_",
|
|
67
|
+
"_keyboardFocused": "__keyboardFocused_yjcvy_gg_"
|
|
68
68
|
});
|
|
69
69
|
|
|
70
70
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/RadialTree.js
CHANGED
|
@@ -60,20 +60,20 @@ var style = (
|
|
|
60
60
|
/*__reshadow_css_start__*/
|
|
61
61
|
_core.sstyled.insert(
|
|
62
62
|
/*__inner_css_start__*/
|
|
63
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
63
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SRadian_4yuoa_gg_ {\n cursor: pointer;\n fill: #008ff8;\n}\n\n.___SLine_4yuoa_gg_ {\n stroke: #008ff8;\n}\n\n.___SLine_4yuoa_gg_.__color_4yuoa_gg_ {\n stroke: var(--color_4yuoa);\n}\n\n.___SCap_4yuoa_gg_ {\n transition: r 0.1s;\n}\n\n.___SLabel_4yuoa_gg_ {\n fill: var(--color_4yuoa);\n cursor: var(--text-cursor_4yuoa);\n}\n\n.___SRadian_4yuoa_gg_:hover .___SLabel_4yuoa_gg_ {\n fill: var(--color-hovered_4yuoa);\n}\n\n@media (prefers-reduced-motion) {\n .___SLineCap_4yuoa_gg_ {\n transition: none;\n }\n}\n"
|
|
64
64
|
/*__inner_css_end__*/
|
|
65
|
-
, "
|
|
65
|
+
, "4yuoa_gg_")
|
|
66
66
|
/*__reshadow_css_end__*/
|
|
67
67
|
, {
|
|
68
|
-
"__SRadian": "
|
|
69
|
-
"__SLine": "
|
|
70
|
-
"_color": "
|
|
71
|
-
"--color": "--
|
|
72
|
-
"__SCap": "
|
|
73
|
-
"__SLabel": "
|
|
74
|
-
"--text-cursor": "--text-
|
|
75
|
-
"--color-hovered": "--color-
|
|
76
|
-
"__SLineCap": "
|
|
68
|
+
"__SRadian": "___SRadian_4yuoa_gg_",
|
|
69
|
+
"__SLine": "___SLine_4yuoa_gg_",
|
|
70
|
+
"_color": "__color_4yuoa_gg_",
|
|
71
|
+
"--color": "--color_4yuoa",
|
|
72
|
+
"__SCap": "___SCap_4yuoa_gg_",
|
|
73
|
+
"__SLabel": "___SLabel_4yuoa_gg_",
|
|
74
|
+
"--text-cursor": "--text-cursor_4yuoa",
|
|
75
|
+
"--color-hovered": "--color-hovered_4yuoa",
|
|
76
|
+
"__SLineCap": "___SLineCap_4yuoa_gg_"
|
|
77
77
|
});
|
|
78
78
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
79
79
|
|
package/lib/cjs/ReferenceLine.js
CHANGED
|
@@ -42,27 +42,27 @@ var style = (
|
|
|
42
42
|
/*__reshadow_css_start__*/
|
|
43
43
|
_core.sstyled.insert(
|
|
44
44
|
/*__inner_css_start__*/
|
|
45
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
45
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SReferenceLine_p6rco_gg_ {\n fill: none;\n stroke: #a9abb6;\n}\n\n.___STitle_p6rco_gg_ {\n font-size: 12px;\n fill: #6c6e79;\n transform-origin: var(--transform-origin_p6rco);\n}\n\n.___STitle_p6rco_gg_._position_top_p6rco_gg_ {\n text-anchor: middle;\n}\n\n.___STitle_p6rco_gg_._position_bottom_p6rco_gg_ {\n text-anchor: middle;\n alignment-baseline: hanging;\n}\n\n.___STitle_p6rco_gg_._position_right_p6rco_gg_ {\n transform: rotate(-90deg);\n alignment-baseline: middle;\n text-anchor: middle;\n}\n\n.___STitle_p6rco_gg_._position_left_p6rco_gg_ {\n transform: rotate(-90deg);\n text-anchor: middle;\n alignment-baseline: middle;\n}\n\n.___SBackground_p6rco_gg_ {\n fill: rgba(196, 199, 207, 0.2);\n}\n"
|
|
46
46
|
/*__inner_css_end__*/
|
|
47
|
-
, "
|
|
47
|
+
, "p6rco_gg_")
|
|
48
48
|
/*__reshadow_css_end__*/
|
|
49
49
|
, {
|
|
50
|
-
"__SReferenceLine": "
|
|
51
|
-
"__STitle": "
|
|
52
|
-
"--transform-origin": "--transform-
|
|
53
|
-
"_position_top": "
|
|
54
|
-
"_position_bottom": "
|
|
55
|
-
"_position_right": "
|
|
56
|
-
"_position_left": "
|
|
57
|
-
"__SBackground": "
|
|
50
|
+
"__SReferenceLine": "___SReferenceLine_p6rco_gg_",
|
|
51
|
+
"__STitle": "___STitle_p6rco_gg_",
|
|
52
|
+
"--transform-origin": "--transform-origin_p6rco",
|
|
53
|
+
"_position_top": "_position_top_p6rco_gg_",
|
|
54
|
+
"_position_bottom": "_position_bottom_p6rco_gg_",
|
|
55
|
+
"_position_right": "_position_right_p6rco_gg_",
|
|
56
|
+
"_position_left": "_position_left_p6rco_gg_",
|
|
57
|
+
"__SBackground": "___SBackground_p6rco_gg_"
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var side2direction = {
|
|
60
60
|
left: 'vertical',
|
|
61
61
|
right: 'vertical',
|
|
62
62
|
top: 'horizontal',
|
|
63
63
|
bottom: 'horizontal'
|
|
64
64
|
};
|
|
65
|
-
var
|
|
65
|
+
var lineDirection2props = {
|
|
66
66
|
vertical: function vertical(_ref4, value) {
|
|
67
67
|
var _ref5 = (0, _slicedToArray2["default"])(_ref4, 2),
|
|
68
68
|
xScale = _ref5[0],
|
|
@@ -71,10 +71,10 @@ var MAP_POSITION_LINE = {
|
|
|
71
71
|
var yRange = yScale.range();
|
|
72
72
|
var x = (0, _utils.scaleOfBandwidth)(xScale, value);
|
|
73
73
|
return {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
x1: x,
|
|
75
|
+
x2: x,
|
|
76
|
+
y1: yRange[0],
|
|
77
|
+
y2: yRange[1]
|
|
78
78
|
};
|
|
79
79
|
},
|
|
80
80
|
horizontal: function horizontal(_ref6, value) {
|
|
@@ -85,16 +85,15 @@ var MAP_POSITION_LINE = {
|
|
|
85
85
|
var xRange = xScale.range();
|
|
86
86
|
var y = (0, _utils.scaleOfBandwidth)(yScale, value);
|
|
87
87
|
return {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
x1: xRange[0],
|
|
89
|
+
x2: xRange[1],
|
|
90
|
+
y1: y,
|
|
91
|
+
y2: y
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
left: function left(_ref8, value) {
|
|
95
|
+
var rectDirection2props = {
|
|
96
|
+
vertical: function vertical(_ref8, value) {
|
|
98
97
|
var _ref9 = (0, _slicedToArray2["default"])(_ref8, 2),
|
|
99
98
|
xScale = _ref9[0],
|
|
100
99
|
yScale = _ref9[1];
|
|
@@ -102,44 +101,75 @@ var MAP_POSITION_TITlE = {
|
|
|
102
101
|
var yRange = yScale.range();
|
|
103
102
|
var x = (0, _utils.scaleOfBandwidth)(xScale, value);
|
|
104
103
|
return {
|
|
105
|
-
x: x
|
|
106
|
-
y:
|
|
104
|
+
x: x,
|
|
105
|
+
y: yRange[1],
|
|
106
|
+
width: 100,
|
|
107
|
+
height: yRange[0] - yRange[1]
|
|
107
108
|
};
|
|
108
109
|
},
|
|
109
|
-
|
|
110
|
+
horizontal: function horizontal(_ref10, value) {
|
|
110
111
|
var _ref11 = (0, _slicedToArray2["default"])(_ref10, 2),
|
|
111
112
|
xScale = _ref11[0],
|
|
112
113
|
yScale = _ref11[1];
|
|
113
114
|
|
|
115
|
+
var xRange = xScale.range();
|
|
116
|
+
var y = (0, _utils.scaleOfBandwidth)(yScale, value);
|
|
117
|
+
return {
|
|
118
|
+
x: xRange[0],
|
|
119
|
+
y: y,
|
|
120
|
+
width: xRange[1] - xRange[0],
|
|
121
|
+
height: 100
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
var titleOffset = 10;
|
|
126
|
+
var titleSideToProps = {
|
|
127
|
+
left: function left(_ref12, value) {
|
|
128
|
+
var _ref13 = (0, _slicedToArray2["default"])(_ref12, 2),
|
|
129
|
+
xScale = _ref13[0],
|
|
130
|
+
yScale = _ref13[1];
|
|
131
|
+
|
|
114
132
|
var yRange = yScale.range();
|
|
115
133
|
var x = (0, _utils.scaleOfBandwidth)(xScale, value);
|
|
116
134
|
return {
|
|
117
|
-
x: x
|
|
135
|
+
x: x - titleOffset,
|
|
118
136
|
y: (yRange[0] + yRange[1]) / 2
|
|
119
137
|
};
|
|
120
138
|
},
|
|
121
|
-
|
|
122
|
-
var
|
|
123
|
-
xScale =
|
|
124
|
-
yScale =
|
|
139
|
+
right: function right(_ref14, value) {
|
|
140
|
+
var _ref15 = (0, _slicedToArray2["default"])(_ref14, 2),
|
|
141
|
+
xScale = _ref15[0],
|
|
142
|
+
yScale = _ref15[1];
|
|
143
|
+
|
|
144
|
+
var yRange = yScale.range();
|
|
145
|
+
var x = (0, _utils.scaleOfBandwidth)(xScale, value);
|
|
146
|
+
return {
|
|
147
|
+
x: x + titleOffset,
|
|
148
|
+
y: (yRange[0] + yRange[1]) / 2
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
top: function top(_ref16, value) {
|
|
152
|
+
var _ref17 = (0, _slicedToArray2["default"])(_ref16, 2),
|
|
153
|
+
xScale = _ref17[0],
|
|
154
|
+
yScale = _ref17[1];
|
|
125
155
|
|
|
126
156
|
var xRange = xScale.range();
|
|
127
157
|
var y = (0, _utils.scaleOfBandwidth)(yScale, value);
|
|
128
158
|
return {
|
|
129
159
|
x: (xRange[1] + xRange[0]) / 2,
|
|
130
|
-
y: y -
|
|
160
|
+
y: y - titleOffset
|
|
131
161
|
};
|
|
132
162
|
},
|
|
133
|
-
bottom: function bottom(
|
|
134
|
-
var
|
|
135
|
-
xScale =
|
|
136
|
-
yScale =
|
|
163
|
+
bottom: function bottom(_ref18, value) {
|
|
164
|
+
var _ref19 = (0, _slicedToArray2["default"])(_ref18, 2),
|
|
165
|
+
xScale = _ref19[0],
|
|
166
|
+
yScale = _ref19[1];
|
|
137
167
|
|
|
138
168
|
var xRange = xScale.range();
|
|
139
169
|
var y = (0, _utils.scaleOfBandwidth)(yScale, value);
|
|
140
170
|
return {
|
|
141
171
|
x: (xRange[1] + xRange[0]) / 2,
|
|
142
|
-
y: y +
|
|
172
|
+
y: y + titleOffset
|
|
143
173
|
};
|
|
144
174
|
}
|
|
145
175
|
};
|
|
@@ -189,12 +219,12 @@ var ReferenceLineRoot = /*#__PURE__*/function (_Component) {
|
|
|
189
219
|
value = _this$asProps3.value,
|
|
190
220
|
color = _this$asProps3.color,
|
|
191
221
|
styles = _this$asProps3.styles;
|
|
192
|
-
var
|
|
222
|
+
var positionProps = lineDirection2props[side2direction[position]];
|
|
193
223
|
return _ref = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(SReferenceLine, _ref.cn("SReferenceLine", _objectSpread({
|
|
194
|
-
"render": "
|
|
224
|
+
"render": "line",
|
|
195
225
|
"__excludeProps": ['data', 'scale', 'format', 'value', 'color'],
|
|
196
226
|
"stroke": color
|
|
197
|
-
},
|
|
227
|
+
}, positionProps(scale, value)))), title && /*#__PURE__*/_react["default"].createElement(ReferenceLine.Title, null, title));
|
|
198
228
|
}
|
|
199
229
|
}]);
|
|
200
230
|
return ReferenceLineRoot;
|
|
@@ -215,9 +245,9 @@ function Title(props) {
|
|
|
215
245
|
position = props.position,
|
|
216
246
|
value = props.value;
|
|
217
247
|
|
|
218
|
-
var
|
|
219
|
-
x =
|
|
220
|
-
y =
|
|
248
|
+
var _titleSideToProps$pos = titleSideToProps[position](scale, value),
|
|
249
|
+
x = _titleSideToProps$pos.x,
|
|
250
|
+
y = _titleSideToProps$pos.y;
|
|
221
251
|
|
|
222
252
|
var sstyles = (0, _core.sstyled)(styles);
|
|
223
253
|
var sTitleStyles = sstyles.cn('STitle', {
|
|
@@ -242,11 +272,11 @@ function Background(props) {
|
|
|
242
272
|
scale = props.scale,
|
|
243
273
|
position = props.position,
|
|
244
274
|
value = props.value;
|
|
245
|
-
var
|
|
275
|
+
var positionProps = rectDirection2props[side2direction[position]];
|
|
246
276
|
return _ref3 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SBackground, _ref3.cn("SBackground", _objectSpread({
|
|
247
277
|
"render": "rect",
|
|
248
278
|
"childrenPosition": "inside"
|
|
249
|
-
},
|
|
279
|
+
}, positionProps(scale, value))));
|
|
250
280
|
}
|
|
251
281
|
|
|
252
282
|
var ReferenceLine = (0, _createElement["default"])(ReferenceLineRoot, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferenceLine.js","names":["MAP_ORIENTATION","left","right","top","bottom","MAP_POSITION_LINE","vertical","value","xScale","yScale","yRange","range","x","scaleOfBandwidth","y","width","height","horizontal","xRange","OFFSET_TITLE","MAP_POSITION_TITlE","ReferenceLineRoot","asProps","position","SReferenceLine","Element","title","scale","color","styles","pos","sstyled","Component","style","Title","props","STitle","sstyles","sTitleStyles","cn","toFixed","className","Background","SBackground","ReferenceLine","createElement"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst MAP_ORIENTATION = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst MAP_POSITION_LINE = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x,\n y: yRange[1],\n width: 0.1,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height: 0.1,\n };\n },\n};\n\nconst OFFSET_TITLE = 10;\nconst MAP_POSITION_TITlE = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - OFFSET_TITLE,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + OFFSET_TITLE,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, styles } = this.asProps;\n const pos = MAP_POSITION_LINE[MAP_ORIENTATION[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render=\"rect\"\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={color}\n {...pos(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = MAP_POSITION_TITlE[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render=\"text\"\n childrenPosition=\"inside\"\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value } = props;\n const pos = MAP_POSITION_LINE[MAP_ORIENTATION[position]];\n\n return sstyled(styles)(\n <SBackground render=\"rect\" childrenPosition=\"inside\" {...pos(scale, value)} />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,eAAe,GAAG;EACtBC,IAAI,EAAE,UADgB;EAEtBC,KAAK,EAAE,UAFe;EAGtBC,GAAG,EAAE,YAHiB;EAItBC,MAAM,EAAE;AAJc,CAAxB;AAOA,IAAMC,iBAAiB,GAAG;EACxBC,QAAQ,EAAE,yBAAmBC,KAAnB,EAA6B;IAAA;IAAA,IAA3BC,MAA2B;IAAA,IAAnBC,MAAmB;;IACrC,IAAMC,MAAM,GAAGD,MAAM,CAACE,KAAP,EAAf;IACA,IAAMC,CAAC,GAAG,IAAAC,uBAAA,EAAiBL,MAAjB,EAAyBD,KAAzB,CAAV;IACA,OAAO;MACLK,CAAC,EAAEA,CADE;MAELE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GADF;AAGD;;AAED,IAAMqC,aAAa,GAAG,IAAAC,yBAAA,EAAcxB,iBAAd,EAAiC;EACrDa,KAAK,EAALA,KADqD;EAErDQ,UAAU,EAAVA;AAFqD,CAAjC,CAAtB;eAKeE,a"}
|
|
1
|
+
{"version":3,"file":"ReferenceLine.js","names":["side2direction","left","right","top","bottom","lineDirection2props","vertical","value","xScale","yScale","yRange","range","x","scaleOfBandwidth","x1","x2","y1","y2","horizontal","xRange","y","rectDirection2props","width","height","titleOffset","titleSideToProps","ReferenceLineRoot","asProps","position","SReferenceLine","Element","title","scale","color","styles","positionProps","sstyled","Component","style","Title","props","STitle","sstyles","sTitleStyles","cn","toFixed","className","Background","SBackground","ReferenceLine","createElement"],"sources":["../../src/ReferenceLine.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference-line.shadow.css';\n\nconst side2direction = {\n left: 'vertical',\n right: 'vertical',\n top: 'horizontal',\n bottom: 'horizontal',\n};\n\nconst lineDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n x2: x,\n y1: yRange[0],\n y2: yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n x2: xRange[1],\n y1: y,\n y2: y,\n };\n },\n};\n\nconst rectDirection2props = {\n vertical: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x,\n y: yRange[1],\n width: 100,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height: 100,\n };\n },\n};\n\nconst titleOffset = 10;\nconst titleSideToProps = {\n left: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x - titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n right: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x: x + titleOffset,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n top: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y - titleOffset,\n };\n },\n bottom: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: y + titleOffset,\n };\n },\n};\n\nclass ReferenceLineRoot extends Component {\n static displayName = 'ReferenceLine';\n static style = style;\n static defaultProps = {\n position: 'left',\n };\n\n getTitleProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n getBackgroundProps() {\n const { position, value } = this.asProps;\n return { position, value };\n }\n\n render() {\n const SReferenceLine = this.Element;\n const { title, scale, position, value, color, styles } = this.asProps;\n const positionProps = lineDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <>\n <SReferenceLine\n render=\"line\"\n __excludeProps={['data', 'scale', 'format', 'value', 'color']}\n stroke={color}\n {...positionProps(scale, value)}\n />\n {title && <ReferenceLine.Title>{title}</ReferenceLine.Title>}\n </>,\n );\n }\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, value } = props;\n const { x, y } = titleSideToProps[position](scale, value);\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n render=\"text\"\n childrenPosition=\"inside\"\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n position={position}\n x={x}\n y={y}\n />,\n );\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position, value } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground render=\"rect\" childrenPosition=\"inside\" {...positionProps(scale, value)} />,\n );\n}\n\nconst ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n});\n\nexport default ReferenceLine;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,cAAc,GAAG;EACrBC,IAAI,EAAE,UADe;EAErBC,KAAK,EAAE,UAFc;EAGrBC,GAAG,EAAE,YAHgB;EAIrBC,MAAM,EAAE;AAJa,CAAvB;AAOA,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,yBAAmBC,KAAnB,EAA6B;IAAA;IAAA,IAA3BC,MAA2B;IAAA,IAAnBC,MAAmB;;IACrC,IAAMC,MAAM,GAAGD,MAAM,CAACE,KAAP,EAAf;IACA,IAAMC,CAAC,GAAG,IAAAC,uBAAA,EAAiBL,MAAjB,EAAyBD,KAAzB,CAAV;IACA,OAAO;MACLO,EAAE,EAAEF,CADC;MAELG,EAAE,EAAEH,CAFC;MAGLI,EAAE,EAAEN,MAAM,CAAC,CAAD,CAHL;MAILO,EAAE,EAAEP,MAAM,CAAC,CAAD;IAJL,CAAP;EAMD,CAVyB;EAW1BQ,UAAU,EAAE,2BAAmBX,KAAnB,EAA6B;IAAA;IAAA,IAA3BC,MAA2B;IAAA,IAAnBC,MAAmB;;IACvC,IAAMU,MAAM,GAAGX,MAAM,CAACG,KAAP,EAAf;IACA,IAAMS,CAAC,GAAG,IAAAP,uBAAA,EAAiBJ,MAAjB,EAAyBF,KAAzB,CAAV;IACA,OAAO;MACLO,EAAE,EAAEK,MAAM,CAAC,CAAD,CADL;MAELJ,EAAE,EAAEI,MAAM,CAAC,CAAD,CAFL;MAGLH,EAAE,EAAEI,CAHC;MAILH,EAAE,EAAEG;IAJC,CAAP;EAMD;AApByB,C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