sea-chart 2.0.25-alpha.3 → 2.0.25
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/dist/assets/css/sea-chart-d3-tooltip.css +1 -1
- package/dist/components/tooltip/index.js +1 -2
- package/dist/components/types-dialog/index.js +1 -3
- package/dist/services/map-json.js +101 -3
- package/dist/view/wrapper/chart-component.js +28 -106
- package/dist/view/wrapper/index.js +0 -14
- package/package.json +2 -3
- package/dist/view/wrapper/map-bubble.js +0 -268
- package/dist/view/wrapper/map.js +0 -268
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.sea-chart-d3-tooltip-container {
|
|
2
2
|
position: absolute;
|
|
3
3
|
transform: translate(-9999px, -9999px);
|
|
4
|
-
transition: transform 0.
|
|
4
|
+
transition: transform 0.2s;
|
|
5
5
|
background-color: rgb(255, 255, 255);
|
|
6
6
|
box-shadow: rgba(196, 175, 175, 0.1) 0px 0px 1px 1px;
|
|
7
7
|
border-radius: 3px;
|
|
@@ -68,8 +68,7 @@ const ToolTip = _ref => {
|
|
|
68
68
|
ref: tooltipRef,
|
|
69
69
|
className: "sea-chart-d3-tooltip-container",
|
|
70
70
|
style: {
|
|
71
|
-
transform: "translate(".concat(position.offsetX, "px, ").concat(position.offsetY, "px)")
|
|
72
|
-
display: position.offsetX === -9999 ? 'none' : 'block'
|
|
71
|
+
transform: "translate(".concat(position.offsetX, "px, ").concat(position.offsetY, "px)")
|
|
73
72
|
}
|
|
74
73
|
}, title && /*#__PURE__*/_react.default.createElement("div", {
|
|
75
74
|
className: "sea-chart-d3-tooltip-title"
|
|
@@ -69,9 +69,7 @@ const TypesDialog = _ref => {
|
|
|
69
69
|
}, [onChange, selectedType, onToggle]);
|
|
70
70
|
const handleFilterTypes = (0, _react.useCallback)(() => {
|
|
71
71
|
if (hideTypeToggle) {
|
|
72
|
-
const newChartTypes = _constants.CHART_TYPES.filter(item => ['Histogram', 'Bar_chart', 'Line_chart', 'Area', 'Pie_chart', 'Scatter_chart', 'Combination_chart'
|
|
73
|
-
const newMapChildren = newChartTypes[newChartTypes.length - 1].children.slice(0, 2);
|
|
74
|
-
newChartTypes[newChartTypes.length - 1].children = newMapChildren;
|
|
72
|
+
const newChartTypes = _constants.CHART_TYPES.filter(item => ['Histogram', 'Bar_chart', 'Line_chart', 'Area', 'Pie_chart', 'Scatter_chart', 'Combination_chart'].includes(item.name));
|
|
75
73
|
return newChartTypes;
|
|
76
74
|
}
|
|
77
75
|
return _constants.CHART_TYPES;
|