solid-recharts 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/package.json +6 -5
- package/src/component/Customized.tsx +1 -1
- package/src/state/RechartsReduxContext.tsx +1 -1
- package/src/state/selectors/arrayEqualityCheck.ts +1 -1
- package/src/state/selectors/numberDomainEqualityCheck.ts +1 -1
- package/src/state/store.ts +0 -1
- package/src/util/resolveDefaultProps.tsx +1 -1
- package/src/util/typedDataKey.ts +1 -1
- package/src/util/types.ts +1 -1
- package/test/animation/CSSTransitionAnimate.timing.spec.tsx +1 -1
- package/test/animation/JavascriptAnimate.spec.tsx +1 -1
- package/test/animation/legacyAnimationLengthChange.spec.tsx +1 -1
- package/test/cartesian/Area.animation.spec.tsx +1 -1
- package/test/cartesian/Area.range.spec.tsx +1 -1
- package/test/cartesian/Area.spec.tsx +1 -1
- package/test/cartesian/Area.stacked.render.spec.tsx +1 -1
- package/test/cartesian/Area.typed.spec.tsx +1 -1
- package/test/cartesian/Axis.integration.spec.tsx +1 -1
- package/test/cartesian/Bar/Bar.csstransition.spec.tsx +1 -1
- package/test/cartesian/Bar/Bar.spec.tsx +1 -1
- package/test/cartesian/Bar/Bar.typed.spec.tsx +1 -1
- package/test/cartesian/Bar.animation.spec.tsx +1 -1
- package/test/cartesian/Bar.stackDomain.spec.tsx +1 -1
- package/test/cartesian/Bar.stacked.render.spec.tsx +1 -1
- package/test/cartesian/Bar.zeroDimensionFiltering.spec.tsx +1 -1
- package/test/cartesian/Brush.keyboard.spec.tsx +1 -1
- package/test/cartesian/Brush.panorama.spec.tsx +1 -1
- package/test/cartesian/Brush.props.spec.tsx +1 -1
- package/test/cartesian/Brush.render.spec.tsx +1 -1
- package/test/cartesian/Brush.spec.tsx +1 -1
- package/test/cartesian/Brush.stacked.spec.tsx +1 -1
- package/test/cartesian/CartesianAxis.render.spec.tsx +1 -1
- package/test/cartesian/CartesianAxis.spec.tsx +1 -1
- package/test/cartesian/CartesianGrid.render.spec.tsx +1 -1
- package/test/cartesian/CartesianGrid.spec.tsx +1 -1
- package/test/cartesian/ErrorBar.render.spec.tsx +1 -1
- package/test/cartesian/ErrorBar.spec.tsx +1 -1
- package/test/cartesian/Funnel.animation.spec.tsx +1 -1
- package/test/cartesian/Funnel.spec.tsx +1 -1
- package/test/cartesian/Funnel.typed.spec.tsx +1 -1
- package/test/cartesian/GraphicalItemClipPath.scale-behavior.spec.tsx +1 -1
- package/test/cartesian/Line.animation.spec.tsx +1 -1
- package/test/cartesian/Line.sparseAnimationPath.spec.tsx +1 -1
- package/test/cartesian/Line.spec.tsx +1 -1
- package/test/cartesian/Line.typed.spec.tsx +1 -1
- package/test/cartesian/ReferenceArea.render.spec.tsx +1 -1
- package/test/cartesian/ReferenceArea.spec.tsx +1 -1
- package/test/cartesian/ReferenceArea.typed.spec.tsx +1 -1
- package/test/cartesian/ReferenceDot.render.spec.tsx +1 -1
- package/test/cartesian/ReferenceDot.spec.tsx +1 -1
- package/test/cartesian/ReferenceDot.typed.spec.tsx +1 -1
- package/test/cartesian/ReferenceLine/ReferenceLine.panorama.spec.tsx +1 -1
- package/test/cartesian/ReferenceLine/ReferenceLine.spec.tsx +1 -1
- package/test/cartesian/ReferenceLine/ReferenceLine.typed.spec.tsx +1 -1
- package/test/cartesian/ReferenceLine.render.spec.tsx +1 -1
- package/test/cartesian/Scatter.animation.spec.tsx +1 -1
- package/test/cartesian/Scatter.render.spec.tsx +1 -1
- package/test/cartesian/Scatter.spec.tsx +1 -1
- package/test/cartesian/Scatter.typed.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.barSize.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.brush.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.categorydomain.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.datatypes.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.hide.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.multiaxis.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.numberdomain.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.padding.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.padding_clip.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.state.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.tick.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.timescale.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.typed.spec.tsx +1 -1
- package/test/cartesian/XAxis/XAxis.vertical.spec.tsx +1 -1
- package/test/cartesian/XAxis.tickFormatter.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.7362.derivedDomain.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.interval-zero.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.label.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.tick.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.tickFormatter.spec.tsx +1 -1
- package/test/cartesian/YAxis/YAxis.typed.spec.tsx +1 -1
- package/test/cartesian/ZAxis.spec.tsx +1 -1
- package/test/cartesian/ZAxis.typed.spec.tsx +1 -1
- package/test/cartesian/axisLineAndStroke.spec.tsx +1 -1
- package/test/cartesian/miscFeatureGaps.spec.tsx +1 -1
- package/test/chart/AccessibilityLayer.spec.tsx +1 -1
- package/test/chart/AccessibilityScans.spec.tsx +2 -2
- package/test/chart/AreaChart.spec.tsx +1 -1
- package/test/chart/AreaChart.typed.spec.tsx +1 -1
- package/test/chart/BarChart.spec.tsx +1 -1
- package/test/chart/BarChart.typed.spec.tsx +1 -1
- package/test/chart/CategoricalChart.spec.tsx +1 -1
- package/test/chart/ComposedChart.spec.tsx +1 -1
- package/test/chart/ComposedChart.typed.spec.tsx +1 -1
- package/test/chart/FunnelChart.spec.tsx +1 -1
- package/test/chart/FunnelChart.typed.spec.tsx +1 -1
- package/test/chart/LineChart.smoke.spec.tsx +1 -1
- package/test/chart/LineChart.spec.tsx +1 -1
- package/test/chart/LineChart.typed.spec.tsx +1 -1
- package/test/chart/NicheChartTooltip.spec.tsx +1 -1
- package/test/chart/PieChart.spec.tsx +1 -1
- package/test/chart/PieChart.typed.spec.tsx +1 -1
- package/test/chart/RadarChart.spec.tsx +1 -1
- package/test/chart/RadarChart.typed.spec.tsx +1 -1
- package/test/chart/RadialBarChart.spec.tsx +1 -1
- package/test/chart/RadialBarChart.typed.spec.tsx +1 -1
- package/test/chart/RechartsWrapper.spec.tsx +1 -1
- package/test/chart/Sankey.content.spec.tsx +1 -1
- package/test/chart/Sankey.spec.tsx +1 -1
- package/test/chart/ScatterChart.spec.tsx +1 -1
- package/test/chart/ScatterChart.typed.spec.tsx +1 -1
- package/test/chart/SunburstChart.spec.tsx +1 -1
- package/test/chart/Treemap.animation.spec.tsx +1 -1
- package/test/chart/Treemap.spec.tsx +1 -1
- package/test/chart/chartEvents.spec.tsx +1 -1
- package/test/chart/responsive.spec.tsx +1 -1
- package/test/component/Cell.render.spec.tsx +1 -1
- package/test/component/Cell.spec.tsx +1 -1
- package/test/component/Cursor.spec.tsx +1 -1
- package/test/component/DefaultTooltipContent.spec.tsx +1 -1
- package/test/component/Label.render.spec.tsx +1 -1
- package/test/component/Label.spec.tsx +1 -1
- package/test/component/LabelList.spec.tsx +1 -1
- package/test/component/Legend.itemSorter.spec.tsx +1 -1
- package/test/component/Legend.render.spec.tsx +1 -1
- package/test/component/Legend.spec.tsx +1 -1
- package/test/component/ResponsiveContainer.spec.tsx +1 -1
- package/test/component/ResponsiveContainerDataTest.spec.tsx +1 -1
- package/test/component/Text.spec.tsx +1 -1
- package/test/component/Tooltip/ActiveDot.spec.tsx +1 -1
- package/test/component/Tooltip/tooltipEventType.spec.tsx +1 -1
- package/test/component/Tooltip/tooltipTestHelpers.tsx +1 -1
- package/test/component/Tooltip.defaultIndex.spec.tsx +1 -1
- package/test/component/Tooltip.hover.spec.tsx +1 -1
- package/test/component/Tooltip.item.spec.tsx +1 -1
- package/test/component/Tooltip.keyboard.spec.tsx +1 -1
- package/test/component/Tooltip.payload.spec.tsx +1 -1
- package/test/component/Tooltip.touch.spec.tsx +1 -1
- package/test/component/Tooltip.visibility.spec.tsx +1 -1
- package/test/component/TooltipBoundingBox.spec.tsx +2 -2
- package/test/container/ClipPath.spec.tsx +1 -1
- package/test/context/chartLayoutContext.spec.tsx +1 -1
- package/test/helper/createSelectorTestCase.tsx +1 -1
- package/test/helper/selectorTestHelpers.tsx +1 -1
- package/test/hooks/useActiveTooltipDataPoints.spec.tsx +1 -1
- package/test/hooks/useOffset.spec.tsx +1 -1
- package/test/hooks/useTooltipStateHooks.spec.tsx +1 -1
- package/test/polar/Pie/Pie-TwoLevelPieChart.spec.tsx +1 -1
- package/test/polar/Pie/Pie.spec.tsx +1 -1
- package/test/polar/Pie/Pie.typed.spec.tsx +1 -1
- package/test/polar/Pie.animation.spec.tsx +1 -1
- package/test/polar/PieWithLegend.animation.spec.tsx +1 -1
- package/test/polar/PolarAngleAxis/PolarAngleAxis.events.spec.tsx +1 -1
- package/test/polar/PolarAngleAxis/PolarAngleAxis.spec.tsx +1 -1
- package/test/polar/PolarAngleAxis/PolarAngleAxis.typed.spec.tsx +1 -1
- package/test/polar/PolarAngleAxis.render.spec.tsx +1 -1
- package/test/polar/PolarGrid.render.spec.tsx +1 -1
- package/test/polar/PolarGrid.spec.tsx +1 -1
- package/test/polar/PolarLegendPerRow.render.spec.tsx +1 -1
- package/test/polar/PolarRadiusAxis.events.spec.tsx +1 -1
- package/test/polar/PolarRadiusAxis.render.spec.tsx +1 -1
- package/test/polar/PolarRadiusAxis.spec.tsx +1 -1
- package/test/polar/PolarRadiusAxis.typed.spec.tsx +1 -1
- package/test/polar/PolarTooltipLegend.render.spec.tsx +1 -1
- package/test/polar/Radar.animation.spec.tsx +1 -1
- package/test/polar/Radar.render.spec.tsx +1 -1
- package/test/polar/Radar.spec.tsx +1 -1
- package/test/polar/Radar.typed.spec.tsx +1 -1
- package/test/polar/RadialBar/RadialBar.spec.tsx +1 -1
- package/test/polar/RadialBar/RadialBar.typed.spec.tsx +1 -1
- package/test/polar/RadialBar.animation.spec.tsx +1 -1
- package/test/polar/RadialBar.render.spec.tsx +1 -1
- package/test/polar/RadialBar.stacked.spec.tsx +1 -1
- package/test/setup.ts +1 -1
- package/test/shape/ActiveShape.spec.tsx +1 -1
- package/test/shape/Cross.spec.tsx +1 -1
- package/test/shape/Curve.spec.tsx +1 -1
- package/test/shape/Curve.typed.spec.tsx +1 -1
- package/test/shape/Dot.spec.tsx +1 -1
- package/test/shape/Polygon.spec.tsx +1 -1
- package/test/shape/Rectangle.animation.spec.tsx +1 -1
- package/test/shape/Rectangle.spec.tsx +1 -1
- package/test/shape/Sector.spec.tsx +1 -1
- package/test/shape/Symbols.spec.tsx +1 -1
- package/test/shape/Trapezoid.spec.tsx +1 -1
- package/test/state/hooks.spec.tsx +1 -1
- package/test/state/selectors/axisSelectors.spec.tsx +1 -1
- package/test/state/selectors/dataSelectors.spec.tsx +1 -1
- package/test/state/selectors/legendSelectors.spec.tsx +1 -1
- package/test/state/selectors/radarSelectors.spec.tsx +1 -1
- package/test/state/selectors/selectActiveTooltipIndex.spec.tsx +1 -1
- package/test/state/selectors/selectDisplayedData.spec.tsx +1 -1
- package/test/state/selectors/selectStackGroups.spec.tsx +1 -1
- package/test/state/selectors/selectors.spec.tsx +1 -1
- package/test/util/DomUtils.spec.tsx +1 -1
- package/test/util/FunnelUtils.spec.tsx +1 -1
- package/test/util/useElementOffset.spec.tsx +1 -1
- package/test/util/usePrefersReducedMotion.spec.ts +1 -1
- package/test/util/useUniqueId.spec.ts +1 -1
- package/test/zIndex/AllZIndexPortals.spec.tsx +1 -1
- package/test/zIndex/DynamicZIndex.spec.tsx +1 -1
- package/test/zIndex/ZIndexLayer.portalOwner.spec.tsx +1 -1
- package/test/zIndex/componentZIndex.spec.tsx +1 -1
- package/test/zIndex/multiChartZIndexIsolation.spec.tsx +1 -1
- package/NEXT_SESSION_PROMPT.md +0 -114
- package/test/helper/render.ts +0 -7
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Thomas Guehenneux
|
|
4
|
+
|
|
5
|
+
Portions derived from recharts (https://github.com/recharts/recharts),
|
|
6
|
+
Copyright (c) 2015 recharts, released under the MIT License.
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solid-recharts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"license": "MIT",
|
|
4
5
|
"type": "module",
|
|
5
6
|
"sideEffects": false,
|
|
6
7
|
"exports": {
|
|
@@ -11,13 +12,13 @@
|
|
|
11
12
|
"victory-vendor": "^37.0.2"
|
|
12
13
|
},
|
|
13
14
|
"devDependencies": {
|
|
15
|
+
"@solidjs/testing-library": "^1.0.0-beta.2",
|
|
14
16
|
"axe-core": "^4.12.0",
|
|
15
|
-
"vitest-axe": "^0.1.0"
|
|
16
|
-
"@solid-recharts/testing-library": "0.0.0"
|
|
17
|
+
"vitest-axe": "^0.1.0"
|
|
17
18
|
},
|
|
18
19
|
"peerDependencies": {
|
|
19
|
-
"@solidjs/web": "^2.0.0-beta.
|
|
20
|
-
"solid-js": "^2.0.0-beta.
|
|
20
|
+
"@solidjs/web": "^2.0.0-beta.17",
|
|
21
|
+
"solid-js": "^2.0.0-beta.17"
|
|
21
22
|
},
|
|
22
23
|
"scripts": {
|
|
23
24
|
"pretest": "node ../../scripts/verify-reference.mjs",
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
//
|
|
5
5
|
// TODO: do not port this file as-is. The Solid-native port replaces it (see the
|
|
6
6
|
// reason above). If a consumer needs this path, wire it to the Solid equivalent
|
|
7
|
-
// instead.
|
|
7
|
+
// instead.
|
|
8
8
|
export {};
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
//
|
|
5
5
|
// TODO: do not port this file as-is. The Solid-native port replaces it (see the
|
|
6
6
|
// reason above). If a consumer needs this path, wire it to the Solid equivalent
|
|
7
|
-
// instead.
|
|
7
|
+
// instead.
|
|
8
8
|
export {};
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
//
|
|
5
5
|
// TODO: do not port this file as-is. The Solid-native port replaces it (see the
|
|
6
6
|
// reason above). If a consumer needs this path, wire it to the Solid equivalent
|
|
7
|
-
// instead.
|
|
7
|
+
// instead.
|
|
8
8
|
export {};
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
//
|
|
5
5
|
// TODO: do not port this file as-is. The Solid-native port replaces it (see the
|
|
6
6
|
// reason above). If a consumer needs this path, wire it to the Solid equivalent
|
|
7
|
-
// instead.
|
|
7
|
+
// instead.
|
|
8
8
|
export {};
|
package/src/state/store.ts
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
// root store composes them — `state` mirrors the slice state proxies, `actions`
|
|
7
7
|
// namespaces the slice actions by slice name (symmetric with `state`).
|
|
8
8
|
//
|
|
9
|
-
// Grows as each slice lands (PORT_ORDER Tier 2 builds the core feature-vertically).
|
|
10
9
|
import { createChartDataSlice, type ChartDataActions, type ChartDataState } from "./chartDataSlice";
|
|
11
10
|
import {
|
|
12
11
|
createChartLayoutSlice,
|
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
//
|
|
5
5
|
// TODO: do not port this file as-is. The Solid-native port replaces it (see the
|
|
6
6
|
// reason above). If a consumer needs this path, wire it to the Solid equivalent
|
|
7
|
-
// instead.
|
|
7
|
+
// instead.
|
|
8
8
|
export {};
|
package/src/util/typedDataKey.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
//
|
|
5
5
|
// TODO: do not port this file as-is. The Solid-native port replaces it (see the
|
|
6
6
|
// reason above). If a consumer needs this path, wire it to the Solid equivalent
|
|
7
|
-
// instead.
|
|
7
|
+
// instead.
|
|
8
8
|
export {};
|
package/src/util/types.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type { ExternalMouseEvents } from "../chart/types";
|
|
|
10
10
|
// codebase (Area, Label, Text, axisSelectors, d3-scale, the public index). We do
|
|
11
11
|
// NOT port it whole — only the geometry/value types the currently-ported units
|
|
12
12
|
// reference, growing this file as later units need more ("declare/stub then
|
|
13
|
-
// backfill"
|
|
13
|
+
// backfill"). Definitions are copied faithfully; the sole
|
|
14
14
|
// deviation is `ChartCoordinate`'s `any` fields → `unknown` (this repo bans
|
|
15
15
|
// `any`; the type is `@deprecated` and those fields aren't read structurally by
|
|
16
16
|
// current consumers).
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
// load-bearing contracts (fresh `from`, settled `to`, gating) are asserted.
|
|
23
23
|
import { describe, expect, it, vi, beforeEach } from "vitest";
|
|
24
24
|
import { createSignal, flush } from "solid-js";
|
|
25
|
-
import { render, fireEvent } from "
|
|
25
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
26
26
|
import { CSSTransitionAnimate } from "../../src/animation/CSSTransitionAnimate";
|
|
27
27
|
import { MockControllerAnimationManager } from "./mockControllerAnimationManager";
|
|
28
28
|
import { expectLastCalledWith } from "../helper/expectLastCalledWith";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// injected MockControllerAnimationManager (deterministic, no requestAnimationFrame).
|
|
10
10
|
import { describe, it, expect, vi } from "vitest";
|
|
11
11
|
import { flush } from "solid-js";
|
|
12
|
-
import { render } from "
|
|
12
|
+
import { render } from "@solidjs/testing-library";
|
|
13
13
|
import { JavascriptAnimate } from "../../src/animation/JavascriptAnimate";
|
|
14
14
|
import { MockControllerAnimationManager } from "./mockControllerAnimationManager";
|
|
15
15
|
|
|
@@ -51,7 +51,7 @@ import {
|
|
|
51
51
|
Scatter,
|
|
52
52
|
ScatterChart,
|
|
53
53
|
} from "../../src";
|
|
54
|
-
import { render, fireEvent } from "
|
|
54
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
55
55
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
56
56
|
import type { AnimationController } from "../../src";
|
|
57
57
|
import {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// propagation to a flush boundary.
|
|
20
20
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
21
21
|
import { createSignal, flush } from "solid-js";
|
|
22
|
-
import { render } from "
|
|
22
|
+
import { render } from "@solidjs/testing-library";
|
|
23
23
|
import { AreaChart, Area } from "../../src";
|
|
24
24
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
25
25
|
import { MockControllerAnimationManager as MockProgressAnimationManager } from "../animation/mockControllerAnimationManager";
|
|
@@ -7,7 +7,7 @@ import { beforeEach, describe, expect, it } from "vitest";
|
|
|
7
7
|
import { flush } from "solid-js";
|
|
8
8
|
import { Area, AreaChart, Tooltip, XAxis, YAxis } from "../../src";
|
|
9
9
|
import { rangeData } from "../_data";
|
|
10
|
-
import { render } from "
|
|
10
|
+
import { render } from "@solidjs/testing-library";
|
|
11
11
|
import { mockGetBoundingClientRect } from "../helper/mockGetBoundingClientRect";
|
|
12
12
|
import { showTooltip } from "../component/Tooltip/tooltipTestHelpers";
|
|
13
13
|
import { areaChartMouseHoverTooltipSelector } from "../component/Tooltip/tooltipMouseHoverSelectors";
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
allCartesianChartsExcept,
|
|
41
41
|
type CartesianChartTestCase,
|
|
42
42
|
} from "../helper/parameterizedTestCases";
|
|
43
|
-
import { fireEvent, render, screen } from "
|
|
43
|
+
import { fireEvent, render, screen } from "@solidjs/testing-library";
|
|
44
44
|
|
|
45
45
|
const emptyBaseValues: ReadonlyArray<BaseValue | undefined> = [undefined, NaN];
|
|
46
46
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// register via effects and points compute from the store.
|
|
8
8
|
import { describe, expect, it } from "vitest";
|
|
9
9
|
import { flush } from "solid-js";
|
|
10
|
-
import { render } from "
|
|
10
|
+
import { render } from "@solidjs/testing-library";
|
|
11
11
|
import { AreaChart, Area } from "../../src";
|
|
12
12
|
|
|
13
13
|
const data = [
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
// shape; `getRelativeCoordinate(e)` still accepts the (SVG) event.
|
|
24
24
|
import { describe, it } from "vitest";
|
|
25
25
|
import { Area, AreaChart, getRelativeCoordinate } from "../../src";
|
|
26
|
-
import { render } from "
|
|
26
|
+
import { render } from "@solidjs/testing-library";
|
|
27
27
|
import { expectAreaCurve, type ExpectedArea } from "../helper/expectAreaCurve";
|
|
28
28
|
|
|
29
29
|
type ExampleDataPoint = {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
// coords would diverge from recharts for reasons unrelated to axis logic.
|
|
9
9
|
import { describe, expect, it } from "vitest";
|
|
10
10
|
import { flush } from "solid-js";
|
|
11
|
-
import { render } from "
|
|
11
|
+
import { render } from "@solidjs/testing-library";
|
|
12
12
|
import { LineChart, Line, XAxis, YAxis } from "../../src";
|
|
13
13
|
|
|
14
14
|
function tickTexts(container: Element, axis: ".recharts-xAxis" | ".recharts-yAxis"): string[] {
|
|
@@ -12,7 +12,7 @@ import { barChartMouseHoverTooltipSelector } from "../../component/Tooltip/toolt
|
|
|
12
12
|
import { mockGetBoundingClientRect } from "../../helper/mockGetBoundingClientRect";
|
|
13
13
|
import { expectNthCalledWith } from "../../helper/expectLastCalledWith";
|
|
14
14
|
import { assertNotNull } from "../../helper/assertNotNull";
|
|
15
|
-
import { fireEvent } from "
|
|
15
|
+
import { fireEvent } from "@solidjs/testing-library";
|
|
16
16
|
|
|
17
17
|
const expectedBars: ReadonlyArray<ExpectedBar> = [
|
|
18
18
|
{
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import type { CartesianGraphicalItemSettings } from "../../../src/state/graphicalItemsSlice";
|
|
22
22
|
import { useAppSelector } from "../../../src/state/hooks";
|
|
23
23
|
import { BarSettings } from "../../../src/state/types/BarSettings";
|
|
24
|
-
import { fireEvent, render } from "
|
|
24
|
+
import { fireEvent, render } from "@solidjs/testing-library";
|
|
25
25
|
import { assertZIndexLayerOrder } from "../../helper/assertZIndexLayerOrder";
|
|
26
26
|
import { expectActiveBars, expectBars, getAllBarPaths, getAllBars } from "../../helper/expectBars";
|
|
27
27
|
import { expectLabels } from "../../helper/expectLabel";
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
// on each call (golden-anchored to the Solid type surface).
|
|
20
20
|
import { describe, it } from "vitest";
|
|
21
21
|
import { Bar, BarChart, getRelativeCoordinate, type BarRectangleItem } from "../../../src";
|
|
22
|
-
import { render } from "
|
|
22
|
+
import { render } from "@solidjs/testing-library";
|
|
23
23
|
import { expectBars, type ExpectedBar } from "../../helper/expectBars";
|
|
24
24
|
|
|
25
25
|
type ExampleDataPoint = {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
// same "restart from the beginning" behaviour.
|
|
31
31
|
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
32
32
|
import { createSignal, flush } from "solid-js";
|
|
33
|
-
import { render, fireEvent } from "
|
|
33
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
34
34
|
import { BarChart, Bar } from "../../src";
|
|
35
35
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
36
36
|
import { MockControllerAnimationManager as MockProgressAnimationManager } from "../animation/mockControllerAnimationManager";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// exercises the un-deferred selectDomainOfStackGroups → combineNumericalDomain path.
|
|
4
4
|
import { describe, expect, it } from "vitest";
|
|
5
5
|
import { flush } from "solid-js";
|
|
6
|
-
import { render } from "
|
|
6
|
+
import { render } from "@solidjs/testing-library";
|
|
7
7
|
import { BarChart, Bar, XAxis, YAxis } from "../../src";
|
|
8
8
|
|
|
9
9
|
const data = [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// register via effects and rects compute from the store.
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
7
|
import { flush } from "solid-js";
|
|
8
|
-
import { render } from "
|
|
8
|
+
import { render } from "@solidjs/testing-library";
|
|
9
9
|
import { BarChart, Bar } from "../../src";
|
|
10
10
|
|
|
11
11
|
const data = [
|
|
@@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest";
|
|
|
3
3
|
import { flush } from "solid-js";
|
|
4
4
|
import { Bar, BarChart, BarStack, XAxis, YAxis } from "../../src";
|
|
5
5
|
import { createSelectorTestCase } from "../helper/createSelectorTestCase";
|
|
6
|
-
import { render } from "
|
|
6
|
+
import { render } from "@solidjs/testing-library";
|
|
7
7
|
import { selectBarRectangles } from "../../src/state/selectors/barSelectors";
|
|
8
8
|
import { getAllBars } from "../helper/expectBars";
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// real browser; here we flush manually).
|
|
5
5
|
import { describe, expect, it } from "vitest";
|
|
6
6
|
import { flush } from "solid-js";
|
|
7
|
-
import { render, fireEvent } from "
|
|
7
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
8
8
|
import { LineChart, Line, XAxis, YAxis, Brush } from "../../src";
|
|
9
9
|
|
|
10
10
|
const data = [
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
7
|
import { flush } from "solid-js";
|
|
8
8
|
import { Brush, Line, LineChart } from "../../src";
|
|
9
|
-
import { render } from "
|
|
9
|
+
import { render } from "@solidjs/testing-library";
|
|
10
10
|
|
|
11
11
|
const data = [
|
|
12
12
|
{ name: "a", uv: 100 },
|
|
@@ -6,7 +6,7 @@ import { describe, expect, it, vi } from "vitest";
|
|
|
6
6
|
import { flush } from "solid-js";
|
|
7
7
|
import type { JSX } from "@solidjs/web";
|
|
8
8
|
import { BarChart, Brush } from "../../src";
|
|
9
|
-
import { fireEvent, render } from "
|
|
9
|
+
import { fireEvent, render } from "@solidjs/testing-library";
|
|
10
10
|
import { assertNotNull } from "../helper/assertNotNull";
|
|
11
11
|
|
|
12
12
|
const data = [
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// `flush()` because the brush registers settings + reads indices via effects.
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
7
|
import { flush } from "solid-js";
|
|
8
|
-
import { render, fireEvent } from "
|
|
8
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
9
9
|
import { LineChart, Line, XAxis, YAxis, Brush } from "../../src";
|
|
10
10
|
|
|
11
11
|
const data = [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
import { describe, expect, it, test } from "vitest";
|
|
27
27
|
import { createSignal, flush } from "solid-js";
|
|
28
28
|
import type { JSX } from "@solidjs/web";
|
|
29
|
-
import { render, fireEvent, screen, waitFor } from "
|
|
29
|
+
import { render, fireEvent, screen, waitFor } from "@solidjs/testing-library";
|
|
30
30
|
import { BarChart, Brush, ComposedChart, Line, LineChart, ReferenceLine } from "../../src";
|
|
31
31
|
import type { BrushProps } from "../../src";
|
|
32
32
|
import { assertNotNull } from "../helper/assertNotNull";
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import { describe, expect, it } from "vitest";
|
|
19
19
|
import { flush } from "solid-js";
|
|
20
20
|
import { createSelectorTestCase } from "../helper/createSelectorTestCase";
|
|
21
|
-
import { fireEvent } from "
|
|
21
|
+
import { fireEvent } from "@solidjs/testing-library";
|
|
22
22
|
import { BarChart, Bar, Brush } from "../../src";
|
|
23
23
|
import { PageData } from "../_data";
|
|
24
24
|
import { assertNotNull } from "../helper/assertNotNull";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// not just register settings.
|
|
4
4
|
import { describe, expect, it } from "vitest";
|
|
5
5
|
import { flush } from "solid-js";
|
|
6
|
-
import { render } from "
|
|
6
|
+
import { render } from "@solidjs/testing-library";
|
|
7
7
|
import { LineChart, Line, XAxis, YAxis } from "../../src";
|
|
8
8
|
import { PageData } from "../_data";
|
|
9
9
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// covers it).
|
|
8
8
|
import { describe, expect, it } from "vitest";
|
|
9
9
|
import { scaleLinear } from "victory-vendor/d3-scale";
|
|
10
|
-
import { render } from "
|
|
10
|
+
import { render } from "@solidjs/testing-library";
|
|
11
11
|
import { CartesianAxis, Surface } from "../../src";
|
|
12
12
|
import type { CartesianTickContentProps, TickItem } from "../../src/util/types";
|
|
13
13
|
import type { LabelContentType } from "../../src/component/Label";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// axis ticks across the plot area.
|
|
3
3
|
import { describe, expect, it } from "vitest";
|
|
4
4
|
import { flush } from "solid-js";
|
|
5
|
-
import { render } from "
|
|
5
|
+
import { render } from "@solidjs/testing-library";
|
|
6
6
|
import { LineChart, Line, XAxis, YAxis, CartesianGrid } from "../../src";
|
|
7
7
|
import { PageData } from "../_data";
|
|
8
8
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import { describe, expect, it, type Mock, test, vi } from "vitest";
|
|
16
16
|
import { createEffect, flush } from "solid-js";
|
|
17
17
|
import type { JSX } from "@solidjs/web";
|
|
18
|
-
import { render } from "
|
|
18
|
+
import { render } from "@solidjs/testing-library";
|
|
19
19
|
import {
|
|
20
20
|
CartesianGrid,
|
|
21
21
|
LineChart,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// selectAllErrorBarSettings → getErrorDomainByDataKey path).
|
|
4
4
|
import { describe, expect, it } from "vitest";
|
|
5
5
|
import { flush } from "solid-js";
|
|
6
|
-
import { render } from "
|
|
6
|
+
import { render } from "@solidjs/testing-library";
|
|
7
7
|
import { LineChart, Line, XAxis, YAxis, ErrorBar } from "../../src";
|
|
8
8
|
|
|
9
9
|
const data = [
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
XAxis,
|
|
19
19
|
YAxis,
|
|
20
20
|
} from "../../src";
|
|
21
|
-
import { render } from "
|
|
21
|
+
import { render } from "@solidjs/testing-library";
|
|
22
22
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
23
23
|
import type { AnimationController } from "../../src";
|
|
24
24
|
import { MockControllerAnimationManager } from "../animation/mockControllerAnimationManager";
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
import { describe, expect, it, vi } from "vitest";
|
|
23
23
|
import { createSignal, flush } from "solid-js";
|
|
24
24
|
import { createSelectorTestCase } from "../helper/createSelectorTestCase";
|
|
25
|
-
import { render, fireEvent } from "
|
|
25
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
26
26
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
27
27
|
import { MockControllerAnimationManager as MockProgressAnimationManager } from "../animation/mockControllerAnimationManager";
|
|
28
28
|
import { Funnel, FunnelChart } from "../../src";
|
|
@@ -10,7 +10,7 @@ import { Cell, Funnel, FunnelChart, FunnelProps, FunnelTrapezoidItem, LabelList
|
|
|
10
10
|
import { showTooltip } from "../component/Tooltip/tooltipTestHelpers";
|
|
11
11
|
import { funnelChartMouseHoverTooltipSelector } from "../component/Tooltip/tooltipMouseHoverSelectors";
|
|
12
12
|
import { computeFunnelTrapezoids } from "../../src/cartesian/Funnel";
|
|
13
|
-
import { render } from "
|
|
13
|
+
import { render } from "@solidjs/testing-library";
|
|
14
14
|
|
|
15
15
|
const data = [
|
|
16
16
|
{ value: 100, name: "展现" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { Funnel, FunnelChart, getRelativeCoordinate, type FunnelTrapezoidItem } from "../../src";
|
|
3
|
-
import { render } from "
|
|
3
|
+
import { render } from "@solidjs/testing-library";
|
|
4
4
|
|
|
5
5
|
type ExampleDataPoint = {
|
|
6
6
|
value: number;
|
|
@@ -15,7 +15,7 @@ import { describe, it, expect, beforeEach } from "vitest";
|
|
|
15
15
|
import { scaleLinear, scalePoint } from "victory-vendor/d3-scale";
|
|
16
16
|
import { createSignal, flush } from "solid-js";
|
|
17
17
|
import type { JSX } from "@solidjs/web";
|
|
18
|
-
import { fireEvent } from "
|
|
18
|
+
import { fireEvent } from "@solidjs/testing-library";
|
|
19
19
|
import { Line, LineChart, XAxis, YAxis } from "../../src";
|
|
20
20
|
import { createSelectorTestCase } from "../helper/createSelectorTestCase";
|
|
21
21
|
import { mockGetBoundingClientRect } from "../helper/mockGetBoundingClientRect";
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
// scheduling — render-count coupled.
|
|
26
26
|
import { describe, expect, it, beforeAll, afterAll, beforeEach } from "vitest";
|
|
27
27
|
import { createSignal, flush } from "solid-js";
|
|
28
|
-
import { render } from "
|
|
28
|
+
import { render } from "@solidjs/testing-library";
|
|
29
29
|
import { LineChart, Line } from "../../src";
|
|
30
30
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
31
31
|
import { MockControllerAnimationManager as MockProgressAnimationManager } from "../animation/mockControllerAnimationManager";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// mocked on SVGElement.prototype (jsdom lacks it).
|
|
12
12
|
import { describe, expect, it, beforeAll, afterAll } from "vitest";
|
|
13
13
|
import { flush } from "solid-js";
|
|
14
|
-
import { render } from "
|
|
14
|
+
import { render } from "@solidjs/testing-library";
|
|
15
15
|
import { ComposedChart, Line, XAxis } from "../../src";
|
|
16
16
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
17
17
|
import { MockControllerAnimationManager as MockProgressAnimationManager } from "../animation/mockControllerAnimationManager";
|
|
@@ -23,7 +23,7 @@ import { showTooltip } from "../component/Tooltip/tooltipTestHelpers";
|
|
|
23
23
|
import { lineChartMouseHoverTooltipSelector } from "../component/Tooltip/tooltipMouseHoverSelectors";
|
|
24
24
|
import { assertNotNull } from "../helper/assertNotNull";
|
|
25
25
|
import { expectLastCalledWith } from "../helper/expectLastCalledWith";
|
|
26
|
-
import { fireEvent, render } from "
|
|
26
|
+
import { fireEvent, render } from "@solidjs/testing-library";
|
|
27
27
|
|
|
28
28
|
describe("<Line />", () => {
|
|
29
29
|
beforeEach(() => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// range (x1..x2, y1..y2), mapped to pixels through both cartesian scales.
|
|
3
3
|
import { describe, expect, it } from "vitest";
|
|
4
4
|
import { flush } from "solid-js";
|
|
5
|
-
import { render } from "
|
|
5
|
+
import { render } from "@solidjs/testing-library";
|
|
6
6
|
import { LineChart, Line, XAxis, YAxis, ReferenceArea } from "../../src";
|
|
7
7
|
|
|
8
8
|
const data = [
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
import { describe, expect, it, test, vi } from "vitest";
|
|
21
21
|
import { createEffect, createSignal, flush, Show } from "solid-js";
|
|
22
22
|
import type { JSX } from "@solidjs/web";
|
|
23
|
-
import { fireEvent, render, screen } from "
|
|
23
|
+
import { fireEvent, render, screen } from "@solidjs/testing-library";
|
|
24
24
|
import { Bar, BarChart, IfOverflow, LineChart, ReferenceArea, XAxis, YAxis } from "../../src";
|
|
25
25
|
import { useAppSelector } from "../../src/state/hooks";
|
|
26
26
|
import { selectReferenceAreasByAxis } from "../../src/state/selectors/axisSelectors";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { Line, LineChart, ReferenceArea, getRelativeCoordinate } from "../../src";
|
|
3
|
-
import { render } from "
|
|
3
|
+
import { render } from "@solidjs/testing-library";
|
|
4
4
|
|
|
5
5
|
// Ported from recharts 3.8.1 test/cartesian/ReferenceArea.typed.spec.tsx.
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// mapped to pixels through both cartesian scales (CartesianScaleHelperImpl).
|
|
3
3
|
import { describe, expect, it } from "vitest";
|
|
4
4
|
import { flush } from "solid-js";
|
|
5
|
-
import { render } from "
|
|
5
|
+
import { render } from "@solidjs/testing-library";
|
|
6
6
|
import { LineChart, Line, XAxis, YAxis, ReferenceDot } from "../../src";
|
|
7
7
|
|
|
8
8
|
const data = [
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// the React-component `shape` prop-equality case.
|
|
8
8
|
import { describe, expect, it, test, vi } from "vitest";
|
|
9
9
|
import { createEffect, createSignal, flush } from "solid-js";
|
|
10
|
-
import { fireEvent, render } from "
|
|
10
|
+
import { fireEvent, render } from "@solidjs/testing-library";
|
|
11
11
|
import { Bar, BarChart, LineChart, ReferenceDot, XAxis, YAxis } from "../../src";
|
|
12
12
|
import { useAppSelector } from "../../src/state/hooks";
|
|
13
13
|
import { selectReferenceDotsByAxis } from "../../src/state/selectors/axisSelectors";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { type DotProps, Line, LineChart, ReferenceDot, getRelativeCoordinate } from "../../src";
|
|
3
|
-
import { render } from "
|
|
3
|
+
import { render } from "@solidjs/testing-library";
|
|
4
4
|
|
|
5
5
|
// Ported from recharts 3.8.1 test/cartesian/ReferenceDot.typed.spec.tsx.
|
|
6
6
|
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// hook directly in a render body.
|
|
19
19
|
import { describe, expect, it, vi } from "vitest";
|
|
20
20
|
import { createEffect, flush } from "solid-js";
|
|
21
|
-
import { render } from "
|
|
21
|
+
import { render } from "@solidjs/testing-library";
|
|
22
22
|
import { Brush, ComposedChart, Line, LineChart, ReferenceLine, XAxis, YAxis } from "../../../src";
|
|
23
23
|
import { useAppSelector } from "../../../src/state/hooks";
|
|
24
24
|
import { selectAxisRangeWithReverse } from "../../../src/state/selectors/axisSelectors";
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// it is type-incompatible with the kebab LineSVGAttributes and has no effect).
|
|
27
27
|
import { describe, expect, it, test, vi } from "vitest";
|
|
28
28
|
import { createEffect, createSignal, flush, Show } from "solid-js";
|
|
29
|
-
import { fireEvent, render, screen } from "
|
|
29
|
+
import { fireEvent, render, screen } from "@solidjs/testing-library";
|
|
30
30
|
import { Bar, BarChart, Line, LineChart, ReferenceLine, XAxis, YAxis } from "../../../src";
|
|
31
31
|
import { useAppSelector } from "../../../src/state/hooks";
|
|
32
32
|
import { selectReferenceLinesByAxis } from "../../../src/state/selectors/axisSelectors";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from "vitest";
|
|
2
2
|
import { Line, LineChart, ReferenceLine, getRelativeCoordinate } from "../../../src";
|
|
3
|
-
import { render } from "
|
|
3
|
+
import { render } from "@solidjs/testing-library";
|
|
4
4
|
|
|
5
5
|
// Ported from recharts 3.8.1 test/cartesian/ReferenceLine/ReferenceLine.typed.spec.tsx.
|
|
6
6
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// a vertical line at x=category spans the full plot height at that band's x.
|
|
6
6
|
import { describe, expect, it } from "vitest";
|
|
7
7
|
import { flush } from "solid-js";
|
|
8
|
-
import { render } from "
|
|
8
|
+
import { render } from "@solidjs/testing-library";
|
|
9
9
|
import { LineChart, Line, XAxis, YAxis, ReferenceLine } from "../../src";
|
|
10
10
|
|
|
11
11
|
const data = [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
// be reproduced.
|
|
33
33
|
import { beforeEach, describe, expect, it } from "vitest";
|
|
34
34
|
import { createSignal, flush } from "solid-js";
|
|
35
|
-
import { render, fireEvent } from "
|
|
35
|
+
import { render, fireEvent } from "@solidjs/testing-library";
|
|
36
36
|
import { ScatterChart, Scatter, Legend } from "../../src";
|
|
37
37
|
import { AnimationControllerProvider } from "../../src/animation/useAnimationController";
|
|
38
38
|
import { MockControllerAnimationManager as MockProgressAnimationManager } from "../animation/mockControllerAnimationManager";
|