@texturehq/edges 2.6.2 → 3.0.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/dist/index.cjs +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2613,6 +2613,12 @@ interface ChartContainerProps {
|
|
|
2613
2613
|
children: React__default.ReactNode;
|
|
2614
2614
|
parentWidth: number;
|
|
2615
2615
|
parentHeight: number;
|
|
2616
|
+
/**
|
|
2617
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2618
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2619
|
+
* own, and there is deliberately no default to fall back to.
|
|
2620
|
+
*/
|
|
2621
|
+
title: string;
|
|
2616
2622
|
/**
|
|
2617
2623
|
* Y-axis formatter using the main formatting system
|
|
2618
2624
|
* Accepts ComponentFormatter types (string shorthand or full options)
|
|
@@ -2759,7 +2765,7 @@ interface ChartEventMarkersProps {
|
|
|
2759
2765
|
*
|
|
2760
2766
|
* @example
|
|
2761
2767
|
* ```tsx
|
|
2762
|
-
* <ChartContainer>
|
|
2768
|
+
* <ChartContainer title="Device power">
|
|
2763
2769
|
* <AreaSeries data={data} label="Power" />
|
|
2764
2770
|
* <ChartEventMarkers
|
|
2765
2771
|
* events={[
|
|
@@ -2813,7 +2819,7 @@ interface ChartEventSpansProps {
|
|
|
2813
2819
|
*
|
|
2814
2820
|
* @example
|
|
2815
2821
|
* ```tsx
|
|
2816
|
-
* <ChartContainer>
|
|
2822
|
+
* <ChartContainer title="Device power">
|
|
2817
2823
|
* <LineSeries data={data} label="Power" />
|
|
2818
2824
|
* <ChartEventSpans
|
|
2819
2825
|
* spans={[
|
|
@@ -2943,6 +2949,12 @@ interface TiledTimeSeriesChartViewport {
|
|
|
2943
2949
|
interface TiledTimeSeriesChartProps {
|
|
2944
2950
|
/** AreaSeries / LineSeries children. */
|
|
2945
2951
|
children: React__default.ReactNode;
|
|
2952
|
+
/**
|
|
2953
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2954
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2955
|
+
* own, and there is deliberately no default to fall back to.
|
|
2956
|
+
*/
|
|
2957
|
+
title: string;
|
|
2946
2958
|
/** The camera. Drives the x-scale directly, decoupled from the data extent. */
|
|
2947
2959
|
viewport: TiledTimeSeriesChartViewport;
|
|
2948
2960
|
/** Optional clamp for pan gestures. New viewports stay within these bounds. */
|
|
@@ -3222,6 +3234,8 @@ interface TiledTimeSeriesSource {
|
|
|
3222
3234
|
}
|
|
3223
3235
|
interface TiledTimeSeriesExplorerProps {
|
|
3224
3236
|
source: TiledTimeSeriesSource;
|
|
3237
|
+
/** Accessible name for the chart. Forwarded to the underlying tiled chart's SVG `<title>`. */
|
|
3238
|
+
title: string;
|
|
3225
3239
|
initialRange?: {
|
|
3226
3240
|
days: number;
|
|
3227
3241
|
} | undefined;
|
|
@@ -3251,7 +3265,7 @@ interface TiledTimeSeriesExplorerProps {
|
|
|
3251
3265
|
gapMs: number;
|
|
3252
3266
|
}) => ReactNode;
|
|
3253
3267
|
}
|
|
3254
|
-
declare function TiledTimeSeriesExplorer({ source, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3268
|
+
declare function TiledTimeSeriesExplorer({ source, title, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3255
3269
|
|
|
3256
3270
|
interface Filter {
|
|
3257
3271
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -2613,6 +2613,12 @@ interface ChartContainerProps {
|
|
|
2613
2613
|
children: React__default.ReactNode;
|
|
2614
2614
|
parentWidth: number;
|
|
2615
2615
|
parentHeight: number;
|
|
2616
|
+
/**
|
|
2617
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2618
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2619
|
+
* own, and there is deliberately no default to fall back to.
|
|
2620
|
+
*/
|
|
2621
|
+
title: string;
|
|
2616
2622
|
/**
|
|
2617
2623
|
* Y-axis formatter using the main formatting system
|
|
2618
2624
|
* Accepts ComponentFormatter types (string shorthand or full options)
|
|
@@ -2759,7 +2765,7 @@ interface ChartEventMarkersProps {
|
|
|
2759
2765
|
*
|
|
2760
2766
|
* @example
|
|
2761
2767
|
* ```tsx
|
|
2762
|
-
* <ChartContainer>
|
|
2768
|
+
* <ChartContainer title="Device power">
|
|
2763
2769
|
* <AreaSeries data={data} label="Power" />
|
|
2764
2770
|
* <ChartEventMarkers
|
|
2765
2771
|
* events={[
|
|
@@ -2813,7 +2819,7 @@ interface ChartEventSpansProps {
|
|
|
2813
2819
|
*
|
|
2814
2820
|
* @example
|
|
2815
2821
|
* ```tsx
|
|
2816
|
-
* <ChartContainer>
|
|
2822
|
+
* <ChartContainer title="Device power">
|
|
2817
2823
|
* <LineSeries data={data} label="Power" />
|
|
2818
2824
|
* <ChartEventSpans
|
|
2819
2825
|
* spans={[
|
|
@@ -2943,6 +2949,12 @@ interface TiledTimeSeriesChartViewport {
|
|
|
2943
2949
|
interface TiledTimeSeriesChartProps {
|
|
2944
2950
|
/** AreaSeries / LineSeries children. */
|
|
2945
2951
|
children: React__default.ReactNode;
|
|
2952
|
+
/**
|
|
2953
|
+
* Accessible name for the chart, rendered as the SVG `<title>`. Required so
|
|
2954
|
+
* that screen readers announce what each chart shows; every chart needs its
|
|
2955
|
+
* own, and there is deliberately no default to fall back to.
|
|
2956
|
+
*/
|
|
2957
|
+
title: string;
|
|
2946
2958
|
/** The camera. Drives the x-scale directly, decoupled from the data extent. */
|
|
2947
2959
|
viewport: TiledTimeSeriesChartViewport;
|
|
2948
2960
|
/** Optional clamp for pan gestures. New viewports stay within these bounds. */
|
|
@@ -3222,6 +3234,8 @@ interface TiledTimeSeriesSource {
|
|
|
3222
3234
|
}
|
|
3223
3235
|
interface TiledTimeSeriesExplorerProps {
|
|
3224
3236
|
source: TiledTimeSeriesSource;
|
|
3237
|
+
/** Accessible name for the chart. Forwarded to the underlying tiled chart's SVG `<title>`. */
|
|
3238
|
+
title: string;
|
|
3225
3239
|
initialRange?: {
|
|
3226
3240
|
days: number;
|
|
3227
3241
|
} | undefined;
|
|
@@ -3251,7 +3265,7 @@ interface TiledTimeSeriesExplorerProps {
|
|
|
3251
3265
|
gapMs: number;
|
|
3252
3266
|
}) => ReactNode;
|
|
3253
3267
|
}
|
|
3254
|
-
declare function TiledTimeSeriesExplorer({ source, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3268
|
+
declare function TiledTimeSeriesExplorer({ source, title, initialRange, viewportEnd, yFormatter, yDomain, referenceLines, emptyState, presetRanges, tierToWindow, windowSizeOptions, height, hint, dataBounds, children, }: TiledTimeSeriesExplorerProps): react_jsx_runtime.JSX.Element;
|
|
3255
3269
|
|
|
3256
3270
|
interface Filter {
|
|
3257
3271
|
id: string;
|