intergalactic 15.52.0-prerelease.0-prerelease-3f2a94a7 → 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/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 +6 -3
- package/d3-chart/lib/cjs/Hover.js.map +1 -1
- package/d3-chart/lib/cjs/Line.js +14 -6
- 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 +4 -2
- 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/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/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/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/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/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 +6 -3
- package/d3-chart/lib/es6/Hover.js.map +1 -1
- package/d3-chart/lib/es6/Line.js +15 -7
- 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 +4 -2
- 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/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/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/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/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 +1 -1
- 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
@@ -24,18 +24,20 @@ var _getOriginChildren = _interopRequireDefault(require("intergalactic/utils/lib
|
|
24
24
|
var _canUseDOM = _interopRequireDefault(require("intergalactic/utils/lib/canUseDOM"));
|
25
25
|
var _createElement = _interopRequireDefault(require("./createElement"));
|
26
26
|
var _utils = require("./utils");
|
27
|
+
var _Pattern = require("./Pattern");
|
27
28
|
var _excluded = ["data"];
|
28
29
|
/*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
29
|
-
var style = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/".
|
30
|
-
"__SRadian": "
|
31
|
-
"__SLine": "
|
32
|
-
"_color": "
|
33
|
-
"--color": "--
|
34
|
-
"_transparent": "
|
35
|
-
"__SCap": "
|
36
|
-
"
|
37
|
-
"
|
38
|
-
"
|
30
|
+
var style = ( /*__reshadow_css_start__*/_core.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__*/, {
|
31
|
+
"__SRadian": "___SRadian_15kkv_gg_",
|
32
|
+
"__SLine": "___SLine_15kkv_gg_",
|
33
|
+
"_color": "__color_15kkv_gg_",
|
34
|
+
"--color": "--color_15kkv",
|
35
|
+
"_transparent": "__transparent_15kkv_gg_",
|
36
|
+
"__SCap": "___SCap_15kkv_gg_",
|
37
|
+
"_pattern": "__pattern_15kkv_gg_",
|
38
|
+
"__SIcon": "___SIcon_15kkv_gg_",
|
39
|
+
"__SLabel": "___SLabel_15kkv_gg_",
|
40
|
+
"__SLineCap": "___SLineCap_15kkv_gg_"
|
39
41
|
});
|
40
42
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
41
43
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
@@ -199,8 +201,8 @@ var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
|
199
201
|
var _this$asProps2 = this.asProps,
|
200
202
|
data = _this$asProps2.data,
|
201
203
|
textSize = _this$asProps2.textSize;
|
202
|
-
var widths = data.map(function (
|
203
|
-
var label =
|
204
|
+
var widths = data.map(function (_ref10) {
|
205
|
+
var label = _ref10.label;
|
204
206
|
return (0, _utils.measureText)(label, textSize);
|
205
207
|
});
|
206
208
|
return Math.max.apply(Math, (0, _toConsumableArray2["default"])(widths));
|
@@ -280,9 +282,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
280
282
|
}
|
281
283
|
(0, _createClass2["default"])(RadialTreeRadian, [{
|
282
284
|
key: "getInteractiveAreaProps",
|
283
|
-
value: function getInteractiveAreaProps(
|
285
|
+
value: function getInteractiveAreaProps(_ref12, index) {
|
284
286
|
var _$rootProps$data;
|
285
|
-
var $rootProps =
|
287
|
+
var $rootProps = _ref12.$rootProps;
|
286
288
|
var data = (_$rootProps$data = $rootProps.data) === null || _$rootProps$data === void 0 ? void 0 : _$rootProps$data[index];
|
287
289
|
var _this$computeRadianPo = this.computeRadianPosition(data, index),
|
288
290
|
xStart = _this$computeRadianPo.xStart,
|
@@ -300,9 +302,9 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
300
302
|
}
|
301
303
|
}, {
|
302
304
|
key: "getLineProps",
|
303
|
-
value: function getLineProps(
|
304
|
-
var _$rootProps$data2, _color,
|
305
|
-
var $rootProps =
|
305
|
+
value: function getLineProps(_ref13, index) {
|
306
|
+
var _$rootProps$data2, _color, _ref14;
|
307
|
+
var $rootProps = _ref13.$rootProps;
|
306
308
|
var data = (_$rootProps$data2 = $rootProps.data) === null || _$rootProps$data2 === void 0 ? void 0 : _$rootProps$data2[index];
|
307
309
|
var _this$computeRadianPo2 = this.computeRadianPosition(data, index),
|
308
310
|
xStart = _this$computeRadianPo2.xStart,
|
@@ -314,7 +316,7 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
314
316
|
transparent = _this$asProps5.transparent,
|
315
317
|
resolveColor = _this$asProps5.resolveColor;
|
316
318
|
var color = (_color = data.color) !== null && _color !== void 0 ? _color : this.asProps.color;
|
317
|
-
return
|
319
|
+
return _ref14 = {
|
318
320
|
x1: xStart,
|
319
321
|
y1: yStart,
|
320
322
|
x2: xEnd,
|
@@ -322,13 +324,13 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
322
324
|
stroke: color,
|
323
325
|
resolveColor: resolveColor,
|
324
326
|
transparent: transparent
|
325
|
-
}, (0, _defineProperty2["default"])(
|
327
|
+
}, (0, _defineProperty2["default"])(_ref14, 'data-x1', xStart), (0, _defineProperty2["default"])(_ref14, 'data-y1', yStart), (0, _defineProperty2["default"])(_ref14, 'data-x2', xEnd), (0, _defineProperty2["default"])(_ref14, 'data-y2', yEnd), (0, _defineProperty2["default"])(_ref14, 'data-radial-animation', "".concat(uid, "-line")), (0, _defineProperty2["default"])(_ref14, 'data-radian-index', index), _ref14;
|
326
328
|
}
|
327
329
|
}, {
|
328
330
|
key: "getCapProps",
|
329
|
-
value: function getCapProps(
|
330
|
-
var _$rootProps$data3, _color2,
|
331
|
-
var $rootProps =
|
331
|
+
value: function getCapProps(_ref15, index) {
|
332
|
+
var _$rootProps$data3, _color2, _ref16;
|
333
|
+
var $rootProps = _ref15.$rootProps;
|
332
334
|
var data = (_$rootProps$data3 = $rootProps.data) === null || _$rootProps$data3 === void 0 ? void 0 : _$rootProps$data3[index];
|
333
335
|
var _this$computeRadianPo3 = this.computeRadianPosition(data, index),
|
334
336
|
xEnd = _this$computeRadianPo3.xEnd,
|
@@ -337,18 +339,19 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
337
339
|
var _this$asProps6 = this.asProps,
|
338
340
|
uid = _this$asProps6.uid,
|
339
341
|
transparent = _this$asProps6.transparent,
|
340
|
-
resolveColor = _this$asProps6.resolveColor
|
342
|
+
resolveColor = _this$asProps6.resolveColor,
|
343
|
+
patterns = _this$asProps6.patterns;
|
341
344
|
var color = (_color2 = data.color) !== null && _color2 !== void 0 ? _color2 : this.asProps.color;
|
342
|
-
return
|
345
|
+
return _ref16 = {
|
343
346
|
x: xEnd,
|
344
347
|
y: yEnd
|
345
|
-
}, (0, _defineProperty2["default"])(
|
348
|
+
}, (0, _defineProperty2["default"])(_ref16, 'data-cx', xEnd), (0, _defineProperty2["default"])(_ref16, 'data-cy', yEnd), (0, _defineProperty2["default"])(_ref16, "radius", capSize), (0, _defineProperty2["default"])(_ref16, "color", color), (0, _defineProperty2["default"])(_ref16, "resolveColor", resolveColor), (0, _defineProperty2["default"])(_ref16, "transparent", transparent), (0, _defineProperty2["default"])(_ref16, "patterns", patterns), (0, _defineProperty2["default"])(_ref16, "uid", "".concat(uid, "-cap-").concat(index)), (0, _defineProperty2["default"])(_ref16, 'data-radial-animation', "".concat(uid, "-cap-circle")), (0, _defineProperty2["default"])(_ref16, 'data-radian-index', index), _ref16;
|
346
349
|
}
|
347
350
|
}, {
|
348
351
|
key: "getIconProps",
|
349
|
-
value: function getIconProps(
|
350
|
-
var _$rootProps$data4, _iconColor, _iconSize, _icon,
|
351
|
-
var $rootProps =
|
352
|
+
value: function getIconProps(_ref17, index) {
|
353
|
+
var _$rootProps$data4, _iconColor, _iconSize, _icon, _ref18;
|
354
|
+
var $rootProps = _ref17.$rootProps;
|
352
355
|
var data = (_$rootProps$data4 = $rootProps.data) === null || _$rootProps$data4 === void 0 ? void 0 : _$rootProps$data4[index];
|
353
356
|
var _this$computeRadianPo4 = this.computeRadianPosition(data, index),
|
354
357
|
xEnd = _this$computeRadianPo4.xEnd,
|
@@ -362,16 +365,16 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
362
365
|
var icon = (_icon = data.icon) !== null && _icon !== void 0 ? _icon : this.asProps.icon;
|
363
366
|
var x = xEnd - iconSize / 2;
|
364
367
|
var y = yEnd - iconSize / 2;
|
365
|
-
return
|
368
|
+
return _ref18 = {
|
366
369
|
x: x,
|
367
370
|
y: y
|
368
|
-
}, (0, _defineProperty2["default"])(
|
371
|
+
}, (0, _defineProperty2["default"])(_ref18, 'data-x', x), (0, _defineProperty2["default"])(_ref18, 'data-y', y), (0, _defineProperty2["default"])(_ref18, "iconSize", iconSize), (0, _defineProperty2["default"])(_ref18, "color", iconColor !== null && iconColor !== void 0 ? iconColor : '#fff'), (0, _defineProperty2["default"])(_ref18, "resolveColor", resolveColor), (0, _defineProperty2["default"])(_ref18, 'data-radial-animation', "".concat(uid, "-cap-icon")), (0, _defineProperty2["default"])(_ref18, 'data-radian-index', index), (0, _defineProperty2["default"])(_ref18, "icon", icon), (0, _defineProperty2["default"])(_ref18, "tag", icon), (0, _defineProperty2["default"])(_ref18, "isActive", isActive), _ref18;
|
369
372
|
}
|
370
373
|
}, {
|
371
374
|
key: "getLabelProps",
|
372
|
-
value: function getLabelProps(
|
373
|
-
var _$rootProps$data5, _color3,
|
374
|
-
var $rootProps =
|
375
|
+
value: function getLabelProps(_ref19, index) {
|
376
|
+
var _$rootProps$data5, _color3, _ref21;
|
377
|
+
var $rootProps = _ref19.$rootProps;
|
375
378
|
var data = (_$rootProps$data5 = $rootProps.data) === null || _$rootProps$data5 === void 0 ? void 0 : _$rootProps$data5[index];
|
376
379
|
var _this$computeRadianPo5 = this.computeRadianPosition(data, index),
|
377
380
|
xLabelCenter = _this$computeRadianPo5.xLabelCenter,
|
@@ -383,14 +386,14 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
383
386
|
textSize = _this$asProps8.textSize,
|
384
387
|
transparent = _this$asProps8.transparent,
|
385
388
|
resolveColor = _this$asProps8.resolveColor;
|
386
|
-
var
|
387
|
-
label =
|
389
|
+
var _ref20 = data,
|
390
|
+
label = _ref20.label;
|
388
391
|
var color = (_color3 = data.color) !== null && _color3 !== void 0 ? _color3 : this.asProps.color;
|
389
|
-
return
|
392
|
+
return _ref21 = {
|
390
393
|
x: xLabelCenter,
|
391
394
|
y: yLabelCenter,
|
392
395
|
angle: labelAngle
|
393
|
-
}, (0, _defineProperty2["default"])(
|
396
|
+
}, (0, _defineProperty2["default"])(_ref21, 'data-radial-animation', "".concat(uid, "-label")), (0, _defineProperty2["default"])(_ref21, 'data-radian-index', index), (0, _defineProperty2["default"])(_ref21, "label", label), (0, _defineProperty2["default"])(_ref21, "color", color), (0, _defineProperty2["default"])(_ref21, "resolveColor", resolveColor), (0, _defineProperty2["default"])(_ref21, "isHorizontal", isHorizontal), (0, _defineProperty2["default"])(_ref21, "textSize", textSize), (0, _defineProperty2["default"])(_ref21, "transparent", transparent), _ref21;
|
394
397
|
}
|
395
398
|
}, {
|
396
399
|
key: "getRadianKey",
|
@@ -500,10 +503,10 @@ var RadialTreeRadian = /*#__PURE__*/function (_Component2) {
|
|
500
503
|
iconSize: 16,
|
501
504
|
textSize: 14
|
502
505
|
});
|
503
|
-
var InteractiveArea = function InteractiveArea(
|
506
|
+
var InteractiveArea = function InteractiveArea(_ref22) {
|
504
507
|
var _ref4;
|
505
|
-
var SInteractiveArea =
|
506
|
-
styles =
|
508
|
+
var SInteractiveArea = _ref22.Element,
|
509
|
+
styles = _ref22.styles;
|
507
510
|
return _ref4 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SInteractiveArea, _ref4.cn("SInteractiveArea", {
|
508
511
|
"stroke": 'transparent',
|
509
512
|
"render": 'line'
|
@@ -512,13 +515,13 @@ var InteractiveArea = function InteractiveArea(_ref21) {
|
|
512
515
|
|
513
516
|
/** @deprecated */
|
514
517
|
|
515
|
-
var Line = function Line(
|
518
|
+
var Line = function Line(_ref23) {
|
516
519
|
var _ref5;
|
517
|
-
var SLine =
|
518
|
-
styles =
|
519
|
-
stroke =
|
520
|
-
resolveColor =
|
521
|
-
transparent =
|
520
|
+
var SLine = _ref23.Element,
|
521
|
+
styles = _ref23.styles,
|
522
|
+
stroke = _ref23.stroke,
|
523
|
+
resolveColor = _ref23.resolveColor,
|
524
|
+
transparent = _ref23.transparent;
|
522
525
|
return _ref5 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SLine, _ref5.cn("SLine", {
|
523
526
|
"render": 'line',
|
524
527
|
"stroke": resolveColor(stroke),
|
@@ -528,42 +531,65 @@ var Line = function Line(_ref22) {
|
|
528
531
|
|
529
532
|
/** @deprecated */
|
530
533
|
|
531
|
-
var Cap = function Cap(
|
532
|
-
var
|
533
|
-
var SCap =
|
534
|
-
styles =
|
535
|
-
x =
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
534
|
+
var Cap = function Cap(_ref24) {
|
535
|
+
var _ref7;
|
536
|
+
var SCap = _ref24.Element,
|
537
|
+
styles = _ref24.styles,
|
538
|
+
_ref24$x = _ref24.x,
|
539
|
+
x = _ref24$x === void 0 ? 0 : _ref24$x,
|
540
|
+
_ref24$y = _ref24.y,
|
541
|
+
y = _ref24$y === void 0 ? 0 : _ref24$y,
|
542
|
+
radius = _ref24.radius,
|
543
|
+
color = _ref24.color,
|
544
|
+
resolveColor = _ref24.resolveColor,
|
545
|
+
transparent = _ref24.transparent,
|
546
|
+
patterns = _ref24.patterns;
|
547
|
+
if (!patterns) {
|
548
|
+
var _ref6;
|
549
|
+
return _ref6 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCap, _ref6.cn("SCap", {
|
550
|
+
"render": 'circle',
|
551
|
+
"cx": x,
|
552
|
+
"cy": y,
|
553
|
+
"r": radius,
|
554
|
+
"fill": resolveColor(color),
|
555
|
+
"transparent": transparent
|
556
|
+
}));
|
557
|
+
}
|
558
|
+
var patternKey = color || (0, _utils.getChartDefaultColorName)(0);
|
559
|
+
var _getPatternSymbolSize = (0, _Pattern.getPatternSymbolSize)({
|
560
|
+
patternKey: patternKey,
|
561
|
+
patterns: patterns
|
562
|
+
}),
|
563
|
+
_getPatternSymbolSize2 = (0, _slicedToArray2["default"])(_getPatternSymbolSize, 2),
|
564
|
+
width = _getPatternSymbolSize2[0],
|
565
|
+
height = _getPatternSymbolSize2[1];
|
566
|
+
return _ref7 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SCap, _ref7.cn("SCap", {
|
567
|
+
"render": _Pattern.PatternSymbol,
|
568
|
+
"patternKey": color,
|
569
|
+
"x": x - (width || 0) / 2,
|
570
|
+
"y": y - (height || 0) / 2,
|
546
571
|
"fill": resolveColor(color),
|
547
|
-
"transparent": transparent
|
572
|
+
"transparent": transparent,
|
573
|
+
"pattern": true
|
548
574
|
}));
|
549
575
|
};
|
550
576
|
|
551
577
|
/** @deprecated */
|
552
578
|
|
553
|
-
var Icon = function Icon(
|
554
|
-
var
|
555
|
-
var SIcon =
|
556
|
-
styles =
|
557
|
-
isActive =
|
558
|
-
tag =
|
559
|
-
x =
|
560
|
-
y =
|
561
|
-
iconSize =
|
562
|
-
transparent =
|
579
|
+
var Icon = function Icon(_ref25) {
|
580
|
+
var _ref8;
|
581
|
+
var SIcon = _ref25.Element,
|
582
|
+
styles = _ref25.styles,
|
583
|
+
isActive = _ref25.isActive,
|
584
|
+
tag = _ref25.tag,
|
585
|
+
x = _ref25.x,
|
586
|
+
y = _ref25.y,
|
587
|
+
iconSize = _ref25.iconSize,
|
588
|
+
transparent = _ref25.transparent;
|
563
589
|
if (!(isActive && tag)) return null;
|
564
590
|
var width = iconSize;
|
565
591
|
var height = iconSize;
|
566
|
-
return
|
592
|
+
return _ref8 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(SIcon, _ref8.cn("SIcon", {
|
567
593
|
"x": x,
|
568
594
|
"y": y,
|
569
595
|
"width": width,
|
@@ -575,19 +601,19 @@ var Icon = function Icon(_ref24) {
|
|
575
601
|
|
576
602
|
/** @deprecated */
|
577
603
|
|
578
|
-
var Label = function Label(
|
579
|
-
var SLabel =
|
580
|
-
Children =
|
581
|
-
styles =
|
582
|
-
label =
|
583
|
-
color =
|
584
|
-
resolveColor =
|
585
|
-
isHorizontal =
|
586
|
-
x =
|
587
|
-
y =
|
588
|
-
textSize =
|
589
|
-
angle =
|
590
|
-
transparent =
|
604
|
+
var Label = function Label(_ref26) {
|
605
|
+
var SLabel = _ref26.Element,
|
606
|
+
Children = _ref26.Children,
|
607
|
+
styles = _ref26.styles,
|
608
|
+
label = _ref26.label,
|
609
|
+
color = _ref26.color,
|
610
|
+
resolveColor = _ref26.resolveColor,
|
611
|
+
isHorizontal = _ref26.isHorizontal,
|
612
|
+
x = _ref26.x,
|
613
|
+
y = _ref26.y,
|
614
|
+
textSize = _ref26.textSize,
|
615
|
+
angle = _ref26.angle,
|
616
|
+
transparent = _ref26.transparent;
|
591
617
|
var lines = String(label).split('\n');
|
592
618
|
var linesCount = lines.length;
|
593
619
|
var SLabelLine = 'tspan';
|
@@ -628,22 +654,22 @@ var Radian = (0, _createElement["default"])(RadialTreeRadian, {
|
|
628
654
|
|
629
655
|
/** @deprecated */
|
630
656
|
|
631
|
-
var Title = function Title(
|
632
|
-
var
|
633
|
-
var STitle =
|
634
|
-
Children =
|
635
|
-
children =
|
636
|
-
styles =
|
637
|
-
textSize =
|
638
|
-
color =
|
639
|
-
resolveColor =
|
640
|
-
x =
|
641
|
-
y =
|
642
|
-
dataHintsHandler =
|
657
|
+
var Title = function Title(_ref27) {
|
658
|
+
var _ref9;
|
659
|
+
var STitle = _ref27.Element,
|
660
|
+
Children = _ref27.Children,
|
661
|
+
children = _ref27.children,
|
662
|
+
styles = _ref27.styles,
|
663
|
+
textSize = _ref27.textSize,
|
664
|
+
color = _ref27.color,
|
665
|
+
resolveColor = _ref27.resolveColor,
|
666
|
+
x = _ref27.x,
|
667
|
+
y = _ref27.y,
|
668
|
+
dataHintsHandler = _ref27.dataHintsHandler;
|
643
669
|
if (typeof children === 'string') {
|
644
670
|
dataHintsHandler.setTitle('vertical', children);
|
645
671
|
}
|
646
|
-
return
|
672
|
+
return _ref9 = (0, _core.sstyled)(styles), /*#__PURE__*/_react["default"].createElement(STitle, _ref9.cn("STitle", {
|
647
673
|
"aria-hidden": true,
|
648
674
|
"render": 'text',
|
649
675
|
"textAnchor": 'middle',
|
@@ -652,7 +678,7 @@ var Title = function Title(_ref26) {
|
|
652
678
|
"fill": resolveColor(color),
|
653
679
|
"x": x,
|
654
680
|
"y": y
|
655
|
-
}), /*#__PURE__*/_react["default"].createElement(Children,
|
681
|
+
}), /*#__PURE__*/_react["default"].createElement(Children, _ref9.cn("Children", {})));
|
656
682
|
};
|
657
683
|
var RadialTree = (0, _createElement["default"])(RadialTreeBase, {
|
658
684
|
Title: Title,
|