@semcore/d3-chart 16.2.0-prerelease.5 → 16.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/AnimatedClipPath.mjs +2 -2
- package/lib/esm/Area.mjs +2 -2
- package/lib/esm/Axis.mjs +6 -6
- package/lib/esm/Bar.mjs +2 -2
- package/lib/esm/Bubble.mjs +2 -2
- package/lib/esm/CompactHorizontalBar.mjs +4 -4
- package/lib/esm/Donut.mjs +2 -2
- package/lib/esm/GroupBar.mjs +2 -2
- package/lib/esm/HorizontalBar.mjs +2 -2
- package/lib/esm/Hover.mjs +6 -6
- package/lib/esm/Line.mjs +2 -2
- package/lib/esm/Plot.mjs +2 -2
- package/lib/esm/Radar.mjs +8 -8
- package/lib/esm/RadialTree.mjs +4 -4
- package/lib/esm/Reference.mjs +2 -2
- package/lib/esm/ResponsiveContainer.mjs +2 -2
- package/lib/esm/ScatterPlot.mjs +2 -2
- package/lib/esm/StackBar.mjs +2 -2
- package/lib/esm/StackedArea.mjs +2 -2
- package/lib/esm/Tooltip.mjs +2 -2
- package/lib/esm/Venn.mjs +2 -2
- package/lib/esm/component/Chart/AbstractChart.mjs +2 -2
- package/lib/esm/component/Chart/AreaChart.mjs +2 -2
- package/lib/esm/component/Chart/BarChart.mjs +2 -2
- package/lib/esm/component/Chart/BubbleChart.mjs +2 -2
- package/lib/esm/component/Chart/CigaretteChart.mjs +2 -2
- package/lib/esm/component/Chart/CompactHorizontalBarChart.mjs +2 -2
- package/lib/esm/component/Chart/DonutChart.mjs +2 -2
- package/lib/esm/component/Chart/HistogramChart.mjs +2 -2
- package/lib/esm/component/Chart/LineChart.mjs +2 -2
- package/lib/esm/component/Chart/RadarChart.mjs +2 -2
- package/lib/esm/component/Chart/ScatterPlotChart.mjs +2 -2
- package/lib/esm/component/Chart/VennChart.mjs +2 -2
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +2 -2
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +2 -2
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +2 -2
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +2 -2
- package/lib/esm/component/Cigarette/Cigarette.mjs +2 -2
- package/lib/esm/component/StackGroupBar/StackGroupBar.mjs +2 -2
- package/package.json +18 -18
|
@@ -9,7 +9,7 @@ import { createComponent, Component } from "@semcore/core";
|
|
|
9
9
|
import propsForElement from "@semcore/core/lib/utils/propsForElement";
|
|
10
10
|
import React from "react";
|
|
11
11
|
var _excluded = ["id", "transition", "tag", "style", "className"];
|
|
12
|
-
var AnimatedClipPath = /* @__PURE__ */ function(_Component) {
|
|
12
|
+
var AnimatedClipPath = /* @__PURE__ */ (function(_Component) {
|
|
13
13
|
function AnimatedClipPath2() {
|
|
14
14
|
_classCallCheck(this, AnimatedClipPath2);
|
|
15
15
|
return _callSuper(this, AnimatedClipPath2, arguments);
|
|
@@ -39,7 +39,7 @@ var AnimatedClipPath = /* @__PURE__ */ function(_Component) {
|
|
|
39
39
|
}, propsForElement(other, Tag)))));
|
|
40
40
|
}
|
|
41
41
|
}]);
|
|
42
|
-
}(Component);
|
|
42
|
+
})(Component);
|
|
43
43
|
_defineProperty(AnimatedClipPath, "defaultProps", {
|
|
44
44
|
tag: "rect",
|
|
45
45
|
duration: 500,
|
package/lib/esm/Area.mjs
CHANGED
|
@@ -38,7 +38,7 @@ var style = (
|
|
|
38
38
|
"_hide": "__hide_vnz7b_gg_"
|
|
39
39
|
})
|
|
40
40
|
);
|
|
41
|
-
var AreaRoot = /* @__PURE__ */ function(_Component) {
|
|
41
|
+
var AreaRoot = /* @__PURE__ */ (function(_Component) {
|
|
42
42
|
function AreaRoot2() {
|
|
43
43
|
_classCallCheck(this, AreaRoot2);
|
|
44
44
|
return _callSuper(this, AreaRoot2, arguments);
|
|
@@ -148,7 +148,7 @@ var AreaRoot = /* @__PURE__ */ function(_Component) {
|
|
|
148
148
|
})));
|
|
149
149
|
}
|
|
150
150
|
}]);
|
|
151
|
-
}(Component);
|
|
151
|
+
})(Component);
|
|
152
152
|
_defineProperty(AreaRoot, "displayName", "Area");
|
|
153
153
|
_defineProperty(AreaRoot, "style", style);
|
|
154
154
|
_defineProperty(AreaRoot, "enhance", [uniqueIDEnhancement()]);
|
package/lib/esm/Axis.mjs
CHANGED
|
@@ -223,7 +223,7 @@ function renderValue(value) {
|
|
|
223
223
|
}
|
|
224
224
|
return value;
|
|
225
225
|
}
|
|
226
|
-
var AxisRoot = /* @__PURE__ */ function(_Component) {
|
|
226
|
+
var AxisRoot = /* @__PURE__ */ (function(_Component) {
|
|
227
227
|
function AxisRoot2() {
|
|
228
228
|
_classCallCheck(this, AxisRoot2);
|
|
229
229
|
return _callSuper(this, AxisRoot2, arguments);
|
|
@@ -278,7 +278,7 @@ var AxisRoot = /* @__PURE__ */ function(_Component) {
|
|
|
278
278
|
}, pos(scale, position))));
|
|
279
279
|
}
|
|
280
280
|
}]);
|
|
281
|
-
}(Component);
|
|
281
|
+
})(Component);
|
|
282
282
|
_defineProperty(AxisRoot, "displayName", "Axis");
|
|
283
283
|
_defineProperty(AxisRoot, "style", style);
|
|
284
284
|
_defineProperty(AxisRoot, "defaultProps", {});
|
|
@@ -359,14 +359,14 @@ function Title(props) {
|
|
|
359
359
|
"y": y
|
|
360
360
|
}));
|
|
361
361
|
}
|
|
362
|
-
var XAxisRoot = /* @__PURE__ */ function(_AxisRoot2) {
|
|
362
|
+
var XAxisRoot = /* @__PURE__ */ (function(_AxisRoot2) {
|
|
363
363
|
function XAxisRoot2() {
|
|
364
364
|
_classCallCheck(this, XAxisRoot2);
|
|
365
365
|
return _callSuper(this, XAxisRoot2, arguments);
|
|
366
366
|
}
|
|
367
367
|
_inherits(XAxisRoot2, _AxisRoot2);
|
|
368
368
|
return _createClass(XAxisRoot2);
|
|
369
|
-
}(AxisRoot);
|
|
369
|
+
})(AxisRoot);
|
|
370
370
|
_defineProperty(XAxisRoot, "defaultProps", _objectSpread(_objectSpread({}, AxisRoot.defaultProps), {}, {
|
|
371
371
|
indexScale: 0,
|
|
372
372
|
position: "bottom"
|
|
@@ -376,14 +376,14 @@ var XAxis = createElement(XAxisRoot, {
|
|
|
376
376
|
Grid,
|
|
377
377
|
Title
|
|
378
378
|
});
|
|
379
|
-
var YAxisRoot = /* @__PURE__ */ function(_AxisRoot3) {
|
|
379
|
+
var YAxisRoot = /* @__PURE__ */ (function(_AxisRoot3) {
|
|
380
380
|
function YAxisRoot2() {
|
|
381
381
|
_classCallCheck(this, YAxisRoot2);
|
|
382
382
|
return _callSuper(this, YAxisRoot2, arguments);
|
|
383
383
|
}
|
|
384
384
|
_inherits(YAxisRoot2, _AxisRoot3);
|
|
385
385
|
return _createClass(YAxisRoot2);
|
|
386
|
-
}(AxisRoot);
|
|
386
|
+
})(AxisRoot);
|
|
387
387
|
_defineProperty(YAxisRoot, "defaultProps", _objectSpread(_objectSpread({}, AxisRoot.defaultProps), {}, {
|
|
388
388
|
indexScale: 1,
|
|
389
389
|
position: "left",
|
package/lib/esm/Bar.mjs
CHANGED
|
@@ -46,7 +46,7 @@ var calcPartBarY = function calcPartBarY2(y, minHeight, height) {
|
|
|
46
46
|
}
|
|
47
47
|
return height <= minHeight ? minHeight : 0;
|
|
48
48
|
};
|
|
49
|
-
var BarRoot = /* @__PURE__ */ function(_Component) {
|
|
49
|
+
var BarRoot = /* @__PURE__ */ (function(_Component) {
|
|
50
50
|
function BarRoot2() {
|
|
51
51
|
_classCallCheck(this, BarRoot2);
|
|
52
52
|
return _callSuper(this, BarRoot2, arguments);
|
|
@@ -155,7 +155,7 @@ var BarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
155
155
|
}));
|
|
156
156
|
}
|
|
157
157
|
}]);
|
|
158
|
-
}(Component);
|
|
158
|
+
})(Component);
|
|
159
159
|
_defineProperty(BarRoot, "displayName", "Bar");
|
|
160
160
|
_defineProperty(BarRoot, "style", style);
|
|
161
161
|
_defineProperty(BarRoot, "enhance", [uniqueIDEnhancement()]);
|
package/lib/esm/Bubble.mjs
CHANGED
|
@@ -39,7 +39,7 @@ var style = (
|
|
|
39
39
|
"--duration": "--duration_idowb"
|
|
40
40
|
})
|
|
41
41
|
);
|
|
42
|
-
var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
42
|
+
var BubbleRoot = /* @__PURE__ */ (function(_Component) {
|
|
43
43
|
function BubbleRoot2() {
|
|
44
44
|
var _this;
|
|
45
45
|
_classCallCheck(this, BubbleRoot2);
|
|
@@ -167,7 +167,7 @@ var BubbleRoot = /* @__PURE__ */ function(_Component) {
|
|
|
167
167
|
}), " "));
|
|
168
168
|
}
|
|
169
169
|
}]);
|
|
170
|
-
}(Component);
|
|
170
|
+
})(Component);
|
|
171
171
|
_defineProperty(BubbleRoot, "displayName", "Bubble");
|
|
172
172
|
_defineProperty(BubbleRoot, "style", style);
|
|
173
173
|
_defineProperty(BubbleRoot, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -48,7 +48,7 @@ var style = (
|
|
|
48
48
|
var MIN_WIDTH = 4;
|
|
49
49
|
var barHeight = 20;
|
|
50
50
|
var hoverOffset = 6;
|
|
51
|
-
var CompactHorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
51
|
+
var CompactHorizontalBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
52
52
|
function CompactHorizontalBarRoot2() {
|
|
53
53
|
var _this;
|
|
54
54
|
_classCallCheck(this, CompactHorizontalBarRoot2);
|
|
@@ -258,7 +258,7 @@ var CompactHorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
258
258
|
}));
|
|
259
259
|
}
|
|
260
260
|
}]);
|
|
261
|
-
}(Component);
|
|
261
|
+
})(Component);
|
|
262
262
|
_defineProperty(CompactHorizontalBarRoot, "displayName", "CompactHorizontalBar");
|
|
263
263
|
_defineProperty(CompactHorizontalBarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
264
264
|
_defineProperty(CompactHorizontalBarRoot, "style", style);
|
|
@@ -385,7 +385,7 @@ function BarBackground(props) {
|
|
|
385
385
|
"onClick": callAllEventHandlers(props.onClick, barProps.onClick)
|
|
386
386
|
}));
|
|
387
387
|
}
|
|
388
|
-
var Hover = /* @__PURE__ */ function(_Component2) {
|
|
388
|
+
var Hover = /* @__PURE__ */ (function(_Component2) {
|
|
389
389
|
function Hover2() {
|
|
390
390
|
var _this3;
|
|
391
391
|
_classCallCheck(this, Hover2);
|
|
@@ -496,7 +496,7 @@ var Hover = /* @__PURE__ */ function(_Component2) {
|
|
|
496
496
|
}));
|
|
497
497
|
}
|
|
498
498
|
}]);
|
|
499
|
-
}(Component);
|
|
499
|
+
})(Component);
|
|
500
500
|
var CompactHorizontalBarTooltip = function CompactHorizontalBarTooltip2(props) {
|
|
501
501
|
var _ref4 = arguments[0], _ref11;
|
|
502
502
|
if (!props.render) return null;
|
package/lib/esm/Donut.mjs
CHANGED
|
@@ -85,7 +85,7 @@ function getOuterRadius(_ref8) {
|
|
|
85
85
|
var minORmax = halfsize ? Math.max : Math.min;
|
|
86
86
|
return minORmax(width - increaseFactor * 2, height - increaseFactor * 2) / 2;
|
|
87
87
|
}
|
|
88
|
-
var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
88
|
+
var DonutRoot = /* @__PURE__ */ (function(_Component) {
|
|
89
89
|
function DonutRoot2() {
|
|
90
90
|
var _this;
|
|
91
91
|
_classCallCheck(this, DonutRoot2);
|
|
@@ -309,7 +309,7 @@ var DonutRoot = /* @__PURE__ */ function(_Component) {
|
|
|
309
309
|
});
|
|
310
310
|
}
|
|
311
311
|
}]);
|
|
312
|
-
}(Component);
|
|
312
|
+
})(Component);
|
|
313
313
|
_defineProperty(DonutRoot, "displayName", "Donut");
|
|
314
314
|
_defineProperty(DonutRoot, "style", style);
|
|
315
315
|
_defineProperty(DonutRoot, "enhance", [uniqueIDEnhancement()]);
|
package/lib/esm/GroupBar.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import Bar from "./Bar.mjs";
|
|
|
11
11
|
import createElement from "./createElement.mjs";
|
|
12
12
|
import HorizontalBar from "./HorizontalBar.mjs";
|
|
13
13
|
import { scaleToBand, getChartDefaultColorName } from "./utils.mjs";
|
|
14
|
-
var GroupBarRoot = /* @__PURE__ */ function(_Component) {
|
|
14
|
+
var GroupBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
15
15
|
function GroupBarRoot2() {
|
|
16
16
|
_classCallCheck(this, GroupBarRoot2);
|
|
17
17
|
return _callSuper(this, GroupBarRoot2, arguments);
|
|
@@ -81,7 +81,7 @@ var GroupBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
81
81
|
});
|
|
82
82
|
}
|
|
83
83
|
}]);
|
|
84
|
-
}(Component);
|
|
84
|
+
})(Component);
|
|
85
85
|
_defineProperty(GroupBarRoot, "displayName", "GroupBar");
|
|
86
86
|
var GroupBar = createElement(GroupBarRoot, {
|
|
87
87
|
Bar,
|
|
@@ -45,7 +45,7 @@ var calcPartBarX = function calcPartBarX2(x, minWidth, width) {
|
|
|
45
45
|
}
|
|
46
46
|
return Object.is(x, 0) ? minWidth : 0;
|
|
47
47
|
};
|
|
48
|
-
var HorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
48
|
+
var HorizontalBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
49
49
|
function HorizontalBarRoot2() {
|
|
50
50
|
_classCallCheck(this, HorizontalBarRoot2);
|
|
51
51
|
return _callSuper(this, HorizontalBarRoot2, arguments);
|
|
@@ -135,7 +135,7 @@ var HorizontalBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
135
135
|
}));
|
|
136
136
|
}
|
|
137
137
|
}]);
|
|
138
|
-
}(Component);
|
|
138
|
+
})(Component);
|
|
139
139
|
_defineProperty(HorizontalBarRoot, "displayName", "HorizontalBar");
|
|
140
140
|
_defineProperty(HorizontalBarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
141
141
|
_defineProperty(HorizontalBarRoot, "style", style);
|
package/lib/esm/Hover.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var style = (
|
|
|
26
26
|
"__SHoverRect": "___SHoverRect_t4rpq_gg_"
|
|
27
27
|
})
|
|
28
28
|
);
|
|
29
|
-
var Hover = /* @__PURE__ */ function(_Component) {
|
|
29
|
+
var Hover = /* @__PURE__ */ (function(_Component) {
|
|
30
30
|
function Hover2() {
|
|
31
31
|
var _this;
|
|
32
32
|
_classCallCheck(this, Hover2);
|
|
@@ -94,9 +94,9 @@ var Hover = /* @__PURE__ */ function(_Component) {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
}]);
|
|
97
|
-
}(Component);
|
|
97
|
+
})(Component);
|
|
98
98
|
_defineProperty(Hover, "style", style);
|
|
99
|
-
var HoverLineRoot = /* @__PURE__ */ function(_Hover2) {
|
|
99
|
+
var HoverLineRoot = /* @__PURE__ */ (function(_Hover2) {
|
|
100
100
|
function HoverLineRoot2() {
|
|
101
101
|
_classCallCheck(this, HoverLineRoot2);
|
|
102
102
|
return _callSuper(this, HoverLineRoot2, arguments);
|
|
@@ -137,9 +137,9 @@ var HoverLineRoot = /* @__PURE__ */ function(_Hover2) {
|
|
|
137
137
|
})) : null);
|
|
138
138
|
}
|
|
139
139
|
}]);
|
|
140
|
-
}(Hover);
|
|
140
|
+
})(Hover);
|
|
141
141
|
_defineProperty(HoverLineRoot, "displayName", "HoverLine");
|
|
142
|
-
var HoverRectRoot = /* @__PURE__ */ function(_Hover3) {
|
|
142
|
+
var HoverRectRoot = /* @__PURE__ */ (function(_Hover3) {
|
|
143
143
|
function HoverRectRoot2() {
|
|
144
144
|
_classCallCheck(this, HoverRectRoot2);
|
|
145
145
|
return _callSuper(this, HoverRectRoot2, arguments);
|
|
@@ -179,7 +179,7 @@ var HoverRectRoot = /* @__PURE__ */ function(_Hover3) {
|
|
|
179
179
|
})) : null);
|
|
180
180
|
}
|
|
181
181
|
}]);
|
|
182
|
-
}(Hover);
|
|
182
|
+
})(Hover);
|
|
183
183
|
_defineProperty(HoverRectRoot, "displayName", "HoverRect");
|
|
184
184
|
var HoverLineTooltip = function HoverLineTooltip2(props) {
|
|
185
185
|
var _ref = arguments[0], _ref5;
|
package/lib/esm/Line.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var style = (
|
|
|
34
34
|
"__SLineArea": "___SLineArea_v9dpd_gg_"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
|
-
var LineRoot = /* @__PURE__ */ function(_Component) {
|
|
37
|
+
var LineRoot = /* @__PURE__ */ (function(_Component) {
|
|
38
38
|
function LineRoot2() {
|
|
39
39
|
_classCallCheck(this, LineRoot2);
|
|
40
40
|
return _callSuper(this, LineRoot2, arguments);
|
|
@@ -136,7 +136,7 @@ var LineRoot = /* @__PURE__ */ function(_Component) {
|
|
|
136
136
|
})));
|
|
137
137
|
}
|
|
138
138
|
}]);
|
|
139
|
-
}(Component);
|
|
139
|
+
})(Component);
|
|
140
140
|
_defineProperty(LineRoot, "displayName", "Line");
|
|
141
141
|
_defineProperty(LineRoot, "style", style);
|
|
142
142
|
_defineProperty(LineRoot, "enhance", [uniqueIDEnhancement()]);
|
package/lib/esm/Plot.mjs
CHANGED
|
@@ -30,7 +30,7 @@ var style = (
|
|
|
30
30
|
"_keyboardFocused": "__keyboardFocused_9fcn6_gg_"
|
|
31
31
|
})
|
|
32
32
|
);
|
|
33
|
-
var PlotRoot = /* @__PURE__ */ function(_Component) {
|
|
33
|
+
var PlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
34
34
|
function PlotRoot2(props) {
|
|
35
35
|
var _this;
|
|
36
36
|
_classCallCheck(this, PlotRoot2);
|
|
@@ -117,7 +117,7 @@ var PlotRoot = /* @__PURE__ */ function(_Component) {
|
|
|
117
117
|
}))));
|
|
118
118
|
}
|
|
119
119
|
}]);
|
|
120
|
-
}(Component);
|
|
120
|
+
})(Component);
|
|
121
121
|
_defineProperty(PlotRoot, "displayName", "Plot");
|
|
122
122
|
_defineProperty(PlotRoot, "style", style);
|
|
123
123
|
_defineProperty(PlotRoot, "defaultProps", function() {
|
package/lib/esm/Radar.mjs
CHANGED
|
@@ -137,7 +137,7 @@ function getLabelOffsetPosition(xDirection, yDirection, width, height) {
|
|
|
137
137
|
return [xOffset + width / 2, yOffset + height / 2];
|
|
138
138
|
}
|
|
139
139
|
var MINIMUM_OFFSET = 5;
|
|
140
|
-
var RadarRoot = /* @__PURE__ */ function(_Component) {
|
|
140
|
+
var RadarRoot = /* @__PURE__ */ (function(_Component) {
|
|
141
141
|
function RadarRoot2() {
|
|
142
142
|
var _this;
|
|
143
143
|
_classCallCheck(this, RadarRoot2);
|
|
@@ -294,7 +294,7 @@ var RadarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
294
294
|
}));
|
|
295
295
|
}
|
|
296
296
|
}]);
|
|
297
|
-
}(Component);
|
|
297
|
+
})(Component);
|
|
298
298
|
_defineProperty(RadarRoot, "displayName", "Line");
|
|
299
299
|
_defineProperty(RadarRoot, "style", style);
|
|
300
300
|
_defineProperty(RadarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -302,7 +302,7 @@ _defineProperty(RadarRoot, "defaultProps", {
|
|
|
302
302
|
type: "polygon",
|
|
303
303
|
angleOffset: 0
|
|
304
304
|
});
|
|
305
|
-
var PolygonRoot = /* @__PURE__ */ function(_Component2) {
|
|
305
|
+
var PolygonRoot = /* @__PURE__ */ (function(_Component2) {
|
|
306
306
|
function PolygonRoot2() {
|
|
307
307
|
_classCallCheck(this, PolygonRoot2);
|
|
308
308
|
return _callSuper(this, PolygonRoot2, arguments);
|
|
@@ -354,7 +354,7 @@ var PolygonRoot = /* @__PURE__ */ function(_Component2) {
|
|
|
354
354
|
})));
|
|
355
355
|
}
|
|
356
356
|
}]);
|
|
357
|
-
}(Component);
|
|
357
|
+
})(Component);
|
|
358
358
|
_defineProperty(PolygonRoot, "displayName", "Polygon");
|
|
359
359
|
_defineProperty(PolygonRoot, "style", style);
|
|
360
360
|
_defineProperty(PolygonRoot, "defaultProps", function(_ref20) {
|
|
@@ -414,7 +414,7 @@ function PolygonDots(props) {
|
|
|
414
414
|
}));
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
|
-
var AxisRoot = /* @__PURE__ */ function(_Component3) {
|
|
417
|
+
var AxisRoot = /* @__PURE__ */ (function(_Component3) {
|
|
418
418
|
function AxisRoot2() {
|
|
419
419
|
var _this3;
|
|
420
420
|
_classCallCheck(this, AxisRoot2);
|
|
@@ -515,7 +515,7 @@ var AxisRoot = /* @__PURE__ */ function(_Component3) {
|
|
|
515
515
|
}));
|
|
516
516
|
}
|
|
517
517
|
}]);
|
|
518
|
-
}(Component);
|
|
518
|
+
})(Component);
|
|
519
519
|
_defineProperty(AxisRoot, "displayName", "Polygon");
|
|
520
520
|
_defineProperty(AxisRoot, "style", style);
|
|
521
521
|
_defineProperty(AxisRoot, "defaultProps", function(_ref21) {
|
|
@@ -584,7 +584,7 @@ function AxisLabels(props) {
|
|
|
584
584
|
}
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
|
-
var Hover = /* @__PURE__ */ function(_Component4) {
|
|
587
|
+
var Hover = /* @__PURE__ */ (function(_Component4) {
|
|
588
588
|
function Hover2() {
|
|
589
589
|
var _this4;
|
|
590
590
|
_classCallCheck(this, Hover2);
|
|
@@ -690,7 +690,7 @@ var Hover = /* @__PURE__ */ function(_Component4) {
|
|
|
690
690
|
return null;
|
|
691
691
|
}
|
|
692
692
|
}]);
|
|
693
|
-
}(Component);
|
|
693
|
+
})(Component);
|
|
694
694
|
var Axis = createElement(AxisRoot, {
|
|
695
695
|
Ticks: AxisTicks,
|
|
696
696
|
Labels: AxisLabels
|
package/lib/esm/RadialTree.mjs
CHANGED
|
@@ -42,7 +42,7 @@ var style = (
|
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
44
|
var baseAngle = -Math.PI / 2;
|
|
45
|
-
var RadialTreeBase = /* @__PURE__ */ function(_Component) {
|
|
45
|
+
var RadialTreeBase = /* @__PURE__ */ (function(_Component) {
|
|
46
46
|
function RadialTreeBase2(props) {
|
|
47
47
|
var _this;
|
|
48
48
|
_classCallCheck(this, RadialTreeBase2);
|
|
@@ -239,7 +239,7 @@ var RadialTreeBase = /* @__PURE__ */ function(_Component) {
|
|
|
239
239
|
}), /* @__PURE__ */ React.createElement(Children, _ref.cn("Children", {})));
|
|
240
240
|
}
|
|
241
241
|
}]);
|
|
242
|
-
}(Component);
|
|
242
|
+
})(Component);
|
|
243
243
|
_defineProperty(RadialTreeBase, "displayName", "RadialTree");
|
|
244
244
|
_defineProperty(RadialTreeBase, "style", style);
|
|
245
245
|
_defineProperty(RadialTreeBase, "enhance", [uniqueIDEnhancement()]);
|
|
@@ -254,7 +254,7 @@ _defineProperty(RadialTreeBase, "defaultProps", {
|
|
|
254
254
|
textSize: 14,
|
|
255
255
|
defaultActiveKey: null
|
|
256
256
|
});
|
|
257
|
-
var RadialTreeRadian = /* @__PURE__ */ function(_Component2) {
|
|
257
|
+
var RadialTreeRadian = /* @__PURE__ */ (function(_Component2) {
|
|
258
258
|
function RadialTreeRadian2(props) {
|
|
259
259
|
var _this3;
|
|
260
260
|
_classCallCheck(this, RadialTreeRadian2);
|
|
@@ -422,7 +422,7 @@ var RadialTreeRadian = /* @__PURE__ */ function(_Component2) {
|
|
|
422
422
|
}));
|
|
423
423
|
}
|
|
424
424
|
}]);
|
|
425
|
-
}(Component);
|
|
425
|
+
})(Component);
|
|
426
426
|
_defineProperty(RadialTreeRadian, "displayName", "RadialTreeRadian");
|
|
427
427
|
_defineProperty(RadialTreeRadian, "style", style);
|
|
428
428
|
_defineProperty(RadialTreeRadian, "defaultProps", {
|
package/lib/esm/Reference.mjs
CHANGED
|
@@ -128,7 +128,7 @@ var titleSideToProps = {
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
|
-
var ReferenceLineRoot = /* @__PURE__ */ function(_Component) {
|
|
131
|
+
var ReferenceLineRoot = /* @__PURE__ */ (function(_Component) {
|
|
132
132
|
function ReferenceLineRoot2() {
|
|
133
133
|
_classCallCheck(this, ReferenceLineRoot2);
|
|
134
134
|
return _callSuper(this, ReferenceLineRoot2, arguments);
|
|
@@ -166,7 +166,7 @@ var ReferenceLineRoot = /* @__PURE__ */ function(_Component) {
|
|
|
166
166
|
}, positionProps(scale, value)))), title && /* @__PURE__ */ React.createElement(ReferenceLine.Title, null, title));
|
|
167
167
|
}
|
|
168
168
|
}]);
|
|
169
|
-
}(Component);
|
|
169
|
+
})(Component);
|
|
170
170
|
_defineProperty(ReferenceLineRoot, "displayName", "ReferenceLine");
|
|
171
171
|
_defineProperty(ReferenceLineRoot, "style", style);
|
|
172
172
|
_defineProperty(ReferenceLineRoot, "defaultProps", {
|
|
@@ -12,7 +12,7 @@ import getOriginChildren from "@semcore/core/lib/utils/getOriginChildren";
|
|
|
12
12
|
import trottle from "@semcore/core/lib/utils/rafTrottle";
|
|
13
13
|
import { Box } from "@semcore/flex-box";
|
|
14
14
|
import React from "react";
|
|
15
|
-
var ResponsiveContainerRoot = /* @__PURE__ */ function(_Component) {
|
|
15
|
+
var ResponsiveContainerRoot = /* @__PURE__ */ (function(_Component) {
|
|
16
16
|
function ResponsiveContainerRoot2(props) {
|
|
17
17
|
var _this;
|
|
18
18
|
_classCallCheck(this, ResponsiveContainerRoot2);
|
|
@@ -88,7 +88,7 @@ var ResponsiveContainerRoot = /* @__PURE__ */ function(_Component) {
|
|
|
88
88
|
}, _ref))));
|
|
89
89
|
}
|
|
90
90
|
}]);
|
|
91
|
-
}(Component);
|
|
91
|
+
})(Component);
|
|
92
92
|
_defineProperty(ResponsiveContainerRoot, "displayName", "ResponsiveContainer");
|
|
93
93
|
var ResponsiveContainer = createComponent(ResponsiveContainerRoot);
|
|
94
94
|
export {
|
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var style = (
|
|
|
34
34
|
"--duration": "--duration_qdt7j"
|
|
35
35
|
})
|
|
36
36
|
);
|
|
37
|
-
var ScatterPlotRoot = /* @__PURE__ */ function(_Component) {
|
|
37
|
+
var ScatterPlotRoot = /* @__PURE__ */ (function(_Component) {
|
|
38
38
|
function ScatterPlotRoot2() {
|
|
39
39
|
var _this;
|
|
40
40
|
_classCallCheck(this, ScatterPlotRoot2);
|
|
@@ -179,7 +179,7 @@ var ScatterPlotRoot = /* @__PURE__ */ function(_Component) {
|
|
|
179
179
|
})));
|
|
180
180
|
}
|
|
181
181
|
}]);
|
|
182
|
-
}(Component);
|
|
182
|
+
})(Component);
|
|
183
183
|
_defineProperty(ScatterPlotRoot, "displayName", "ScatterPlot");
|
|
184
184
|
_defineProperty(ScatterPlotRoot, "style", style);
|
|
185
185
|
_defineProperty(ScatterPlotRoot, "enhance", [uniqueIDEnhancement()]);
|
package/lib/esm/StackBar.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import HorizontalBar, { MIN_WIDTH } from "./HorizontalBar.mjs";
|
|
|
15
15
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
16
16
|
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
17
17
|
var XY0 = Symbol("XY0");
|
|
18
|
-
var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
18
|
+
var StackBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
19
19
|
function StackBarRoot2() {
|
|
20
20
|
var _this;
|
|
21
21
|
_classCallCheck(this, StackBarRoot2);
|
|
@@ -153,7 +153,7 @@ var StackBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
}]);
|
|
156
|
-
}(Component);
|
|
156
|
+
})(Component);
|
|
157
157
|
_defineProperty(StackBarRoot, "displayName", "StackBar");
|
|
158
158
|
_defineProperty(StackBarRoot, "defaultProps", function() {
|
|
159
159
|
var stack$1 = stack();
|
package/lib/esm/StackedArea.mjs
CHANGED
|
@@ -13,7 +13,7 @@ import createElement from "./createElement.mjs";
|
|
|
13
13
|
import { getChartDefaultColorName } from "./utils.mjs";
|
|
14
14
|
var DEFAULT_INSTANCE = Symbol("DEFAULT_INSTANCE");
|
|
15
15
|
var Y0 = Symbol("Y0");
|
|
16
|
-
var StackedAreaRoot = /* @__PURE__ */ function(_Component) {
|
|
16
|
+
var StackedAreaRoot = /* @__PURE__ */ (function(_Component) {
|
|
17
17
|
function StackedAreaRoot2() {
|
|
18
18
|
_classCallCheck(this, StackedAreaRoot2);
|
|
19
19
|
return _callSuper(this, StackedAreaRoot2, arguments);
|
|
@@ -64,7 +64,7 @@ var StackedAreaRoot = /* @__PURE__ */ function(_Component) {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}]);
|
|
67
|
-
}(Component);
|
|
67
|
+
})(Component);
|
|
68
68
|
_defineProperty(StackedAreaRoot, "displayName", "StackedArea");
|
|
69
69
|
_defineProperty(StackedAreaRoot, "defaultProps", function() {
|
|
70
70
|
var stack$1 = stack();
|
package/lib/esm/Tooltip.mjs
CHANGED
|
@@ -39,7 +39,7 @@ var TooltipDotRenderContext = /* @__PURE__ */ React.createContext({
|
|
|
39
39
|
index: -1,
|
|
40
40
|
indexKeysCache: /* @__PURE__ */ new Set()
|
|
41
41
|
});
|
|
42
|
-
var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
42
|
+
var TooltipRoot = /* @__PURE__ */ (function(_Component) {
|
|
43
43
|
function TooltipRoot2() {
|
|
44
44
|
var _this;
|
|
45
45
|
_classCallCheck(this, TooltipRoot2);
|
|
@@ -177,7 +177,7 @@ var TooltipRoot = /* @__PURE__ */ function(_Component) {
|
|
|
177
177
|
}));
|
|
178
178
|
}
|
|
179
179
|
}]);
|
|
180
|
-
}(Component);
|
|
180
|
+
})(Component);
|
|
181
181
|
_defineProperty(TooltipRoot, "displayName", "Tooltip");
|
|
182
182
|
_defineProperty(TooltipRoot, "style", style);
|
|
183
183
|
function PopperTrigger() {
|
package/lib/esm/Venn.mjs
CHANGED
|
@@ -36,7 +36,7 @@ var style = (
|
|
|
36
36
|
"--pattern": "--pattern_x8efv"
|
|
37
37
|
})
|
|
38
38
|
);
|
|
39
|
-
var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
39
|
+
var VennRoot = /* @__PURE__ */ (function(_Component) {
|
|
40
40
|
function VennRoot2() {
|
|
41
41
|
var _this;
|
|
42
42
|
_classCallCheck(this, VennRoot2);
|
|
@@ -172,7 +172,7 @@ var VennRoot = /* @__PURE__ */ function(_Component) {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
}]);
|
|
175
|
-
}(Component);
|
|
175
|
+
})(Component);
|
|
176
176
|
_defineProperty(VennRoot, "displayName", "Venn");
|
|
177
177
|
_defineProperty(VennRoot, "style", style);
|
|
178
178
|
_defineProperty(VennRoot, "defaultProps", {
|
|
@@ -18,7 +18,7 @@ import { LegendTable } from "../ChartLegend/LegendTable/LegendTable.mjs";
|
|
|
18
18
|
import { YAxis, XAxis } from "../../Axis.mjs";
|
|
19
19
|
import { interpolateValue } from "../../utils.mjs";
|
|
20
20
|
import { makeDataHintsContainer } from "../../a11y/hints.mjs";
|
|
21
|
-
var AbstractChart = /* @__PURE__ */ function(_Component) {
|
|
21
|
+
var AbstractChart = /* @__PURE__ */ (function(_Component) {
|
|
22
22
|
function AbstractChart2(props) {
|
|
23
23
|
var _this;
|
|
24
24
|
_classCallCheck(this, AbstractChart2);
|
|
@@ -392,7 +392,7 @@ var AbstractChart = /* @__PURE__ */ function(_Component) {
|
|
|
392
392
|
}, extractedAriaProps)), this.renderAxis(), this.renderTooltip(), this.renderChart()));
|
|
393
393
|
}
|
|
394
394
|
}]);
|
|
395
|
-
}(Component);
|
|
395
|
+
})(Component);
|
|
396
396
|
_defineProperty(AbstractChart, "style", {});
|
|
397
397
|
_defineProperty(AbstractChart, "defaultProps", {
|
|
398
398
|
direction: "column",
|
|
@@ -17,7 +17,7 @@ import { HoverLine } from "../../Hover.mjs";
|
|
|
17
17
|
import { minMax } from "../../utils.mjs";
|
|
18
18
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
19
19
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
20
|
-
var AreaChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
20
|
+
var AreaChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
21
21
|
function AreaChartComponent2() {
|
|
22
22
|
_classCallCheck(this, AreaChartComponent2);
|
|
23
23
|
return _callSuper(this, AreaChartComponent2, arguments);
|
|
@@ -133,7 +133,7 @@ var AreaChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
}]);
|
|
136
|
-
}(AbstractChart);
|
|
136
|
+
})(AbstractChart);
|
|
137
137
|
_defineProperty(AreaChartComponent, "displayName", "Chart.Area");
|
|
138
138
|
_defineProperty(AreaChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
139
139
|
var AreaChart = createComponent(AreaChartComponent);
|
|
@@ -19,7 +19,7 @@ import { HoverRect } from "../../Hover.mjs";
|
|
|
19
19
|
import { minMax } from "../../utils.mjs";
|
|
20
20
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
21
21
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
22
|
-
var BarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
22
|
+
var BarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
23
23
|
function BarChartComponent2() {
|
|
24
24
|
var _this;
|
|
25
25
|
_classCallCheck(this, BarChartComponent2);
|
|
@@ -225,7 +225,7 @@ var BarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
225
225
|
return scaleLinear().range(invertAxis ? [marginY, plotWidth - this.plotPadding] : [plotHeight - marginX, this.plotPadding]).domain([0, max]);
|
|
226
226
|
}
|
|
227
227
|
}]);
|
|
228
|
-
}(AbstractChart);
|
|
228
|
+
})(AbstractChart);
|
|
229
229
|
_defineProperty(BarChartComponent, "displayName", "Chart.Bar");
|
|
230
230
|
_defineProperty(BarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
231
231
|
var BarChart = createComponent(BarChartComponent);
|
|
@@ -12,7 +12,7 @@ import Bubble from "../../Bubble.mjs";
|
|
|
12
12
|
import { calculateBubbleDomain } from "../../utils.mjs";
|
|
13
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
var BubbleChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
15
|
+
var BubbleChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
16
16
|
function BubbleChartComponent2() {
|
|
17
17
|
_classCallCheck(this, BubbleChartComponent2);
|
|
18
18
|
return _callSuper(this, BubbleChartComponent2, arguments);
|
|
@@ -134,7 +134,7 @@ var BubbleChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
}]);
|
|
137
|
-
}(AbstractChart);
|
|
137
|
+
})(AbstractChart);
|
|
138
138
|
_defineProperty(BubbleChartComponent, "displayName", "Chart.Bubble");
|
|
139
139
|
_defineProperty(BubbleChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
140
140
|
var BubbleChart = createComponent(BubbleChartComponent);
|
|
@@ -23,7 +23,7 @@ import AnimatedClipPath from "../../AnimatedClipPath.mjs";
|
|
|
23
23
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
24
24
|
import Cigarette from "../Cigarette/Cigarette.mjs";
|
|
25
25
|
var wMin = 2;
|
|
26
|
-
var CigaretteChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
26
|
+
var CigaretteChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
27
27
|
function CigaretteChartComponent2() {
|
|
28
28
|
var _this;
|
|
29
29
|
_classCallCheck(this, CigaretteChartComponent2);
|
|
@@ -265,7 +265,7 @@ var CigaretteChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
265
265
|
return scaleLinear().range(invertAxis ? [0, plotWidth] : [plotHeight, 0]).domain([0, max]);
|
|
266
266
|
}
|
|
267
267
|
}]);
|
|
268
|
-
}(AbstractChart);
|
|
268
|
+
})(AbstractChart);
|
|
269
269
|
_defineProperty(CigaretteChartComponent, "displayName", "Cigarette.Bar");
|
|
270
270
|
_defineProperty(CigaretteChartComponent, "defaultProps", function(props) {
|
|
271
271
|
var _props$invertAxis;
|
|
@@ -12,7 +12,7 @@ import React from "react";
|
|
|
12
12
|
import CompactHorizontalBar from "../../CompactHorizontalBar.mjs";
|
|
13
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
var CompactHorizontalBarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
15
|
+
var CompactHorizontalBarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
16
16
|
function CompactHorizontalBarChartComponent2() {
|
|
17
17
|
_classCallCheck(this, CompactHorizontalBarChartComponent2);
|
|
18
18
|
return _callSuper(this, CompactHorizontalBarChartComponent2, arguments);
|
|
@@ -94,7 +94,7 @@ var CompactHorizontalBarChartComponent = /* @__PURE__ */ function(_AbstractChart
|
|
|
94
94
|
return scaleLinear().range([marginY, plotWidth]).domain([marginY, sum]);
|
|
95
95
|
}
|
|
96
96
|
}]);
|
|
97
|
-
}(AbstractChart);
|
|
97
|
+
})(AbstractChart);
|
|
98
98
|
_defineProperty(CompactHorizontalBarChartComponent, "displayName", "Chart.CompactHorizontalBar");
|
|
99
99
|
_defineProperty(CompactHorizontalBarChartComponent, "defaultProps", {
|
|
100
100
|
direction: "column",
|
|
@@ -12,7 +12,7 @@ import React from "react";
|
|
|
12
12
|
import Donut from "../../Donut.mjs";
|
|
13
13
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
14
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
var DonutChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
15
|
+
var DonutChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
16
16
|
function DonutChartComponent2() {
|
|
17
17
|
_classCallCheck(this, DonutChartComponent2);
|
|
18
18
|
return _callSuper(this, DonutChartComponent2, arguments);
|
|
@@ -96,7 +96,7 @@ var DonutChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
}]);
|
|
99
|
-
}(AbstractChart);
|
|
99
|
+
})(AbstractChart);
|
|
100
100
|
_defineProperty(DonutChartComponent, "displayName", "Chart.Donut");
|
|
101
101
|
_defineProperty(DonutChartComponent, "defaultProps", {
|
|
102
102
|
direction: "row-reverse",
|
|
@@ -18,7 +18,7 @@ import { HoverRect } from "../../Hover.mjs";
|
|
|
18
18
|
import { minMax } from "../../utils.mjs";
|
|
19
19
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
20
20
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
21
|
-
var HistogramChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
21
|
+
var HistogramChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
22
22
|
function HistogramChartComponent2() {
|
|
23
23
|
_classCallCheck(this, HistogramChartComponent2);
|
|
24
24
|
return _callSuper(this, HistogramChartComponent2, arguments);
|
|
@@ -154,7 +154,7 @@ var HistogramChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
}]);
|
|
157
|
-
}(AbstractChart);
|
|
157
|
+
})(AbstractChart);
|
|
158
158
|
_defineProperty(HistogramChartComponent, "displayName", "Chart.Histogram");
|
|
159
159
|
_defineProperty(HistogramChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
160
160
|
var HistogramChart = createComponent(HistogramChartComponent);
|
|
@@ -16,7 +16,7 @@ import { HoverLine } from "../../Hover.mjs";
|
|
|
16
16
|
import { minMax } from "../../utils.mjs";
|
|
17
17
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
18
18
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
19
|
-
var LineChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
19
|
+
var LineChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
20
20
|
function LineChartComponent2() {
|
|
21
21
|
_classCallCheck(this, LineChartComponent2);
|
|
22
22
|
return _callSuper(this, LineChartComponent2, arguments);
|
|
@@ -120,7 +120,7 @@ var LineChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
}]);
|
|
123
|
-
}(AbstractChart);
|
|
123
|
+
})(AbstractChart);
|
|
124
124
|
_defineProperty(LineChartComponent, "displayName", "Chart.Line");
|
|
125
125
|
_defineProperty(LineChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
126
126
|
var LineChart = createComponent(LineChartComponent);
|
|
@@ -12,7 +12,7 @@ import React from "react";
|
|
|
12
12
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
13
13
|
import Radar from "../../Radar.mjs";
|
|
14
14
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
15
|
-
var RadarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
15
|
+
var RadarChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
16
16
|
function RadarChartComponent2() {
|
|
17
17
|
_classCallCheck(this, RadarChartComponent2);
|
|
18
18
|
return _callSuper(this, RadarChartComponent2, arguments);
|
|
@@ -104,7 +104,7 @@ var RadarChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
104
104
|
return [Math.min.apply(Math, _toConsumableArray(_superPropGet(RadarChartComponent2, "flatValues", this, 1))), Math.max.apply(Math, _toConsumableArray(_superPropGet(RadarChartComponent2, "flatValues", this, 1)))];
|
|
105
105
|
}
|
|
106
106
|
}]);
|
|
107
|
-
}(AbstractChart);
|
|
107
|
+
})(AbstractChart);
|
|
108
108
|
_defineProperty(RadarChartComponent, "enhance", [i18nEnhance(localizedMessages)]);
|
|
109
109
|
var RadarChart = createComponent(RadarChartComponent);
|
|
110
110
|
export {
|
|
@@ -14,7 +14,7 @@ import ScatterPlot from "../../ScatterPlot.mjs";
|
|
|
14
14
|
import { getScatterPlotRadius, minMax } from "../../utils.mjs";
|
|
15
15
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
16
16
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
17
|
-
var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
17
|
+
var ScatterPlotChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
18
18
|
function ScatterPlotChartComponent2() {
|
|
19
19
|
_classCallCheck(this, ScatterPlotChartComponent2);
|
|
20
20
|
return _callSuper(this, ScatterPlotChartComponent2, arguments);
|
|
@@ -127,7 +127,7 @@ var ScatterPlotChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
129
|
}]);
|
|
130
|
-
}(AbstractChart);
|
|
130
|
+
})(AbstractChart);
|
|
131
131
|
_defineProperty(ScatterPlotChartComponent, "displayName", "Chart.ScatterPlot");
|
|
132
132
|
_defineProperty(ScatterPlotChartComponent, "defaultProps", {
|
|
133
133
|
direction: "column",
|
|
@@ -11,7 +11,7 @@ import React from "react";
|
|
|
11
11
|
import Venn from "../../Venn.mjs";
|
|
12
12
|
import { AbstractChart } from "./AbstractChart.mjs";
|
|
13
13
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
|
-
var VennChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
14
|
+
var VennChartComponent = /* @__PURE__ */ (function(_AbstractChart) {
|
|
15
15
|
function VennChartComponent2() {
|
|
16
16
|
_classCallCheck(this, VennChartComponent2);
|
|
17
17
|
return _callSuper(this, VennChartComponent2, arguments);
|
|
@@ -126,7 +126,7 @@ var VennChartComponent = /* @__PURE__ */ function(_AbstractChart) {
|
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
}]);
|
|
129
|
-
}(AbstractChart);
|
|
129
|
+
})(AbstractChart);
|
|
130
130
|
_defineProperty(VennChartComponent, "displayName", "Chart.Venn");
|
|
131
131
|
_defineProperty(VennChartComponent, "defaultProps", {
|
|
132
132
|
direction: "row-reverse",
|
|
@@ -6,7 +6,7 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
6
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
7
7
|
import { Component } from "@semcore/core";
|
|
8
8
|
import { makeDataHintsHandlers } from "../../a11y/hints.mjs";
|
|
9
|
-
var BaseLegend = /* @__PURE__ */ function(_Component) {
|
|
9
|
+
var BaseLegend = /* @__PURE__ */ (function(_Component) {
|
|
10
10
|
function BaseLegend2() {
|
|
11
11
|
var _this;
|
|
12
12
|
_classCallCheck(this, BaseLegend2);
|
|
@@ -108,7 +108,7 @@ var BaseLegend = /* @__PURE__ */ function(_Component) {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
}]);
|
|
111
|
-
}(Component);
|
|
111
|
+
})(Component);
|
|
112
112
|
export {
|
|
113
113
|
BaseLegend
|
|
114
114
|
};
|
|
@@ -28,7 +28,7 @@ var style = (
|
|
|
28
28
|
"_direction_column": "_direction_column_7ekd7_gg_"
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
|
-
var LegendFlexRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
31
|
+
var LegendFlexRoot = /* @__PURE__ */ (function(_BaseLegend) {
|
|
32
32
|
function LegendFlexRoot2() {
|
|
33
33
|
_classCallCheck(this, LegendFlexRoot2);
|
|
34
34
|
return _callSuper(this, LegendFlexRoot2, arguments);
|
|
@@ -65,7 +65,7 @@ var LegendFlexRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
|
65
65
|
})), withTrend && this.renderTrend(), suffix ? suffix : null);
|
|
66
66
|
}
|
|
67
67
|
}]);
|
|
68
|
-
}(BaseLegend);
|
|
68
|
+
})(BaseLegend);
|
|
69
69
|
_defineProperty(LegendFlexRoot, "displayName", "LegendFlex");
|
|
70
70
|
_defineProperty(LegendFlexRoot, "style", style);
|
|
71
71
|
_defineProperty(LegendFlexRoot, "enhance", [i18nEnhance(localizedMessages)]);
|
|
@@ -45,7 +45,7 @@ var style = (
|
|
|
45
45
|
})
|
|
46
46
|
);
|
|
47
47
|
var enhance = [resolveColorEnhance(), uniqueIDEnhancement()];
|
|
48
|
-
var LegendItemRoot = /* @__PURE__ */ function(_Component) {
|
|
48
|
+
var LegendItemRoot = /* @__PURE__ */ (function(_Component) {
|
|
49
49
|
function LegendItemRoot2() {
|
|
50
50
|
_classCallCheck(this, LegendItemRoot2);
|
|
51
51
|
return _callSuper(this, LegendItemRoot2, arguments);
|
|
@@ -137,7 +137,7 @@ var LegendItemRoot = /* @__PURE__ */ function(_Component) {
|
|
|
137
137
|
}, _ref))), /* @__PURE__ */ React.createElement(Children, _ref7.cn("Children", {})));
|
|
138
138
|
}
|
|
139
139
|
}]);
|
|
140
|
-
}(Component);
|
|
140
|
+
})(Component);
|
|
141
141
|
_defineProperty(LegendItemRoot, "displayName", "LegendItem");
|
|
142
142
|
_defineProperty(LegendItemRoot, "style", style);
|
|
143
143
|
_defineProperty(LegendItemRoot, "enhance", enhance);
|
|
@@ -26,7 +26,7 @@ var style = (
|
|
|
26
26
|
"_size_m": "_size_m_42qmv_gg_"
|
|
27
27
|
})
|
|
28
28
|
);
|
|
29
|
-
var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
29
|
+
var LegendTableRoot = /* @__PURE__ */ (function(_BaseLegend) {
|
|
30
30
|
function LegendTableRoot2() {
|
|
31
31
|
_classCallCheck(this, LegendTableRoot2);
|
|
32
32
|
return _callSuper(this, LegendTableRoot2, arguments);
|
|
@@ -58,7 +58,7 @@ var LegendTableRoot = /* @__PURE__ */ function(_BaseLegend) {
|
|
|
58
58
|
}));
|
|
59
59
|
}
|
|
60
60
|
}]);
|
|
61
|
-
}(BaseLegend);
|
|
61
|
+
})(BaseLegend);
|
|
62
62
|
_defineProperty(LegendTableRoot, "displayName", "LegendTable");
|
|
63
63
|
_defineProperty(LegendTableRoot, "style", style);
|
|
64
64
|
_defineProperty(LegendTableRoot, "defaultProps", function() {
|
|
@@ -10,7 +10,7 @@ import React from "react";
|
|
|
10
10
|
import createElement from "../../createElement.mjs";
|
|
11
11
|
import { PatternFill } from "../../Pattern.mjs";
|
|
12
12
|
import { roundedPath } from "../../utils.mjs";
|
|
13
|
-
var CigaretteBarRoot = /* @__PURE__ */ function(_Component) {
|
|
13
|
+
var CigaretteBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
14
14
|
function CigaretteBarRoot2() {
|
|
15
15
|
var _this;
|
|
16
16
|
_classCallCheck(this, CigaretteBarRoot2);
|
|
@@ -120,7 +120,7 @@ var CigaretteBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
120
120
|
})));
|
|
121
121
|
}
|
|
122
122
|
}]);
|
|
123
|
-
}(Component);
|
|
123
|
+
})(Component);
|
|
124
124
|
_defineProperty(CigaretteBarRoot, "displayName", "Cigarette.BarItem");
|
|
125
125
|
_defineProperty(CigaretteBarRoot, "enhance", [uniqueIDEnhancement()]);
|
|
126
126
|
_defineProperty(CigaretteBarRoot, "style", {});
|
|
@@ -13,7 +13,7 @@ import Bar, { MIN_HEIGHT } from "../../Bar.mjs";
|
|
|
13
13
|
import createElement from "../../createElement.mjs";
|
|
14
14
|
import { scaleToBand, getChartDefaultColorName } from "../../utils.mjs";
|
|
15
15
|
var XY0 = Symbol("XY0");
|
|
16
|
-
var StackGroupBarRoot = /* @__PURE__ */ function(_Component) {
|
|
16
|
+
var StackGroupBarRoot = /* @__PURE__ */ (function(_Component) {
|
|
17
17
|
function StackGroupBarRoot2(props) {
|
|
18
18
|
var _this;
|
|
19
19
|
_classCallCheck(this, StackGroupBarRoot2);
|
|
@@ -124,7 +124,7 @@ var StackGroupBarRoot = /* @__PURE__ */ function(_Component) {
|
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
}]);
|
|
127
|
-
}(Component);
|
|
127
|
+
})(Component);
|
|
128
128
|
_defineProperty(StackGroupBarRoot, "displayName", "StackGroupBar");
|
|
129
129
|
_defineProperty(StackGroupBarRoot, "defaultProps", {
|
|
130
130
|
r: 2
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/d3-chart",
|
|
3
3
|
"description": "Semrush D3 Chart Component",
|
|
4
|
-
"version": "16.2.0
|
|
4
|
+
"version": "16.2.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/esm/index.mjs",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@formatjs/intl": "2.3.0",
|
|
18
|
-
"@semcore/animation": "16.0.6
|
|
19
|
-
"@semcore/checkbox": "16.2.0
|
|
20
|
-
"@semcore/divider": "16.0.10
|
|
21
|
-
"@semcore/flex-box": "16.0.10
|
|
22
|
-
"@semcore/icon": "16.5.1
|
|
23
|
-
"@semcore/popper": "16.0.10
|
|
24
|
-
"@semcore/typography": "16.3.0
|
|
18
|
+
"@semcore/animation": "16.0.6",
|
|
19
|
+
"@semcore/checkbox": "16.2.0",
|
|
20
|
+
"@semcore/divider": "16.0.10",
|
|
21
|
+
"@semcore/flex-box": "16.0.10",
|
|
22
|
+
"@semcore/icon": "16.5.1",
|
|
23
|
+
"@semcore/popper": "16.0.10",
|
|
24
|
+
"@semcore/typography": "16.3.0",
|
|
25
25
|
"@types/d3-shape": "^3.1.7",
|
|
26
26
|
"@upsetjs/venn.js": "1.4.2",
|
|
27
27
|
"d3-array": "3.1.6",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"hoist-non-react-statics": "3.3.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@semcore/base-components": "^16.
|
|
38
|
+
"@semcore/base-components": "^16.0.0"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|
|
@@ -47,16 +47,16 @@
|
|
|
47
47
|
"@types/d3-array": "^3.2.1",
|
|
48
48
|
"@types/d3-scale": "^4.0.9",
|
|
49
49
|
"@types/d3-transition": "^3.0.9",
|
|
50
|
-
"@semcore/core": "16.5.0
|
|
51
|
-
"@semcore/button": "16.0.10
|
|
52
|
-
"@semcore/base-components": "16.4.0
|
|
53
|
-
"@semcore/checkbox": "16.2.0
|
|
54
|
-
"@semcore/
|
|
55
|
-
"@semcore/
|
|
56
|
-
"@semcore/
|
|
57
|
-
"@semcore/typography": "16.3.0-prerelease.5",
|
|
50
|
+
"@semcore/core": "16.5.0",
|
|
51
|
+
"@semcore/button": "16.0.10",
|
|
52
|
+
"@semcore/base-components": "16.4.0",
|
|
53
|
+
"@semcore/checkbox": "16.2.0",
|
|
54
|
+
"@semcore/dropdown-menu": "16.1.11",
|
|
55
|
+
"@semcore/divider": "16.0.10",
|
|
56
|
+
"@semcore/ellipsis": "16.0.10",
|
|
58
57
|
"@semcore/testing-utils": "1.0.0",
|
|
59
|
-
"@semcore/
|
|
58
|
+
"@semcore/typography": "16.3.0",
|
|
59
|
+
"@semcore/icon": "16.5.1"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "pnpm semcore-builder --source=js,ts && pnpm vite build"
|