@semcore/d3-chart 3.45.2 → 3.46.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 +11 -0
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +10 -10
- package/lib/cjs/Bubble.js +12 -12
- package/lib/cjs/Donut.js +9 -9
- package/lib/cjs/Dots.js +8 -8
- package/lib/cjs/HorizontalBar.js +10 -10
- 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/{ReferenceLine.js → Reference.js} +91 -48
- package/lib/cjs/Reference.js.map +1 -0
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +9 -9
- package/lib/cjs/Venn.js +9 -9
- 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/index.js +14 -2
- package/lib/cjs/index.js.map +1 -1
- package/lib/{es6/style/reference-line.shadow.css → cjs/style/reference.shadow.css} +8 -0
- package/lib/cjs/types/Reference.d.js +2 -0
- package/lib/cjs/types/Reference.d.js.map +1 -0
- package/lib/cjs/types/index.d.js +4 -11
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/es6/Area.js +11 -11
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +10 -10
- package/lib/es6/Bubble.js +12 -12
- package/lib/es6/Donut.js +9 -9
- package/lib/es6/Dots.js +8 -8
- package/lib/es6/HorizontalBar.js +10 -10
- 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/{ReferenceLine.js → Reference.js} +88 -47
- package/lib/es6/Reference.js.map +1 -0
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +9 -9
- package/lib/es6/Venn.js +9 -9
- 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/index.js +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/{cjs/style/reference-line.shadow.css → es6/style/reference.shadow.css} +8 -0
- package/lib/es6/types/Reference.d.js +2 -0
- package/lib/es6/types/Reference.d.js.map +1 -0
- package/lib/es6/types/index.d.js +1 -2
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/types/{ReferenceLine.d.ts → Reference.d.ts} +31 -5
- package/lib/types/index.d.ts +1 -2
- package/package.json +2 -2
- package/lib/cjs/ReferenceLine.js.map +0 -1
- package/lib/cjs/types/ReferenceLine.d.js +0 -2
- package/lib/cjs/types/ReferenceLine.d.js.map +0 -1
- package/lib/es6/ReferenceLine.js.map +0 -1
- package/lib/es6/types/ReferenceLine.d.js +0 -2
- package/lib/es6/types/ReferenceLine.d.js.map +0 -1
|
@@ -8,18 +8,22 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
8
8
|
import { sstyled as _sstyled } from "@semcore/utils/lib/core/index";
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { Component, sstyled } from '@semcore/core';
|
|
11
|
+
import uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';
|
|
11
12
|
import createElement from './createElement';
|
|
12
13
|
import { scaleOfBandwidth } from './utils';
|
|
13
|
-
/*__reshadow-styles__:"./style/reference
|
|
14
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
15
|
-
"__SReferenceLine": "
|
|
16
|
-
"__STitle": "
|
|
17
|
-
"--transform-origin": "--transform-
|
|
18
|
-
"_position_top": "
|
|
19
|
-
"_position_bottom": "
|
|
20
|
-
"_position_right": "
|
|
21
|
-
"_position_left": "
|
|
22
|
-
"__SBackground": "
|
|
14
|
+
/*__reshadow-styles__:"./style/reference.shadow.css"*/
|
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1u4cb_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___STitle_1u4cb_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1u4cb)}.___STitle_1u4cb_gg_._position_top_1u4cb_gg_{text-anchor:middle}.___STitle_1u4cb_gg_._position_bottom_1u4cb_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1u4cb_gg_._position_left_1u4cb_gg_,.___STitle_1u4cb_gg_._position_right_1u4cb_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1u4cb_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}.___SStripes_1u4cb_gg_{fill:var(--fill_1u4cb)}.___SStripesPatternPath_1u4cb_gg_{stroke:var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));stroke-width:1px}" /*__inner_css_end__*/, "1u4cb_gg_") /*__reshadow_css_end__*/, {
|
|
16
|
+
"__SReferenceLine": "___SReferenceLine_1u4cb_gg_",
|
|
17
|
+
"__STitle": "___STitle_1u4cb_gg_",
|
|
18
|
+
"--transform-origin": "--transform-origin_1u4cb",
|
|
19
|
+
"_position_top": "_position_top_1u4cb_gg_",
|
|
20
|
+
"_position_bottom": "_position_bottom_1u4cb_gg_",
|
|
21
|
+
"_position_right": "_position_right_1u4cb_gg_",
|
|
22
|
+
"_position_left": "_position_left_1u4cb_gg_",
|
|
23
|
+
"__SBackground": "___SBackground_1u4cb_gg_",
|
|
24
|
+
"__SStripes": "___SStripes_1u4cb_gg_",
|
|
25
|
+
"--fill": "--fill_1u4cb",
|
|
26
|
+
"__SStripesPatternPath": "___SStripesPatternPath_1u4cb_gg_"
|
|
23
27
|
});
|
|
24
28
|
var side2direction = {
|
|
25
29
|
left: 'vertical',
|
|
@@ -28,10 +32,10 @@ var side2direction = {
|
|
|
28
32
|
bottom: 'horizontal'
|
|
29
33
|
};
|
|
30
34
|
var lineDirection2props = {
|
|
31
|
-
vertical: function vertical(
|
|
32
|
-
var
|
|
33
|
-
xScale =
|
|
34
|
-
yScale =
|
|
35
|
+
vertical: function vertical(_ref5, value) {
|
|
36
|
+
var _ref6 = _slicedToArray(_ref5, 2),
|
|
37
|
+
xScale = _ref6[0],
|
|
38
|
+
yScale = _ref6[1];
|
|
35
39
|
var yRange = yScale.range();
|
|
36
40
|
var x = scaleOfBandwidth(xScale, value);
|
|
37
41
|
return {
|
|
@@ -41,10 +45,10 @@ var lineDirection2props = {
|
|
|
41
45
|
y2: yRange[1]
|
|
42
46
|
};
|
|
43
47
|
},
|
|
44
|
-
horizontal: function horizontal(
|
|
45
|
-
var
|
|
46
|
-
xScale =
|
|
47
|
-
yScale =
|
|
48
|
+
horizontal: function horizontal(_ref7, value) {
|
|
49
|
+
var _ref8 = _slicedToArray(_ref7, 2),
|
|
50
|
+
xScale = _ref8[0],
|
|
51
|
+
yScale = _ref8[1];
|
|
48
52
|
var xRange = xScale.range();
|
|
49
53
|
var y = scaleOfBandwidth(yScale, value);
|
|
50
54
|
return {
|
|
@@ -56,10 +60,10 @@ var lineDirection2props = {
|
|
|
56
60
|
}
|
|
57
61
|
};
|
|
58
62
|
var rectDirection2props = {
|
|
59
|
-
vertical: function vertical(
|
|
60
|
-
var
|
|
61
|
-
xScale =
|
|
62
|
-
yScale =
|
|
63
|
+
vertical: function vertical(_ref9, value, endValue) {
|
|
64
|
+
var _ref10 = _slicedToArray(_ref9, 2),
|
|
65
|
+
xScale = _ref10[0],
|
|
66
|
+
yScale = _ref10[1];
|
|
63
67
|
var yRange = yScale.range();
|
|
64
68
|
var x = scaleOfBandwidth(xScale, value);
|
|
65
69
|
var width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;
|
|
@@ -70,10 +74,10 @@ var rectDirection2props = {
|
|
|
70
74
|
height: yRange[0] - yRange[1]
|
|
71
75
|
};
|
|
72
76
|
},
|
|
73
|
-
horizontal: function horizontal(
|
|
74
|
-
var
|
|
75
|
-
xScale =
|
|
76
|
-
yScale =
|
|
77
|
+
horizontal: function horizontal(_ref11, value, endValue) {
|
|
78
|
+
var _ref12 = _slicedToArray(_ref11, 2),
|
|
79
|
+
xScale = _ref12[0],
|
|
80
|
+
yScale = _ref12[1];
|
|
77
81
|
var xRange = xScale.range();
|
|
78
82
|
var y = scaleOfBandwidth(yScale, value);
|
|
79
83
|
var height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;
|
|
@@ -87,10 +91,10 @@ var rectDirection2props = {
|
|
|
87
91
|
};
|
|
88
92
|
var titleOffset = 10;
|
|
89
93
|
var titleSideToProps = {
|
|
90
|
-
left: function left(
|
|
91
|
-
var
|
|
92
|
-
xScale =
|
|
93
|
-
yScale =
|
|
94
|
+
left: function left(_ref13, value) {
|
|
95
|
+
var _ref14 = _slicedToArray(_ref13, 2),
|
|
96
|
+
xScale = _ref14[0],
|
|
97
|
+
yScale = _ref14[1];
|
|
94
98
|
var yRange = yScale.range();
|
|
95
99
|
var x = scaleOfBandwidth(xScale, value);
|
|
96
100
|
return {
|
|
@@ -98,10 +102,10 @@ var titleSideToProps = {
|
|
|
98
102
|
y: (yRange[0] + yRange[1]) / 2
|
|
99
103
|
};
|
|
100
104
|
},
|
|
101
|
-
right: function right(
|
|
102
|
-
var
|
|
103
|
-
xScale =
|
|
104
|
-
yScale =
|
|
105
|
+
right: function right(_ref15, value) {
|
|
106
|
+
var _ref16 = _slicedToArray(_ref15, 2),
|
|
107
|
+
xScale = _ref16[0],
|
|
108
|
+
yScale = _ref16[1];
|
|
105
109
|
var yRange = yScale.range();
|
|
106
110
|
var x = scaleOfBandwidth(xScale, value);
|
|
107
111
|
return {
|
|
@@ -109,10 +113,10 @@ var titleSideToProps = {
|
|
|
109
113
|
y: (yRange[0] + yRange[1]) / 2
|
|
110
114
|
};
|
|
111
115
|
},
|
|
112
|
-
top: function top(
|
|
113
|
-
var
|
|
114
|
-
xScale =
|
|
115
|
-
yScale =
|
|
116
|
+
top: function top(_ref17, value) {
|
|
117
|
+
var _ref18 = _slicedToArray(_ref17, 2),
|
|
118
|
+
xScale = _ref18[0],
|
|
119
|
+
yScale = _ref18[1];
|
|
116
120
|
var xRange = xScale.range();
|
|
117
121
|
var y = scaleOfBandwidth(yScale, value);
|
|
118
122
|
return {
|
|
@@ -120,10 +124,10 @@ var titleSideToProps = {
|
|
|
120
124
|
y: y - titleOffset
|
|
121
125
|
};
|
|
122
126
|
},
|
|
123
|
-
bottom: function bottom(
|
|
124
|
-
var
|
|
125
|
-
xScale =
|
|
126
|
-
yScale =
|
|
127
|
+
bottom: function bottom(_ref19, value) {
|
|
128
|
+
var _ref20 = _slicedToArray(_ref19, 2),
|
|
129
|
+
xScale = _ref20[0],
|
|
130
|
+
yScale = _ref20[1];
|
|
127
131
|
var xRange = xScale.range();
|
|
128
132
|
var y = scaleOfBandwidth(yScale, value);
|
|
129
133
|
return {
|
|
@@ -218,7 +222,8 @@ function Background(props) {
|
|
|
218
222
|
var SBackground = props.Element,
|
|
219
223
|
styles = props.styles,
|
|
220
224
|
scale = props.scale,
|
|
221
|
-
position = props.position,
|
|
225
|
+
_props$position = props.position,
|
|
226
|
+
position = _props$position === void 0 ? 'left' : _props$position,
|
|
222
227
|
value = props.value,
|
|
223
228
|
endValue = props.endValue;
|
|
224
229
|
var positionProps = rectDirection2props[side2direction[position]];
|
|
@@ -227,9 +232,45 @@ function Background(props) {
|
|
|
227
232
|
"childrenPosition": 'inside'
|
|
228
233
|
}, positionProps(scale, value, endValue))));
|
|
229
234
|
}
|
|
230
|
-
|
|
235
|
+
Background.style = style;
|
|
236
|
+
var diagonalGap = 8;
|
|
237
|
+
var gap = Math.sqrt(Math.pow(diagonalGap, 2) + Math.pow(diagonalGap, 2));
|
|
238
|
+
var gap12 = gap * (1 / 2);
|
|
239
|
+
var gap32 = gap * (3 / 2);
|
|
240
|
+
var path = "M-".concat(gap, ",-").concat(gap12, " L").concat(gap, ",").concat(gap32, " M-").concat(gap12, ",-").concat(gap, " L").concat(gap32, ",").concat(gap);
|
|
241
|
+
function Stripes(props) {
|
|
242
|
+
var _ref4;
|
|
243
|
+
var SStripes = props.Element,
|
|
244
|
+
styles = props.styles,
|
|
245
|
+
scale = props.scale,
|
|
246
|
+
_props$position2 = props.position,
|
|
247
|
+
position = _props$position2 === void 0 ? 'left' : _props$position2,
|
|
248
|
+
value = props.value,
|
|
249
|
+
endValue = props.endValue,
|
|
250
|
+
uid = props.uid;
|
|
251
|
+
var SStripesPatternPath = 'path';
|
|
252
|
+
var positionProps = rectDirection2props[side2direction[position]];
|
|
253
|
+
var patternId = "".concat(uid, "-pattern");
|
|
254
|
+
return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement("g", _ref4.cn("g", {}), /*#__PURE__*/React.createElement(SStripes, _ref4.cn("SStripes", _objectSpread({
|
|
255
|
+
"render": 'rect',
|
|
256
|
+
"childrenPosition": 'inside',
|
|
257
|
+
"fill": "url(#".concat(patternId, ")")
|
|
258
|
+
}, positionProps(scale, value, endValue)))), /*#__PURE__*/React.createElement("pattern", _ref4.cn("pattern", {
|
|
259
|
+
"id": patternId,
|
|
260
|
+
"patternUnits": 'userSpaceOnUse',
|
|
261
|
+
"width": gap,
|
|
262
|
+
"height": gap
|
|
263
|
+
}), /*#__PURE__*/React.createElement(SStripesPatternPath, _ref4.cn("SStripesPatternPath", {
|
|
264
|
+
"d": path
|
|
265
|
+
}))));
|
|
266
|
+
}
|
|
267
|
+
Stripes.style = style;
|
|
268
|
+
Stripes.enhance = [uniqueIDEnhancement()];
|
|
269
|
+
export var ReferenceLine = createElement(ReferenceLineRoot, {
|
|
231
270
|
Title: Title,
|
|
232
|
-
Background: Background
|
|
271
|
+
Background: Background,
|
|
272
|
+
Stripes: Stripes
|
|
233
273
|
});
|
|
234
|
-
export
|
|
235
|
-
|
|
274
|
+
export var ReferenceBackground = createElement(Background);
|
|
275
|
+
export var ReferenceStripes = createElement(Stripes);
|
|
276
|
+
//# sourceMappingURL=Reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reference.js","names":["React","Component","sstyled","uniqueIDEnhancement","createElement","scaleOfBandwidth","style","_sstyled","insert","side2direction","left","right","top","bottom","lineDirection2props","vertical","_ref5","value","_ref6","_slicedToArray","xScale","yScale","yRange","range","x","x1","x2","y1","y2","horizontal","_ref7","_ref8","xRange","y","rectDirection2props","_ref9","endValue","_ref10","width","undefined","height","_ref11","_ref12","titleOffset","titleSideToProps","_ref13","_ref14","_ref15","_ref16","_ref17","_ref18","_ref19","_ref20","ReferenceLineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","getTitleProps","_this$asProps","asProps","position","getBackgroundProps","_this$asProps2","render","_ref","SReferenceLine","Element","_this$asProps3","title","scale","color","resolveColor","styles","positionProps","Fragment","cn","_objectSpread","ReferenceLine","Title","_defineProperty","props","_ref2","STitle","_titleSideToProps$pos","sstyles","sTitleStyles","concat","toFixed","className","Background","_ref3","SBackground","_props$position","diagonalGap","gap","Math","sqrt","pow","gap12","gap32","path","Stripes","_ref4","SStripes","_props$position2","uid","SStripesPatternPath","patternId","enhance","ReferenceBackground","ReferenceStripes"],"sources":["../../src/Reference.jsx"],"sourcesContent":["import React from 'react';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport { scaleOfBandwidth } from './utils';\n\nimport style from './style/reference.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, endValue) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n const width = endValue !== undefined ? scaleOfBandwidth(xScale, endValue) - x : 100;\n return {\n x: x,\n y: yRange[1],\n width,\n height: yRange[0] - yRange[1],\n };\n },\n horizontal: ([xScale, yScale], value, endValue) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n const height = endValue !== undefined ? scaleOfBandwidth(yScale, endValue) - y : 100;\n return {\n x: xRange[0],\n y: y,\n width: xRange[1] - xRange[0],\n height,\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, resolveColor, 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={resolveColor(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}\nfunction Background(props) {\n const { Element: SBackground, styles, scale, position = 'left', value, endValue } = props;\n const positionProps = rectDirection2props[side2direction[position]];\n\n return sstyled(styles)(\n <SBackground\n render='rect'\n childrenPosition='inside'\n {...positionProps(scale, value, endValue)}\n />,\n );\n}\nBackground.style = style;\n\nconst diagonalGap = 8;\nconst gap = Math.sqrt(diagonalGap ** 2 + diagonalGap ** 2);\nconst gap12 = gap * (1 / 2);\nconst gap32 = gap * (3 / 2);\nconst path = `M-${gap},-${gap12} L${gap},${gap32} M-${gap12},-${gap} L${gap32},${gap}`;\nfunction Stripes(props) {\n const { Element: SStripes, styles, scale, position = 'left', value, endValue, uid } = props;\n const SStripesPatternPath = 'path';\n const positionProps = rectDirection2props[side2direction[position]];\n const patternId = `${uid}-pattern`;\n\n return sstyled(styles)(\n <g>\n <SStripes\n render='rect'\n childrenPosition='inside'\n fill={`url(#${patternId})`}\n {...positionProps(scale, value, endValue)}\n />\n <pattern id={patternId} patternUnits='userSpaceOnUse' width={gap} height={gap}>\n <SStripesPatternPath d={path} />\n </pattern>\n </g>,\n );\n}\nStripes.style = style;\nStripes.enhance = [uniqueIDEnhancement()];\n\nexport const ReferenceLine = createElement(ReferenceLineRoot, {\n Title,\n Background,\n Stripes,\n});\n\nexport const ReferenceBackground = createElement(Background);\nexport const ReferenceStripes = createElement(Stripes);\n"],"mappings":";;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AAClD,OAAOC,mBAAmB,MAAM,6BAA6B;AAC7D,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SAASC,gBAAgB,QAAQ,SAAS;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAI3C,IAAMC,cAAc,GAAG;EACrBC,IAAI,EAAE,UAAU;EAChBC,KAAK,EAAE,UAAU;EACjBC,GAAG,EAAE,YAAY;EACjBC,MAAM,EAAE;AACV,CAAC;AAED,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,SAAAA,SAAAC,KAAA,EAAmBC,KAAK,EAAK;IAAA,IAAAC,KAAA,GAAAC,cAAA,CAAAH,KAAA;MAA3BI,MAAM,GAAAF,KAAA;MAAEG,MAAM,GAAAH,KAAA;IACxB,IAAMI,MAAM,GAAGD,MAAM,CAACE,KAAK,EAAE;IAC7B,IAAMC,CAAC,GAAGnB,gBAAgB,CAACe,MAAM,EAAEH,KAAK,CAAC;IACzC,OAAO;MACLQ,EAAE,EAAED,CAAC;MACLE,EAAE,EAAEF,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IAAM+C,SAAS,MAAArB,MAAA,CAAMmB,GAAG,aAAU;EAElC,OAAAH,KAAA,GAAO1G,OAAO,CAAC4E,MAAM,CAAC,eACpB9E,KAAA,CAAAI,aAAA,MAAAwG,KAAA,CAAA3B,EAAA,wBACEjF,KAAA,CAAAI,aAAA,CAACyG,QAAQ,EAAAD,KAAA,CAAA3B,EAAA,aAAAC,aAAA;IAAA,UACA,MAAM;IAAA,oBACI,QAAQ;IAAA,gBAAAU,MAAA,CACXqB,SAAS;EAAA,GACnBlC,aAAa,CAACJ,KAAK,EAAE1D,KAAK,EAAEmB,QAAQ,CAAC,GACzC,eACFpC,KAAA,CAAAI,aAAA,YAAAwG,KAAA,CAAA3B,EAAA;IAAA,MAAagC,SAAS;IAAA,gBAAe,gBAAgB;IAAA,SAAQb,GAAG;IAAA,UAAUA;EAAG,iBAC3EpG,KAAA,CAAAI,aAAA,CAAC4G,mBAAmB,EAAAJ,KAAA,CAAA3B,EAAA;IAAA,KAAIyB;EAAI,GAAI,CACxB,CACR;AAER;AACAC,OAAO,CAACrG,KAAK,GAAGA,KAAK;AACrBqG,OAAO,CAACO,OAAO,GAAG,CAAC/G,mBAAmB,EAAE,CAAC;AAEzC,OAAO,IAAMgF,aAAa,GAAG/E,aAAa,CAACiD,iBAAiB,EAAE;EAC5D+B,KAAK,EAALA,KAAK;EACLW,UAAU,EAAVA,UAAU;EACVY,OAAO,EAAPA;AACF,CAAC,CAAC;AAEF,OAAO,IAAMQ,mBAAmB,GAAG/G,aAAa,CAAC2F,UAAU,CAAC;AAC5D,OAAO,IAAMqB,gBAAgB,GAAGhH,aAAa,CAACuG,OAAO,CAAC"}
|
package/lib/es6/ScatterPlot.js
CHANGED
|
@@ -18,15 +18,15 @@ import { getScatterPlotRadius } from './utils';
|
|
|
18
18
|
import Tooltip from './Tooltip';
|
|
19
19
|
import { PatternFill } from './Pattern';
|
|
20
20
|
/*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__SScatterPlot": "
|
|
23
|
-
"_color": "
|
|
24
|
-
"--color": "--
|
|
25
|
-
"_pattern": "
|
|
26
|
-
"--pattern": "--
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SValue": "
|
|
29
|
-
"--duration": "--
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_t40s5_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_t40s5);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_t40s5_gg_:hover{opacity:.8}}.___SScatterPlot_t40s5_gg_.__color_t40s5_gg_{fill:var(--color_t40s5)}.___SScatterPlot_t40s5_gg_.__pattern_t40s5_gg_.__color_t40s5_gg_{fill:var(--pattern_t40s5);stroke:var(--color_t40s5);stroke-width:1px}.___SScatterPlot_t40s5_gg_.__transparent_t40s5_gg_{opacity:.3}.___SValue_t40s5_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_t40s5_gg_.__color_t40s5_gg_{stroke:var(--color_t40s5)}.___SValue_t40s5_gg_.__transparent_t40s5_gg_{opacity:.3}" /*__inner_css_end__*/, "t40s5_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SScatterPlot": "___SScatterPlot_t40s5_gg_",
|
|
23
|
+
"_color": "__color_t40s5_gg_",
|
|
24
|
+
"--color": "--color_t40s5",
|
|
25
|
+
"_pattern": "__pattern_t40s5_gg_",
|
|
26
|
+
"--pattern": "--pattern_t40s5",
|
|
27
|
+
"_transparent": "__transparent_t40s5_gg_",
|
|
28
|
+
"__SValue": "___SValue_t40s5_gg_",
|
|
29
|
+
"--duration": "--duration_t40s5"
|
|
30
30
|
});
|
|
31
31
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
|
32
32
|
_inherits(ScatterPlotRoot, _Component);
|
package/lib/es6/Tooltip.js
CHANGED
|
@@ -21,15 +21,15 @@ import createElement from './createElement';
|
|
|
21
21
|
import { getChartDefaultColorName } from './utils';
|
|
22
22
|
import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
|
|
23
23
|
/*__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
|
24
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
25
|
-
"__STooltip": "
|
|
26
|
-
"__STitle": "
|
|
27
|
-
"__SDotGroup": "
|
|
28
|
-
"__SDot": "
|
|
29
|
-
"__SDotCircle": "
|
|
30
|
-
"_color": "
|
|
31
|
-
"--color": "--
|
|
32
|
-
"__SFooter": "
|
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_ytxol_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_ytxol_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_ytxol_gg_{display:flex;align-items:center}.___SDot_ytxol_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_ytxol_gg_.__color_ytxol_gg_{background-color:var(--color_ytxol);width:8px;height:8px;border-radius:50%}.___SFooter_ytxol_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "ytxol_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__STooltip": "___STooltip_ytxol_gg_",
|
|
26
|
+
"__STitle": "___STitle_ytxol_gg_",
|
|
27
|
+
"__SDotGroup": "___SDotGroup_ytxol_gg_",
|
|
28
|
+
"__SDot": "___SDot_ytxol_gg_",
|
|
29
|
+
"__SDotCircle": "___SDotCircle_ytxol_gg_",
|
|
30
|
+
"_color": "__color_ytxol_gg_",
|
|
31
|
+
"--color": "--color_ytxol",
|
|
32
|
+
"__SFooter": "___SFooter_ytxol_gg_"
|
|
33
33
|
});
|
|
34
34
|
import { PatternSymbol } from './Pattern';
|
|
35
35
|
|
package/lib/es6/Venn.js
CHANGED
|
@@ -20,15 +20,15 @@ import Tooltip from './Tooltip';
|
|
|
20
20
|
import { PatternFill } from './Pattern';
|
|
21
21
|
import uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';
|
|
22
22
|
/*__reshadow-styles__:"./style/venn.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SCircle": "
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SIntersection": "
|
|
29
|
-
"--duration": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1i130_gg_,.___SIntersection_1i130_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1i130_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1i130);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1i130_gg_:hover{fill-opacity:.7}}.___SCircle_1i130_gg_.__color_1i130_gg_{fill:var(--color_1i130)}.___SCircle_1i130_gg_.__pattern_1i130_gg_.__color_1i130_gg_{fill:var(--pattern_1i130);fill-opacity:.7;stroke:var(--color_1i130);stroke-width:1px}@media (hover:hover){.___SCircle_1i130_gg_.__pattern_1i130_gg_.__color_1i130_gg_:hover{fill-opacity:.85}}.___SCircle_1i130_gg_.__transparent_1i130_gg_{opacity:.3}.___SIntersection_1i130_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1i130_gg_:hover{fill-opacity:.1}}.___SIntersection_1i130_gg_.__transparent_1i130_gg_{opacity:.3}" /*__inner_css_end__*/, "1i130_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SCircle": "___SCircle_1i130_gg_",
|
|
25
|
+
"_color": "__color_1i130_gg_",
|
|
26
|
+
"--color": "--color_1i130",
|
|
27
|
+
"_transparent": "__transparent_1i130_gg_",
|
|
28
|
+
"__SIntersection": "___SIntersection_1i130_gg_",
|
|
29
|
+
"--duration": "--duration_1i130",
|
|
30
|
+
"_pattern": "__pattern_1i130_gg_",
|
|
31
|
+
"--pattern": "--pattern_1i130"
|
|
32
32
|
});
|
|
33
33
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
|
34
34
|
_inherits(VennRoot, _Component);
|
|
@@ -10,8 +10,8 @@ import { normalizeLocale } from './locale';
|
|
|
10
10
|
import { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';
|
|
11
11
|
import { Root, sstyled } from '@semcore/core';
|
|
12
12
|
/*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
|
|
13
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
14
|
-
"__SPlotA11yModule": "
|
|
13
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1o618_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1o618_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1o618_gg_") /*__reshadow_css_end__*/, {
|
|
14
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1o618_gg_"
|
|
15
15
|
});
|
|
16
16
|
import { Context as I18nContext, useI18n } from '@semcore/utils/lib/enhances/WithI18n';
|
|
17
17
|
import { Box } from '@semcore/flex-box';
|
|
@@ -9,8 +9,8 @@ import { getIntl } from './intl';
|
|
|
9
9
|
import { summarize } from './summarize';
|
|
10
10
|
import { Root, sstyled } from '@semcore/core';
|
|
11
11
|
/*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
|
|
12
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
13
|
-
"__SPlotA11yView": "
|
|
12
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_17q02_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_17q02_gg_:focus,.___SPlotA11yView_17q02_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_17q02_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_17q02_gg_ table,.___SPlotA11yView_17q02_gg_ td,.___SPlotA11yView_17q02_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "17q02_gg_") /*__reshadow_css_end__*/, {
|
|
13
|
+
"__SPlotA11yView": "___SPlotA11yView_17q02_gg_"
|
|
14
14
|
});
|
|
15
15
|
import { Box } from '@semcore/flex-box';
|
|
16
16
|
import { useAsyncI18nMessages } from '@semcore/utils/lib/enhances/i18nEnhance';
|
|
@@ -10,10 +10,10 @@ import React from 'react';
|
|
|
10
10
|
import createComponent, { sstyled, Root } from '@semcore/core';
|
|
11
11
|
import { Flex } from '@semcore/flex-box';
|
|
12
12
|
/*__reshadow-styles__:"./legend-flex.shadow.css"*/
|
|
13
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
14
|
-
"__SLegendFlex": "
|
|
15
|
-
"_direction_row": "
|
|
16
|
-
"_direction_column": "
|
|
13
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_v6736_gg_._direction_row_v6736_gg_{align-items:flex-start;align-content:flex-start;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_v6736_gg_._direction_column_v6736_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "v6736_gg_") /*__reshadow_css_end__*/, {
|
|
14
|
+
"__SLegendFlex": "___SLegendFlex_v6736_gg_",
|
|
15
|
+
"_direction_row": "_direction_row_v6736_gg_",
|
|
16
|
+
"_direction_column": "_direction_column_v6736_gg_"
|
|
17
17
|
});
|
|
18
18
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
|
19
19
|
import Divider from '@semcore/divider';
|
|
@@ -19,23 +19,23 @@ import { Flex, Box } from '@semcore/flex-box';
|
|
|
19
19
|
import Checkbox from '@semcore/checkbox';
|
|
20
20
|
import { Text as TypographyText } from '@semcore/typography';
|
|
21
21
|
/*__reshadow-styles__:"./legend-item.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SLegendItem": "
|
|
24
|
-
"_disabled": "
|
|
25
|
-
"__SPointShape": "
|
|
26
|
-
"_color": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_shape_Circle": "
|
|
29
|
-
"_size_l": "
|
|
30
|
-
"_size_m": "
|
|
31
|
-
"_shape_Line": "
|
|
32
|
-
"_shape_Square": "
|
|
33
|
-
"_shape_Pattern": "
|
|
34
|
-
"__SIcon": "
|
|
35
|
-
"__SLabel": "
|
|
36
|
-
"__SAdditionalLabel": "
|
|
37
|
-
"__SCount": "
|
|
38
|
-
"__SPatternSymbol": "
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_29ce6_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_29ce6_gg_:hover{cursor:pointer}.___SLegendItem_29ce6_gg_.__disabled_29ce6_gg_:hover{cursor:default}}.___SPointShape_29ce6_gg_.__color_29ce6_gg_{background-color:var(--color_29ce6);margin-right:8px;flex-shrink:0}.___SPointShape_29ce6_gg_._shape_Circle_29ce6_gg_._size_l_29ce6_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Circle_29ce6_gg_._size_m_29ce6_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Line_29ce6_gg_._size_l_29ce6_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_29ce6_gg_._shape_Line_29ce6_gg_._size_m_29ce6_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_29ce6_gg_._shape_Square_29ce6_gg_._size_l_29ce6_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Square_29ce6_gg_._size_m_29ce6_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_29ce6_gg_._shape_Pattern_29ce6_gg_{background-color:transparent;margin-right:4px}.___SIcon_29ce6_gg_{line-height:0;margin-right:4px}.___SIcon_29ce6_gg_._size_l_29ce6_gg_{margin-top:4px}.___SIcon_29ce6_gg_._size_m_29ce6_gg_{margin-top:2px}.___SLabel_29ce6_gg_{min-width:0}.___SAdditionalLabel_29ce6_gg_._size_l_29ce6_gg_,.___SCount_29ce6_gg_._size_l_29ce6_gg_,.___SLabel_29ce6_gg_._size_l_29ce6_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_29ce6_gg_._size_m_29ce6_gg_,.___SCount_29ce6_gg_._size_m_29ce6_gg_,.___SLabel_29ce6_gg_._size_m_29ce6_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_29ce6_gg_,.___SCount_29ce6_gg_{margin-left:4px}.___SAdditionalLabel_29ce6_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_29ce6_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_29ce6_gg_._size_l_29ce6_gg_::before{margin-top:10px}.___SAdditionalLabel_29ce6_gg_._size_m_29ce6_gg_::before{margin-top:8px}.___SPatternSymbol_29ce6_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "29ce6_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SLegendItem": "___SLegendItem_29ce6_gg_",
|
|
24
|
+
"_disabled": "__disabled_29ce6_gg_",
|
|
25
|
+
"__SPointShape": "___SPointShape_29ce6_gg_",
|
|
26
|
+
"_color": "__color_29ce6_gg_",
|
|
27
|
+
"--color": "--color_29ce6",
|
|
28
|
+
"_shape_Circle": "_shape_Circle_29ce6_gg_",
|
|
29
|
+
"_size_l": "_size_l_29ce6_gg_",
|
|
30
|
+
"_size_m": "_size_m_29ce6_gg_",
|
|
31
|
+
"_shape_Line": "_shape_Line_29ce6_gg_",
|
|
32
|
+
"_shape_Square": "_shape_Square_29ce6_gg_",
|
|
33
|
+
"_shape_Pattern": "_shape_Pattern_29ce6_gg_",
|
|
34
|
+
"__SIcon": "___SIcon_29ce6_gg_",
|
|
35
|
+
"__SLabel": "___SLabel_29ce6_gg_",
|
|
36
|
+
"__SAdditionalLabel": "___SAdditionalLabel_29ce6_gg_",
|
|
37
|
+
"__SCount": "___SCount_29ce6_gg_",
|
|
38
|
+
"__SPatternSymbol": "___SPatternSymbol_29ce6_gg_"
|
|
39
39
|
});
|
|
40
40
|
import { StaticShapes } from './LegendItem.type';
|
|
41
41
|
import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
|
|
@@ -11,12 +11,12 @@ import React from 'react';
|
|
|
11
11
|
import createComponent, { sstyled, Root } from '@semcore/core';
|
|
12
12
|
import { Box } from '@semcore/flex-box';
|
|
13
13
|
/*__reshadow-styles__:"./legend-table.shadow.css"*/
|
|
14
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
15
|
-
"__SLegendTable": "
|
|
16
|
-
"_columns-count": "__columns-
|
|
17
|
-
"__SColumnItem": "
|
|
18
|
-
"_size_l": "
|
|
19
|
-
"_size_m": "
|
|
14
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_1jbgd_gg_.__columns-count_1jbgd_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_1jbgd_gg_._size_l_1jbgd_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_1jbgd_gg_._size_m_1jbgd_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "1jbgd_gg_") /*__reshadow_css_end__*/, {
|
|
15
|
+
"__SLegendTable": "___SLegendTable_1jbgd_gg_",
|
|
16
|
+
"_columns-count": "__columns-count_1jbgd_gg_",
|
|
17
|
+
"__SColumnItem": "___SColumnItem_1jbgd_gg_",
|
|
18
|
+
"_size_l": "_size_l_1jbgd_gg_",
|
|
19
|
+
"_size_m": "_size_m_1jbgd_gg_"
|
|
20
20
|
});
|
|
21
21
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
|
22
22
|
import { BaseLegend } from '../BaseLegend';
|
package/lib/es6/index.js
CHANGED
|
@@ -17,7 +17,7 @@ export { default as Venn } from './Venn';
|
|
|
17
17
|
export { default as Radar, getLabelOffsetPosition } from './Radar';
|
|
18
18
|
export { default as Tooltip } from './Tooltip';
|
|
19
19
|
export { default as ResponsiveContainer } from './ResponsiveContainer';
|
|
20
|
-
export {
|
|
20
|
+
export { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';
|
|
21
21
|
export { HoverLine, HoverRect } from './Hover';
|
|
22
22
|
export { minMax, interpolateValue, getBubbleChartValueScale, getScatterPlotRadius, calculateBubbleDomain, PlotEventEmitter } from './utils';
|
|
23
23
|
export { colors } from './color';
|
package/lib/es6/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["default","Plot","ChartLegend","ChartLegendTable","Chart","XAxis","YAxis","Line","Bar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","ScatterPlot","Bubble","RadialTree","Donut","Venn","Radar","getLabelOffsetPosition","Tooltip","ResponsiveContainer","ReferenceLine","HoverLine","HoverRect","minMax","interpolateValue","getBubbleChartValueScale","getScatterPlotRadius","calculateBubbleDomain","PlotEventEmitter","colors","makeDataHintsContainer","PatternFill","PatternSymbol","getPatternSymbolSize"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport {
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","Plot","ChartLegend","ChartLegendTable","Chart","XAxis","YAxis","Line","Bar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","ScatterPlot","Bubble","RadialTree","Donut","Venn","Radar","getLabelOffsetPosition","Tooltip","ResponsiveContainer","ReferenceLine","ReferenceBackground","ReferenceStripes","HoverLine","HoverRect","minMax","interpolateValue","getBubbleChartValueScale","getScatterPlotRadius","calculateBubbleDomain","PlotEventEmitter","colors","makeDataHintsContainer","PatternFill","PatternSymbol","getPatternSymbolSize"],"sources":["../../src/index.js"],"sourcesContent":["export { default as Plot } from './Plot';\nexport { ChartLegend, ChartLegendTable } from './component/ChartLegend';\nexport { default as Chart } from './component/Chart';\nexport { XAxis, YAxis } from './Axis';\n\nexport { default as Line } from './Line';\n\nexport { default as Bar } from './Bar';\nexport { default as HorizontalBar } from './HorizontalBar';\nexport { default as GroupBar } from './GroupBar';\nexport { default as StackBar } from './StackBar';\nexport { default as Area } from './Area';\nexport { default as StackedArea } from './StackedArea';\nexport { default as ScatterPlot } from './ScatterPlot';\nexport { default as Bubble } from './Bubble';\nexport { default as RadialTree } from './RadialTree';\nexport { default as Donut } from './Donut';\nexport { default as Venn } from './Venn';\nexport { default as Radar, getLabelOffsetPosition } from './Radar';\n\nexport { default as Tooltip } from './Tooltip';\n\nexport { default as ResponsiveContainer } from './ResponsiveContainer';\nexport { ReferenceLine, ReferenceBackground, ReferenceStripes } from './Reference';\n\nexport { HoverLine, HoverRect } from './Hover';\n\nexport {\n minMax,\n interpolateValue,\n getBubbleChartValueScale,\n getScatterPlotRadius,\n calculateBubbleDomain,\n PlotEventEmitter,\n} from './utils';\nexport { colors } from './color';\n\nexport { makeDataHintsContainer } from './a11y/hints';\n\nexport { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,IAAI,QAAQ,QAAQ;AACxC,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,yBAAyB;AACvE,SAASH,OAAO,IAAII,KAAK,QAAQ,mBAAmB;AACpD,SAASC,KAAK,EAAEC,KAAK,QAAQ,QAAQ;AAErC,SAASN,OAAO,IAAIO,IAAI,QAAQ,QAAQ;AAExC,SAASP,OAAO,IAAIQ,GAAG,QAAQ,OAAO;AACtC,SAASR,OAAO,IAAIS,aAAa,QAAQ,iBAAiB;AAC1D,SAAST,OAAO,IAAIU,QAAQ,QAAQ,YAAY;AAChD,SAASV,OAAO,IAAIW,QAAQ,QAAQ,YAAY;AAChD,SAASX,OAAO,IAAIY,IAAI,QAAQ,QAAQ;AACxC,SAASZ,OAAO,IAAIa,WAAW,QAAQ,eAAe;AACtD,SAASb,OAAO,IAAIc,WAAW,QAAQ,eAAe;AACtD,SAASd,OAAO,IAAIe,MAAM,QAAQ,UAAU;AAC5C,SAASf,OAAO,IAAIgB,UAAU,QAAQ,cAAc;AACpD,SAAShB,OAAO,IAAIiB,KAAK,QAAQ,SAAS;AAC1C,SAASjB,OAAO,IAAIkB,IAAI,QAAQ,QAAQ;AACxC,SAASlB,OAAO,IAAImB,KAAK,EAAEC,sBAAsB,QAAQ,SAAS;AAElE,SAASpB,OAAO,IAAIqB,OAAO,QAAQ,WAAW;AAE9C,SAASrB,OAAO,IAAIsB,mBAAmB,QAAQ,uBAAuB;AACtE,SAASC,aAAa,EAAEC,mBAAmB,EAAEC,gBAAgB,QAAQ,aAAa;AAElF,SAASC,SAAS,EAAEC,SAAS,QAAQ,SAAS;AAE9C,SACEC,MAAM,EACNC,gBAAgB,EAChBC,wBAAwB,EACxBC,oBAAoB,EACpBC,qBAAqB,EACrBC,gBAAgB,QACX,SAAS;AAChB,SAASC,MAAM,QAAQ,SAAS;AAEhC,SAASC,sBAAsB,QAAQ,cAAc;AAErD,SAASC,WAAW,EAAEC,aAAa,EAAEC,oBAAoB,QAAQ,WAAW"}
|
|
@@ -33,3 +33,11 @@ STitle[position='left'] {
|
|
|
33
33
|
SBackground {
|
|
34
34
|
fill: var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2));
|
|
35
35
|
}
|
|
36
|
+
SStripes {
|
|
37
|
+
fill: var(--fill);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
SStripesPatternPath {
|
|
41
|
+
stroke: var(--intergalactic-chart-grid-period-pattern, rgba(25, 27, 35, 0.15));
|
|
42
|
+
stroke-width: 1px;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Reference.d.js","names":[],"sources":["../../../src/types/Reference.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { IntergalacticD3Component } from './Plot';\n\n/** @deprecated **/\nexport interface IReferenceLineProps extends ReferenceLineProps, UnknownProperties {}\nexport type ReferenceLineProps = Context & {\n /** The position of the title relative reference line\n * @default 'left' */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n\n title?: string;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineTitleProps extends ReferenceLineTitleProps, UnknownProperties {}\nexport type ReferenceLineTitleProps = Context & {\n /** The position of the axis relative reference line */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value: any;\n};\n\n/** @deprecated **/\nexport interface IReferenceLineBackgroundProps\n extends ReferenceLineBackgroundProps,\n UnknownProperties {}\nexport type ReferenceBackgroundProps = Context & {\n /** The position relative the `value` */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n/** @deprecated use ReferenceBackgroundProps instead **/\nexport type ReferenceLineBackgroundProps = ReferenceBackgroundProps;\n\nexport type ReferenceStripesProps = Context & {\n /** The position relative the `value` */\n position?: 'top' | 'right' | 'bottom' | 'left';\n /** Value element of data */\n value?: any;\n /** Value of the background end */\n endValue?: number | string;\n};\n\nexport declare const ReferenceLine: IntergalacticD3Component<\n 'line',\n ReferenceLineProps,\n Context\n> & {\n Title: IntergalacticD3Component<'text', ReferenceLineTitleProps, Context>;\n /**\n * @deprecated use `ReferenceBackground` instead.\n */\n Background: IntergalacticD3Component<'rect', ReferenceLineBackgroundProps, Context>;\n};\nexport declare const ReferenceBackground: IntergalacticD3Component<\n 'rect',\n ReferenceLineBackgroundProps,\n Context\n>;\nexport declare const ReferenceStripes: IntergalacticD3Component<\n 'rect',\n ReferenceStripesProps,\n Context\n>;\n"],"mappings":""}
|
package/lib/es6/types/index.d.js
CHANGED
|
@@ -40,8 +40,7 @@ export { default as ScatterPlot } from './ScatterPlot';
|
|
|
40
40
|
export * from './ScatterPlot';
|
|
41
41
|
export { default as Bubble } from './Bubble';
|
|
42
42
|
export * from './Bubble';
|
|
43
|
-
export
|
|
44
|
-
export * from './ReferenceLine';
|
|
43
|
+
export * from './Reference';
|
|
45
44
|
export { default as Venn } from './Venn';
|
|
46
45
|
export * from './Venn';
|
|
47
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":["PlotEventEmitter","makeDataHintsContainer","default","Plot","ResponsiveContainer","Line","Bar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","Radar","Donut","Tooltip","ScatterPlot","Bubble","
|
|
1
|
+
{"version":3,"file":"index.d.js","names":["PlotEventEmitter","makeDataHintsContainer","default","Plot","ResponsiveContainer","Line","Bar","HorizontalBar","GroupBar","StackBar","Area","StackedArea","Radar","Donut","Tooltip","ScatterPlot","Bubble","Venn","RadialTree","ChartLegend","ChartLegendTable","Chart"],"sources":["../../../src/types/index.d.ts"],"sourcesContent":["// Utils\n// @ts-ignore\nimport { interpolateValue as intValue, PlotEventEmitter } from './utils';\n\nexport declare const interpolateValue: typeof intValue;\nexport declare function minMax(data: any, key: string | number): any;\nexport declare function calculateBubbleDomain(\n data: Array<{ value: number; x: number; y: number }>,\n key: 'x' | 'y',\n range: [number, number],\n): [min: number, max: number];\nexport { PlotEventEmitter };\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 * from './Reference';\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';\nexport * from './component/Chart/CigaretteChart.type';\n"],"mappings":"AAAA;AACA;AACA,SAAuCA,gBAAgB,QAAQ,SAAS;AASxE,SAASA,gBAAgB;AAEzB,SAASC,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;A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