@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/esm/Line.mjs
CHANGED
|
@@ -5,28 +5,31 @@ import { bisector } from "d3-array";
|
|
|
5
5
|
import { line, curveLinear, curveCardinal, area } from "d3-shape";
|
|
6
6
|
import React from "react";
|
|
7
7
|
import AnimatedClipPath from "./AnimatedClipPath.mjs";
|
|
8
|
+
import "./component/Chart/index.mjs";
|
|
9
|
+
import { SvgElement } from "./component/SvgElement.mjs";
|
|
8
10
|
import createElement from "./createElement.mjs";
|
|
9
11
|
import Dots from "./Dots.mjs";
|
|
10
|
-
import { resolvePatternDasharray } from "./Pattern.mjs";
|
|
11
|
-
import { interpolateValue, getNullData, definedNullData, eventToPoint, invert, getChartDefaultColorName, definedData, scaleOfBandwidth } from "./utils.mjs";
|
|
12
|
+
import { ForecastGradient, StrokeMask, PotentialGradient, resolvePatternDasharray } from "./Pattern.mjs";
|
|
13
|
+
import { interpolateValue, getNullData, definedNullData, eventToPoint, invert, getDataOfType, getChartDefaultColorName, definedData, scaleOfBandwidth } from "./utils.mjs";
|
|
14
|
+
import { FORECAST, POTENTIAL, DATA_TYPE } from "./component/Chart/AbstractChart.type.mjs";
|
|
12
15
|
/*!__reshadow-styles__:"./style/line.shadow.css"*/
|
|
13
16
|
const style = (
|
|
14
17
|
/*__reshadow_css_start__*/
|
|
15
18
|
(sstyled.insert(
|
|
16
19
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
20
|
+
".___SLine_foqqi_gg_{fill:#0000;stroke-width:2;stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));transition-property:d;transition-duration:var(--duration_foqqi);transition-timing-function:ease-in-out}.___SLine_foqqi_gg_.__color_foqqi_gg_{stroke:var(--color_foqqi)}.___SLine_foqqi_gg_.__hide_foqqi_gg_{display:none}.___SLine_foqqi_gg_.__transparent_foqqi_gg_{opacity:.3}.___SNull_foqqi_gg_{fill:#0000;stroke:var(--intergalactic-chart-palette-order-null,oklch(.9 .009 234));stroke-dasharray:4}.___SNull_foqqi_gg_.__hide_foqqi_gg_{display:none}.___SLineArea_foqqi_gg_{transition-property:d;transition-duration:var(--duration_foqqi);transition-timing-function:ease-in-out;opacity:.3;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SLineArea_foqqi_gg_.__color_foqqi_gg_{fill:var(--color_foqqi)}",
|
|
18
21
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
22
|
+
"foqqi_gg_"
|
|
20
23
|
), /*__reshadow_css_end__*/
|
|
21
24
|
{
|
|
22
|
-
"__SLine": "
|
|
23
|
-
"--duration": "--
|
|
24
|
-
"_color": "
|
|
25
|
-
"--color": "--
|
|
26
|
-
"_hide": "
|
|
27
|
-
"_transparent": "
|
|
28
|
-
"__SNull": "
|
|
29
|
-
"__SLineArea": "
|
|
25
|
+
"__SLine": "___SLine_foqqi_gg_",
|
|
26
|
+
"--duration": "--duration_foqqi",
|
|
27
|
+
"_color": "__color_foqqi_gg_",
|
|
28
|
+
"--color": "--color_foqqi",
|
|
29
|
+
"_hide": "__hide_foqqi_gg_",
|
|
30
|
+
"_transparent": "__transparent_foqqi_gg_",
|
|
31
|
+
"__SNull": "___SNull_foqqi_gg_",
|
|
32
|
+
"__SLineArea": "___SLineArea_foqqi_gg_"
|
|
30
33
|
})
|
|
31
34
|
);
|
|
32
35
|
class LineRoot extends Component {
|
|
@@ -106,8 +109,71 @@ class LineRoot extends Component {
|
|
|
106
109
|
const index = bisector((d) => d[x]).center(data, vX);
|
|
107
110
|
onClick(index, e);
|
|
108
111
|
}
|
|
109
|
-
|
|
112
|
+
renderForecast() {
|
|
110
113
|
var _ref;
|
|
114
|
+
const SLine = SvgElement;
|
|
115
|
+
const {
|
|
116
|
+
styles,
|
|
117
|
+
hide,
|
|
118
|
+
color,
|
|
119
|
+
resolveColor,
|
|
120
|
+
uid,
|
|
121
|
+
d3,
|
|
122
|
+
duration,
|
|
123
|
+
y,
|
|
124
|
+
transparent
|
|
125
|
+
} = this.asProps;
|
|
126
|
+
const data = getDataOfType(this.asProps.data, FORECAST, y);
|
|
127
|
+
return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SLine, _ref.cn("SLine", {
|
|
128
|
+
"aria-hidden": true,
|
|
129
|
+
"clipPath": `url(#${uid})`,
|
|
130
|
+
"tag": "path",
|
|
131
|
+
"hide": hide,
|
|
132
|
+
"color": resolveColor(color),
|
|
133
|
+
"transparent": transparent,
|
|
134
|
+
"d": d3(data),
|
|
135
|
+
"use:duration": `${duration}ms`,
|
|
136
|
+
"strokeDasharray": "4 4",
|
|
137
|
+
"onClickCapture": this.handlerOnClick.bind(this),
|
|
138
|
+
"pointerEvents": "stroke"
|
|
139
|
+
})), /* @__PURE__ */ React.createElement(ForecastGradient, _ref.cn("ForecastGradient", {
|
|
140
|
+
"id": `${uid}-forecast-gradient`
|
|
141
|
+
})), /* @__PURE__ */ React.createElement(StrokeMask, _ref.cn("StrokeMask", {
|
|
142
|
+
"id": `${uid}-forecast-mask`
|
|
143
|
+
})));
|
|
144
|
+
}
|
|
145
|
+
renderPotential() {
|
|
146
|
+
var _ref2;
|
|
147
|
+
const SLine = SvgElement;
|
|
148
|
+
const {
|
|
149
|
+
styles,
|
|
150
|
+
hide,
|
|
151
|
+
uid,
|
|
152
|
+
d3,
|
|
153
|
+
duration,
|
|
154
|
+
y,
|
|
155
|
+
transparent
|
|
156
|
+
} = this.asProps;
|
|
157
|
+
const data = getDataOfType(this.asProps.data, POTENTIAL, y);
|
|
158
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SLine, _ref2.cn("SLine", {
|
|
159
|
+
"aria-hidden": true,
|
|
160
|
+
"clipPath": `url(#${uid})`,
|
|
161
|
+
"tag": "path",
|
|
162
|
+
"hide": hide,
|
|
163
|
+
"color": `url(#${uid}-potential-gradient-line)`,
|
|
164
|
+
"transparent": transparent,
|
|
165
|
+
"d": d3(data),
|
|
166
|
+
"use:duration": `${duration}ms`,
|
|
167
|
+
"onClickCapture": this.handlerOnClick.bind(this),
|
|
168
|
+
"pointerEvents": "stroke",
|
|
169
|
+
"strokeDasharray": "4 4"
|
|
170
|
+
})), /* @__PURE__ */ React.createElement(PotentialGradient, _ref2.cn("PotentialGradient", {
|
|
171
|
+
"id": `${uid}-potential-gradient-line`,
|
|
172
|
+
"type": "line"
|
|
173
|
+
})));
|
|
174
|
+
}
|
|
175
|
+
render() {
|
|
176
|
+
var _ref3;
|
|
111
177
|
const SLine = this.Element;
|
|
112
178
|
const {
|
|
113
179
|
styles,
|
|
@@ -123,11 +189,11 @@ class LineRoot extends Component {
|
|
|
123
189
|
transparent,
|
|
124
190
|
patterns
|
|
125
191
|
} = this.asProps;
|
|
126
|
-
const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);
|
|
192
|
+
const data = this.asProps.data.filter((item) => item[y] !== interpolateValue && item[DATA_TYPE] !== FORECAST && item[DATA_TYPE] !== POTENTIAL);
|
|
127
193
|
this.asProps.dataHintsHandler.specifyDataRowFields(x, y);
|
|
128
194
|
this.asProps.dataHintsHandler.establishDataType("time-series");
|
|
129
195
|
const patternKey = color || getChartDefaultColorName(0);
|
|
130
|
-
return
|
|
196
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, this.renderForecast(), this.renderPotential(), /* @__PURE__ */ React.createElement(SLine, _ref3.cn("SLine", {
|
|
131
197
|
"aria-hidden": true,
|
|
132
198
|
"clipPath": `url(#${uid})`,
|
|
133
199
|
"render": "path",
|
|
@@ -139,7 +205,7 @@ class LineRoot extends Component {
|
|
|
139
205
|
"strokeDasharray": patterns ? resolvePatternDasharray(patternKey, patterns) : void 0,
|
|
140
206
|
"onClickCapture": this.handlerOnClick.bind(this),
|
|
141
207
|
"pointerEvents": "stroke"
|
|
142
|
-
})), duration && /* @__PURE__ */ React.createElement(AnimatedClipPath,
|
|
208
|
+
})), duration && /* @__PURE__ */ React.createElement(AnimatedClipPath, _ref3.cn("AnimatedClipPath", {
|
|
143
209
|
"aria-hidden": true,
|
|
144
210
|
"duration": duration,
|
|
145
211
|
"id": uid,
|
|
@@ -167,7 +233,7 @@ _defineProperty(LineRoot, "defaultProps", ({
|
|
|
167
233
|
};
|
|
168
234
|
});
|
|
169
235
|
function Null(props) {
|
|
170
|
-
var
|
|
236
|
+
var _ref4;
|
|
171
237
|
const {
|
|
172
238
|
Element: SNull,
|
|
173
239
|
styles,
|
|
@@ -175,7 +241,7 @@ function Null(props) {
|
|
|
175
241
|
data,
|
|
176
242
|
hide
|
|
177
243
|
} = props;
|
|
178
|
-
return
|
|
244
|
+
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SNull, _ref4.cn("SNull", {
|
|
179
245
|
"render": "path",
|
|
180
246
|
"d": d3(data),
|
|
181
247
|
"hide": hide
|
|
@@ -217,9 +283,9 @@ function Area(props) {
|
|
|
217
283
|
return chunked;
|
|
218
284
|
}, [data, y0, y1, area$1, autoInterpolate]);
|
|
219
285
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, dataToArea.map((chunk, index) => {
|
|
220
|
-
var
|
|
286
|
+
var _ref5;
|
|
221
287
|
const d3 = area().curve(curve).x((data2) => xScale(data2[x])).y0((data2) => yScale(data2[y0])).y1((data2) => yScale(data2[y1]));
|
|
222
|
-
return
|
|
288
|
+
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SLineArea, _ref5.cn("SLineArea", {
|
|
223
289
|
"key": `${chunk.length}-${index}`,
|
|
224
290
|
"aria-hidden": true,
|
|
225
291
|
"clipPath": `url(#${uid})`,
|
package/lib/esm/Pattern.mjs
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import { sstyled } from "@semcore/core";
|
|
2
3
|
import propsForElement from "@semcore/core/lib/utils/propsForElement";
|
|
3
4
|
import React from "react";
|
|
5
|
+
/*!__reshadow-styles__:"./style/pattern.shadow.css"*/
|
|
6
|
+
const style = (
|
|
7
|
+
/*__reshadow_css_start__*/
|
|
8
|
+
(sstyled.insert(
|
|
9
|
+
/*__inner_css_start__*/
|
|
10
|
+
".___SLinearGradient_1yi6g_gg_ .___SStopFrom_1yi6g_gg_{stop-color:var(--violet-300_1yi6g,#c08eff)}@media (color-gamut:p3){.___SLinearGradient_1yi6g_gg_ .___SStopFrom_1yi6g_gg_{stop-color:var(--violet-300_1yi6g,oklch(.74 .17 303))}}.___SLinearGradient_1yi6g_gg_ .___SStopTo_1yi6g_gg_{stop-color:var(--green-100_1yi6g,oklch(.9 .11 175))}",
|
|
11
|
+
/*__inner_css_end__*/
|
|
12
|
+
"1yi6g_gg_"
|
|
13
|
+
), /*__reshadow_css_end__*/
|
|
14
|
+
{
|
|
15
|
+
"__SLinearGradient": "___SLinearGradient_1yi6g_gg_",
|
|
16
|
+
"__SStopFrom": "___SStopFrom_1yi6g_gg_",
|
|
17
|
+
"--violet-300": "--violet-300_1yi6g",
|
|
18
|
+
"__SStopTo": "___SStopTo_1yi6g_gg_",
|
|
19
|
+
"--green-100": "--green-100_1yi6g"
|
|
20
|
+
})
|
|
21
|
+
);
|
|
4
22
|
const defaultDasharrays = ["4 4", "8 8", "2 4", "4 8", "8 2", "8 4", "12 4", "2 2"];
|
|
5
23
|
const defaultPatterns = {
|
|
6
24
|
starSmall: {
|
|
@@ -456,6 +474,102 @@ const resolvePattern = (patternKey, patternsConfig = true) => {
|
|
|
456
474
|
patternIndex = patternIndex % patterns.length;
|
|
457
475
|
return patterns[patternIndex];
|
|
458
476
|
};
|
|
477
|
+
const DefaultStrokePattern = (props) => {
|
|
478
|
+
return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("pattern", {
|
|
479
|
+
id: props.id,
|
|
480
|
+
width: "10",
|
|
481
|
+
height: "8",
|
|
482
|
+
patternUnits: "userSpaceOnUse",
|
|
483
|
+
patternTransform: "rotate(-117)"
|
|
484
|
+
}, /* @__PURE__ */ React.createElement("rect", {
|
|
485
|
+
width: "10",
|
|
486
|
+
height: "8",
|
|
487
|
+
fill: "transparent"
|
|
488
|
+
}), /* @__PURE__ */ React.createElement("line", {
|
|
489
|
+
x1: "0",
|
|
490
|
+
y1: "0",
|
|
491
|
+
x2: "0",
|
|
492
|
+
y2: "8",
|
|
493
|
+
stroke: "#fff",
|
|
494
|
+
strokeWidth: "8"
|
|
495
|
+
})));
|
|
496
|
+
};
|
|
497
|
+
const LightStrokePattern = (props) => {
|
|
498
|
+
return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("pattern", {
|
|
499
|
+
id: props.id,
|
|
500
|
+
width: "4",
|
|
501
|
+
height: "4",
|
|
502
|
+
patternUnits: "userSpaceOnUse",
|
|
503
|
+
patternTransform: "rotate(40)"
|
|
504
|
+
}, /* @__PURE__ */ React.createElement("line", {
|
|
505
|
+
x1: "3",
|
|
506
|
+
y1: "0",
|
|
507
|
+
x2: "3",
|
|
508
|
+
y2: "4",
|
|
509
|
+
stroke: "white",
|
|
510
|
+
strokeWidth: "2"
|
|
511
|
+
})));
|
|
512
|
+
};
|
|
513
|
+
const StrokeMask = (props) => {
|
|
514
|
+
return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement(LightStrokePattern, {
|
|
515
|
+
id: `${props.id}-stroke`
|
|
516
|
+
}), /* @__PURE__ */ React.createElement("mask", {
|
|
517
|
+
id: props.id
|
|
518
|
+
}, /* @__PURE__ */ React.createElement("rect", {
|
|
519
|
+
width: "100%",
|
|
520
|
+
height: "100%",
|
|
521
|
+
fill: props.color
|
|
522
|
+
}), /* @__PURE__ */ React.createElement("rect", {
|
|
523
|
+
width: "100%",
|
|
524
|
+
height: "100%",
|
|
525
|
+
fill: `url(#${props.id}-stroke)`
|
|
526
|
+
})));
|
|
527
|
+
};
|
|
528
|
+
const ForecastGradient = (props) => {
|
|
529
|
+
return /* @__PURE__ */ React.createElement("defs", null, /* @__PURE__ */ React.createElement("linearGradient", {
|
|
530
|
+
id: props.id,
|
|
531
|
+
x1: "0%",
|
|
532
|
+
y1: "0%",
|
|
533
|
+
x2: "0%",
|
|
534
|
+
y2: "100%"
|
|
535
|
+
}, /* @__PURE__ */ React.createElement("stop", {
|
|
536
|
+
offset: "0%",
|
|
537
|
+
stopColor: props.color,
|
|
538
|
+
stopOpacity: "0.4"
|
|
539
|
+
}), /* @__PURE__ */ React.createElement("stop", {
|
|
540
|
+
offset: "100%",
|
|
541
|
+
stopColor: "#fff",
|
|
542
|
+
stopOpacity: "0.1"
|
|
543
|
+
})));
|
|
544
|
+
};
|
|
545
|
+
const PotentialGradient = (props) => {
|
|
546
|
+
var _ref;
|
|
547
|
+
const SLinearGradient = "linearGradient";
|
|
548
|
+
const SStopFrom = "stop";
|
|
549
|
+
const SStopTo = "stop";
|
|
550
|
+
const isLine = props.type === "line";
|
|
551
|
+
const isArea = props.type === "area";
|
|
552
|
+
let gradientTransform = "rotate(-90 0.5 0.5)";
|
|
553
|
+
if (isLine) {
|
|
554
|
+
gradientTransform = "";
|
|
555
|
+
} else if (isArea) {
|
|
556
|
+
gradientTransform = "rotate(-30 0.5 0.5)";
|
|
557
|
+
}
|
|
558
|
+
return _ref = sstyled(style), /* @__PURE__ */ React.createElement("defs", _ref.cn("defs", {}), /* @__PURE__ */ React.createElement(SLinearGradient, _ref.cn("SLinearGradient", {
|
|
559
|
+
"id": props.id,
|
|
560
|
+
"x1": "0%",
|
|
561
|
+
"y1": "0%",
|
|
562
|
+
"x2": isLine ? "100%" : "0",
|
|
563
|
+
"y2": isLine ? "0" : "100%",
|
|
564
|
+
"gradientTransform": gradientTransform
|
|
565
|
+
}), /* @__PURE__ */ React.createElement(SStopFrom, _ref.cn("SStopFrom", {
|
|
566
|
+
"offset": "0%",
|
|
567
|
+
"stopOpacity": 1
|
|
568
|
+
})), /* @__PURE__ */ React.createElement(SStopTo, _ref.cn("SStopTo", {
|
|
569
|
+
"offset": "100%",
|
|
570
|
+
"stopOpacity": isArea ? 0 : 1
|
|
571
|
+
}))));
|
|
572
|
+
};
|
|
459
573
|
const PatternFill = ({
|
|
460
574
|
id,
|
|
461
575
|
color,
|
|
@@ -518,8 +632,13 @@ const resolvePatternDasharray = (patternKey, patterns) => {
|
|
|
518
632
|
return pattern?.dasharray;
|
|
519
633
|
};
|
|
520
634
|
export {
|
|
635
|
+
DefaultStrokePattern,
|
|
636
|
+
ForecastGradient,
|
|
637
|
+
LightStrokePattern,
|
|
521
638
|
PatternFill,
|
|
522
639
|
PatternSymbol,
|
|
640
|
+
PotentialGradient,
|
|
641
|
+
StrokeMask,
|
|
523
642
|
getPatternSymbolSize,
|
|
524
643
|
resolvePatternDasharray
|
|
525
644
|
};
|
package/lib/esm/Plot.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
import { sstyled, Component, assignProps
|
|
2
|
+
import { createComponent, sstyled, Component, assignProps } from "@semcore/core";
|
|
3
3
|
import { Box } from "@semcore/base-components";
|
|
4
4
|
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
5
5
|
import resolveColorEnhance from "@semcore/core/lib/utils/enhances/resolveColorEnhance";
|
|
@@ -7,6 +7,7 @@ import EventEmitter from "@semcore/core/lib/utils/eventEmitter";
|
|
|
7
7
|
import React from "react";
|
|
8
8
|
import { makeDataHintsContainer, makeDataHintsHandlers } from "./a11y/hints.mjs";
|
|
9
9
|
import { PlotA11yModule } from "./a11y/PlotA11yModule.mjs";
|
|
10
|
+
import { ChartMetaData } from "./ChartMetaData.mjs";
|
|
10
11
|
import { localizedMessages } from "./translations/__intergalactic-dynamic-locales.mjs";
|
|
11
12
|
import { uniqueId, eventToPoint } from "./utils.mjs";
|
|
12
13
|
/*!__reshadow-styles__:"./style/plot.shadow.css"*/
|
|
@@ -14,7 +15,7 @@ const style = (
|
|
|
14
15
|
/*__reshadow_css_start__*/
|
|
15
16
|
(sstyled.insert(
|
|
16
17
|
/*__inner_css_start__*/
|
|
17
|
-
".___SPlot_1f5de_gg_{overflow:hidden}.___SPlot_1f5de_gg_:focus{outline:none}.___SPlot_1f5de_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1f5de_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline
|
|
18
|
+
".___SPlot_1f5de_gg_{overflow:hidden}.___SPlot_1f5de_gg_:focus{outline:none}.___SPlot_1f5de_gg_:active{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1f5de_gg_:has(foreignObject[data-aria-only]:focus-within){outline-color:var(--intergalactic-keyboard-focus-outline,oklch(.23 .009 245));outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset;border-radius:var(--intergalactic-surface-rounded,8px)}",
|
|
18
19
|
/*__inner_css_end__*/
|
|
19
20
|
"1f5de_gg_"
|
|
20
21
|
), /*__reshadow_css_end__*/
|
|
@@ -52,6 +53,7 @@ class PlotRoot extends Component {
|
|
|
52
53
|
this.eventEmitter.emit("onMouseLeaveChart", e);
|
|
53
54
|
});
|
|
54
55
|
this.eventEmitter = props.eventEmitter || new EventEmitter();
|
|
56
|
+
this.meta = new ChartMetaData();
|
|
55
57
|
}
|
|
56
58
|
setContext() {
|
|
57
59
|
const {
|
|
@@ -81,7 +83,8 @@ class PlotRoot extends Component {
|
|
|
81
83
|
resolveColor,
|
|
82
84
|
patterns,
|
|
83
85
|
duration,
|
|
84
|
-
plotId: this.plotId
|
|
86
|
+
plotId: this.plotId,
|
|
87
|
+
meta: this.meta
|
|
85
88
|
}
|
|
86
89
|
};
|
|
87
90
|
}
|
package/lib/esm/Radar.mjs
CHANGED
|
@@ -16,29 +16,29 @@ const style = (
|
|
|
16
16
|
/*__reshadow_css_start__*/
|
|
17
17
|
(sstyled.insert(
|
|
18
18
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
19
|
+
".___SAxisLine_1i4jk_gg_,.___SAxisTick_1i4jk_gg_,.___SAxis_1i4jk_gg_{stroke:var(--intergalactic-chart-grid-line,oklch(.7 .021 242));stroke-width:1;fill:#0000}.___SAxisLine_1i4jk_gg_,.___SAxisTick_1i4jk_gg_{stroke-dasharray:2}.___SAxisLine_1i4jk_gg_.__active_1i4jk_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .011 234.9))}.___SAxisLabel_1i4jk_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_1i4jk_gg_.__xDirection_1i4jk_gg_{text-anchor:var(--xDirection_1i4jk)}.___SAxisLabel_1i4jk_gg_.__yDirection_1i4jk_gg_{dominant-baseline:var(--yDirection_1i4jk)}.___SPolygon_1i4jk_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));opacity:.2}.___SPolygon_1i4jk_gg_.__color_1i4jk_gg_{fill:var(--color_1i4jk)}.___SPolygon_1i4jk_gg_.__pattern_1i4jk_gg_.__color_1i4jk_gg_{fill:var(--pattern_1i4jk);stroke:var(--color_1i4jk);stroke-width:1px}.___SPolygonDot_1i4jk_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border,#fff);r:6px;fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245))}.___SPolygonDot_1i4jk_gg_.__transparent_1i4jk_gg_{opacity:.3}.___SPolygonDot_1i4jk_gg_.__color_1i4jk_gg_{fill:var(--color_1i4jk)}.___SPolygonLine_1i4jk_gg_{stroke:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));stroke-width:3;fill:#0000}.___SPolygonLine_1i4jk_gg_.__transparent_1i4jk_gg_{opacity:.3}.___SPolygonLine_1i4jk_gg_.__color_1i4jk_gg_{stroke:var(--color_1i4jk)}.___SPieRect_1i4jk_gg_{outline:none;fill:var(--intergalactic-chart-grid-bar-hover,oklch(.375 .09 242.7/.05))}",
|
|
20
20
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
21
|
+
"1i4jk_gg_"
|
|
22
22
|
), /*__reshadow_css_end__*/
|
|
23
23
|
{
|
|
24
|
-
"__SAxis": "
|
|
25
|
-
"__SAxisLine": "
|
|
26
|
-
"__SAxisTick": "
|
|
27
|
-
"_active": "
|
|
28
|
-
"__SAxisLabel": "
|
|
29
|
-
"_xDirection": "
|
|
30
|
-
"--xDirection": "--
|
|
31
|
-
"_yDirection": "
|
|
32
|
-
"--yDirection": "--
|
|
33
|
-
"__SPolygon": "
|
|
34
|
-
"_color": "
|
|
35
|
-
"--color": "--
|
|
36
|
-
"_pattern": "
|
|
37
|
-
"--pattern": "--
|
|
38
|
-
"__SPolygonDot": "
|
|
39
|
-
"_transparent": "
|
|
40
|
-
"__SPolygonLine": "
|
|
41
|
-
"__SPieRect": "
|
|
24
|
+
"__SAxis": "___SAxis_1i4jk_gg_",
|
|
25
|
+
"__SAxisLine": "___SAxisLine_1i4jk_gg_",
|
|
26
|
+
"__SAxisTick": "___SAxisTick_1i4jk_gg_",
|
|
27
|
+
"_active": "__active_1i4jk_gg_",
|
|
28
|
+
"__SAxisLabel": "___SAxisLabel_1i4jk_gg_",
|
|
29
|
+
"_xDirection": "__xDirection_1i4jk_gg_",
|
|
30
|
+
"--xDirection": "--xDirection_1i4jk",
|
|
31
|
+
"_yDirection": "__yDirection_1i4jk_gg_",
|
|
32
|
+
"--yDirection": "--yDirection_1i4jk",
|
|
33
|
+
"__SPolygon": "___SPolygon_1i4jk_gg_",
|
|
34
|
+
"_color": "__color_1i4jk_gg_",
|
|
35
|
+
"--color": "--color_1i4jk",
|
|
36
|
+
"_pattern": "__pattern_1i4jk_gg_",
|
|
37
|
+
"--pattern": "--pattern_1i4jk",
|
|
38
|
+
"__SPolygonDot": "___SPolygonDot_1i4jk_gg_",
|
|
39
|
+
"_transparent": "__transparent_1i4jk_gg_",
|
|
40
|
+
"__SPolygonLine": "___SPolygonLine_1i4jk_gg_",
|
|
41
|
+
"__SPieRect": "___SPieRect_1i4jk_gg_"
|
|
42
42
|
})
|
|
43
43
|
);
|
|
44
44
|
const clampAngle = (angle) => {
|
package/lib/esm/RadialTree.mjs
CHANGED
|
@@ -14,22 +14,22 @@ const style = (
|
|
|
14
14
|
/*__reshadow_css_start__*/
|
|
15
15
|
(sstyled.insert(
|
|
16
16
|
/*__inner_css_start__*/
|
|
17
|
-
".
|
|
17
|
+
".___SRadian_1u9s6_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info,oklch(.23 .009 245))}.___SLine_1u9s6_gg_{stroke:var(--intergalactic-text-large-info,oklch(.23 .009 245))}.___SLine_1u9s6_gg_.__stroke_1u9s6_gg_{stroke:var(--stroke_1u9s6)}.___SLine_1u9s6_gg_.__transparent_1u9s6_gg_{opacity:.3}.___SCap_1u9s6_gg_{transition:r .1s}.___SCap_1u9s6_gg_.__pattern_1u9s6_gg_{stroke:var(--intergalactic-chart-grid-border,#fff);stroke-width:1px}.___SCap_1u9s6_gg_.__transparent_1u9s6_gg_,.___SIcon_1u9s6_gg_.__transparent_1u9s6_gg_{opacity:.3}.___SLabel_1u9s6_gg_{fill:var(--color_1u9s6)}.___SLabel_1u9s6_gg_.__transparent_1u9s6_gg_{opacity:.3}@media (hover:hover){.___SRadian_1u9s6_gg_:hover .___SLabel_1u9s6_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1u9s6_gg_{transition:none}}",
|
|
18
18
|
/*__inner_css_end__*/
|
|
19
|
-
"
|
|
19
|
+
"1u9s6_gg_"
|
|
20
20
|
), /*__reshadow_css_end__*/
|
|
21
21
|
{
|
|
22
|
-
"__SRadian": "
|
|
23
|
-
"__SLine": "
|
|
24
|
-
"_stroke": "
|
|
25
|
-
"--stroke": "--
|
|
26
|
-
"_transparent": "
|
|
27
|
-
"__SCap": "
|
|
28
|
-
"_pattern": "
|
|
29
|
-
"__SIcon": "
|
|
30
|
-
"__SLabel": "
|
|
31
|
-
"--color": "--
|
|
32
|
-
"__SLineCap": "
|
|
22
|
+
"__SRadian": "___SRadian_1u9s6_gg_",
|
|
23
|
+
"__SLine": "___SLine_1u9s6_gg_",
|
|
24
|
+
"_stroke": "__stroke_1u9s6_gg_",
|
|
25
|
+
"--stroke": "--stroke_1u9s6",
|
|
26
|
+
"_transparent": "__transparent_1u9s6_gg_",
|
|
27
|
+
"__SCap": "___SCap_1u9s6_gg_",
|
|
28
|
+
"_pattern": "__pattern_1u9s6_gg_",
|
|
29
|
+
"__SIcon": "___SIcon_1u9s6_gg_",
|
|
30
|
+
"__SLabel": "___SLabel_1u9s6_gg_",
|
|
31
|
+
"--color": "--color_1u9s6",
|
|
32
|
+
"__SLineCap": "___SLineCap_1u9s6_gg_"
|
|
33
33
|
})
|
|
34
34
|
);
|
|
35
35
|
const baseAngle = -Math.PI / 2;
|
package/lib/esm/Reference.mjs
CHANGED
|
@@ -9,24 +9,27 @@ const style = (
|
|
|
9
9
|
/*__reshadow_css_start__*/
|
|
10
10
|
(sstyled.insert(
|
|
11
11
|
/*__inner_css_start__*/
|
|
12
|
-
".
|
|
12
|
+
".___SReferenceLine_103dp_gg_{fill:none;stroke:var(--intergalactic-chart-grid-y-accent-hover-line,oklch(.88 .011 234.9))}.___STitle_103dp_gg_{font-size:var(--intergalactic-fs-100,12px);fill:var(--intergalactic-chart-grid-text-label,#00132466);transform-origin:var(--transform-origin_103dp)}.___STitle_103dp_gg_._position_top_103dp_gg_{text-anchor:middle}.___STitle_103dp_gg_._position_bottom_103dp_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_103dp_gg_._position_left_103dp_gg_,.___STitle_103dp_gg_._position_right_103dp_gg_{transform:rotate(-90deg);dominant-baseline:middle;text-anchor:middle}.___SBackground_103dp_gg_{fill:var(--intergalactic-chart-grid-period-bg,oklch(.96 .005 232.5))}.___SStripes_103dp_gg_{fill:var(--fill_103dp)}.___SStripesPatternPath_103dp_gg_{stroke:var(--intergalactic-chart-grid-period-pattern,oklch(.95 .006 232.7));stroke-width:1px}",
|
|
13
13
|
/*__inner_css_end__*/
|
|
14
|
-
"
|
|
14
|
+
"103dp_gg_"
|
|
15
15
|
), /*__reshadow_css_end__*/
|
|
16
16
|
{
|
|
17
|
-
"__SReferenceLine": "
|
|
18
|
-
"__STitle": "
|
|
19
|
-
"--transform-origin": "--transform-
|
|
20
|
-
"_position_top": "
|
|
21
|
-
"_position_bottom": "
|
|
22
|
-
"_position_right": "
|
|
23
|
-
"_position_left": "
|
|
24
|
-
"__SBackground": "
|
|
25
|
-
"__SStripes": "
|
|
26
|
-
"--fill": "--
|
|
27
|
-
"__SStripesPatternPath": "
|
|
17
|
+
"__SReferenceLine": "___SReferenceLine_103dp_gg_",
|
|
18
|
+
"__STitle": "___STitle_103dp_gg_",
|
|
19
|
+
"--transform-origin": "--transform-origin_103dp",
|
|
20
|
+
"_position_top": "_position_top_103dp_gg_",
|
|
21
|
+
"_position_bottom": "_position_bottom_103dp_gg_",
|
|
22
|
+
"_position_right": "_position_right_103dp_gg_",
|
|
23
|
+
"_position_left": "_position_left_103dp_gg_",
|
|
24
|
+
"__SBackground": "___SBackground_103dp_gg_",
|
|
25
|
+
"__SStripes": "___SStripes_103dp_gg_",
|
|
26
|
+
"--fill": "--fill_103dp",
|
|
27
|
+
"__SStripesPatternPath": "___SStripesPatternPath_103dp_gg_"
|
|
28
28
|
})
|
|
29
29
|
);
|
|
30
|
+
const STROKE_WIDTH = 1;
|
|
31
|
+
const NOTCH_WIDTH = 9;
|
|
32
|
+
const NOTCH_DELTA = NOTCH_WIDTH / 2 - STROKE_WIDTH / 4;
|
|
30
33
|
const side2direction = {
|
|
31
34
|
left: "vertical",
|
|
32
35
|
right: "vertical",
|
|
@@ -41,7 +44,19 @@ const lineDirection2props = {
|
|
|
41
44
|
x1: x,
|
|
42
45
|
x2: x,
|
|
43
46
|
y1: yRange[0],
|
|
44
|
-
y2: yRange[1]
|
|
47
|
+
y2: yRange[1],
|
|
48
|
+
notchFirst: {
|
|
49
|
+
x1: x - NOTCH_DELTA,
|
|
50
|
+
x2: x + NOTCH_DELTA,
|
|
51
|
+
y1: yRange[0],
|
|
52
|
+
y2: yRange[0]
|
|
53
|
+
},
|
|
54
|
+
notchLast: {
|
|
55
|
+
x1: x - NOTCH_DELTA,
|
|
56
|
+
x2: x + NOTCH_DELTA,
|
|
57
|
+
y1: yRange[1],
|
|
58
|
+
y2: yRange[1]
|
|
59
|
+
}
|
|
45
60
|
};
|
|
46
61
|
},
|
|
47
62
|
horizontal: ([xScale, yScale], value) => {
|
|
@@ -51,7 +66,19 @@ const lineDirection2props = {
|
|
|
51
66
|
x1: xRange[0],
|
|
52
67
|
x2: xRange[1],
|
|
53
68
|
y1: y,
|
|
54
|
-
y2: y
|
|
69
|
+
y2: y,
|
|
70
|
+
notchFirst: {
|
|
71
|
+
x1: xRange[0],
|
|
72
|
+
x2: xRange[0],
|
|
73
|
+
y1: y - NOTCH_DELTA,
|
|
74
|
+
y2: y + NOTCH_DELTA
|
|
75
|
+
},
|
|
76
|
+
notchLast: {
|
|
77
|
+
x1: xRange[1],
|
|
78
|
+
x2: xRange[1],
|
|
79
|
+
y1: y - NOTCH_DELTA,
|
|
80
|
+
y2: y + NOTCH_DELTA
|
|
81
|
+
}
|
|
55
82
|
};
|
|
56
83
|
}
|
|
57
84
|
};
|
|
@@ -148,12 +175,22 @@ class ReferenceLineRoot extends Component {
|
|
|
148
175
|
styles
|
|
149
176
|
} = this.asProps;
|
|
150
177
|
const positionProps = lineDirection2props[side2direction[position]];
|
|
178
|
+
const {
|
|
179
|
+
notchFirst,
|
|
180
|
+
notchLast,
|
|
181
|
+
...line
|
|
182
|
+
} = positionProps(scale, value);
|
|
151
183
|
return _ref = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SReferenceLine, _ref.cn("SReferenceLine", {
|
|
152
|
-
"render": "
|
|
184
|
+
"render": "g",
|
|
153
185
|
"__excludeProps": ["data", "scale", "format", "value", "color"],
|
|
154
|
-
"stroke": resolveColor(color)
|
|
155
|
-
|
|
156
|
-
|
|
186
|
+
"stroke": resolveColor(color)
|
|
187
|
+
}), /* @__PURE__ */ React.createElement("line", _ref.cn("line", {
|
|
188
|
+
...notchFirst
|
|
189
|
+
})), /* @__PURE__ */ React.createElement("line", _ref.cn("line", {
|
|
190
|
+
...line
|
|
191
|
+
})), /* @__PURE__ */ React.createElement("line", _ref.cn("line", {
|
|
192
|
+
...notchLast
|
|
193
|
+
}))), title && /* @__PURE__ */ React.createElement(ReferenceLine.Title, null, title));
|
|
157
194
|
}
|
|
158
195
|
}
|
|
159
196
|
_defineProperty(ReferenceLineRoot, "displayName", "ReferenceLine");
|
package/lib/esm/ScatterPlot.mjs
CHANGED
|
@@ -13,19 +13,19 @@ const style = (
|
|
|
13
13
|
/*__reshadow_css_start__*/
|
|
14
14
|
(sstyled.insert(
|
|
15
15
|
/*__inner_css_start__*/
|
|
16
|
-
".
|
|
16
|
+
".___SScatterPlot_v4rqi_gg_{fill:var(--intergalactic-chart-palette-order-1,oklch(.23 .009 245));transition-property:cx,cy;transition-duration:var(--duration_v4rqi);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_v4rqi_gg_:hover{opacity:.8}}.___SScatterPlot_v4rqi_gg_.__color_v4rqi_gg_{fill:var(--color_v4rqi)}.___SScatterPlot_v4rqi_gg_.__pattern_v4rqi_gg_.__color_v4rqi_gg_{fill:var(--pattern_v4rqi);stroke:var(--color_v4rqi);stroke-width:1px}.___SScatterPlot_v4rqi_gg_.__transparent_v4rqi_gg_{opacity:.3}.___SValue_v4rqi_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50,10px);stroke:var(--intergalactic-chart-palette-order-9,oklch(.53 .157 279.2))}.___SValue_v4rqi_gg_.__color_v4rqi_gg_{stroke:var(--color_v4rqi)}.___SValue_v4rqi_gg_.__transparent_v4rqi_gg_{opacity:.3}",
|
|
17
17
|
/*__inner_css_end__*/
|
|
18
|
-
"
|
|
18
|
+
"v4rqi_gg_"
|
|
19
19
|
), /*__reshadow_css_end__*/
|
|
20
20
|
{
|
|
21
|
-
"__SScatterPlot": "
|
|
22
|
-
"_color": "
|
|
23
|
-
"--color": "--
|
|
24
|
-
"_pattern": "
|
|
25
|
-
"--pattern": "--
|
|
26
|
-
"_transparent": "
|
|
27
|
-
"__SValue": "
|
|
28
|
-
"--duration": "--
|
|
21
|
+
"__SScatterPlot": "___SScatterPlot_v4rqi_gg_",
|
|
22
|
+
"_color": "__color_v4rqi_gg_",
|
|
23
|
+
"--color": "--color_v4rqi",
|
|
24
|
+
"_pattern": "__pattern_v4rqi_gg_",
|
|
25
|
+
"--pattern": "--pattern_v4rqi",
|
|
26
|
+
"_transparent": "__transparent_v4rqi_gg_",
|
|
27
|
+
"__SValue": "___SValue_v4rqi_gg_",
|
|
28
|
+
"--duration": "--duration_v4rqi"
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
class ScatterPlotRoot extends Component {
|