intergalactic 15.52.0-prerelease.0-prerelease-15fe9f5e → 15.53.0-prerelease-dfe34e97
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 +31 -4
- package/accordion/lib/cjs/Accordion.js +7 -6
- package/accordion/lib/cjs/Accordion.js.map +1 -1
- package/accordion/lib/cjs/style/accordion.shadow.css +2 -2
- package/accordion/lib/es6/Accordion.js +7 -6
- package/accordion/lib/es6/Accordion.js.map +1 -1
- package/accordion/lib/es6/style/accordion.shadow.css +2 -2
- package/components.json +12 -12
- package/d3-chart/Pattern.d.ts +336 -0
- package/d3-chart/Plot.d.ts +4 -0
- package/d3-chart/RadialTree.d.ts +7 -2
- package/d3-chart/component/Chart/AbstractChart.type.d.ts +3 -0
- package/d3-chart/component/ChartLegend/BaseLegend.type.d.ts +3 -0
- package/d3-chart/component/ChartLegend/LegendItem/LegendItem.type.d.ts +7 -1
- package/d3-chart/index.d.ts +3 -0
- package/d3-chart/lib/cjs/Area.js +25 -13
- package/d3-chart/lib/cjs/Area.js.map +1 -1
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +23 -12
- package/d3-chart/lib/cjs/Bar.js.map +1 -1
- package/d3-chart/lib/cjs/Bubble.js +25 -13
- package/d3-chart/lib/cjs/Bubble.js.map +1 -1
- package/d3-chart/lib/cjs/Donut.js +28 -12
- package/d3-chart/lib/cjs/Donut.js.map +1 -1
- package/d3-chart/lib/cjs/Dots.js +55 -28
- package/d3-chart/lib/cjs/Dots.js.map +1 -1
- package/d3-chart/lib/cjs/GroupBar.js +4 -2
- package/d3-chart/lib/cjs/GroupBar.js.map +1 -1
- package/d3-chart/lib/cjs/HorizontalBar.js +23 -12
- package/d3-chart/lib/cjs/HorizontalBar.js.map +1 -1
- package/d3-chart/lib/cjs/Hover.js +9 -6
- package/d3-chart/lib/cjs/Hover.js.map +1 -1
- package/d3-chart/lib/cjs/Line.js +23 -15
- package/d3-chart/lib/cjs/Line.js.map +1 -1
- package/d3-chart/lib/cjs/Pattern.js +540 -0
- package/d3-chart/lib/cjs/Pattern.js.map +1 -0
- package/d3-chart/lib/cjs/Plot.js +7 -5
- package/d3-chart/lib/cjs/Plot.js.map +1 -1
- package/d3-chart/lib/cjs/Radar.js +126 -83
- package/d3-chart/lib/cjs/Radar.js.map +1 -1
- package/d3-chart/lib/cjs/RadialTree.js +126 -100
- package/d3-chart/lib/cjs/RadialTree.js.map +1 -1
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +22 -10
- package/d3-chart/lib/cjs/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/cjs/StackBar.js +8 -4
- package/d3-chart/lib/cjs/StackBar.js.map +1 -1
- package/d3-chart/lib/cjs/StackedArea.js +4 -1
- package/d3-chart/lib/cjs/StackedArea.js.map +1 -1
- package/d3-chart/lib/cjs/Tooltip.js +21 -11
- package/d3-chart/lib/cjs/Tooltip.js.map +1 -1
- package/d3-chart/lib/cjs/Venn.js +28 -12
- package/d3-chart/lib/cjs/Venn.js.map +1 -1
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js +7 -3
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js +4 -2
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +80 -53
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +17 -3
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/index.js +19 -0
- package/d3-chart/lib/cjs/index.js.map +1 -1
- package/d3-chart/lib/cjs/style/area.shadow.css +6 -1
- package/d3-chart/lib/cjs/style/bar.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/bubble.shadow.css +8 -1
- package/d3-chart/lib/cjs/style/donut.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/dot.shadow.css +2 -2
- package/d3-chart/lib/cjs/style/radar.shadow.css +7 -1
- package/d3-chart/lib/cjs/style/radial-tree.shadow.css +5 -0
- package/d3-chart/lib/cjs/style/scatterplot.shadow.css +8 -1
- package/d3-chart/lib/cjs/style/tooltip.shadow.css +6 -6
- package/d3-chart/lib/cjs/style/venn.shadow.css +11 -0
- package/d3-chart/lib/cjs/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/index.d.js +12 -0
- package/d3-chart/lib/cjs/types/index.d.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +25 -13
- package/d3-chart/lib/es6/Area.js.map +1 -1
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +23 -12
- package/d3-chart/lib/es6/Bar.js.map +1 -1
- package/d3-chart/lib/es6/Bubble.js +25 -13
- package/d3-chart/lib/es6/Bubble.js.map +1 -1
- package/d3-chart/lib/es6/Donut.js +28 -12
- package/d3-chart/lib/es6/Donut.js.map +1 -1
- package/d3-chart/lib/es6/Dots.js +56 -29
- package/d3-chart/lib/es6/Dots.js.map +1 -1
- package/d3-chart/lib/es6/GroupBar.js +4 -2
- package/d3-chart/lib/es6/GroupBar.js.map +1 -1
- package/d3-chart/lib/es6/HorizontalBar.js +23 -12
- package/d3-chart/lib/es6/HorizontalBar.js.map +1 -1
- package/d3-chart/lib/es6/Hover.js +9 -6
- package/d3-chart/lib/es6/Hover.js.map +1 -1
- package/d3-chart/lib/es6/Line.js +24 -16
- package/d3-chart/lib/es6/Line.js.map +1 -1
- package/d3-chart/lib/es6/Pattern.js +534 -0
- package/d3-chart/lib/es6/Pattern.js.map +1 -0
- package/d3-chart/lib/es6/Plot.js +7 -5
- package/d3-chart/lib/es6/Plot.js.map +1 -1
- package/d3-chart/lib/es6/Radar.js +126 -83
- package/d3-chart/lib/es6/Radar.js.map +1 -1
- package/d3-chart/lib/es6/RadialTree.js +127 -101
- package/d3-chart/lib/es6/RadialTree.js.map +1 -1
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +22 -10
- package/d3-chart/lib/es6/ScatterPlot.js.map +1 -1
- package/d3-chart/lib/es6/StackBar.js +8 -4
- package/d3-chart/lib/es6/StackBar.js.map +1 -1
- package/d3-chart/lib/es6/StackedArea.js +4 -1
- package/d3-chart/lib/es6/StackedArea.js.map +1 -1
- package/d3-chart/lib/es6/Tooltip.js +22 -11
- package/d3-chart/lib/es6/Tooltip.js.map +1 -1
- package/d3-chart/lib/es6/Venn.js +28 -12
- package/d3-chart/lib/es6/Venn.js.map +1 -1
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js +7 -3
- package/d3-chart/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/d3-chart/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js +4 -2
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/BaseLegend.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +80 -53
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.type.js.map +1 -1
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +17 -3
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/index.js +1 -0
- package/d3-chart/lib/es6/index.js.map +1 -1
- package/d3-chart/lib/es6/style/area.shadow.css +6 -1
- package/d3-chart/lib/es6/style/bar.shadow.css +7 -1
- package/d3-chart/lib/es6/style/bubble.shadow.css +8 -1
- package/d3-chart/lib/es6/style/donut.shadow.css +7 -1
- package/d3-chart/lib/es6/style/dot.shadow.css +2 -2
- package/d3-chart/lib/es6/style/radar.shadow.css +7 -1
- package/d3-chart/lib/es6/style/radial-tree.shadow.css +5 -0
- package/d3-chart/lib/es6/style/scatterplot.shadow.css +8 -1
- package/d3-chart/lib/es6/style/tooltip.shadow.css +6 -6
- package/d3-chart/lib/es6/style/venn.shadow.css +11 -0
- package/d3-chart/lib/es6/types/Plot.d.js.map +1 -1
- package/d3-chart/lib/es6/types/index.d.js +3 -0
- package/d3-chart/lib/es6/types/index.d.js.map +1 -1
- package/d3-chart/lib/types/Pattern.d.ts +336 -0
- package/d3-chart/lib/types/Plot.d.ts +4 -0
- package/d3-chart/lib/types/RadialTree.d.ts +7 -2
- package/d3-chart/lib/types/component/Chart/AbstractChart.type.d.ts +3 -0
- package/d3-chart/lib/types/component/ChartLegend/BaseLegend.type.d.ts +3 -0
- package/d3-chart/lib/types/component/ChartLegend/LegendItem/LegendItem.type.d.ts +7 -1
- package/d3-chart/lib/types/index.d.ts +3 -0
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +8 -4
- package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/RangePickerAbstract.js +8 -4
- package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/drag-and-drop/index.d.ts +13 -2
- package/drag-and-drop/lib/cjs/DragAndDrop.js +96 -44
- package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/cjs/index.d.js.map +1 -1
- package/drag-and-drop/lib/cjs/translations/de.json +5 -0
- package/drag-and-drop/lib/cjs/translations/en.json +5 -0
- package/drag-and-drop/lib/cjs/translations/es.json +5 -0
- package/drag-and-drop/lib/cjs/translations/fr.json +5 -0
- package/drag-and-drop/lib/cjs/translations/it.json +5 -0
- package/drag-and-drop/lib/cjs/translations/ja.json +5 -0
- package/drag-and-drop/lib/cjs/translations/ko.json +5 -0
- package/drag-and-drop/lib/cjs/translations/nl.json +5 -0
- package/drag-and-drop/lib/cjs/translations/pl.json +5 -0
- package/drag-and-drop/lib/cjs/translations/pt.json +5 -0
- package/drag-and-drop/lib/cjs/translations/sv.json +5 -0
- package/drag-and-drop/lib/cjs/translations/tr.json +5 -0
- package/drag-and-drop/lib/cjs/translations/vi.json +5 -0
- package/drag-and-drop/lib/cjs/translations/zh.json +5 -0
- package/drag-and-drop/lib/es6/DragAndDrop.js +96 -44
- package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
- package/drag-and-drop/lib/es6/index.d.js.map +1 -1
- package/drag-and-drop/lib/es6/translations/de.json +5 -0
- package/drag-and-drop/lib/es6/translations/en.json +5 -0
- package/drag-and-drop/lib/es6/translations/es.json +5 -0
- package/drag-and-drop/lib/es6/translations/fr.json +5 -0
- package/drag-and-drop/lib/es6/translations/it.json +5 -0
- package/drag-and-drop/lib/es6/translations/ja.json +5 -0
- package/drag-and-drop/lib/es6/translations/ko.json +5 -0
- package/drag-and-drop/lib/es6/translations/nl.json +5 -0
- package/drag-and-drop/lib/es6/translations/pl.json +5 -0
- package/drag-and-drop/lib/es6/translations/pt.json +5 -0
- package/drag-and-drop/lib/es6/translations/sv.json +5 -0
- package/drag-and-drop/lib/es6/translations/tr.json +5 -0
- package/drag-and-drop/lib/es6/translations/vi.json +5 -0
- package/drag-and-drop/lib/es6/translations/zh.json +5 -0
- package/drag-and-drop/lib/types/index.d.ts +13 -2
- package/package.json +3 -3
- package/pills/lib/cjs/Pills.js +44 -57
- package/pills/lib/cjs/Pills.js.map +1 -1
- package/pills/lib/cjs/style/pills.shadow.css +3 -9
- package/pills/lib/es6/Pills.js +44 -57
- package/pills/lib/es6/Pills.js.map +1 -1
- package/pills/lib/es6/style/pills.shadow.css +3 -9
- package/utils/lib/enhances/a11yEnhance.d.ts +9 -3
- package/utils/lib/enhances/a11yEnhance.js +11 -11
- package/utils/lib/enhances/a11yEnhance.js.map +1 -1
- package/utils/lib/enhances/a11yEnhance.mjs +11 -11
- package/utils/lib/enhances/a11yEnhance.mjs.map +1 -1
- package/utils/lib/themes/auto.css +3 -3
- package/utils/lib/themes/dark.css +2 -2
- package/utils/lib/themes/dark.json +1 -1
- package/utils/lib/themes/default.css +1 -1
- package/utils/lib/themes/light.css +1 -1
@@ -18,18 +18,20 @@ import assignProps from 'intergalactic/utils/lib/assignProps';
|
|
18
18
|
import getOriginChildren from 'intergalactic/utils/lib/getOriginChildren';
|
19
19
|
import canUseDOM from 'intergalactic/utils/lib/canUseDOM';
|
20
20
|
import createElement from './createElement';
|
21
|
-
import { measureText } from './utils';
|
21
|
+
import { getChartDefaultColorName, measureText } from './utils';
|
22
|
+
import { PatternSymbol, getPatternSymbolSize } from './Pattern';
|
22
23
|
/*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
24
|
-
"__SRadian": "
|
25
|
-
"__SLine": "
|
26
|
-
"_color": "
|
27
|
-
"--color": "--
|
28
|
-
"_transparent": "
|
29
|
-
"__SCap": "
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_15kkv_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_15kkv_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_15kkv_gg_.__color_15kkv_gg_{stroke:var(--color_15kkv)}.___SLine_15kkv_gg_.__transparent_15kkv_gg_{opacity:.3}.___SCap_15kkv_gg_{transition:r .1s}.___SCap_15kkv_gg_.__pattern_15kkv_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_15kkv_gg_.__transparent_15kkv_gg_,.___SIcon_15kkv_gg_.__transparent_15kkv_gg_,.___SLabel_15kkv_gg_.__transparent_15kkv_gg_{opacity:.3}.___SLabel_15kkv_gg_{fill:var(--color_15kkv)}@media (hover:hover){.___SRadian_15kkv_gg_:hover .___SLabel_15kkv_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_15kkv_gg_{transition:none}}" /*__inner_css_end__*/, "15kkv_gg_") /*__reshadow_css_end__*/, {
|
25
|
+
"__SRadian": "___SRadian_15kkv_gg_",
|
26
|
+
"__SLine": "___SLine_15kkv_gg_",
|
27
|
+
"_color": "__color_15kkv_gg_",
|
28
|
+
"--color": "--color_15kkv",
|
29
|
+
"_transparent": "__transparent_15kkv_gg_",
|
30
|
+
"__SCap": "___SCap_15kkv_gg_",
|
31
|
+
"_pattern": "__pattern_15kkv_gg_",
|
32
|
+
"__SIcon": "___SIcon_15kkv_gg_",
|
33
|
+
"__SLabel": "___SLabel_15kkv_gg_",
|
34
|
+
"__SLineCap": "___SLineCap_15kkv_gg_"
|
33
35
|
});
|
34
36
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
35
37
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
@@ -193,8 +195,8 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
193
195
|
var _this$asProps2 = this.asProps,
|
194
196
|
data = _this$asProps2.data,
|
195
197
|
textSize = _this$asProps2.textSize;
|
196
|
-
var widths = data.map(function (
|
197
|
-
var label =
|
198
|
+
var widths = data.map(function (_ref10) {
|
199
|
+
var label = _ref10.label;
|
198
200
|
return measureText(label, textSize);
|
199
201
|
});
|
200
202
|
return Math.max.apply(Math, _toConsumableArray(widths));
|
@@ -274,9 +276,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
274
276
|
}
|
275
277
|
_createClass(RadialTreeRadian, [{
|
276
278
|
key: "getInteractiveAreaProps",
|
277
|
-
value: function getInteractiveAreaProps(
|
279
|
+
value: function getInteractiveAreaProps(_ref12, index) {
|
278
280
|
var _$rootProps$data;
|
279
|
-
var $rootProps =
|
281
|
+
var $rootProps = _ref12.$rootProps;
|
280
282
|
var data = (_$rootProps$data = $rootProps.data) === null || _$rootProps$data === void 0 ? void 0 : _$rootProps$data[index];
|
281
283
|
var _this$computeRadianPo = this.computeRadianPosition(data, index),
|
282
284
|
xStart = _this$computeRadianPo.xStart,
|
@@ -294,9 +296,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
294
296
|
}
|
295
297
|
}, {
|
296
298
|
key: "getLineProps",
|
297
|
-
value: function getLineProps(
|
298
|
-
var _$rootProps$data2, _color,
|
299
|
-
var $rootProps =
|
299
|
+
value: function getLineProps(_ref13, index) {
|
300
|
+
var _$rootProps$data2, _color, _ref14;
|
301
|
+
var $rootProps = _ref13.$rootProps;
|
300
302
|
var data = (_$rootProps$data2 = $rootProps.data) === null || _$rootProps$data2 === void 0 ? void 0 : _$rootProps$data2[index];
|
301
303
|
var _this$computeRadianPo2 = this.computeRadianPosition(data, index),
|
302
304
|
xStart = _this$computeRadianPo2.xStart,
|
@@ -308,7 +310,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
308
310
|
transparent = _this$asProps5.transparent,
|
309
311
|
resolveColor = _this$asProps5.resolveColor;
|
310
312
|
var color = (_color = data.color) !== null && _color !== void 0 ? _color : this.asProps.color;
|
311
|
-
return
|
313
|
+
return _ref14 = {
|
312
314
|
x1: xStart,
|
313
315
|
y1: yStart,
|
314
316
|
x2: xEnd,
|
@@ -316,13 +318,13 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
316
318
|
stroke: color,
|
317
319
|
resolveColor: resolveColor,
|
318
320
|
transparent: transparent
|
319
|
-
}, _defineProperty(
|
321
|
+
}, _defineProperty(_ref14, 'data-x1', xStart), _defineProperty(_ref14, 'data-y1', yStart), _defineProperty(_ref14, 'data-x2', xEnd), _defineProperty(_ref14, 'data-y2', yEnd), _defineProperty(_ref14, 'data-radial-animation', "".concat(uid, "-line")), _defineProperty(_ref14, 'data-radian-index', index), _ref14;
|
320
322
|
}
|
321
323
|
}, {
|
322
324
|
key: "getCapProps",
|
323
|
-
value: function getCapProps(
|
324
|
-
var _$rootProps$data3, _color2,
|
325
|
-
var $rootProps =
|
325
|
+
value: function getCapProps(_ref15, index) {
|
326
|
+
var _$rootProps$data3, _color2, _ref16;
|
327
|
+
var $rootProps = _ref15.$rootProps;
|
326
328
|
var data = (_$rootProps$data3 = $rootProps.data) === null || _$rootProps$data3 === void 0 ? void 0 : _$rootProps$data3[index];
|
327
329
|
var _this$computeRadianPo3 = this.computeRadianPosition(data, index),
|
328
330
|
xEnd = _this$computeRadianPo3.xEnd,
|
@@ -331,18 +333,19 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
331
333
|
var _this$asProps6 = this.asProps,
|
332
334
|
uid = _this$asProps6.uid,
|
333
335
|
transparent = _this$asProps6.transparent,
|
334
|
-
resolveColor = _this$asProps6.resolveColor
|
336
|
+
resolveColor = _this$asProps6.resolveColor,
|
337
|
+
patterns = _this$asProps6.patterns;
|
335
338
|
var color = (_color2 = data.color) !== null && _color2 !== void 0 ? _color2 : this.asProps.color;
|
336
|
-
return
|
339
|
+
return _ref16 = {
|
337
340
|
x: xEnd,
|
338
341
|
y: yEnd
|
339
|
-
}, _defineProperty(
|
342
|
+
}, _defineProperty(_ref16, 'data-cx', xEnd), _defineProperty(_ref16, 'data-cy', yEnd), _defineProperty(_ref16, "radius", capSize), _defineProperty(_ref16, "color", color), _defineProperty(_ref16, "resolveColor", resolveColor), _defineProperty(_ref16, "transparent", transparent), _defineProperty(_ref16, "patterns", patterns), _defineProperty(_ref16, "uid", "".concat(uid, "-cap-").concat(index)), _defineProperty(_ref16, 'data-radial-animation', "".concat(uid, "-cap-circle")), _defineProperty(_ref16, 'data-radian-index', index), _ref16;
|
340
343
|
}
|
341
344
|
}, {
|
342
345
|
key: "getIconProps",
|
343
|
-
value: function getIconProps(
|
344
|
-
var _$rootProps$data4, _iconColor, _iconSize, _icon,
|
345
|
-
var $rootProps =
|
346
|
+
value: function getIconProps(_ref17, index) {
|
347
|
+
var _$rootProps$data4, _iconColor, _iconSize, _icon, _ref18;
|
348
|
+
var $rootProps = _ref17.$rootProps;
|
346
349
|
var data = (_$rootProps$data4 = $rootProps.data) === null || _$rootProps$data4 === void 0 ? void 0 : _$rootProps$data4[index];
|
347
350
|
var _this$computeRadianPo4 = this.computeRadianPosition(data, index),
|
348
351
|
xEnd = _this$computeRadianPo4.xEnd,
|
@@ -356,16 +359,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
356
359
|
var icon = (_icon = data.icon) !== null && _icon !== void 0 ? _icon : this.asProps.icon;
|
357
360
|
var x = xEnd - iconSize / 2;
|
358
361
|
var y = yEnd - iconSize / 2;
|
359
|
-
return
|
362
|
+
return _ref18 = {
|
360
363
|
x: x,
|
361
364
|
y: y
|
362
|
-
}, _defineProperty(
|
365
|
+
}, _defineProperty(_ref18, 'data-x', x), _defineProperty(_ref18, 'data-y', y), _defineProperty(_ref18, "iconSize", iconSize), _defineProperty(_ref18, "color", iconColor !== null && iconColor !== void 0 ? iconColor : '#fff'), _defineProperty(_ref18, "resolveColor", resolveColor), _defineProperty(_ref18, 'data-radial-animation', "".concat(uid, "-cap-icon")), _defineProperty(_ref18, 'data-radian-index', index), _defineProperty(_ref18, "icon", icon), _defineProperty(_ref18, "tag", icon), _defineProperty(_ref18, "isActive", isActive), _ref18;
|
363
366
|
}
|
364
367
|
}, {
|
365
368
|
key: "getLabelProps",
|
366
|
-
value: function getLabelProps(
|
367
|
-
var _$rootProps$data5, _color3,
|
368
|
-
var $rootProps =
|
369
|
+
value: function getLabelProps(_ref19, index) {
|
370
|
+
var _$rootProps$data5, _color3, _ref21;
|
371
|
+
var $rootProps = _ref19.$rootProps;
|
369
372
|
var data = (_$rootProps$data5 = $rootProps.data) === null || _$rootProps$data5 === void 0 ? void 0 : _$rootProps$data5[index];
|
370
373
|
var _this$computeRadianPo5 = this.computeRadianPosition(data, index),
|
371
374
|
xLabelCenter = _this$computeRadianPo5.xLabelCenter,
|
@@ -377,14 +380,14 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
377
380
|
textSize = _this$asProps8.textSize,
|
378
381
|
transparent = _this$asProps8.transparent,
|
379
382
|
resolveColor = _this$asProps8.resolveColor;
|
380
|
-
var
|
381
|
-
label =
|
383
|
+
var _ref20 = data,
|
384
|
+
label = _ref20.label;
|
382
385
|
var color = (_color3 = data.color) !== null && _color3 !== void 0 ? _color3 : this.asProps.color;
|
383
|
-
return
|
386
|
+
return _ref21 = {
|
384
387
|
x: xLabelCenter,
|
385
388
|
y: yLabelCenter,
|
386
389
|
angle: labelAngle
|
387
|
-
}, _defineProperty(
|
390
|
+
}, _defineProperty(_ref21, 'data-radial-animation', "".concat(uid, "-label")), _defineProperty(_ref21, 'data-radian-index', index), _defineProperty(_ref21, "label", label), _defineProperty(_ref21, "color", color), _defineProperty(_ref21, "resolveColor", resolveColor), _defineProperty(_ref21, "isHorizontal", isHorizontal), _defineProperty(_ref21, "textSize", textSize), _defineProperty(_ref21, "transparent", transparent), _ref21;
|
388
391
|
}
|
389
392
|
}, {
|
390
393
|
key: "getRadianKey",
|
@@ -494,10 +497,10 @@ _defineProperty(RadialTreeRadian, "defaultProps", {
|
|
494
497
|
iconSize: 16,
|
495
498
|
textSize: 14
|
496
499
|
});
|
497
|
-
var InteractiveArea = function InteractiveArea(
|
500
|
+
var InteractiveArea = function InteractiveArea(_ref22) {
|
498
501
|
var _ref4;
|
499
|
-
var SInteractiveArea =
|
500
|
-
styles =
|
502
|
+
var SInteractiveArea = _ref22.Element,
|
503
|
+
styles = _ref22.styles;
|
501
504
|
return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(SInteractiveArea, _ref4.cn("SInteractiveArea", {
|
502
505
|
"stroke": 'transparent',
|
503
506
|
"render": 'line'
|
@@ -506,13 +509,13 @@ var InteractiveArea = function InteractiveArea(_ref21) {
|
|
506
509
|
|
507
510
|
/** @deprecated */
|
508
511
|
|
509
|
-
var Line = function Line(
|
512
|
+
var Line = function Line(_ref23) {
|
510
513
|
var _ref5;
|
511
|
-
var SLine =
|
512
|
-
styles =
|
513
|
-
stroke =
|
514
|
-
resolveColor =
|
515
|
-
transparent =
|
514
|
+
var SLine = _ref23.Element,
|
515
|
+
styles = _ref23.styles,
|
516
|
+
stroke = _ref23.stroke,
|
517
|
+
resolveColor = _ref23.resolveColor,
|
518
|
+
transparent = _ref23.transparent;
|
516
519
|
return _ref5 = sstyled(styles), /*#__PURE__*/React.createElement(SLine, _ref5.cn("SLine", {
|
517
520
|
"render": 'line',
|
518
521
|
"stroke": resolveColor(stroke),
|
@@ -522,42 +525,65 @@ var Line = function Line(_ref22) {
|
|
522
525
|
|
523
526
|
/** @deprecated */
|
524
527
|
|
525
|
-
var Cap = function Cap(
|
526
|
-
var
|
527
|
-
var SCap =
|
528
|
-
styles =
|
529
|
-
x =
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
528
|
+
var Cap = function Cap(_ref24) {
|
529
|
+
var _ref7;
|
530
|
+
var SCap = _ref24.Element,
|
531
|
+
styles = _ref24.styles,
|
532
|
+
_ref24$x = _ref24.x,
|
533
|
+
x = _ref24$x === void 0 ? 0 : _ref24$x,
|
534
|
+
_ref24$y = _ref24.y,
|
535
|
+
y = _ref24$y === void 0 ? 0 : _ref24$y,
|
536
|
+
radius = _ref24.radius,
|
537
|
+
color = _ref24.color,
|
538
|
+
resolveColor = _ref24.resolveColor,
|
539
|
+
transparent = _ref24.transparent,
|
540
|
+
patterns = _ref24.patterns;
|
541
|
+
if (!patterns) {
|
542
|
+
var _ref6;
|
543
|
+
return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SCap, _ref6.cn("SCap", {
|
544
|
+
"render": 'circle',
|
545
|
+
"cx": x,
|
546
|
+
"cy": y,
|
547
|
+
"r": radius,
|
548
|
+
"fill": resolveColor(color),
|
549
|
+
"transparent": transparent
|
550
|
+
}));
|
551
|
+
}
|
552
|
+
var patternKey = color || getChartDefaultColorName(0);
|
553
|
+
var _getPatternSymbolSize = getPatternSymbolSize({
|
554
|
+
patternKey: patternKey,
|
555
|
+
patterns: patterns
|
556
|
+
}),
|
557
|
+
_getPatternSymbolSize2 = _slicedToArray(_getPatternSymbolSize, 2),
|
558
|
+
width = _getPatternSymbolSize2[0],
|
559
|
+
height = _getPatternSymbolSize2[1];
|
560
|
+
return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SCap, _ref7.cn("SCap", {
|
561
|
+
"render": PatternSymbol,
|
562
|
+
"patternKey": color,
|
563
|
+
"x": x - (width || 0) / 2,
|
564
|
+
"y": y - (height || 0) / 2,
|
540
565
|
"fill": resolveColor(color),
|
541
|
-
"transparent": transparent
|
566
|
+
"transparent": transparent,
|
567
|
+
"pattern": true
|
542
568
|
}));
|
543
569
|
};
|
544
570
|
|
545
571
|
/** @deprecated */
|
546
572
|
|
547
|
-
var Icon = function Icon(
|
548
|
-
var
|
549
|
-
var SIcon =
|
550
|
-
styles =
|
551
|
-
isActive =
|
552
|
-
tag =
|
553
|
-
x =
|
554
|
-
y =
|
555
|
-
iconSize =
|
556
|
-
transparent =
|
573
|
+
var Icon = function Icon(_ref25) {
|
574
|
+
var _ref8;
|
575
|
+
var SIcon = _ref25.Element,
|
576
|
+
styles = _ref25.styles,
|
577
|
+
isActive = _ref25.isActive,
|
578
|
+
tag = _ref25.tag,
|
579
|
+
x = _ref25.x,
|
580
|
+
y = _ref25.y,
|
581
|
+
iconSize = _ref25.iconSize,
|
582
|
+
transparent = _ref25.transparent;
|
557
583
|
if (!(isActive && tag)) return null;
|
558
584
|
var width = iconSize;
|
559
585
|
var height = iconSize;
|
560
|
-
return
|
586
|
+
return _ref8 = sstyled(styles), /*#__PURE__*/React.createElement(SIcon, _ref8.cn("SIcon", {
|
561
587
|
"x": x,
|
562
588
|
"y": y,
|
563
589
|
"width": width,
|
@@ -569,19 +595,19 @@ var Icon = function Icon(_ref24) {
|
|
569
595
|
|
570
596
|
/** @deprecated */
|
571
597
|
|
572
|
-
var Label = function Label(
|
573
|
-
var SLabel =
|
574
|
-
Children =
|
575
|
-
styles =
|
576
|
-
label =
|
577
|
-
color =
|
578
|
-
resolveColor =
|
579
|
-
isHorizontal =
|
580
|
-
x =
|
581
|
-
y =
|
582
|
-
textSize =
|
583
|
-
angle =
|
584
|
-
transparent =
|
598
|
+
var Label = function Label(_ref26) {
|
599
|
+
var SLabel = _ref26.Element,
|
600
|
+
Children = _ref26.Children,
|
601
|
+
styles = _ref26.styles,
|
602
|
+
label = _ref26.label,
|
603
|
+
color = _ref26.color,
|
604
|
+
resolveColor = _ref26.resolveColor,
|
605
|
+
isHorizontal = _ref26.isHorizontal,
|
606
|
+
x = _ref26.x,
|
607
|
+
y = _ref26.y,
|
608
|
+
textSize = _ref26.textSize,
|
609
|
+
angle = _ref26.angle,
|
610
|
+
transparent = _ref26.transparent;
|
585
611
|
var lines = String(label).split('\n');
|
586
612
|
var linesCount = lines.length;
|
587
613
|
var SLabelLine = 'tspan';
|
@@ -622,22 +648,22 @@ var Radian = createElement(RadialTreeRadian, {
|
|
622
648
|
|
623
649
|
/** @deprecated */
|
624
650
|
|
625
|
-
var Title = function Title(
|
626
|
-
var
|
627
|
-
var STitle =
|
628
|
-
Children =
|
629
|
-
children =
|
630
|
-
styles =
|
631
|
-
textSize =
|
632
|
-
color =
|
633
|
-
resolveColor =
|
634
|
-
x =
|
635
|
-
y =
|
636
|
-
dataHintsHandler =
|
651
|
+
var Title = function Title(_ref27) {
|
652
|
+
var _ref9;
|
653
|
+
var STitle = _ref27.Element,
|
654
|
+
Children = _ref27.Children,
|
655
|
+
children = _ref27.children,
|
656
|
+
styles = _ref27.styles,
|
657
|
+
textSize = _ref27.textSize,
|
658
|
+
color = _ref27.color,
|
659
|
+
resolveColor = _ref27.resolveColor,
|
660
|
+
x = _ref27.x,
|
661
|
+
y = _ref27.y,
|
662
|
+
dataHintsHandler = _ref27.dataHintsHandler;
|
637
663
|
if (typeof children === 'string') {
|
638
664
|
dataHintsHandler.setTitle('vertical', children);
|
639
665
|
}
|
640
|
-
return
|
666
|
+
return _ref9 = sstyled(styles), /*#__PURE__*/React.createElement(STitle, _ref9.cn("STitle", {
|
641
667
|
"aria-hidden": true,
|
642
668
|
"render": 'text',
|
643
669
|
"textAnchor": 'middle',
|
@@ -646,7 +672,7 @@ var Title = function Title(_ref26) {
|
|
646
672
|
"fill": resolveColor(color),
|
647
673
|
"x": x,
|
648
674
|
"y": y
|
649
|
-
}), /*#__PURE__*/React.createElement(Children,
|
675
|
+
}), /*#__PURE__*/React.createElement(Children, _ref9.cn("Children", {})));
|
650
676
|
};
|
651
677
|
var RadialTree = createElement(RadialTreeBase, {
|
652
678
|
Title: Title,
|