@semcore/d3-chart 3.31.1 → 3.31.2
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 +7 -1
- package/lib/cjs/Area.js +11 -11
- package/lib/cjs/Axis.js +14 -14
- package/lib/cjs/Bar.js +15 -13
- package/lib/cjs/Bar.js.map +1 -1
- 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 +9 -9
- 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/es6/Area.js +11 -11
- package/lib/es6/Axis.js +14 -14
- package/lib/es6/Bar.js +15 -13
- package/lib/es6/Bar.js.map +1 -1
- 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 +9 -9
- 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/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [3.31.
|
|
5
|
+
## [3.31.2-prerelease.2] - 2024-03-07
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Logic to define X and Y axis for a11y summary in Bar charts.
|
|
10
|
+
|
|
11
|
+
## [3.31.1] - 2024-03-05
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
8
14
|
|
package/lib/cjs/Area.js
CHANGED
|
@@ -22,17 +22,17 @@ var _utils = require("./utils");
|
|
|
22
22
|
var _AnimatedClipPath = _interopRequireDefault(require("./AnimatedClipPath"));
|
|
23
23
|
var _Pattern = require("./Pattern");
|
|
24
24
|
/*__reshadow-styles__:"./style/area.shadow.css"*/
|
|
25
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
26
|
-
"__SArea": "
|
|
27
|
-
"_color": "
|
|
28
|
-
"--color": "--
|
|
29
|
-
"_pattern": "
|
|
30
|
-
"--pattern": "--
|
|
31
|
-
"_transparent": "
|
|
32
|
-
"__SAreaLine": "
|
|
33
|
-
"--duration": "--
|
|
34
|
-
"__SNull": "
|
|
35
|
-
"_hide": "
|
|
25
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SArea_1s8q9_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);fill-opacity:.2}.___SArea_1s8q9_gg_.__color_1s8q9_gg_{fill:var(--color_1s8q9)}.___SArea_1s8q9_gg_.__pattern_1s8q9_gg_{fill:var(--pattern_1s8q9);fill-opacity:.7}.___SArea_1s8q9_gg_.__transparent_1s8q9_gg_{opacity:.3}.___SAreaLine_1s8q9_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SAreaLine_1s8q9_gg_.__color_1s8q9_gg_{stroke:var(--color_1s8q9)}.___SAreaLine_1s8q9_gg_.__transparent_1s8q9_gg_{opacity:.3}.___SAreaLine_1s8q9_gg_,.___SArea_1s8q9_gg_{transition-property:d;transition-duration:var(--duration_1s8q9);transition-timing-function:ease-in-out}.___SNull_1s8q9_gg_{fill:transparent;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf);stroke-dasharray:4}.___SNull_1s8q9_gg_.__hide_1s8q9_gg_{display:none}" /*__inner_css_end__*/, "1s8q9_gg_") /*__reshadow_css_end__*/, {
|
|
26
|
+
"__SArea": "___SArea_1s8q9_gg_",
|
|
27
|
+
"_color": "__color_1s8q9_gg_",
|
|
28
|
+
"--color": "--color_1s8q9",
|
|
29
|
+
"_pattern": "__pattern_1s8q9_gg_",
|
|
30
|
+
"--pattern": "--pattern_1s8q9",
|
|
31
|
+
"_transparent": "__transparent_1s8q9_gg_",
|
|
32
|
+
"__SAreaLine": "___SAreaLine_1s8q9_gg_",
|
|
33
|
+
"--duration": "--duration_1s8q9",
|
|
34
|
+
"__SNull": "___SNull_1s8q9_gg_",
|
|
35
|
+
"_hide": "__hide_1s8q9_gg_"
|
|
36
36
|
});
|
|
37
37
|
var AreaRoot = /*#__PURE__*/function (_Component) {
|
|
38
38
|
(0, _inherits2["default"])(AreaRoot, _Component);
|
package/lib/cjs/Axis.js
CHANGED
|
@@ -18,20 +18,20 @@ var _createElement = _interopRequireDefault(require("./createElement"));
|
|
|
18
18
|
var _utils = require("./utils");
|
|
19
19
|
var _MAP_POSITION_AXIS, _MAP_POSITION_TICK;
|
|
20
20
|
/*__reshadow-styles__:"./style/axis.shadow.css"*/
|
|
21
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
22
|
-
"__SAxis": "
|
|
23
|
-
"_hide": "
|
|
24
|
-
"__STick": "
|
|
25
|
-
"__SGrid": "
|
|
26
|
-
"__STitle": "
|
|
27
|
-
"--transform-origin": "--transform-
|
|
28
|
-
"_position_top": "
|
|
29
|
-
"_position_bottom": "
|
|
30
|
-
"_position_right": "
|
|
31
|
-
"_position_left": "
|
|
32
|
-
"_verticalWritingMode": "
|
|
33
|
-
"_position_custom_0": "
|
|
34
|
-
"_position_custom_1": "
|
|
21
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SAxis_ybghq_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SAxis_ybghq_gg_.__hide_ybghq_gg_,.___STick_ybghq_gg_.__hide_ybghq_gg_{display:none}.___STick_ybghq_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79)}.___SGrid_ybghq_gg_{fill:transparent;stroke:var(--intergalactic-border-secondary, #e0e1e9)}.___STitle_ybghq_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-text-hint, #6c6e79);transform-origin:var(--transform-origin_ybghq)}.___STitle_ybghq_gg_._position_top_ybghq_gg_{text-anchor:middle}.___STitle_ybghq_gg_._position_bottom_ybghq_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_ybghq_gg_._position_left_ybghq_gg_,.___STitle_ybghq_gg_._position_right_ybghq_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___STitle_ybghq_gg_._position_left_ybghq_gg_.__verticalWritingMode_ybghq_gg_,.___STitle_ybghq_gg_._position_right_ybghq_gg_.__verticalWritingMode_ybghq_gg_{writing-mode:vertical-rl;transform:none}.___STick_ybghq_gg_._position_top_ybghq_gg_{transform:translateY(-12px);text-anchor:middle}.___STick_ybghq_gg_._position_bottom_ybghq_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_ybghq_gg_._position_right_ybghq_gg_{transform:translateX(16px);text-anchor:start;dominant-baseline:middle}.___STick_ybghq_gg_._position_left_ybghq_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}.___STick_ybghq_gg_._position_custom_0_ybghq_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_ybghq_gg_._position_custom_1_ybghq_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}" /*__inner_css_end__*/, "ybghq_gg_") /*__reshadow_css_end__*/, {
|
|
22
|
+
"__SAxis": "___SAxis_ybghq_gg_",
|
|
23
|
+
"_hide": "__hide_ybghq_gg_",
|
|
24
|
+
"__STick": "___STick_ybghq_gg_",
|
|
25
|
+
"__SGrid": "___SGrid_ybghq_gg_",
|
|
26
|
+
"__STitle": "___STitle_ybghq_gg_",
|
|
27
|
+
"--transform-origin": "--transform-origin_ybghq",
|
|
28
|
+
"_position_top": "_position_top_ybghq_gg_",
|
|
29
|
+
"_position_bottom": "_position_bottom_ybghq_gg_",
|
|
30
|
+
"_position_right": "_position_right_ybghq_gg_",
|
|
31
|
+
"_position_left": "_position_left_ybghq_gg_",
|
|
32
|
+
"_verticalWritingMode": "__verticalWritingMode_ybghq_gg_",
|
|
33
|
+
"_position_custom_0": "_position_custom_0_ybghq_gg_",
|
|
34
|
+
"_position_custom_1": "_position_custom_1_ybghq_gg_"
|
|
35
35
|
});
|
|
36
36
|
var CUSTOM_0 = Symbol('custom_0');
|
|
37
37
|
var CUSTOM_1 = Symbol('custom_1');
|
package/lib/cjs/Bar.js
CHANGED
|
@@ -20,16 +20,16 @@ var _AnimatedClipPath = _interopRequireDefault(require("./AnimatedClipPath"));
|
|
|
20
20
|
var _utils = require("./utils");
|
|
21
21
|
var _Pattern = require("./Pattern");
|
|
22
22
|
/*__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SBar": "
|
|
25
|
-
"--duration": "--
|
|
26
|
-
"_color": "
|
|
27
|
-
"--color": "--
|
|
28
|
-
"_pattern": "
|
|
29
|
-
"--pattern": "--
|
|
30
|
-
"_hide": "
|
|
31
|
-
"_transparent": "
|
|
32
|
-
"__SBackground": "
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SBar_fnkon_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_fnkon);transition-timing-function:ease-in-out}.___SBar_fnkon_gg_.__color_fnkon_gg_{fill:var(--color_fnkon)}.___SBar_fnkon_gg_.__pattern_fnkon_gg_.__color_fnkon_gg_{fill:var(--pattern_fnkon);stroke:var(--color_fnkon);stroke-width:1px}.___SBar_fnkon_gg_.__hide_fnkon_gg_{display:none}.___SBar_fnkon_gg_.__transparent_fnkon_gg_{opacity:.3}.___SBackground_fnkon_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "fnkon_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SBar": "___SBar_fnkon_gg_",
|
|
25
|
+
"--duration": "--duration_fnkon",
|
|
26
|
+
"_color": "__color_fnkon_gg_",
|
|
27
|
+
"--color": "--color_fnkon",
|
|
28
|
+
"_pattern": "__pattern_fnkon_gg_",
|
|
29
|
+
"--pattern": "--pattern_fnkon",
|
|
30
|
+
"_hide": "__hide_fnkon_gg_",
|
|
31
|
+
"_transparent": "__transparent_fnkon_gg_",
|
|
32
|
+
"__SBackground": "___SBackground_fnkon_gg_"
|
|
33
33
|
});
|
|
34
34
|
var MIN_HEIGHT = 2;
|
|
35
35
|
exports.MIN_HEIGHT = MIN_HEIGHT;
|
|
@@ -106,7 +106,8 @@ var BarRoot = /*#__PURE__*/function (_Component) {
|
|
|
106
106
|
transparent = _this$asProps3.transparent,
|
|
107
107
|
_this$asProps3$maxBar = _this$asProps3.maxBarSize,
|
|
108
108
|
maxBarSize = _this$asProps3$maxBar === void 0 ? Infinity : _this$asProps3$maxBar,
|
|
109
|
-
patterns = _this$asProps3.patterns
|
|
109
|
+
patterns = _this$asProps3.patterns,
|
|
110
|
+
dataHintsHandler = _this$asProps3.dataHintsHandler;
|
|
110
111
|
var offset = typeof offsetProps === 'function' ? offsetProps(i) : offsetProps;
|
|
111
112
|
var _scale = (0, _slicedToArray2["default"])(scale, 2),
|
|
112
113
|
xScale = _scale[0],
|
|
@@ -129,9 +130,10 @@ var BarRoot = /*#__PURE__*/function (_Component) {
|
|
|
129
130
|
position: d[y] > 0 || Object.is(d[y], 0) ? 'top' : 'bottom'
|
|
130
131
|
});
|
|
131
132
|
if (groupKey) {
|
|
132
|
-
|
|
133
|
+
dataHintsHandler.describeGroupedValues(groupKey, y);
|
|
133
134
|
} else {
|
|
134
|
-
|
|
135
|
+
dataHintsHandler.describeValueEntity("".concat(i, ".").concat(y), groupKey !== null && groupKey !== void 0 ? groupKey : d[x]);
|
|
136
|
+
dataHintsHandler.specifyDataRowFields(x, y);
|
|
135
137
|
}
|
|
136
138
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, {
|
|
137
139
|
key: "bar-".concat(i)
|
package/lib/cjs/Bar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bar.js","names":["_core","require","_react","_interopRequireDefault","_d3Transition","_uniqueID","_createElement","_AnimatedClipPath","_utils","_Pattern","style","sstyled","insert","MIN_HEIGHT","exports","calcPartBarY","y","minHeight","height","Object","is","BarRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getBackgroundProps","_props","index","_this$asProps","asProps","x","data","animationBar","_this$asProps2","duration","uid","selectRect","transition","selection","selectAll","concat","selectRectNode","node","getAttribute","attr","componentDidUpdate","componentDidMount","renderBar","d","i","_ref","_d$y","_d$y2","_d$y3","SBar","Element","_this$asProps3","styles","color","resolveColor","y0","scale","hide","offsetProps","offset","r","hMin","widthProps","width","groupKey","onClick","transparent","_this$asProps3$maxBar","maxBarSize","Infinity","patterns","_scale","_slicedToArray2","xScale","yScale","absHeight","Math","abs","min","domain","Number","max","bandWidth","scaleToBand","bandwidth","barX","barY","handleClick","event","dSvg","getRect","radius","Array","isArray","position","dataHintsHandler","describeGroupedValues","describeValueEntity","createElement","Fragment","cn","undefined","PatternFill","render","_this$asProps4","size","map","bind","attributeName","values","id","Component","_defineProperty2","uniqueIDEnhancement","Background","props","_ref2","SBackground","_scale2","yRange","range","_ref3","roundedPath","_default"],"sources":["../../src/Bar.jsx"],"sourcesContent":["import React from 'react';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport AnimatedClipPath from './AnimatedClipPath';\nimport { scaleToBand, roundedPath } from './utils';\nimport { PatternFill } from './Pattern';\n\nimport style from './style/bar.shadow.css';\n\nexport const MIN_HEIGHT = 2;\n\nconst calcPartBarY = (y, minHeight, height) => {\n // need for the correct rendering of negative values (bar should be under Y-axis)\n if (y <= 0) {\n return Object.is(y, 0) ? minHeight : 0;\n }\n // need for the correct rendering of the minimum positive values\n return height <= minHeight ? minHeight : 0;\n};\n\nclass BarRoot extends Component {\n static displayName = 'Bar';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n r: 2,\n hMin: MIN_HEIGHT,\n };\n\n getBackgroundProps(_props, index) {\n const { x, data } = this.asProps;\n return {\n value: data[index][x],\n index,\n };\n }\n\n animationBar() {\n const { duration, uid } = this.asProps;\n const selectRect = transition().selection().selectAll(`#${uid} rect`);\n const selectRectNode = selectRect.node();\n\n if (duration > 0 && selectRectNode && selectRectNode.getAttribute('y') !== '0') {\n selectRect.transition().duration(duration).attr('y', 0);\n }\n }\n\n componentDidUpdate() {\n this.animationBar();\n }\n\n componentDidMount() {\n this.animationBar();\n }\n\n renderBar(d, i) {\n const SBar = this.Element;\n const {\n styles,\n color,\n resolveColor,\n x,\n y,\n y0,\n scale,\n hide,\n offset: offsetProps,\n duration,\n uid,\n r,\n hMin,\n width: widthProps,\n groupKey,\n onClick,\n transparent,\n maxBarSize = Infinity,\n patterns,\n } = this.asProps;\n const offset = typeof offsetProps === 'function' ? offsetProps(i) : offsetProps;\n const [xScale, yScale] = scale;\n const absHeight = Math.abs(\n yScale(d[y]) - Math.min(yScale(yScale.domain()[0]), yScale(d[y0] ?? 0)),\n );\n const height = Number(d[y] - (d[y0] ?? 0)) === 0 ? 0 : Math.max(absHeight, hMin);\n const bandWidth = widthProps || scaleToBand(xScale).bandwidth();\n const width = Math.min(bandWidth, maxBarSize);\n const barX = xScale(d[x]) + bandWidth / 2 - width / 2 + offset[0];\n const barY =\n yScale(Math.max(d[y0] ?? 0, height <= hMin && d[y] > 0 ? 0 : d[y])) +\n offset[1] -\n calcPartBarY(d[y], hMin, height);\n const handleClick = (event) => onClick?.(d, event);\n const dSvg = getRect({\n x: barX,\n y: barY,\n width,\n height,\n radius: Array.isArray(r) ? r[i] : r,\n position: d[y] > 0 || Object.is(d[y], 0) ? 'top' : 'bottom',\n });\n\n if (groupKey) {\n this.asProps.dataHintsHandler.describeGroupedValues(groupKey, y);\n } else {\n this.asProps.dataHintsHandler.describeValueEntity(`${i}.${y}`, groupKey ?? d[x]);\n }\n\n return (\n <React.Fragment key={`bar-${i}`}>\n {sstyled(styles)(\n <SBar\n aria-hidden\n render='path'\n clipPath={`url(#${uid})`}\n __excludeProps={['data', 'scale', 'value', 'onClick', 'offset']}\n childrenPosition='above'\n value={d}\n index={i}\n hide={hide}\n pattern={patterns ? `url(#${uid}-${i}-pattern)` : undefined}\n color={resolveColor(color)}\n x={barX}\n y={barY}\n width={width}\n height={height}\n d={dSvg}\n onClickCapture={handleClick}\n use:duration={`${duration}ms`}\n transparent={transparent}\n />,\n )}\n {patterns && (\n <PatternFill\n id={`${uid}-${i}-pattern`}\n patternKey={color}\n color={resolveColor(color)}\n patterns={patterns}\n />\n )}\n </React.Fragment>\n );\n }\n render() {\n const { data, uid, size, duration } = this.asProps;\n return (\n <>\n {data.map(this.renderBar.bind(this))}\n {duration && (\n <AnimatedClipPath\n duration={duration}\n key={`${uid}-animation`}\n attributeName='y'\n values='100%;0'\n id={uid}\n width={size[0]}\n height={`${size[1]}px`}\n />\n )}\n </>\n );\n }\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, value } = props;\n\n const [xScale, yScale] = scale;\n const yRange = yScale.range();\n\n return sstyled(styles)(\n <SBackground\n aria-hidden\n render='rect'\n childrenPosition='above'\n width={scaleToBand(xScale).bandwidth()}\n height={yRange[0] - yRange[1]}\n x={xScale(value)}\n y={yRange[1]}\n />,\n );\n}\n\nfunction getRect({ x, y, width, height, radius, position }) {\n if (height < radius) radius = height;\n if (radius) {\n if (position === 'top')\n return roundedPath(x, y, width, height, radius, true, true, false, false);\n return roundedPath(x, y, width, height, radius, false, false, true, true);\n }\n return roundedPath(x, y, width, height, radius);\n}\n\nexport default createElement(BarRoot, { Background });\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,cAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,iBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAwC;AAAA,IAAAS,KAAA,+BAAAV,KAAA,CAAAW,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAIjC,IAAMC,UAAU,GAAG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E,KAAK,EAAE,KAAK,CAAC;IAC3E,OAAO,IAAA+B,kBAAW,EAACjG,CAAC,EAAErB,CAAC,EAAE2D,KAAK,EAAEzD,MAAM,EAAEqF,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC;EAC3E;EACA,OAAO,IAAA+B,kBAAW,EAACjG,CAAC,EAAErB,CAAC,EAAE2D,KAAK,EAAEzD,MAAM,EAAEqF,MAAM,CAAC;AACjD;AAAC,IAAAgC,QAAA,GAEc,IAAAzB,yBAAa,EAACzF,OAAO,EAAE;EAAEyG,UAAU,EAAVA;AAAW,CAAC,CAAC;AAAAhH,OAAA,cAAAyH,QAAA"}
|
|
1
|
+
{"version":3,"file":"Bar.js","names":["_core","require","_react","_interopRequireDefault","_d3Transition","_uniqueID","_createElement","_AnimatedClipPath","_utils","_Pattern","style","sstyled","insert","MIN_HEIGHT","exports","calcPartBarY","y","minHeight","height","Object","is","BarRoot","_Component","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getBackgroundProps","_props","index","_this$asProps","asProps","x","data","animationBar","_this$asProps2","duration","uid","selectRect","transition","selection","selectAll","concat","selectRectNode","node","getAttribute","attr","componentDidUpdate","componentDidMount","renderBar","d","i","_ref","_d$y","_d$y2","_d$y3","SBar","Element","_this$asProps3","styles","color","resolveColor","y0","scale","hide","offsetProps","offset","r","hMin","widthProps","width","groupKey","onClick","transparent","_this$asProps3$maxBar","maxBarSize","Infinity","patterns","dataHintsHandler","_scale","_slicedToArray2","xScale","yScale","absHeight","Math","abs","min","domain","Number","max","bandWidth","scaleToBand","bandwidth","barX","barY","handleClick","event","dSvg","getRect","radius","Array","isArray","position","describeGroupedValues","describeValueEntity","specifyDataRowFields","createElement","Fragment","cn","undefined","PatternFill","render","_this$asProps4","size","map","bind","attributeName","values","id","Component","_defineProperty2","uniqueIDEnhancement","Background","props","_ref2","SBackground","_scale2","yRange","range","_ref3","roundedPath","_default"],"sources":["../../src/Bar.jsx"],"sourcesContent":["import React from 'react';\nimport { transition } from 'd3-transition';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport AnimatedClipPath from './AnimatedClipPath';\nimport { scaleToBand, roundedPath } from './utils';\nimport { PatternFill } from './Pattern';\n\nimport style from './style/bar.shadow.css';\n\nexport const MIN_HEIGHT = 2;\n\nconst calcPartBarY = (y, minHeight, height) => {\n // need for the correct rendering of negative values (bar should be under Y-axis)\n if (y <= 0) {\n return Object.is(y, 0) ? minHeight : 0;\n }\n // need for the correct rendering of the minimum positive values\n return height <= minHeight ? minHeight : 0;\n};\n\nclass BarRoot extends Component {\n static displayName = 'Bar';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = {\n offset: [0, 0],\n duration: 500,\n r: 2,\n hMin: MIN_HEIGHT,\n };\n\n getBackgroundProps(_props, index) {\n const { x, data } = this.asProps;\n return {\n value: data[index][x],\n index,\n };\n }\n\n animationBar() {\n const { duration, uid } = this.asProps;\n const selectRect = transition().selection().selectAll(`#${uid} rect`);\n const selectRectNode = selectRect.node();\n\n if (duration > 0 && selectRectNode && selectRectNode.getAttribute('y') !== '0') {\n selectRect.transition().duration(duration).attr('y', 0);\n }\n }\n\n componentDidUpdate() {\n this.animationBar();\n }\n\n componentDidMount() {\n this.animationBar();\n }\n\n renderBar(d, i) {\n const SBar = this.Element;\n const {\n styles,\n color,\n resolveColor,\n x,\n y,\n y0,\n scale,\n hide,\n offset: offsetProps,\n duration,\n uid,\n r,\n hMin,\n width: widthProps,\n groupKey,\n onClick,\n transparent,\n maxBarSize = Infinity,\n patterns,\n dataHintsHandler,\n } = this.asProps;\n const offset = typeof offsetProps === 'function' ? offsetProps(i) : offsetProps;\n const [xScale, yScale] = scale;\n const absHeight = Math.abs(\n yScale(d[y]) - Math.min(yScale(yScale.domain()[0]), yScale(d[y0] ?? 0)),\n );\n const height = Number(d[y] - (d[y0] ?? 0)) === 0 ? 0 : Math.max(absHeight, hMin);\n const bandWidth = widthProps || scaleToBand(xScale).bandwidth();\n const width = Math.min(bandWidth, maxBarSize);\n const barX = xScale(d[x]) + bandWidth / 2 - width / 2 + offset[0];\n const barY =\n yScale(Math.max(d[y0] ?? 0, height <= hMin && d[y] > 0 ? 0 : d[y])) +\n offset[1] -\n calcPartBarY(d[y], hMin, height);\n const handleClick = (event) => onClick?.(d, event);\n const dSvg = getRect({\n x: barX,\n y: barY,\n width,\n height,\n radius: Array.isArray(r) ? r[i] : r,\n position: d[y] > 0 || Object.is(d[y], 0) ? 'top' : 'bottom',\n });\n\n if (groupKey) {\n dataHintsHandler.describeGroupedValues(groupKey, y);\n } else {\n dataHintsHandler.describeValueEntity(`${i}.${y}`, groupKey ?? d[x]);\n dataHintsHandler.specifyDataRowFields(x, y);\n }\n\n return (\n <React.Fragment key={`bar-${i}`}>\n {sstyled(styles)(\n <SBar\n aria-hidden\n render='path'\n clipPath={`url(#${uid})`}\n __excludeProps={['data', 'scale', 'value', 'onClick', 'offset']}\n childrenPosition='above'\n value={d}\n index={i}\n hide={hide}\n pattern={patterns ? `url(#${uid}-${i}-pattern)` : undefined}\n color={resolveColor(color)}\n x={barX}\n y={barY}\n width={width}\n height={height}\n d={dSvg}\n onClickCapture={handleClick}\n use:duration={`${duration}ms`}\n transparent={transparent}\n />,\n )}\n {patterns && (\n <PatternFill\n id={`${uid}-${i}-pattern`}\n patternKey={color}\n color={resolveColor(color)}\n patterns={patterns}\n />\n )}\n </React.Fragment>\n );\n }\n render() {\n const { data, uid, size, duration } = this.asProps;\n return (\n <>\n {data.map(this.renderBar.bind(this))}\n {duration && (\n <AnimatedClipPath\n duration={duration}\n key={`${uid}-animation`}\n attributeName='y'\n values='100%;0'\n id={uid}\n width={size[0]}\n height={`${size[1]}px`}\n />\n )}\n </>\n );\n }\n}\n\nfunction Background(props) {\n const { Element: SBackground, styles, scale, value } = props;\n\n const [xScale, yScale] = scale;\n const yRange = yScale.range();\n\n return sstyled(styles)(\n <SBackground\n aria-hidden\n render='rect'\n childrenPosition='above'\n width={scaleToBand(xScale).bandwidth()}\n height={yRange[0] - yRange[1]}\n x={xScale(value)}\n y={yRange[1]}\n />,\n );\n}\n\nfunction getRect({ x, y, width, height, radius, position }) {\n if (height < radius) radius = height;\n if (radius) {\n if (position === 'top')\n return roundedPath(x, y, width, height, radius, true, true, false, false);\n return roundedPath(x, y, width, height, radius, false, false, true, true);\n }\n return roundedPath(x, y, width, height, radius);\n}\n\nexport default createElement(BarRoot, { Background });\n"],"mappings":";;;;;;;;;;;;;AAEA,IAAAA,KAAA,GAAAC,OAAA;AAFA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAEA,IAAAI,SAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,cAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,iBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,QAAA,GAAAR,OAAA;AAAwC;AAAA,IAAAS,KAAA,+BAAAV,KAAA,CAAAW,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAIjC,IAAMC,UAAU,GAAG,CAAC;AAACC,OAAA,CAAAD,UAAA,GAAAA,UAAA;AAE5B,IAAME,YAAY,GAAG,SAAfA,YAAYA,CAAIC,CAAC,EAAEC,SAAS,EAAEC,MAAM,EAAK;EAC7C;EACA,IAAIF,CAAC,IAAI,CAAC,EAAE;IACV,OAAOG,MAAM,CAACC,EAAE,CAACJ,CAAC,EAAE,CAAC,CAAC,GAAGC,SAAS,GAAG,CAAC;EACxC;EACA;EACA,OAAOC,MAAM,IAAID,SAAS,GAAGA,SAAS,GAAG,CAAC;AAC5C,CAAC;AAAC,IAEII,OAAO,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF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BAAa,EAAC1F,OAAO,EAAE;EAAE0G,UAAU,EAAVA;AAAW,CAAC,CAAC;AAAAjH,OAAA,cAAA0H,QAAA"}
|
package/lib/cjs/Bubble.js
CHANGED
|
@@ -23,18 +23,18 @@ var _utils = require("./utils");
|
|
|
23
23
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
24
24
|
var _Pattern = require("./Pattern");
|
|
25
25
|
/*__reshadow-styles__:"./style/bubble.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
27
|
-
"__SBubble": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SCenter": "
|
|
34
|
-
"__SLabel": "
|
|
35
|
-
"_position_right": "
|
|
36
|
-
"_position_left": "
|
|
37
|
-
"--duration": "--
|
|
26
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SBubble_tzzsq_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_tzzsq);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_tzzsq_gg_:hover{opacity:.8}}.___SBubble_tzzsq_gg_.__color_tzzsq_gg_{fill:var(--color_tzzsq)}.___SBubble_tzzsq_gg_.__pattern_tzzsq_gg_.__color_tzzsq_gg_{fill:var(--pattern_tzzsq);stroke:var(--color_tzzsq);stroke-width:1px}.___SBubble_tzzsq_gg_.__transparent_tzzsq_gg_{opacity:.3}.___SCenter_tzzsq_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SCenter_tzzsq_gg_.__color_tzzsq_gg_{stroke:var(--color_tzzsq)}.___SCenter_tzzsq_gg_.__transparent_tzzsq_gg_{opacity:.3}.___SLabel_tzzsq_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SLabel_tzzsq_gg_._position_right_tzzsq_gg_{text-anchor:end}.___SLabel_tzzsq_gg_._position_left_tzzsq_gg_{text-anchor:start}.___SLabel_tzzsq_gg_.__color_tzzsq_gg_{fill:var(--color_tzzsq)}.___SLabel_tzzsq_gg_.__transparent_tzzsq_gg_{opacity:.3}" /*__inner_css_end__*/, "tzzsq_gg_") /*__reshadow_css_end__*/, {
|
|
27
|
+
"__SBubble": "___SBubble_tzzsq_gg_",
|
|
28
|
+
"_color": "__color_tzzsq_gg_",
|
|
29
|
+
"--color": "--color_tzzsq",
|
|
30
|
+
"_pattern": "__pattern_tzzsq_gg_",
|
|
31
|
+
"--pattern": "--pattern_tzzsq",
|
|
32
|
+
"_transparent": "__transparent_tzzsq_gg_",
|
|
33
|
+
"__SCenter": "___SCenter_tzzsq_gg_",
|
|
34
|
+
"__SLabel": "___SLabel_tzzsq_gg_",
|
|
35
|
+
"_position_right": "_position_right_tzzsq_gg_",
|
|
36
|
+
"_position_left": "_position_left_tzzsq_gg_",
|
|
37
|
+
"--duration": "--duration_tzzsq"
|
|
38
38
|
});
|
|
39
39
|
var BubbleRoot = /*#__PURE__*/function (_Component) {
|
|
40
40
|
(0, _inherits2["default"])(BubbleRoot, _Component);
|
package/lib/cjs/Donut.js
CHANGED
|
@@ -28,15 +28,15 @@ var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
|
28
28
|
var _Pattern = require("./Pattern");
|
|
29
29
|
var _excluded = ["Element", "styles", "d3Arc", "data", "color", "$animationActivePie", "active", "d3ArcOut", "name", "dataKey", "dataHintsHandler", "transparent", "innerRadius", "outerRadius", "resolveColor", "halfsize", "uid", "patterns"];
|
|
30
30
|
/*__reshadow-styles__:"./style/donut.shadow.css"*/
|
|
31
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
32
|
-
"__SPie": "
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_pattern": "
|
|
36
|
-
"--pattern": "--
|
|
37
|
-
"_transparent": "
|
|
38
|
-
"__SEmptyData": "
|
|
39
|
-
"__SLabel": "
|
|
31
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPie_5ch8u_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPie_5ch8u_gg_.__color_5ch8u_gg_{fill:var(--color_5ch8u)}.___SPie_5ch8u_gg_.__pattern_5ch8u_gg_.__color_5ch8u_gg_{fill:var(--pattern_5ch8u);stroke:var(--color_5ch8u);stroke-width:1px}.___SPie_5ch8u_gg_.__transparent_5ch8u_gg_{opacity:.3}.___SEmptyData_5ch8u_gg_{fill:var(--intergalactic-chart-palette-order-null, #e0e1e9)}.___SEmptyData_5ch8u_gg_.__color_5ch8u_gg_{fill:var(--color_5ch8u)}.___SLabel_5ch8u_gg_{text-anchor:middle;vertical-anchor:middle;font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}" /*__inner_css_end__*/, "5ch8u_gg_") /*__reshadow_css_end__*/, {
|
|
32
|
+
"__SPie": "___SPie_5ch8u_gg_",
|
|
33
|
+
"_color": "__color_5ch8u_gg_",
|
|
34
|
+
"--color": "--color_5ch8u",
|
|
35
|
+
"_pattern": "__pattern_5ch8u_gg_",
|
|
36
|
+
"--pattern": "--pattern_5ch8u",
|
|
37
|
+
"_transparent": "__transparent_5ch8u_gg_",
|
|
38
|
+
"__SEmptyData": "___SEmptyData_5ch8u_gg_",
|
|
39
|
+
"__SLabel": "___SLabel_5ch8u_gg_"
|
|
40
40
|
});
|
|
41
41
|
var DEFAULT_INSTANCE = Symbol('DEFAULT_INSTANCE');
|
|
42
42
|
function transitionAnglePie(_ref6) {
|
package/lib/cjs/Dots.js
CHANGED
|
@@ -14,14 +14,14 @@ var _createElement = _interopRequireDefault(require("./createElement"));
|
|
|
14
14
|
var _utils = require("./utils");
|
|
15
15
|
var _Pattern = require("./Pattern");
|
|
16
16
|
/*__reshadow-styles__:"./style/dot.shadow.css"*/
|
|
17
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
18
|
-
"__SDot": "
|
|
19
|
-
"_hide": "
|
|
20
|
-
"_color": "
|
|
21
|
-
"--color": "--
|
|
22
|
-
"_transparent": "
|
|
23
|
-
"__SDots": "
|
|
24
|
-
"--duration": "--
|
|
17
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SDots_5vgq1_gg_ .___SDot_5vgq1_gg_{transition-duration:var(--duration_5vgq1)}.___SDot_5vgq1_gg_{stroke-width:1px;stroke:var(--intergalactic-chart-grid-border, #ffffff);fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy,x,y;transition-timing-function:ease-in-out}.___SDot_5vgq1_gg_.__hide_5vgq1_gg_{display:none}.___SDot_5vgq1_gg_.__color_5vgq1_gg_{fill:var(--color_5vgq1)}.___SDot_5vgq1_gg_.__transparent_5vgq1_gg_{opacity:.3}" /*__inner_css_end__*/, "5vgq1_gg_") /*__reshadow_css_end__*/, {
|
|
18
|
+
"__SDot": "___SDot_5vgq1_gg_",
|
|
19
|
+
"_hide": "__hide_5vgq1_gg_",
|
|
20
|
+
"_color": "__color_5vgq1_gg_",
|
|
21
|
+
"--color": "--color_5vgq1",
|
|
22
|
+
"_transparent": "__transparent_5vgq1_gg_",
|
|
23
|
+
"__SDots": "___SDots_5vgq1_gg_",
|
|
24
|
+
"--duration": "--duration_5vgq1"
|
|
25
25
|
});
|
|
26
26
|
var EXCLUDE_PROPS = ['data', 'scale', 'value', 'display'];
|
|
27
27
|
function Dots(props) {
|
package/lib/cjs/HorizontalBar.js
CHANGED
|
@@ -19,16 +19,16 @@ var _AnimatedClipPath = _interopRequireDefault(require("./AnimatedClipPath"));
|
|
|
19
19
|
var _utils = require("./utils");
|
|
20
20
|
var _Pattern = require("./Pattern");
|
|
21
21
|
/*__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SBar": "
|
|
24
|
-
"--duration": "--
|
|
25
|
-
"_color": "
|
|
26
|
-
"--color": "--
|
|
27
|
-
"_pattern": "
|
|
28
|
-
"--pattern": "--
|
|
29
|
-
"_hide": "
|
|
30
|
-
"_transparent": "
|
|
31
|
-
"__SBackground": "
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SBar_fnkon_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:height,width,y;transition-duration:var(--duration_fnkon);transition-timing-function:ease-in-out}.___SBar_fnkon_gg_.__color_fnkon_gg_{fill:var(--color_fnkon)}.___SBar_fnkon_gg_.__pattern_fnkon_gg_.__color_fnkon_gg_{fill:var(--pattern_fnkon);stroke:var(--color_fnkon);stroke-width:1px}.___SBar_fnkon_gg_.__hide_fnkon_gg_{display:none}.___SBar_fnkon_gg_.__transparent_fnkon_gg_{opacity:.3}.___SBackground_fnkon_gg_{fill:var(--intergalactic-chart-palette-order-other-data, #c4c7cf)}" /*__inner_css_end__*/, "fnkon_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SBar": "___SBar_fnkon_gg_",
|
|
24
|
+
"--duration": "--duration_fnkon",
|
|
25
|
+
"_color": "__color_fnkon_gg_",
|
|
26
|
+
"--color": "--color_fnkon",
|
|
27
|
+
"_pattern": "__pattern_fnkon_gg_",
|
|
28
|
+
"--pattern": "--pattern_fnkon",
|
|
29
|
+
"_hide": "__hide_fnkon_gg_",
|
|
30
|
+
"_transparent": "__transparent_fnkon_gg_",
|
|
31
|
+
"__SBackground": "___SBackground_fnkon_gg_"
|
|
32
32
|
});
|
|
33
33
|
var MIN_WIDTH = 2;
|
|
34
34
|
exports.MIN_WIDTH = MIN_WIDTH;
|
package/lib/cjs/Hover.js
CHANGED
|
@@ -21,9 +21,9 @@ var _createElement = _interopRequireDefault(require("./createElement"));
|
|
|
21
21
|
var _utils = require("./utils");
|
|
22
22
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
23
23
|
/*__reshadow-styles__:"./style/hover.shadow.css"*/
|
|
24
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
25
|
-
"__SHoverLine": "
|
|
26
|
-
"__SHoverRect": "
|
|
24
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SHoverLine_vc3xw_gg_{stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___SHoverRect_vc3xw_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "vc3xw_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__SHoverLine": "___SHoverLine_vc3xw_gg_",
|
|
26
|
+
"__SHoverRect": "___SHoverRect_vc3xw_gg_"
|
|
27
27
|
});
|
|
28
28
|
var Hover = /*#__PURE__*/function (_Component) {
|
|
29
29
|
(0, _inherits2["default"])(Hover, _Component);
|
package/lib/cjs/Line.js
CHANGED
|
@@ -22,15 +22,15 @@ var _Dots = _interopRequireDefault(require("./Dots"));
|
|
|
22
22
|
var _AnimatedClipPath = _interopRequireDefault(require("./AnimatedClipPath"));
|
|
23
23
|
var _Pattern = require("./Pattern");
|
|
24
24
|
/*__reshadow-styles__:"./style/line.shadow.css"*/
|
|
25
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
26
|
-
"__SLine": "
|
|
27
|
-
"--duration": "--
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_hide": "
|
|
31
|
-
"_transparent": "
|
|
32
|
-
"__SNull": "
|
|
33
|
-
"__SAria": "
|
|
25
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SLine_kydlw_gg_{fill:transparent;stroke-width:3;stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:d;transition-duration:var(--duration_kydlw);transition-timing-function:ease-in-out}.___SLine_kydlw_gg_.__color_kydlw_gg_{stroke:var(--color_kydlw)}.___SLine_kydlw_gg_.__hide_kydlw_gg_{display:none}.___SLine_kydlw_gg_.__transparent_kydlw_gg_{opacity:.3}.___SNull_kydlw_gg_{fill:transparent;stroke:var(--intergalactic-border-primary, #c4c7cf);stroke-dasharray:4}.___SNull_kydlw_gg_.__hide_kydlw_gg_{display:none}.___SAria_kydlw_gg_{transition-property:d;transition-duration:var(--duration_kydlw);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SAria_kydlw_gg_.__color_kydlw_gg_{fill:var(--color_kydlw)}" /*__inner_css_end__*/, "kydlw_gg_") /*__reshadow_css_end__*/, {
|
|
26
|
+
"__SLine": "___SLine_kydlw_gg_",
|
|
27
|
+
"--duration": "--duration_kydlw",
|
|
28
|
+
"_color": "__color_kydlw_gg_",
|
|
29
|
+
"--color": "--color_kydlw",
|
|
30
|
+
"_hide": "__hide_kydlw_gg_",
|
|
31
|
+
"_transparent": "__transparent_kydlw_gg_",
|
|
32
|
+
"__SNull": "___SNull_kydlw_gg_",
|
|
33
|
+
"__SAria": "___SAria_kydlw_gg_"
|
|
34
34
|
});
|
|
35
35
|
var LineRoot = /*#__PURE__*/function (_Component) {
|
|
36
36
|
(0, _inherits2["default"])(LineRoot, _Component);
|
package/lib/cjs/Plot.js
CHANGED
|
@@ -24,9 +24,9 @@ var _PlotA11yModule = require("./a11y/PlotA11yModule");
|
|
|
24
24
|
var _hints = require("./a11y/hints");
|
|
25
25
|
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/resolveColorEnhance"));
|
|
26
26
|
/*__reshadow-styles__:"./style/plot.shadow.css"*/
|
|
27
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
28
|
-
"__SPlot": "
|
|
29
|
-
"_keyboardFocused": "
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SPlot_hkma2_gg_{overflow:hidden}.___SPlot_hkma2_gg_:active,.___SPlot_hkma2_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_hkma2_gg_.__keyboardFocused_hkma2_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "hkma2_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SPlot": "___SPlot_hkma2_gg_",
|
|
29
|
+
"_keyboardFocused": "__keyboardFocused_hkma2_gg_"
|
|
30
30
|
});
|
|
31
31
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
|
32
32
|
(0, _inherits2["default"])(PlotRoot, _Component);
|
package/lib/cjs/Radar.js
CHANGED
|
@@ -29,25 +29,25 @@ var _utils = require("./utils");
|
|
|
29
29
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
30
30
|
var _Pattern = require("./Pattern");
|
|
31
31
|
/*__reshadow-styles__:"./style/radar.shadow.css"*/
|
|
32
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
33
|
-
"__SAxis": "
|
|
34
|
-
"__SAxisLine": "
|
|
35
|
-
"__SAxisTick": "
|
|
36
|
-
"_active": "
|
|
37
|
-
"__SAxisLabel": "
|
|
38
|
-
"_xDirection": "
|
|
39
|
-
"--xDirection": "--
|
|
40
|
-
"_yDirection": "
|
|
41
|
-
"--yDirection": "--
|
|
42
|
-
"__SPolygon": "
|
|
43
|
-
"_color": "
|
|
44
|
-
"--color": "--
|
|
45
|
-
"_pattern": "
|
|
46
|
-
"--pattern": "--
|
|
47
|
-
"__SPolygonDot": "
|
|
48
|
-
"_transparent": "
|
|
49
|
-
"__SPolygonLine": "
|
|
50
|
-
"__SPieRect": "
|
|
32
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SAxisLine_1eruw_gg_,.___SAxisTick_1eruw_gg_,.___SAxis_1eruw_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_1eruw_gg_,.___SAxisTick_1eruw_gg_{stroke-dasharray:2}.___SAxisLine_1eruw_gg_.__active_1eruw_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_1eruw_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_1eruw_gg_.__xDirection_1eruw_gg_{text-anchor:var(--xDirection_1eruw)}.___SAxisLabel_1eruw_gg_.__yDirection_1eruw_gg_{dominant-baseline:var(--yDirection_1eruw)}.___SPolygonDot_1eruw_gg_,.___SPolygon_1eruw_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_1eruw_gg_{opacity:.2}.___SPolygon_1eruw_gg_.__color_1eruw_gg_{fill:var(--color_1eruw)}.___SPolygon_1eruw_gg_.__pattern_1eruw_gg_.__color_1eruw_gg_{fill:var(--pattern_1eruw);stroke:var(--color_1eruw);stroke-width:1px}.___SPolygonDot_1eruw_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_1eruw_gg_.__transparent_1eruw_gg_{opacity:.3}.___SPolygonDot_1eruw_gg_.__color_1eruw_gg_{fill:var(--color_1eruw)}.___SPolygonLine_1eruw_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_1eruw_gg_.__transparent_1eruw_gg_{opacity:.3}.___SPolygonLine_1eruw_gg_.__color_1eruw_gg_{stroke:var(--color_1eruw)}.___SPieRect_1eruw_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "1eruw_gg_") /*__reshadow_css_end__*/, {
|
|
33
|
+
"__SAxis": "___SAxis_1eruw_gg_",
|
|
34
|
+
"__SAxisLine": "___SAxisLine_1eruw_gg_",
|
|
35
|
+
"__SAxisTick": "___SAxisTick_1eruw_gg_",
|
|
36
|
+
"_active": "__active_1eruw_gg_",
|
|
37
|
+
"__SAxisLabel": "___SAxisLabel_1eruw_gg_",
|
|
38
|
+
"_xDirection": "__xDirection_1eruw_gg_",
|
|
39
|
+
"--xDirection": "--xDirection_1eruw",
|
|
40
|
+
"_yDirection": "__yDirection_1eruw_gg_",
|
|
41
|
+
"--yDirection": "--yDirection_1eruw",
|
|
42
|
+
"__SPolygon": "___SPolygon_1eruw_gg_",
|
|
43
|
+
"_color": "__color_1eruw_gg_",
|
|
44
|
+
"--color": "--color_1eruw",
|
|
45
|
+
"_pattern": "__pattern_1eruw_gg_",
|
|
46
|
+
"--pattern": "--pattern_1eruw",
|
|
47
|
+
"__SPolygonDot": "___SPolygonDot_1eruw_gg_",
|
|
48
|
+
"_transparent": "__transparent_1eruw_gg_",
|
|
49
|
+
"__SPolygonLine": "___SPolygonLine_1eruw_gg_",
|
|
50
|
+
"__SPieRect": "___SPieRect_1eruw_gg_"
|
|
51
51
|
});
|
|
52
52
|
var clampAngle = function clampAngle(angle) {
|
|
53
53
|
angle = angle % (2 * Math.PI);
|
package/lib/cjs/RadialTree.js
CHANGED
|
@@ -27,17 +27,17 @@ var _utils = require("./utils");
|
|
|
27
27
|
var _Pattern = require("./Pattern");
|
|
28
28
|
var _excluded = ["data"];
|
|
29
29
|
/*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
|
30
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
31
|
-
"__SRadian": "
|
|
32
|
-
"__SLine": "
|
|
33
|
-
"_color": "
|
|
34
|
-
"--color": "--
|
|
35
|
-
"_transparent": "
|
|
36
|
-
"__SCap": "
|
|
37
|
-
"_pattern": "
|
|
38
|
-
"__SIcon": "
|
|
39
|
-
"__SLabel": "
|
|
40
|
-
"__SLineCap": "
|
|
30
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SRadian_nsi5n_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_nsi5n_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_nsi5n_gg_.__color_nsi5n_gg_{stroke:var(--color_nsi5n)}.___SLine_nsi5n_gg_.__transparent_nsi5n_gg_{opacity:.3}.___SCap_nsi5n_gg_{transition:r .1s}.___SCap_nsi5n_gg_.__pattern_nsi5n_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_nsi5n_gg_.__transparent_nsi5n_gg_,.___SIcon_nsi5n_gg_.__transparent_nsi5n_gg_,.___SLabel_nsi5n_gg_.__transparent_nsi5n_gg_{opacity:.3}.___SLabel_nsi5n_gg_{fill:var(--color_nsi5n)}@media (hover:hover){.___SRadian_nsi5n_gg_:hover .___SLabel_nsi5n_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_nsi5n_gg_{transition:none}}" /*__inner_css_end__*/, "nsi5n_gg_") /*__reshadow_css_end__*/, {
|
|
31
|
+
"__SRadian": "___SRadian_nsi5n_gg_",
|
|
32
|
+
"__SLine": "___SLine_nsi5n_gg_",
|
|
33
|
+
"_color": "__color_nsi5n_gg_",
|
|
34
|
+
"--color": "--color_nsi5n",
|
|
35
|
+
"_transparent": "__transparent_nsi5n_gg_",
|
|
36
|
+
"__SCap": "___SCap_nsi5n_gg_",
|
|
37
|
+
"_pattern": "__pattern_nsi5n_gg_",
|
|
38
|
+
"__SIcon": "___SIcon_nsi5n_gg_",
|
|
39
|
+
"__SLabel": "___SLabel_nsi5n_gg_",
|
|
40
|
+
"__SLineCap": "___SLineCap_nsi5n_gg_"
|
|
41
41
|
});
|
|
42
42
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
|
43
43
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
package/lib/cjs/ReferenceLine.js
CHANGED
|
@@ -17,15 +17,15 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
var _createElement = _interopRequireDefault(require("./createElement"));
|
|
18
18
|
var _utils = require("./utils");
|
|
19
19
|
/*__reshadow-styles__:"./style/reference-line.shadow.css"*/
|
|
20
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
21
|
-
"__SReferenceLine": "
|
|
22
|
-
"__STitle": "
|
|
23
|
-
"--transform-origin": "--transform-
|
|
24
|
-
"_position_top": "
|
|
25
|
-
"_position_bottom": "
|
|
26
|
-
"_position_right": "
|
|
27
|
-
"_position_left": "
|
|
28
|
-
"__SBackground": "
|
|
20
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_vibns_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_vibns_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_vibns)}.___STitle_vibns_gg_._position_top_vibns_gg_{text-anchor:middle}.___STitle_vibns_gg_._position_bottom_vibns_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_vibns_gg_._position_left_vibns_gg_,.___STitle_vibns_gg_._position_right_vibns_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_vibns_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "vibns_gg_") /*__reshadow_css_end__*/, {
|
|
21
|
+
"__SReferenceLine": "___SReferenceLine_vibns_gg_",
|
|
22
|
+
"__STitle": "___STitle_vibns_gg_",
|
|
23
|
+
"--transform-origin": "--transform-origin_vibns",
|
|
24
|
+
"_position_top": "_position_top_vibns_gg_",
|
|
25
|
+
"_position_bottom": "_position_bottom_vibns_gg_",
|
|
26
|
+
"_position_right": "_position_right_vibns_gg_",
|
|
27
|
+
"_position_left": "_position_left_vibns_gg_",
|
|
28
|
+
"__SBackground": "___SBackground_vibns_gg_"
|
|
29
29
|
});
|
|
30
30
|
var side2direction = {
|
|
31
31
|
left: 'vertical',
|
package/lib/cjs/ScatterPlot.js
CHANGED
|
@@ -23,15 +23,15 @@ var _utils = require("./utils");
|
|
|
23
23
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
24
24
|
var _Pattern = require("./Pattern");
|
|
25
25
|
/*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
|
27
|
-
"__SScatterPlot": "
|
|
28
|
-
"_color": "
|
|
29
|
-
"--color": "--
|
|
30
|
-
"_pattern": "
|
|
31
|
-
"--pattern": "--
|
|
32
|
-
"_transparent": "
|
|
33
|
-
"__SValue": "
|
|
34
|
-
"--duration": "--
|
|
26
|
+
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1p4fw_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1p4fw);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1p4fw_gg_:hover{opacity:.8}}.___SScatterPlot_1p4fw_gg_.__color_1p4fw_gg_{fill:var(--color_1p4fw)}.___SScatterPlot_1p4fw_gg_.__pattern_1p4fw_gg_.__color_1p4fw_gg_{fill:var(--pattern_1p4fw);stroke:var(--color_1p4fw);stroke-width:1px}.___SScatterPlot_1p4fw_gg_.__transparent_1p4fw_gg_{opacity:.3}.___SValue_1p4fw_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1p4fw_gg_.__color_1p4fw_gg_{stroke:var(--color_1p4fw)}.___SValue_1p4fw_gg_.__transparent_1p4fw_gg_{opacity:.3}" /*__inner_css_end__*/, "1p4fw_gg_") /*__reshadow_css_end__*/, {
|
|
27
|
+
"__SScatterPlot": "___SScatterPlot_1p4fw_gg_",
|
|
28
|
+
"_color": "__color_1p4fw_gg_",
|
|
29
|
+
"--color": "--color_1p4fw",
|
|
30
|
+
"_pattern": "__pattern_1p4fw_gg_",
|
|
31
|
+
"--pattern": "--pattern_1p4fw",
|
|
32
|
+
"_transparent": "__transparent_1p4fw_gg_",
|
|
33
|
+
"__SValue": "___SValue_1p4fw_gg_",
|
|
34
|
+
"--duration": "--duration_1p4fw"
|
|
35
35
|
});
|
|
36
36
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
|
37
37
|
(0, _inherits2["default"])(ScatterPlotRoot, _Component);
|