@semcore/d3-chart 18.0.0-prerelease.1 → 18.0.0-prerelease.5
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 +52 -1
- package/README.md +0 -1
- package/lib/cjs/Area.js +123 -23
- package/lib/cjs/Area.js.map +1 -1
- package/lib/cjs/Axis.js +109 -97
- package/lib/cjs/Axis.js.map +1 -1
- package/lib/cjs/Bar.js +16 -16
- package/lib/cjs/Bubble.js +14 -14
- package/lib/cjs/ChartMetaData.js +44 -0
- package/lib/cjs/ChartMetaData.js.map +1 -0
- package/lib/cjs/CompactHorizontalBar.js +17 -17
- package/lib/cjs/CompactHorizontalBar.js.map +1 -1
- package/lib/cjs/Donut.js +18 -19
- package/lib/cjs/Donut.js.map +1 -1
- package/lib/cjs/Dots.js +67 -13
- package/lib/cjs/Dots.js.map +1 -1
- package/lib/cjs/GroupBar.js +5 -2
- package/lib/cjs/GroupBar.js.map +1 -1
- package/lib/cjs/HorizontalBar.js +16 -16
- package/lib/cjs/Hover.js +55 -52
- package/lib/cjs/Hover.js.map +1 -1
- package/lib/cjs/Line.js +82 -17
- package/lib/cjs/Line.js.map +1 -1
- package/lib/cjs/Pattern.js +113 -2
- package/lib/cjs/Pattern.js.map +1 -1
- package/lib/cjs/Plot.js +5 -2
- package/lib/cjs/Plot.js.map +1 -1
- package/lib/cjs/Radar.js +19 -19
- package/lib/cjs/RadialTree.js +12 -12
- package/lib/cjs/Reference.js +55 -18
- package/lib/cjs/Reference.js.map +1 -1
- package/lib/cjs/ScatterPlot.js +9 -9
- package/lib/cjs/Tooltip.js +16 -14
- package/lib/cjs/Tooltip.js.map +1 -1
- package/lib/cjs/Venn.js +9 -9
- package/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/lib/cjs/component/Chart/AbstractChart.js +29 -23
- package/lib/cjs/component/Chart/AbstractChart.js.map +1 -1
- package/lib/cjs/component/Chart/AbstractChart.type.js +19 -0
- package/lib/cjs/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.js +21 -7
- package/lib/cjs/component/Chart/AreaChart.js.map +1 -1
- package/lib/cjs/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.js +17 -8
- package/lib/cjs/component/Chart/BarChart.js.map +1 -1
- package/lib/cjs/component/Chart/BarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.js +4 -0
- package/lib/cjs/component/Chart/BubbleChart.js.map +1 -1
- package/lib/cjs/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.js +5 -1
- package/lib/cjs/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/cjs/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.js +0 -1
- package/lib/cjs/component/Chart/DonutChart.js.map +1 -1
- package/lib/cjs/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.js +6 -3
- package/lib/cjs/component/Chart/HistogramChart.js.map +1 -1
- package/lib/cjs/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.js +16 -6
- package/lib/cjs/component/Chart/LineChart.js.map +1 -1
- package/lib/cjs/component/Chart/LineChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/VennChart.type.js.map +1 -1
- package/lib/cjs/component/Chart/index.js +43 -0
- package/lib/cjs/component/Chart/index.js.map +1 -1
- package/lib/cjs/component/ChartLegend/BaseLegend.js +0 -4
- package/lib/cjs/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/cjs/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +19 -17
- package/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +28 -21
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/cjs/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/cjs/component/Cigarette/Cigarette.js +0 -1
- package/lib/cjs/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/cjs/component/Metric/Metric.js +78 -0
- package/lib/cjs/component/Metric/Metric.js.map +1 -0
- package/lib/cjs/component/Metric/Metric.type.js +2 -0
- package/lib/cjs/component/Metric/Metric.type.js.map +1 -0
- package/lib/cjs/index.js +62 -8
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/abstract-chart.shadow.css +13 -3
- package/lib/cjs/style/area.shadow.css +8 -7
- package/lib/cjs/style/axis.shadow.css +51 -60
- package/lib/cjs/style/bar.shadow.css +7 -9
- package/lib/cjs/style/bubble.shadow.css +4 -6
- package/lib/cjs/style/donut.shadow.css +3 -5
- package/lib/cjs/style/dot.shadow.css +37 -4
- package/lib/cjs/style/hover.shadow.css +30 -13
- package/lib/cjs/style/line.shadow.css +3 -5
- package/lib/cjs/style/pattern.shadow.css +10 -0
- package/lib/cjs/style/plotA11yView.shadow.css +3 -3
- package/lib/cjs/style/radar.shadow.css +7 -7
- package/lib/cjs/style/radial-tree.shadow.css +3 -5
- package/lib/cjs/style/reference.shadow.css +5 -5
- package/lib/cjs/style/scatterplot.shadow.css +2 -4
- package/lib/cjs/style/tooltip.shadow.css +12 -14
- package/lib/cjs/style/venn.shadow.css +0 -2
- package/lib/cjs/types/Axis.d.js.map +1 -1
- package/lib/cjs/types/Donut.d.js.map +1 -1
- package/lib/cjs/types/Hover.d.js.map +1 -1
- package/lib/cjs/types/index.d.js +20 -0
- package/lib/cjs/types/index.d.js.map +1 -1
- package/lib/cjs/utils.js +21 -1
- package/lib/cjs/utils.js.map +1 -1
- package/lib/es6/Area.js +125 -25
- package/lib/es6/Area.js.map +1 -1
- package/lib/es6/Axis.js +109 -97
- package/lib/es6/Axis.js.map +1 -1
- package/lib/es6/Bar.js +16 -16
- package/lib/es6/Bubble.js +14 -14
- package/lib/es6/ChartMetaData.js +36 -0
- package/lib/es6/ChartMetaData.js.map +1 -0
- package/lib/es6/CompactHorizontalBar.js +17 -17
- package/lib/es6/CompactHorizontalBar.js.map +1 -1
- package/lib/es6/Donut.js +18 -19
- package/lib/es6/Donut.js.map +1 -1
- package/lib/es6/Dots.js +68 -14
- package/lib/es6/Dots.js.map +1 -1
- package/lib/es6/GroupBar.js +5 -2
- package/lib/es6/GroupBar.js.map +1 -1
- package/lib/es6/HorizontalBar.js +16 -16
- package/lib/es6/Hover.js +55 -52
- package/lib/es6/Hover.js.map +1 -1
- package/lib/es6/Line.js +84 -19
- package/lib/es6/Line.js.map +1 -1
- package/lib/es6/Pattern.js +108 -2
- package/lib/es6/Pattern.js.map +1 -1
- package/lib/es6/Plot.js +5 -2
- package/lib/es6/Plot.js.map +1 -1
- package/lib/es6/Radar.js +19 -19
- package/lib/es6/RadialTree.js +12 -12
- package/lib/es6/Reference.js +55 -18
- package/lib/es6/Reference.js.map +1 -1
- package/lib/es6/ScatterPlot.js +9 -9
- package/lib/es6/Tooltip.js +16 -14
- package/lib/es6/Tooltip.js.map +1 -1
- package/lib/es6/Venn.js +9 -9
- package/lib/es6/a11y/PlotA11yView.js +2 -2
- package/lib/es6/component/Chart/AbstractChart.js +29 -23
- package/lib/es6/component/Chart/AbstractChart.js.map +1 -1
- package/lib/es6/component/Chart/AbstractChart.type.js +14 -1
- package/lib/es6/component/Chart/AbstractChart.type.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.js +21 -7
- package/lib/es6/component/Chart/AreaChart.js.map +1 -1
- package/lib/es6/component/Chart/AreaChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.js +17 -8
- package/lib/es6/component/Chart/BarChart.js.map +1 -1
- package/lib/es6/component/Chart/BarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.js +4 -0
- package/lib/es6/component/Chart/BubbleChart.js.map +1 -1
- package/lib/es6/component/Chart/BubbleChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.js +5 -1
- package/lib/es6/component/Chart/CigaretteChart.js.map +1 -1
- package/lib/es6/component/Chart/CigaretteChart.type.js.map +1 -1
- package/lib/es6/component/Chart/CompactHorizontalBarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.js +0 -1
- package/lib/es6/component/Chart/DonutChart.js.map +1 -1
- package/lib/es6/component/Chart/DonutChart.type.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.js +6 -3
- package/lib/es6/component/Chart/HistogramChart.js.map +1 -1
- package/lib/es6/component/Chart/HistogramChart.type.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.js +14 -4
- package/lib/es6/component/Chart/LineChart.js.map +1 -1
- package/lib/es6/component/Chart/LineChart.type.js.map +1 -1
- package/lib/es6/component/Chart/RadarChart.type.js.map +1 -1
- package/lib/es6/component/Chart/ScatterPlotChart.type.js.map +1 -1
- package/lib/es6/component/Chart/VennChart.type.js.map +1 -1
- package/lib/es6/component/Chart/index.js +2 -0
- package/lib/es6/component/Chart/index.js.map +1 -1
- package/lib/es6/component/ChartLegend/BaseLegend.js +0 -4
- package/lib/es6/component/ChartLegend/BaseLegend.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/lib/es6/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +19 -17
- package/lib/es6/component/ChartLegend/LegendItem/LegendItem.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +28 -21
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/LegendTable.type.js.map +1 -1
- package/lib/es6/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/es6/component/Cigarette/Cigarette.js +0 -1
- package/lib/es6/component/Cigarette/Cigarette.js.map +1 -1
- package/lib/es6/component/Metric/Metric.js +72 -0
- package/lib/es6/component/Metric/Metric.js.map +1 -0
- package/lib/es6/component/Metric/Metric.type.js +2 -0
- package/lib/es6/component/Metric/Metric.type.js.map +1 -0
- package/lib/es6/index.js +2 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/abstract-chart.shadow.css +13 -3
- package/lib/es6/style/area.shadow.css +8 -7
- package/lib/es6/style/axis.shadow.css +51 -60
- package/lib/es6/style/bar.shadow.css +7 -9
- package/lib/es6/style/bubble.shadow.css +4 -6
- package/lib/es6/style/donut.shadow.css +3 -5
- package/lib/es6/style/dot.shadow.css +37 -4
- package/lib/es6/style/hover.shadow.css +30 -13
- package/lib/es6/style/line.shadow.css +3 -5
- package/lib/es6/style/pattern.shadow.css +10 -0
- package/lib/es6/style/plotA11yView.shadow.css +3 -3
- package/lib/es6/style/radar.shadow.css +7 -7
- package/lib/es6/style/radial-tree.shadow.css +3 -5
- package/lib/es6/style/reference.shadow.css +5 -5
- package/lib/es6/style/scatterplot.shadow.css +2 -4
- package/lib/es6/style/tooltip.shadow.css +12 -14
- package/lib/es6/style/venn.shadow.css +0 -2
- package/lib/es6/types/Axis.d.js.map +1 -1
- package/lib/es6/types/Donut.d.js.map +1 -1
- package/lib/es6/types/Hover.d.js.map +1 -1
- package/lib/es6/types/index.d.js +5 -7
- package/lib/es6/types/index.d.js.map +1 -1
- package/lib/es6/utils.js +18 -0
- package/lib/es6/utils.js.map +1 -1
- package/lib/esm/Area.mjs +127 -26
- package/lib/esm/Axis.mjs +110 -98
- package/lib/esm/Bar.mjs +17 -17
- package/lib/esm/Bubble.mjs +15 -15
- package/lib/esm/ChartMetaData.mjs +38 -0
- package/lib/esm/CompactHorizontalBar.mjs +18 -18
- package/lib/esm/Donut.mjs +19 -20
- package/lib/esm/Dots.mjs +66 -15
- package/lib/esm/GroupBar.mjs +5 -2
- package/lib/esm/HorizontalBar.mjs +17 -17
- package/lib/esm/Hover.mjs +56 -53
- package/lib/esm/Line.mjs +86 -20
- package/lib/esm/Pattern.mjs +119 -0
- package/lib/esm/Plot.mjs +6 -3
- package/lib/esm/Radar.mjs +20 -20
- package/lib/esm/RadialTree.mjs +13 -13
- package/lib/esm/Reference.mjs +56 -19
- package/lib/esm/ScatterPlot.mjs +10 -10
- package/lib/esm/Tooltip.mjs +17 -15
- package/lib/esm/Venn.mjs +10 -10
- package/lib/esm/a11y/PlotA11yView.mjs +3 -3
- package/lib/esm/component/Chart/AbstractChart.mjs +28 -24
- package/lib/esm/component/Chart/AbstractChart.type.mjs +16 -0
- package/lib/esm/component/Chart/AreaChart.mjs +21 -7
- package/lib/esm/component/Chart/BarChart.mjs +17 -8
- package/lib/esm/component/Chart/BubbleChart.mjs +4 -0
- package/lib/esm/component/Chart/CigaretteChart.mjs +5 -1
- package/lib/esm/component/Chart/DonutChart.mjs +0 -1
- package/lib/esm/component/Chart/HistogramChart.mjs +6 -3
- package/lib/esm/component/Chart/LineChart.mjs +14 -4
- package/lib/esm/component/Chart/index.mjs +8 -0
- package/lib/esm/component/ChartLegend/BaseLegend.mjs +0 -4
- package/lib/esm/component/ChartLegend/LegendFlex/LegendFlex.mjs +5 -5
- package/lib/esm/component/ChartLegend/LegendFlex/legend-flex.shadow.css +2 -2
- package/lib/esm/component/ChartLegend/LegendItem/LegendItem.mjs +20 -18
- package/lib/esm/component/ChartLegend/LegendItem/legend-item.shadow.css +11 -11
- package/lib/esm/component/ChartLegend/LegendTable/LegendTable.mjs +29 -22
- package/lib/esm/component/ChartLegend/LegendTable/legend-table.shadow.css +31 -15
- package/lib/esm/component/Cigarette/Cigarette.mjs +0 -1
- package/lib/esm/component/Metric/Metric.mjs +62 -0
- package/lib/esm/index.mjs +42 -34
- package/lib/esm/style/abstract-chart.shadow.css +13 -3
- package/lib/esm/style/area.shadow.css +8 -7
- package/lib/esm/style/axis.shadow.css +51 -60
- package/lib/esm/style/bar.shadow.css +7 -9
- package/lib/esm/style/bubble.shadow.css +4 -6
- package/lib/esm/style/donut.shadow.css +3 -5
- package/lib/esm/style/dot.shadow.css +37 -4
- package/lib/esm/style/hover.shadow.css +30 -13
- package/lib/esm/style/line.shadow.css +3 -5
- package/lib/esm/style/pattern.shadow.css +10 -0
- package/lib/esm/style/plotA11yView.shadow.css +3 -3
- package/lib/esm/style/radar.shadow.css +7 -7
- package/lib/esm/style/radial-tree.shadow.css +3 -5
- package/lib/esm/style/reference.shadow.css +5 -5
- package/lib/esm/style/scatterplot.shadow.css +2 -4
- package/lib/esm/style/tooltip.shadow.css +12 -14
- package/lib/esm/style/venn.shadow.css +0 -2
- package/lib/esm/utils.mjs +20 -0
- package/lib/types/Axis.d.ts +3 -2
- package/lib/types/ChartMetaData.d.ts +17 -0
- package/lib/types/ChartMetaData.d.ts.map +1 -0
- package/lib/types/Donut.d.ts +1 -1
- package/lib/types/Hover.d.ts +2 -0
- package/lib/types/Pattern.d.ts +18 -0
- package/lib/types/Pattern.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.d.ts +8 -4
- package/lib/types/component/Chart/AbstractChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AbstractChart.type.d.ts +28 -8
- package/lib/types/component/Chart/AbstractChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/AreaChart.d.ts.map +1 -1
- package/lib/types/component/Chart/AreaChart.type.d.ts +8 -4
- package/lib/types/component/Chart/AreaChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/BarChart.d.ts.map +1 -1
- package/lib/types/component/Chart/BarChart.type.d.ts +3 -0
- package/lib/types/component/Chart/BarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/BubbleChart.d.ts.map +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts +1 -1
- package/lib/types/component/Chart/BubbleChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.d.ts.map +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CigaretteChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/CompactHorizontalBarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/DonutChart.d.ts.map +1 -1
- package/lib/types/component/Chart/DonutChart.type.d.ts +1 -2
- package/lib/types/component/Chart/DonutChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/HistogramChart.d.ts.map +1 -1
- package/lib/types/component/Chart/HistogramChart.type.d.ts +1 -0
- package/lib/types/component/Chart/HistogramChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.d.ts.map +1 -1
- package/lib/types/component/Chart/LineChart.type.d.ts +1 -0
- package/lib/types/component/Chart/LineChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts +1 -1
- package/lib/types/component/Chart/RadarChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts +1 -1
- package/lib/types/component/Chart/ScatterPlotChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts +1 -1
- package/lib/types/component/Chart/VennChart.type.d.ts.map +1 -1
- package/lib/types/component/Chart/index.d.ts +2 -0
- package/lib/types/component/Chart/index.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/BaseLegend.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.d.ts.map +1 -1
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts +5 -3
- package/lib/types/component/ChartLegend/LegendTable/LegendTable.type.d.ts.map +1 -1
- package/lib/types/component/Metric/Metric.d.ts +9 -0
- package/lib/types/component/Metric/Metric.d.ts.map +1 -0
- package/lib/types/component/Metric/Metric.type.d.ts +33 -0
- package/lib/types/component/Metric/Metric.type.d.ts.map +1 -0
- package/lib/types/index.d.ts +5 -7
- package/lib/types/utils.d.ts +4 -1
- package/lib/types/utils.d.ts.map +1 -1
- package/package.json +16 -15
- package/lib/cjs/color.js +0 -132
- package/lib/cjs/color.js.map +0 -1
- package/lib/cjs/style/var.css +0 -125
- package/lib/es6/color.js +0 -127
- package/lib/es6/color.js.map +0 -1
- package/lib/es6/style/var.css +0 -125
- package/lib/esm/color.mjs +0 -127
- package/lib/esm/utils/TextMeasurer.mjs +0 -27
package/lib/cjs/Axis.js
CHANGED
|
@@ -5,33 +5,36 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.YAxis = exports.XAxis = void 0;
|
|
8
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var _core = require("@semcore/core");
|
|
11
|
+
var _getFocusableIn = require("@semcore/core/lib/utils/focus-lock/getFocusableIn");
|
|
12
|
+
var _propsForElement = _interopRequireDefault(require("@semcore/core/lib/utils/propsForElement"));
|
|
13
|
+
var _useEnhancedEffect = _interopRequireDefault(require("@semcore/core/lib/utils/use/useEnhancedEffect"));
|
|
11
14
|
var _react = _interopRequireDefault(require("react"));
|
|
12
15
|
var _createElement = _interopRequireDefault(require("./createElement"));
|
|
13
16
|
var _utils = require("./utils");
|
|
14
|
-
var _TextMeasurer = require("./utils/TextMeasurer");
|
|
15
17
|
/*!__reshadow-styles__:"./style/axis.shadow.css"*/
|
|
16
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
18
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SAxis_ae62s_gg_{stroke:var(--intergalactic-chart-grid-x-axis,oklch(.88 .011 234.9))}.___SAxis_ae62s_gg_.__hide_ae62s_gg_{display:none}.___STick_ae62s_gg_{display:block;font-size:var(--intergalactic-fs-100,12px);font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;line-height:var(--intergalactic-lh-100,1.3334);color:var(--intergalactic-chart-grid-text-label,#00132466);overflow:visible}.___STick_ae62s_gg_ [data-tick-content]{height:100%}.___STick_ae62s_gg_._position_bottom_ae62s_gg_{text-align:center}.___STick_ae62s_gg_._position_left_ae62s_gg_{text-align:right;dominant-baseline:central}.___STick_ae62s_gg_._position_left_ae62s_gg_ [data-tick-content]{align-content:center}.___STick_ae62s_gg_._position_top_ae62s_gg_{text-align:center}.___STick_ae62s_gg_._position_top_ae62s_gg_ [data-tick-content]{align-content:end}.___STick_ae62s_gg_._position_right_ae62s_gg_{dominant-baseline:central}.___STick_ae62s_gg_._position_right_ae62s_gg_ [data-tick-content]{align-content:center}.___STick_ae62s_gg_.__hide_ae62s_gg_{display:none}.___STick_ae62s_gg_.__primaryText_ae62s_gg_{color:var(--intergalactic-text-primary,oklch(.23 .009 245))}.___SGrid_ae62s_gg_{fill:#0000;stroke:var(--intergalactic-chart-grid-line,oklch(.7 .021 242));stroke-dasharray:0 6;stroke-linecap:round}.___STitle_ae62s_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#00132466);transform-origin:var(--transform-origin_ae62s)}.___STitle_ae62s_gg_._position_top_ae62s_gg_{text-anchor:middle}.___STitle_ae62s_gg_._position_bottom_ae62s_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_ae62s_gg_._position_left_ae62s_gg_,.___STitle_ae62s_gg_._position_right_ae62s_gg_{transform:rotate(-90deg);dominant-baseline:middle;text-anchor:middle}.___STitle_ae62s_gg_._position_left_ae62s_gg_.__verticalWritingMode_ae62s_gg_,.___STitle_ae62s_gg_._position_right_ae62s_gg_.__verticalWritingMode_ae62s_gg_{writing-mode:vertical-rl;transform:none}.___STick_ae62s_gg_._position_custom_0_ae62s_gg_{transform:translateY(12px);text-anchor:middle;dominant-baseline:hanging}.___STick_ae62s_gg_._position_custom_0_ae62s_gg_ tspan{dominant-baseline:hanging}.___STick_ae62s_gg_._position_custom_1_ae62s_gg_{transform:translateX(-16px);text-anchor:end;dominant-baseline:middle}.___STick_ae62s_gg_._position_custom_1_ae62s_gg_ tspan{dominant-baseline:middle}", /*__inner_css_end__*/"ae62s_gg_"),
|
|
17
19
|
/*__reshadow_css_end__*/
|
|
18
20
|
{
|
|
19
|
-
"__SAxis": "
|
|
20
|
-
"_hide": "
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"_position_custom_1": "_position_custom_1_17qfg_gg_"
|
|
21
|
+
"__SAxis": "___SAxis_ae62s_gg_",
|
|
22
|
+
"_hide": "__hide_ae62s_gg_",
|
|
23
|
+
"__SGrid": "___SGrid_ae62s_gg_",
|
|
24
|
+
"__STitle": "___STitle_ae62s_gg_",
|
|
25
|
+
"--transform-origin": "--transform-origin_ae62s",
|
|
26
|
+
"_position_top": "_position_top_ae62s_gg_",
|
|
27
|
+
"_position_bottom": "_position_bottom_ae62s_gg_",
|
|
28
|
+
"_position_right": "_position_right_ae62s_gg_",
|
|
29
|
+
"_position_left": "_position_left_ae62s_gg_",
|
|
30
|
+
"_verticalWritingMode": "__verticalWritingMode_ae62s_gg_",
|
|
31
|
+
"__STick": "___STick_ae62s_gg_",
|
|
32
|
+
"_primaryText": "__primaryText_ae62s_gg_",
|
|
33
|
+
"_position_custom_0": "_position_custom_0_ae62s_gg_",
|
|
34
|
+
"_position_custom_1": "_position_custom_1_ae62s_gg_"
|
|
34
35
|
});
|
|
36
|
+
const TICK_MARGIN_X = 16;
|
|
37
|
+
const TICK_MARGIN_Y = 8;
|
|
35
38
|
const CUSTOM_0 = Symbol('custom_0');
|
|
36
39
|
const CUSTOM_1 = Symbol('custom_1');
|
|
37
40
|
const MAP_INDEX_SCALE_SYMBOL = {
|
|
@@ -105,32 +108,46 @@ const MAP_POSITION_AXIS = {
|
|
|
105
108
|
}
|
|
106
109
|
};
|
|
107
110
|
const MAP_POSITION_TICK = {
|
|
108
|
-
top: ([xScale, yScale], value
|
|
111
|
+
top: ([xScale, yScale], value, _, {
|
|
112
|
+
width,
|
|
113
|
+
height
|
|
114
|
+
}) => {
|
|
109
115
|
const yRange = yScale.range();
|
|
116
|
+
const [translateX, translateY] = [-width / 2, -height - TICK_MARGIN_Y];
|
|
110
117
|
return {
|
|
111
|
-
x: (0, _utils.scaleOfBandwidth)(xScale, value),
|
|
112
|
-
y: yRange[1]
|
|
118
|
+
x: (0, _utils.scaleOfBandwidth)(xScale, value) + translateX,
|
|
119
|
+
y: yRange[1] + translateY
|
|
113
120
|
};
|
|
114
121
|
},
|
|
115
|
-
bottom: ([xScale, yScale], value
|
|
122
|
+
bottom: ([xScale, yScale], value, _, {
|
|
123
|
+
width
|
|
124
|
+
}) => {
|
|
116
125
|
const yRange = yScale.range();
|
|
126
|
+
const [translateX, translateY] = [-width / 2, TICK_MARGIN_Y];
|
|
117
127
|
return {
|
|
118
|
-
x: (0, _utils.scaleOfBandwidth)(xScale, value),
|
|
119
|
-
y: yRange[0]
|
|
128
|
+
x: (0, _utils.scaleOfBandwidth)(xScale, value) + translateX,
|
|
129
|
+
y: yRange[0] + translateY
|
|
120
130
|
};
|
|
121
131
|
},
|
|
122
|
-
right: ([xScale, yScale], value
|
|
132
|
+
right: ([xScale, yScale], value, _, {
|
|
133
|
+
height
|
|
134
|
+
}) => {
|
|
123
135
|
const xRange = xScale.range();
|
|
136
|
+
const [translateX, translateY] = [TICK_MARGIN_X, -height / 2];
|
|
124
137
|
return {
|
|
125
|
-
x: xRange[1],
|
|
126
|
-
y: (0, _utils.scaleOfBandwidth)(yScale, value)
|
|
138
|
+
x: xRange[1] + translateX,
|
|
139
|
+
y: (0, _utils.scaleOfBandwidth)(yScale, value) + translateY
|
|
127
140
|
};
|
|
128
141
|
},
|
|
129
|
-
left: ([xScale, yScale], value
|
|
142
|
+
left: ([xScale, yScale], value, _, {
|
|
143
|
+
width,
|
|
144
|
+
height
|
|
145
|
+
}) => {
|
|
130
146
|
const xRange = xScale.range();
|
|
147
|
+
const [translateX, translateY] = [-width - TICK_MARGIN_X, -height / 2];
|
|
131
148
|
return {
|
|
132
|
-
x: xRange[0],
|
|
133
|
-
y: (0, _utils.scaleOfBandwidth)(yScale, value)
|
|
149
|
+
x: xRange[0] + translateX,
|
|
150
|
+
y: (0, _utils.scaleOfBandwidth)(yScale, value) + translateY
|
|
134
151
|
};
|
|
135
152
|
},
|
|
136
153
|
[CUSTOM_0]: ([xScale, yScale], value, pos) => {
|
|
@@ -199,49 +216,35 @@ const MAP_POSITION_TITlE = {
|
|
|
199
216
|
};
|
|
200
217
|
}
|
|
201
218
|
};
|
|
202
|
-
function renderValue(value) {
|
|
219
|
+
function renderValue(value, locale = 'en') {
|
|
203
220
|
if (value instanceof Date) {
|
|
204
|
-
return
|
|
221
|
+
return new Intl.DateTimeFormat(locale, {
|
|
222
|
+
day: 'numeric',
|
|
223
|
+
month: 'short'
|
|
224
|
+
}).format(value);
|
|
205
225
|
}
|
|
206
226
|
return value;
|
|
207
227
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
const {
|
|
229
|
-
width: currentLineWidth
|
|
230
|
-
} = measurer.measure(currentLine);
|
|
231
|
-
if (currentLineWidth > maxWidth) {
|
|
232
|
-
lines.push(currentLine);
|
|
233
|
-
currentLine = '';
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
if (currentLine) {
|
|
238
|
-
lines.push(currentLine);
|
|
239
|
-
}
|
|
240
|
-
return lines;
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
const measurer = new _TextMeasurer.TextMeasurer();
|
|
228
|
+
const TickForeignObject = /*#__PURE__*/_react.default.forwardRef(function ({
|
|
229
|
+
children,
|
|
230
|
+
isRenderProp,
|
|
231
|
+
'aria-hidden': ariaHidden,
|
|
232
|
+
...props
|
|
233
|
+
}, ref) {
|
|
234
|
+
const contentRef = _react.default.useRef(null);
|
|
235
|
+
const [interactive, setInteractive] = _react.default.useState(false);
|
|
236
|
+
(0, _useEnhancedEffect.default)(() => {
|
|
237
|
+
if (!isRenderProp || !contentRef.current) return;
|
|
238
|
+
setInteractive((0, _getFocusableIn.getFocusableIn)(contentRef.current).length > 0);
|
|
239
|
+
}, []);
|
|
240
|
+
return /*#__PURE__*/_react.default.createElement("foreignObject", (0, _extends2.default)({
|
|
241
|
+
ref: ref,
|
|
242
|
+
"aria-hidden": interactive ? undefined : true
|
|
243
|
+
}, (0, _propsForElement.default)(props, 'foreignObject')), /*#__PURE__*/_react.default.createElement("div", {
|
|
244
|
+
ref: contentRef,
|
|
245
|
+
"data-tick-content": true
|
|
246
|
+
}, children));
|
|
247
|
+
});
|
|
245
248
|
class AxisRoot extends _core.Component {
|
|
246
249
|
get ticks() {
|
|
247
250
|
const {
|
|
@@ -270,8 +273,7 @@ class AxisRoot extends _core.Component {
|
|
|
270
273
|
return {
|
|
271
274
|
ticks: this.ticks,
|
|
272
275
|
indexScale,
|
|
273
|
-
position
|
|
274
|
-
splitTextByWidth: splitTextByWidth(measurer)
|
|
276
|
+
position
|
|
275
277
|
};
|
|
276
278
|
}
|
|
277
279
|
getGridProps() {
|
|
@@ -316,17 +318,24 @@ function Ticks(props) {
|
|
|
316
318
|
dataHintsHandler,
|
|
317
319
|
children,
|
|
318
320
|
childrenPosition = 'inside',
|
|
319
|
-
|
|
320
|
-
|
|
321
|
+
locale,
|
|
322
|
+
primaryText,
|
|
323
|
+
size,
|
|
324
|
+
meta
|
|
321
325
|
} = props;
|
|
322
|
-
const
|
|
323
|
-
const
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
326
|
+
const isRenderProp = typeof children === 'function';
|
|
327
|
+
const isXScale = indexScale === 0;
|
|
328
|
+
const axis = isXScale ? 'horizontal' : 'vertical';
|
|
329
|
+
const [_, plotHeight] = size;
|
|
330
|
+
const currentScale = scale[indexScale];
|
|
331
|
+
const secondaryScale = scale[isXScale ? 1 : 0];
|
|
332
|
+
const [startPointCurrentScale, endPointCurrentScale] = currentScale.range();
|
|
333
|
+
const [startPointSecondaryScale, endPointSecondaryScale] = secondaryScale.range();
|
|
334
|
+
const tickStepSize = currentScale?.step?.() ?? Math.abs(startPointCurrentScale - endPointCurrentScale) / ticks.length;
|
|
335
|
+
const [tickWidth, tickHeight] = isXScale ? [tickStepSize, Math.max(Math.abs(plotHeight - startPointSecondaryScale), endPointSecondaryScale)] : [startPointSecondaryScale, tickStepSize];
|
|
327
336
|
const pos = MAP_POSITION_TICK[position] ?? MAP_POSITION_TICK[MAP_INDEX_SCALE_SYMBOL[indexScale]];
|
|
328
337
|
const positionClass = MAP_POSITION_TICK[position] ? position : `custom_${indexScale}`;
|
|
329
|
-
if (
|
|
338
|
+
if (isRenderProp) {
|
|
330
339
|
const labelGetter = value => {
|
|
331
340
|
const result = children({
|
|
332
341
|
value
|
|
@@ -339,30 +348,33 @@ function Ticks(props) {
|
|
|
339
348
|
dataHintsHandler.addKeyLabelGetter('horizontal', labelGetter);
|
|
340
349
|
}
|
|
341
350
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
351
|
+
meta.setTicksSize(axis, {
|
|
352
|
+
width: tickWidth,
|
|
353
|
+
height: tickHeight
|
|
354
|
+
});
|
|
355
|
+
meta.setTicksVisibility(axis, !hide);
|
|
356
|
+
meta.setTicksPosition(axis, position);
|
|
357
|
+
return ticks.map((value, i) => {
|
|
346
358
|
var _ref2;
|
|
347
|
-
const displayValue =
|
|
359
|
+
const displayValue = isRenderProp ? undefined : renderValue(value, locale);
|
|
348
360
|
return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react.default.createElement(STick, _ref2.cn("STick", {
|
|
349
|
-
"aria-hidden": true,
|
|
350
361
|
"key": i,
|
|
351
|
-
"render": 'text',
|
|
352
|
-
"childrenPosition": childrenPosition,
|
|
353
|
-
"__excludeProps": ['data', 'scale', 'format', 'value'],
|
|
354
|
-
"value": value,
|
|
355
362
|
"index": i,
|
|
363
|
+
"render": TickForeignObject,
|
|
364
|
+
"childrenPosition": childrenPosition,
|
|
365
|
+
"width": tickWidth,
|
|
366
|
+
"height": tickHeight,
|
|
356
367
|
"position": positionClass,
|
|
357
368
|
"hide": hide,
|
|
358
|
-
"
|
|
359
|
-
"
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
369
|
+
"primaryText": primaryText,
|
|
370
|
+
"value": value,
|
|
371
|
+
"isRenderProp": isRenderProp,
|
|
372
|
+
"__excludeProps": ['data', 'scale', 'format', 'value'],
|
|
373
|
+
...pos(scale, value, position, {
|
|
374
|
+
width: tickWidth,
|
|
375
|
+
height: tickHeight
|
|
376
|
+
})
|
|
377
|
+
}), displayValue);
|
|
366
378
|
});
|
|
367
379
|
}
|
|
368
380
|
function Grid(props) {
|
package/lib/cjs/Axis.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Axis.js","names":["_core","require","_react","_interopRequireDefault","_createElement","_utils","_TextMeasurer","style","sstyled","insert","CUSTOM_0","Symbol","CUSTOM_1","MAP_INDEX_SCALE_SYMBOL","MAP_POSITION_REVERT","top","right","bottom","left","MAP_POSITION_AXIS","xScale","yScale","xRange","range","yRange","x1","y1","x2","y2","pos","scaleOfBandwidth","MAP_POSITION_TICK","value","x","y","MAP_POSITION_GRID","OFFSET_TITLE","MAP_POSITION_TITlE","height","width","renderValue","Date","toLocaleDateString","splitTextByWidth","measurer","text","maxWidth","words","split","filter","word","length","lines","currentLine","i","testLine","trim","testWidth","measure","push","currentLineWidth","TextMeasurer","AxisRoot","Component","ticks","indexScale","scale","asProps","scl","domain","getTitleProps","position","locale","verticalWritingMode","includes","getTicksProps","getGridProps","render","_ref","SAxis","Element","styles","hide","default","createElement","cn","_defineProperty2","Ticks","props","STick","dataHintsHandler","children","childrenPosition","multiline","tickBandwidth","bandwidth","ticksWithLines","map","tick","positionClass","labelGetter","result","addKeyLabelGetter","_ref2","displayValue","undefined","primaryText","line","lineIndex","_extends2","key","dy","Grid","SGrid","setupGrid","Math","abs","_ref3","Title","_ref4","STitle","size","setTitle","sstyles","sTitleStyles","toFixed","className","XAxisRoot","defaultProps","XAxis","exports","YAxisRoot","YAxis"],"sources":["../../src/Axis.jsx"],"sourcesContent":["import { Component, sstyled } from '@semcore/core';\nimport React from 'react';\n\nimport createElement from './createElement';\nimport style from './style/axis.shadow.css';\nimport { scaleOfBandwidth } from './utils';\nimport { TextMeasurer } from './utils/TextMeasurer';\n\nconst CUSTOM_0 = Symbol('custom_0');\nconst CUSTOM_1 = Symbol('custom_1');\n\nconst MAP_INDEX_SCALE_SYMBOL = {\n 0: CUSTOM_0,\n 1: CUSTOM_1,\n};\n\nconst MAP_POSITION_REVERT = {\n top: 'bottom',\n right: 'left',\n bottom: 'top',\n left: 'right',\n};\n\nconst MAP_POSITION_AXIS = {\n top: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[0],\n y1: yRange[1],\n x2: xRange[1],\n y2: yRange[1],\n };\n },\n bottom: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[0],\n y1: yRange[0],\n x2: xRange[1],\n y2: yRange[0],\n };\n },\n right: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[1],\n y1: yRange[0],\n x2: xRange[1],\n y2: yRange[1],\n };\n },\n left: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[0],\n y1: yRange[0],\n x2: xRange[0],\n y2: yRange[1],\n };\n },\n [CUSTOM_0]: ([xScale, yScale], pos) => {\n const xRange = xScale.range();\n return {\n x1: xRange[0],\n y1: scaleOfBandwidth(yScale, pos),\n x2: xRange[1],\n y2: scaleOfBandwidth(yScale, pos),\n };\n },\n [CUSTOM_1]: ([xScale, yScale], pos) => {\n const yRange = yScale.range();\n return {\n x1: scaleOfBandwidth(xScale, pos),\n y1: yRange[0],\n x2: scaleOfBandwidth(xScale, pos),\n y2: yRange[1],\n };\n },\n};\n\nconst MAP_POSITION_TICK = {\n top: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n return {\n x: scaleOfBandwidth(xScale, value),\n y: yRange[1],\n };\n },\n bottom: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n return {\n x: scaleOfBandwidth(xScale, value),\n y: yRange[0],\n };\n },\n right: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n return {\n x: xRange[1],\n y: scaleOfBandwidth(yScale, value),\n };\n },\n left: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n return {\n x: xRange[0],\n y: scaleOfBandwidth(yScale, value),\n };\n },\n [CUSTOM_0]: ([xScale, yScale], value, pos) => {\n return {\n x: scaleOfBandwidth(xScale, value),\n y: scaleOfBandwidth(yScale, pos),\n };\n },\n [CUSTOM_1]: ([xScale, yScale], value, pos) => {\n return {\n x: scaleOfBandwidth(xScale, pos),\n y: scaleOfBandwidth(yScale, value),\n };\n },\n};\n\nconst MAP_POSITION_GRID = {\n 0: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n y1: yRange[0],\n x2: x,\n y2: yRange[1],\n };\n },\n 1: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n y1: y,\n x2: xRange[1],\n y2: y,\n };\n },\n};\n\nconst OFFSET_TITLE = 10;\nconst MAP_POSITION_TITlE = {\n top: ([xScale]) => {\n const xRange = xScale.range();\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: OFFSET_TITLE,\n };\n },\n bottom: ([xScale], [, height]) => {\n const xRange = xScale.range();\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: height - OFFSET_TITLE,\n };\n },\n right: ([, yScale], [width]) => {\n const yRange = yScale.range();\n return {\n x: width - OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n left: ([, yScale]) => {\n const yRange = yScale.range();\n return {\n x: OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n};\n\nfunction renderValue(value) {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n return value;\n}\n\nfunction splitTextByWidth(measurer) {\n return (text, maxWidth) => {\n {\n if (!text || !maxWidth || maxWidth <= 0) return [];\n\n const words = text.split(/\\s+/).filter((word) => word.length > 0);\n if (words.length === 0) return [];\n\n const lines = [];\n let currentLine = words[0];\n\n for (let i = 1; i < words.length; i++) {\n const testLine = `${currentLine} ${words[i]}`.trim();\n const { width: testWidth } = measurer.measure(testLine);\n\n if (testWidth <= maxWidth) {\n currentLine = testLine;\n } else {\n if (currentLine) {\n lines.push(currentLine);\n }\n\n currentLine = words[i];\n\n const { width: currentLineWidth } = measurer.measure(currentLine);\n if (currentLineWidth > maxWidth) {\n lines.push(currentLine);\n currentLine = '';\n }\n }\n }\n\n if (currentLine) {\n lines.push(currentLine);\n }\n\n return lines;\n }\n };\n}\n\nconst measurer = new TextMeasurer();\n\nclass AxisRoot extends Component {\n static displayName = 'Axis';\n\n static style = style;\n static defaultProps = {};\n\n get ticks() {\n const { ticks, indexScale, scale } = this.asProps;\n const scl = scale[indexScale];\n return ticks || scl.ticks?.() || scl.domain?.() || [];\n }\n\n getTitleProps() {\n const { position, locale } = this.asProps;\n return {\n position: MAP_POSITION_REVERT[position],\n verticalWritingMode: ['zh', 'ja'].includes(locale),\n };\n }\n\n getTicksProps() {\n const { position, indexScale } = this.asProps;\n return {\n ticks: this.ticks,\n indexScale,\n position,\n splitTextByWidth: splitTextByWidth(measurer),\n };\n }\n\n getGridProps() {\n const { indexScale } = this.asProps;\n return {\n ticks: this.ticks,\n indexScale,\n };\n }\n\n render() {\n const SAxis = this.Element;\n const { styles, position, scale, hide, indexScale } = this.asProps;\n\n const pos =\n MAP_POSITION_AXIS[position] ?? MAP_POSITION_AXIS[MAP_INDEX_SCALE_SYMBOL[indexScale]];\n\n return sstyled(styles)(<SAxis render='line' hide={hide} {...pos(scale, position)} />);\n }\n}\n\nfunction Ticks(props) {\n const {\n Element: STick,\n styles,\n scale,\n ticks,\n position,\n hide,\n indexScale,\n dataHintsHandler,\n children,\n childrenPosition = 'inside',\n multiline,\n splitTextByWidth,\n } = props;\n\n const tickBandwidth = scale[indexScale]?.bandwidth?.();\n const ticksWithLines = ticks.map((tick) => ({\n tick,\n lines: typeof tick === 'string' && multiline\n ? splitTextByWidth(tick, tickBandwidth)\n : [],\n }));\n\n const pos = MAP_POSITION_TICK[position] ?? MAP_POSITION_TICK[MAP_INDEX_SCALE_SYMBOL[indexScale]];\n const positionClass = MAP_POSITION_TICK[position] ? position : `custom_${indexScale}`;\n\n if (typeof children === 'function') {\n const labelGetter = (value) => {\n const result = children({ value });\n return result.value ?? result.children;\n };\n if (position === 'left' || position === 'right') {\n dataHintsHandler.addKeyLabelGetter('vertical', labelGetter);\n } else if (position === 'top' || position === 'bottom') {\n dataHintsHandler.addKeyLabelGetter('horizontal', labelGetter);\n }\n }\n\n return ticksWithLines.map(({ tick: value, lines }, i) => {\n const displayValue = typeof children === 'function' ? undefined : renderValue(value);\n\n return sstyled(styles)(\n <STick\n aria-hidden\n key={i}\n render='text'\n childrenPosition={childrenPosition}\n __excludeProps={['data', 'scale', 'format', 'value']}\n value={value}\n index={i}\n position={positionClass}\n hide={hide}\n multiline={multiline}\n primaryText={props.primaryText}\n {...pos(scale, value, position)}\n >\n { lines.length > 1\n ? lines.map((line, lineIndex) => (\n <tspan key={line} {...pos(scale, value, position)} dy={lineIndex * 15}>{line}</tspan>\n ))\n : displayValue}\n </STick>,\n );\n });\n}\n\nfunction Grid(props) {\n const { Element: SGrid, styles, scale, ticks, indexScale } = props;\n\n if (ticks.length >= 2) {\n if (indexScale === 1) {\n props.dataHintsHandler.setupGrid('vertical', Math.abs(ticks[1] - ticks[0]));\n } else if (indexScale === 0) {\n props.dataHintsHandler.setupGrid('horizontal', Math.abs(ticks[1] - ticks[0]));\n }\n }\n\n return ticks.map((value, i) => {\n return sstyled(styles)(\n <SGrid key={i} render='line' {...MAP_POSITION_GRID[indexScale](scale, value)} />,\n );\n });\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, size, children, verticalWritingMode } = props;\n\n const { x, y } = MAP_POSITION_TITlE[position](scale, size);\n\n if (position === 'left' || position === 'right') {\n props.dataHintsHandler.setTitle('vertical', children);\n } else if (position === 'top' || position === 'bottom') {\n props.dataHintsHandler.setTitle('horizontal', children);\n }\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n aria-hidden\n render='text'\n childrenPosition='inside'\n position={position}\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n verticalWritingMode={verticalWritingMode}\n x={x}\n y={y}\n />,\n );\n}\n\nclass XAxisRoot extends AxisRoot {\n static defaultProps = {\n ...AxisRoot.defaultProps,\n indexScale: 0,\n position: 'bottom',\n };\n}\n\n/**\n * XAxis\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/d3-chart/d3-chart-api#axis|API}\n */\nconst XAxis = createElement(XAxisRoot, {\n Ticks,\n Grid,\n Title,\n});\n\nclass YAxisRoot extends AxisRoot {\n static defaultProps = {\n ...AxisRoot.defaultProps,\n indexScale: 1,\n position: 'left',\n hide: true,\n };\n}\n\n/**\n * YAxis\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/d3-chart/d3-chart-api#axis|API}\n */\nconst YAxis = createElement(YAxisRoot, {\n Ticks,\n Grid,\n Title,\n});\n\nexport { XAxis, YAxis };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,cAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AAAoD;AAAA,MAAAM,KAAA,8BAAAP,KAAA,CAAAQ,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAEpD,MAAMC,QAAQ,GAAGC,MAAM,CAAC,UAAU,CAAC;AACnC,MAAMC,QAAQ,GAAGD,MAAM,CAAC,UAAU,CAAC;AAEnC,MAAME,sBAAsB,GAAG;EAC7B,CAAC,EAAEH,QAAQ;EACX,CAAC,EAAEE;AACL,CAAC;AAED,MAAME,mBAAmB,GAAG;EAC1BC,GAAG,EAAE,QAAQ;EACbC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE;AACR,CAAC;AAED,MAAMC,iBAAiB,GAAG;EACxBJ,GAAG,EAAEA,CAAC,CAACK,MAAM,EAAEC,MAAM,CAAC,KAAK;IACzB,MAAMC,M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;IAAA,KACrCxC,CAAC;IAAA,KACDC;EAAC,EACL,CAAC;AAEN;AAEA,MAAM6F,SAAS,SAASjE,QAAQ,CAAC;;AAQjC;AACA;AACA;AACA;AACA;AAJA,IAAAwB,gBAAA,CAAAH,OAAA,EARM4C,SAAS,kBACS;EACpB,GAAGjE,QAAQ,CAACkE,YAAY;EACxB/D,UAAU,EAAE,CAAC;EACbM,QAAQ,EAAE;AACZ,CAAC;AAQH,MAAM0D,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAA7C,sBAAa,EAAC2C,SAAS,EAAE;EACrCxC,KAAK;EACLyB,IAAI;EACJM;AACF,CAAC,CAAC;AAEF,MAAMa,SAAS,SAASrE,QAAQ,CAAC;;AASjC;AACA;AACA;AACA;AACA;AAJA,IAAAwB,gBAAA,CAAAH,OAAA,EATMgD,SAAS,kBACS;EACpB,GAAGrE,QAAQ,CAACkE,YAAY;EACxB/D,UAAU,EAAE,CAAC;EACbM,QAAQ,EAAE,MAAM;EAChBW,IAAI,EAAE;AACR,CAAC;AAQH,MAAMkD,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAG,IAAAhD,sBAAa,EAAC+C,SAAS,EAAE;EACrC5C,KAAK;EACLyB,IAAI;EACJM;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"Axis.js","names":["_core","require","_getFocusableIn","_propsForElement","_interopRequireDefault","_useEnhancedEffect","_react","_createElement","_utils","style","sstyled","insert","TICK_MARGIN_X","TICK_MARGIN_Y","CUSTOM_0","Symbol","CUSTOM_1","MAP_INDEX_SCALE_SYMBOL","MAP_POSITION_REVERT","top","right","bottom","left","MAP_POSITION_AXIS","xScale","yScale","xRange","range","yRange","x1","y1","x2","y2","pos","scaleOfBandwidth","MAP_POSITION_TICK","value","_","width","height","translateX","translateY","x","y","MAP_POSITION_GRID","OFFSET_TITLE","MAP_POSITION_TITlE","renderValue","locale","Date","Intl","DateTimeFormat","day","month","format","TickForeignObject","React","forwardRef","children","isRenderProp","ariaHidden","props","ref","contentRef","useRef","interactive","setInteractive","useState","useEnhancedEffect","current","getFocusableIn","length","default","createElement","_extends2","undefined","propsForElement","AxisRoot","Component","ticks","indexScale","scale","asProps","scl","domain","getTitleProps","position","verticalWritingMode","includes","getTicksProps","getGridProps","render","_ref","SAxis","Element","styles","hide","cn","_defineProperty2","Ticks","STick","dataHintsHandler","childrenPosition","primaryText","size","meta","isXScale","axis","plotHeight","currentScale","secondaryScale","startPointCurrentScale","endPointCurrentScale","startPointSecondaryScale","endPointSecondaryScale","tickStepSize","step","Math","abs","tickWidth","tickHeight","max","positionClass","labelGetter","result","addKeyLabelGetter","setTicksSize","setTicksVisibility","setTicksPosition","map","i","_ref2","displayValue","Grid","SGrid","setupGrid","_ref3","Title","_ref4","STitle","setTitle","sstyles","sTitleStyles","toFixed","className","XAxisRoot","defaultProps","XAxis","exports","YAxisRoot","YAxis"],"sources":["../../src/Axis.jsx"],"sourcesContent":["import { Component, sstyled } from '@semcore/core';\nimport { getFocusableIn } from '@semcore/core/lib/utils/focus-lock/getFocusableIn';\nimport propsForElement from '@semcore/core/lib/utils/propsForElement';\nimport useEnhancedEffect from '@semcore/core/lib/utils/use/useEnhancedEffect';\nimport React from 'react';\n\nimport createElement from './createElement';\nimport style from './style/axis.shadow.css';\nimport { scaleOfBandwidth } from './utils';\n\nconst TICK_MARGIN_X = 16;\nconst TICK_MARGIN_Y = 8;\n\nconst CUSTOM_0 = Symbol('custom_0');\nconst CUSTOM_1 = Symbol('custom_1');\n\nconst MAP_INDEX_SCALE_SYMBOL = {\n 0: CUSTOM_0,\n 1: CUSTOM_1,\n};\n\nconst MAP_POSITION_REVERT = {\n top: 'bottom',\n right: 'left',\n bottom: 'top',\n left: 'right',\n};\n\nconst MAP_POSITION_AXIS = {\n top: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[0],\n y1: yRange[1],\n x2: xRange[1],\n y2: yRange[1],\n };\n },\n bottom: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[0],\n y1: yRange[0],\n x2: xRange[1],\n y2: yRange[0],\n };\n },\n right: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[1],\n y1: yRange[0],\n x2: xRange[1],\n y2: yRange[1],\n };\n },\n left: ([xScale, yScale]) => {\n const xRange = xScale.range();\n const yRange = yScale.range();\n return {\n x1: xRange[0],\n y1: yRange[0],\n x2: xRange[0],\n y2: yRange[1],\n };\n },\n [CUSTOM_0]: ([xScale, yScale], pos) => {\n const xRange = xScale.range();\n return {\n x1: xRange[0],\n y1: scaleOfBandwidth(yScale, pos),\n x2: xRange[1],\n y2: scaleOfBandwidth(yScale, pos),\n };\n },\n [CUSTOM_1]: ([xScale, yScale], pos) => {\n const yRange = yScale.range();\n return {\n x1: scaleOfBandwidth(xScale, pos),\n y1: yRange[0],\n x2: scaleOfBandwidth(xScale, pos),\n y2: yRange[1],\n };\n },\n};\n\nconst MAP_POSITION_TICK = {\n top: ([xScale, yScale], value, _, { width, height }) => {\n const yRange = yScale.range();\n const [translateX, translateY] = [-width / 2, -height - TICK_MARGIN_Y];\n\n return {\n x: scaleOfBandwidth(xScale, value) + translateX,\n y: yRange[1] + translateY,\n };\n },\n bottom: ([xScale, yScale], value, _, { width }) => {\n const yRange = yScale.range();\n const [translateX, translateY] = [-width / 2, TICK_MARGIN_Y];\n\n return {\n x: scaleOfBandwidth(xScale, value) + translateX,\n y: yRange[0] + translateY,\n };\n },\n right: ([xScale, yScale], value, _, { height }) => {\n const xRange = xScale.range();\n const [translateX, translateY] = [TICK_MARGIN_X, -height / 2];\n\n return {\n x: xRange[1] + translateX,\n y: scaleOfBandwidth(yScale, value) + translateY,\n };\n },\n left: ([xScale, yScale], value, _, { width, height }) => {\n const xRange = xScale.range();\n const [translateX, translateY] = [-width - TICK_MARGIN_X, -height / 2];\n\n return {\n x: xRange[0] + translateX,\n y: scaleOfBandwidth(yScale, value) + translateY,\n };\n },\n [CUSTOM_0]: ([xScale, yScale], value, pos) => {\n return {\n x: scaleOfBandwidth(xScale, value),\n y: scaleOfBandwidth(yScale, pos),\n };\n },\n [CUSTOM_1]: ([xScale, yScale], value, pos) => {\n return {\n x: scaleOfBandwidth(xScale, pos),\n y: scaleOfBandwidth(yScale, value),\n };\n },\n};\n\nconst MAP_POSITION_GRID = {\n 0: ([xScale, yScale], value) => {\n const yRange = yScale.range();\n const x = scaleOfBandwidth(xScale, value);\n return {\n x1: x,\n y1: yRange[0],\n x2: x,\n y2: yRange[1],\n };\n },\n 1: ([xScale, yScale], value) => {\n const xRange = xScale.range();\n const y = scaleOfBandwidth(yScale, value);\n return {\n x1: xRange[0],\n y1: y,\n x2: xRange[1],\n y2: y,\n };\n },\n};\n\nconst OFFSET_TITLE = 10;\nconst MAP_POSITION_TITlE = {\n top: ([xScale]) => {\n const xRange = xScale.range();\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: OFFSET_TITLE,\n };\n },\n bottom: ([xScale], [, height]) => {\n const xRange = xScale.range();\n return {\n x: (xRange[1] + xRange[0]) / 2,\n y: height - OFFSET_TITLE,\n };\n },\n right: ([, yScale], [width]) => {\n const yRange = yScale.range();\n return {\n x: width - OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n left: ([, yScale]) => {\n const yRange = yScale.range();\n return {\n x: OFFSET_TITLE,\n y: (yRange[0] + yRange[1]) / 2,\n };\n },\n};\n\nfunction renderValue(value, locale = 'en') {\n if (value instanceof Date) {\n return new Intl.DateTimeFormat(locale, {\n day: 'numeric',\n month: 'short',\n }).format(value);\n }\n return value;\n}\n\nconst TickForeignObject = React.forwardRef(function (\n { children, isRenderProp, 'aria-hidden': ariaHidden, ...props },\n ref,\n) {\n const contentRef = React.useRef(null);\n const [interactive, setInteractive] = React.useState(false);\n\n useEnhancedEffect(() => {\n if (!isRenderProp || !contentRef.current) return;\n\n setInteractive(getFocusableIn(contentRef.current).length > 0);\n }, []);\n\n return (\n <foreignObject ref={ref} aria-hidden={interactive ? undefined : true} {...propsForElement(props, 'foreignObject')}>\n <div ref={contentRef} data-tick-content>\n {children}\n </div>\n </foreignObject>\n );\n});\n\nclass AxisRoot extends Component {\n static displayName = 'Axis';\n\n static style = style;\n static defaultProps = {};\n\n get ticks() {\n const { ticks, indexScale, scale } = this.asProps;\n const scl = scale[indexScale];\n return ticks || scl.ticks?.() || scl.domain?.() || [];\n }\n\n getTitleProps() {\n const { position, locale } = this.asProps;\n return {\n position: MAP_POSITION_REVERT[position],\n verticalWritingMode: ['zh', 'ja'].includes(locale),\n };\n }\n\n getTicksProps() {\n const { position, indexScale } = this.asProps;\n return {\n ticks: this.ticks,\n indexScale,\n position,\n };\n }\n\n getGridProps() {\n const { indexScale } = this.asProps;\n return {\n ticks: this.ticks,\n indexScale,\n };\n }\n\n render() {\n const SAxis = this.Element;\n const { styles, position, scale, hide, indexScale } = this.asProps;\n\n const pos = MAP_POSITION_AXIS[position] ?? MAP_POSITION_AXIS[MAP_INDEX_SCALE_SYMBOL[indexScale]];\n\n return sstyled(styles)(<SAxis render='line' hide={hide} {...pos(scale, position)} />);\n }\n}\n\nfunction Ticks(props) {\n const {\n Element: STick,\n styles,\n scale,\n ticks,\n position,\n hide,\n indexScale,\n dataHintsHandler,\n children,\n childrenPosition = 'inside',\n locale,\n primaryText,\n size,\n meta,\n } = props;\n\n const isRenderProp = typeof children === 'function';\n\n const isXScale = indexScale === 0;\n const axis = isXScale ? 'horizontal' : 'vertical';\n\n const [_, plotHeight] = size;\n const currentScale = scale[indexScale];\n const secondaryScale = scale[isXScale ? 1 : 0];\n\n const [startPointCurrentScale, endPointCurrentScale] = currentScale.range();\n const [startPointSecondaryScale, endPointSecondaryScale] = secondaryScale.range();\n\n const tickStepSize = currentScale?.step?.() ?? Math.abs(startPointCurrentScale - endPointCurrentScale) / ticks.length;\n\n const [tickWidth, tickHeight] = isXScale\n ? [tickStepSize, Math.max(Math.abs(plotHeight - startPointSecondaryScale), endPointSecondaryScale)]\n : [startPointSecondaryScale, tickStepSize];\n\n const pos = MAP_POSITION_TICK[position] ?? MAP_POSITION_TICK[MAP_INDEX_SCALE_SYMBOL[indexScale]];\n const positionClass = MAP_POSITION_TICK[position] ? position : `custom_${indexScale}`;\n\n if (isRenderProp) {\n const labelGetter = (value) => {\n const result = children({ value });\n return result.value ?? result.children;\n };\n if (position === 'left' || position === 'right') {\n dataHintsHandler.addKeyLabelGetter('vertical', labelGetter);\n } else if (position === 'top' || position === 'bottom') {\n dataHintsHandler.addKeyLabelGetter('horizontal', labelGetter);\n }\n }\n\n meta.setTicksSize(axis, { width: tickWidth, height: tickHeight });\n meta.setTicksVisibility(axis, !hide);\n meta.setTicksPosition(axis, position);\n\n return ticks.map((value, i) => {\n const displayValue = isRenderProp ? undefined : renderValue(value, locale);\n\n return sstyled(styles)(\n <STick\n key={i}\n index={i}\n render={TickForeignObject}\n childrenPosition={childrenPosition}\n width={tickWidth}\n height={tickHeight}\n position={positionClass}\n hide={hide}\n primaryText={primaryText}\n value={value}\n isRenderProp={isRenderProp}\n __excludeProps={['data', 'scale', 'format', 'value']}\n {...pos(scale, value, position, { width: tickWidth, height: tickHeight })}\n >\n {displayValue}\n </STick>,\n );\n });\n}\n\nfunction Grid(props) {\n const { Element: SGrid, styles, scale, ticks, indexScale } = props;\n\n if (ticks.length >= 2) {\n if (indexScale === 1) {\n props.dataHintsHandler.setupGrid('vertical', Math.abs(ticks[1] - ticks[0]));\n } else if (indexScale === 0) {\n props.dataHintsHandler.setupGrid('horizontal', Math.abs(ticks[1] - ticks[0]));\n }\n }\n\n return ticks.map((value, i) => {\n return sstyled(styles)(<SGrid key={i} render='line' {...MAP_POSITION_GRID[indexScale](scale, value)} />);\n });\n}\n\nfunction Title(props) {\n const { Element: STitle, styles, scale, position, size, children, verticalWritingMode } = props;\n\n const { x, y } = MAP_POSITION_TITlE[position](scale, size);\n\n if (position === 'left' || position === 'right') {\n props.dataHintsHandler.setTitle('vertical', children);\n } else if (position === 'top' || position === 'bottom') {\n props.dataHintsHandler.setTitle('horizontal', children);\n }\n\n const sstyles = sstyled(styles);\n const sTitleStyles = sstyles.cn('STitle', {\n 'transform-origin': `${x.toFixed(2)}px ${y.toFixed(2)}px`,\n });\n\n return sstyled(styles)(\n <STitle\n aria-hidden\n render='text'\n childrenPosition='inside'\n position={position}\n className={sTitleStyles.className}\n style={sTitleStyles.style}\n verticalWritingMode={verticalWritingMode}\n x={x}\n y={y}\n />,\n );\n}\n\nclass XAxisRoot extends AxisRoot {\n static defaultProps = {\n ...AxisRoot.defaultProps,\n indexScale: 0,\n position: 'bottom',\n };\n}\n\n/**\n * XAxis\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/d3-chart/d3-chart-api#axis|API}\n */\nconst XAxis = createElement(XAxisRoot, {\n Ticks,\n Grid,\n Title,\n});\n\nclass YAxisRoot extends AxisRoot {\n static defaultProps = {\n ...AxisRoot.defaultProps,\n indexScale: 1,\n position: 'left',\n hide: true,\n };\n}\n\n/**\n * YAxis\n *\n * {@link https://developer.semrush.com/intergalactic/data-display/d3-chart/d3-chart-api#axis|API}\n */\nconst YAxis = createElement(YAxisRoot, {\n Ticks,\n Grid,\n Title,\n});\n\nexport { XAxis, YAxis };\n"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,eAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,MAAA,GAAAF,sBAAA,CAAAH,OAAA;AAEA,IAAAM,cAAA,GAAAH,sBAAA,CAAAH,OAAA;AAEA,IAAAO,MAAA,GAAAP,OAAA;AAA2C;AAAA,MAAAQ,KAAA,8BAAAT,KAAA,CAAAU,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA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MAAM,CAAC,eACpBzF,MAAA,CAAAkE,OAAA,CAAAC,aAAA,CAACkE,MAAM,EAAAD,KAAA,CAAAzC,EAAA;IAAA;IAAA,UAEE,MAAM;IAAA,oBACI,QAAQ;IAAA,YACfX,QAAQ;IAAA,aACPwD,YAAY,CAACE,SAAS;IAAA,SAC1BF,YAAY,CAACrI,KAAK;IAAA,uBACJ8E,mBAAmB;IAAA,KACrC7C,CAAC;IAAA,KACDC;EAAC,EACL,CAAC;AAEN;AAEA,MAAMsG,SAAS,SAASpE,QAAQ,CAAC;;AAQjC;AACA;AACA;AACA;AACA;AAJA,IAAAqB,gBAAA,CAAA1B,OAAA,EARMyE,SAAS,kBACS;EACpB,GAAGpE,QAAQ,CAACqE,YAAY;EACxBlE,UAAU,EAAE,CAAC;EACbM,QAAQ,EAAE;AACZ,CAAC;AAQH,MAAM6D,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAG,IAAA1E,sBAAa,EAACwE,SAAS,EAAE;EACrC9C,KAAK;EACLkC,IAAI;EACJI;AACF,CAAC,CAAC;AAEF,MAAMY,SAAS,SAASxE,QAAQ,CAAC;;AASjC;AACA;AACA;AACA;AACA;AAJA,IAAAqB,gBAAA,CAAA1B,OAAA,EATM6E,SAAS,kBACS;EACpB,GAAGxE,QAAQ,CAACqE,YAAY;EACxBlE,UAAU,EAAE,CAAC;EACbM,QAAQ,EAAE,MAAM;EAChBU,IAAI,EAAE;AACR,CAAC;AAQH,MAAMsD,KAAK,GAAAF,OAAA,CAAAE,KAAA,GAAG,IAAA7E,sBAAa,EAAC4E,SAAS,EAAE;EACrClD,KAAK;EACLkC,IAAI;EACJI;AACF,CAAC,CAAC","ignoreList":[]}
|
package/lib/cjs/Bar.js
CHANGED
|
@@ -15,24 +15,24 @@ var _createElement = _interopRequireDefault(require("./createElement"));
|
|
|
15
15
|
var _Pattern = require("./Pattern");
|
|
16
16
|
var _utils = require("./utils");
|
|
17
17
|
/*!__reshadow-styles__:"./style/bar.shadow.css"*/
|
|
18
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
18
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SBar_1d6up_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));transition-property:height,width,y;transition-duration:var(--duration_1d6up);transition-timing-function:ease-in-out}.___SBar_1d6up_gg_.__color_1d6up_gg_{fill:var(--color_1d6up)}.___SBar_1d6up_gg_.__pattern_1d6up_gg_.__color_1d6up_gg_{fill:var(--pattern_1d6up);stroke:var(--color_1d6up);stroke-width:1px}.___SBar_1d6up_gg_.__hide_1d6up_gg_{display:none}.___SBar_1d6up_gg_.__transparent_1d6up_gg_{opacity:.3}.___SBar_1d6up_gg_.__onClick_1d6up_gg_{cursor:pointer}.___SBackground_1d6up_gg_{fill:var(--intergalactic-chart-grid-bar-base-bg,oklch(.92 .008 233.5));opacity:.4}.___SBackground_1d6up_gg_.__onClick_1d6up_gg_{cursor:pointer}.___SBarAnnotation_1d6up_gg_{display:flex;justify-content:space-between}.___SBarLabel_1d6up_gg_{color:var(--intergalactic-text-primary,oklch(.23 .009 245));margin-right:auto}.___SBarLabel_1d6up_gg_,.___SBarPercent_1d6up_gg_{font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286)}.___SBarPercent_1d6up_gg_{color:var(--intergalactic-text-secondary,oklch(.182 .045 244.8/.593));margin-right:var(--intergalactic-spacing-2x,8px)}.___SBarValue_1d6up_gg_{min-width:52px;display:flex;justify-content:flex-end;color:var(--intergalactic-text-primary,oklch(.23 .009 245));font-size:var(--intergalactic-fs-200,14px);line-height:var(--intergalactic-lh-200,1.4286);text-align:right}.___SCompactHorizontalBarHoverRect_1d6up_gg_{fill:var(--intergalactic-chart-grid-bar-hover,oklch(.375 .09 242.7/.05))}", /*__inner_css_end__*/"1d6up_gg_"),
|
|
19
19
|
/*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SBar": "
|
|
22
|
-
"--duration": "--
|
|
23
|
-
"_color": "
|
|
24
|
-
"--color": "--
|
|
25
|
-
"_pattern": "
|
|
26
|
-
"--pattern": "--
|
|
27
|
-
"_hide": "
|
|
28
|
-
"_transparent": "
|
|
29
|
-
"_onClick": "
|
|
30
|
-
"__SBackground": "
|
|
31
|
-
"__SBarAnnotation": "
|
|
32
|
-
"__SBarLabel": "
|
|
33
|
-
"__SBarPercent": "
|
|
34
|
-
"__SBarValue": "
|
|
35
|
-
"__SCompactHorizontalBarHoverRect": "
|
|
21
|
+
"__SBar": "___SBar_1d6up_gg_",
|
|
22
|
+
"--duration": "--duration_1d6up",
|
|
23
|
+
"_color": "__color_1d6up_gg_",
|
|
24
|
+
"--color": "--color_1d6up",
|
|
25
|
+
"_pattern": "__pattern_1d6up_gg_",
|
|
26
|
+
"--pattern": "--pattern_1d6up",
|
|
27
|
+
"_hide": "__hide_1d6up_gg_",
|
|
28
|
+
"_transparent": "__transparent_1d6up_gg_",
|
|
29
|
+
"_onClick": "__onClick_1d6up_gg_",
|
|
30
|
+
"__SBackground": "___SBackground_1d6up_gg_",
|
|
31
|
+
"__SBarAnnotation": "___SBarAnnotation_1d6up_gg_",
|
|
32
|
+
"__SBarLabel": "___SBarLabel_1d6up_gg_",
|
|
33
|
+
"__SBarPercent": "___SBarPercent_1d6up_gg_",
|
|
34
|
+
"__SBarValue": "___SBarValue_1d6up_gg_",
|
|
35
|
+
"__SCompactHorizontalBarHoverRect": "___SCompactHorizontalBarHoverRect_1d6up_gg_"
|
|
36
36
|
});
|
|
37
37
|
const MIN_HEIGHT = exports.MIN_HEIGHT = 2;
|
|
38
38
|
const calcPartBarY = (y, minHeight, height) => {
|
package/lib/cjs/Bubble.js
CHANGED
|
@@ -18,22 +18,22 @@ var _Pattern = require("./Pattern");
|
|
|
18
18
|
var _Tooltip = _interopRequireDefault(require("./Tooltip"));
|
|
19
19
|
var _utils = require("./utils");
|
|
20
20
|
/*!__reshadow-styles__:"./style/bubble.shadow.css"*/
|
|
21
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
21
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SBubble_1fxbq_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:2px;transition-property:cx,cy;transition-duration:var(--duration_1fxbq);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SBubble_1fxbq_gg_:hover{opacity:.8}}g._visible_false_1fxbq_gg_{display:none}.___SBubble_1fxbq_gg_.__clickable_1fxbq_gg_{cursor:pointer}.___SBubble_1fxbq_gg_.__color_1fxbq_gg_{fill:var(--color_1fxbq)}.___SBubble_1fxbq_gg_.__pattern_1fxbq_gg_.__color_1fxbq_gg_{fill:var(--pattern_1fxbq);stroke:var(--color_1fxbq);stroke-width:1px}.___SBubble_1fxbq_gg_.__transparent_1fxbq_gg_{opacity:.3}.___SCenter_1fxbq_gg_{text-anchor:middle;font-size:calc(var(--intergalactic-fs-100, 12px) - 1px);stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SCenter_1fxbq_gg_.__color_1fxbq_gg_{stroke:var(--color_1fxbq)}.___SCenter_1fxbq_gg_.__transparent_1fxbq_gg_{opacity:.3}.___SLabel_1fxbq_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SLabel_1fxbq_gg_._position_right_1fxbq_gg_{text-anchor:end}.___SLabel_1fxbq_gg_._position_left_1fxbq_gg_{text-anchor:start}.___SLabel_1fxbq_gg_.__color_1fxbq_gg_{fill:var(--color_1fxbq)}.___SLabel_1fxbq_gg_.__transparent_1fxbq_gg_{opacity:.3}", /*__inner_css_end__*/"1fxbq_gg_"),
|
|
22
22
|
/*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"_visible_false": "
|
|
25
|
-
"__SBubble": "
|
|
26
|
-
"_clickable": "
|
|
27
|
-
"_color": "
|
|
28
|
-
"--color": "--
|
|
29
|
-
"_pattern": "
|
|
30
|
-
"--pattern": "--
|
|
31
|
-
"_transparent": "
|
|
32
|
-
"__SCenter": "
|
|
33
|
-
"__SLabel": "
|
|
34
|
-
"_position_right": "
|
|
35
|
-
"_position_left": "
|
|
36
|
-
"--duration": "--
|
|
24
|
+
"_visible_false": "_visible_false_1fxbq_gg_",
|
|
25
|
+
"__SBubble": "___SBubble_1fxbq_gg_",
|
|
26
|
+
"_clickable": "__clickable_1fxbq_gg_",
|
|
27
|
+
"_color": "__color_1fxbq_gg_",
|
|
28
|
+
"--color": "--color_1fxbq",
|
|
29
|
+
"_pattern": "__pattern_1fxbq_gg_",
|
|
30
|
+
"--pattern": "--pattern_1fxbq",
|
|
31
|
+
"_transparent": "__transparent_1fxbq_gg_",
|
|
32
|
+
"__SCenter": "___SCenter_1fxbq_gg_",
|
|
33
|
+
"__SLabel": "___SLabel_1fxbq_gg_",
|
|
34
|
+
"_position_right": "_position_right_1fxbq_gg_",
|
|
35
|
+
"_position_left": "_position_left_1fxbq_gg_",
|
|
36
|
+
"--duration": "--duration_1fxbq"
|
|
37
37
|
});
|
|
38
38
|
class BubbleRoot extends _core.Component {
|
|
39
39
|
constructor(...args) {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.ChartMetaData = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
class ChartMetaData {
|
|
10
|
+
constructor() {
|
|
11
|
+
(0, _defineProperty2.default)(this, "ticks", {
|
|
12
|
+
horizontal: {
|
|
13
|
+
size: null,
|
|
14
|
+
isVisible: null,
|
|
15
|
+
position: null
|
|
16
|
+
},
|
|
17
|
+
vertical: {
|
|
18
|
+
size: null,
|
|
19
|
+
isVisible: null,
|
|
20
|
+
position: null
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
getTicksSize(axis) {
|
|
25
|
+
return this.ticks[axis].size;
|
|
26
|
+
}
|
|
27
|
+
setTicksSize(axis, payload) {
|
|
28
|
+
this.ticks[axis].size = payload;
|
|
29
|
+
}
|
|
30
|
+
getTicksVisibility(axis) {
|
|
31
|
+
return this.ticks[axis].isVisible;
|
|
32
|
+
}
|
|
33
|
+
setTicksVisibility(axis, isVisible) {
|
|
34
|
+
this.ticks[axis].isVisible = isVisible;
|
|
35
|
+
}
|
|
36
|
+
getTicksPosition(axis) {
|
|
37
|
+
return this.ticks[axis].position;
|
|
38
|
+
}
|
|
39
|
+
setTicksPosition(axis, position) {
|
|
40
|
+
this.ticks[axis].position = position;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ChartMetaData = ChartMetaData;
|
|
44
|
+
//# sourceMappingURL=ChartMetaData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChartMetaData.js","names":["ChartMetaData","constructor","_defineProperty2","default","horizontal","size","isVisible","position","vertical","getTicksSize","axis","ticks","setTicksSize","payload","getTicksVisibility","setTicksVisibility","getTicksPosition","setTicksPosition","exports"],"sources":["../../src/ChartMetaData.ts"],"sourcesContent":["type Axis = 'horizontal' | 'vertical';\ntype SizePayload = { width: number; height: number };\ntype Position = 'top' | 'bottom' | 'left' | 'right';\n\ntype TicksMeta = {\n [key in Axis]: {\n size: SizePayload | null;\n isVisible: boolean | null;\n position: Position | null;\n }\n};\n\nexport class ChartMetaData {\n private ticks: TicksMeta = {\n horizontal: {\n size: null,\n isVisible: null,\n position: null,\n },\n vertical: {\n size: null,\n isVisible: null,\n position: null,\n },\n };\n\n getTicksSize(axis: Axis) {\n return this.ticks[axis].size;\n }\n\n setTicksSize(axis: Axis, payload: SizePayload) {\n this.ticks[axis].size = payload;\n }\n\n getTicksVisibility(axis: Axis) {\n return this.ticks[axis].isVisible;\n }\n\n setTicksVisibility(axis: Axis, isVisible: boolean) {\n this.ticks[axis].isVisible = isVisible;\n }\n\n getTicksPosition(axis: Axis) {\n return this.ticks[axis].position;\n }\n\n setTicksPosition(axis: Axis, position: Position) {\n this.ticks[axis].position = position;\n }\n}\n"],"mappings":";;;;;;;;AAYO,MAAMA,aAAa,CAAC;EAAAC,YAAA;IAAA,IAAAC,gBAAA,CAAAC,OAAA,iBACE;MACzBC,UAAU,EAAE;QACVC,IAAI,EAAE,IAAI;QACVC,SAAS,EAAE,IAAI;QACfC,QAAQ,EAAE;MACZ,CAAC;MACDC,QAAQ,EAAE;QACRH,IAAI,EAAE,IAAI;QACVC,SAAS,EAAE,IAAI;QACfC,QAAQ,EAAE;MACZ;IACF,CAAC;EAAA;EAEDE,YAAYA,CAACC,IAAU,EAAE;IACvB,OAAO,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC,CAACL,IAAI;EAC9B;EAEAO,YAAYA,CAACF,IAAU,EAAEG,OAAoB,EAAE;IAC7C,IAAI,CAACF,KAAK,CAACD,IAAI,CAAC,CAACL,IAAI,GAAGQ,OAAO;EACjC;EAEAC,kBAAkBA,CAACJ,IAAU,EAAE;IAC7B,OAAO,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC,CAACJ,SAAS;EACnC;EAEAS,kBAAkBA,CAACL,IAAU,EAAEJ,SAAkB,EAAE;IACjD,IAAI,CAACK,KAAK,CAACD,IAAI,CAAC,CAACJ,SAAS,GAAGA,SAAS;EACxC;EAEAU,gBAAgBA,CAACN,IAAU,EAAE;IAC3B,OAAO,IAAI,CAACC,KAAK,CAACD,IAAI,CAAC,CAACH,QAAQ;EAClC;EAEAU,gBAAgBA,CAACP,IAAU,EAAEH,QAAkB,EAAE;IAC/C,IAAI,CAACI,KAAK,CAACD,IAAI,CAAC,CAACH,QAAQ,GAAGA,QAAQ;EACtC;AACF;AAACW,OAAA,CAAAlB,aAAA,GAAAA,aAAA","ignoreList":[]}
|