Skip to content

Commit 7940492

Browse files
author
iexitdev
committed
Align Pro doc stub types with examples
1 parent 837a2ec commit 7940492

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

apps/site/src/previews/proStub.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ type CandlebarRangeSelectorConfig = {
3434
visible?: boolean;
3535
};
3636

37+
type CandlebarViewport = {
38+
endIndex: number;
39+
startIndex: number;
40+
};
41+
3742
type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
3843
ProChartBaseProps<TData> & {
3944
accessibilityLabel?: string;
@@ -43,6 +48,9 @@ type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
4348
highKey?: string;
4449
interaction?:
4550
| boolean
51+
| "crosshair"
52+
| "none"
53+
| "tap"
4654
| {
4755
activation?: "longPress" | "tap";
4856
deselectOnOutsidePress?: boolean;
@@ -60,6 +68,7 @@ type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
6068
}) => void;
6169
};
6270
lowKey?: string;
71+
onViewportChange?: (event: { viewport: CandlebarViewport }) => void;
6372
openKey?: string;
6473
rangeSelector?: boolean | CandlebarRangeSelectorConfig;
6574
selectedIndex?: number;
@@ -69,6 +78,7 @@ type CandlebarChartProps<TData extends ChartDatum = ChartDatum> =
6978
tooltip?: boolean;
7079
volumeHeightRatio?: number;
7180
volumeKey?: string;
81+
viewport?: CandlebarViewport;
7282
yDomain?: [number, number];
7383
yTickCount?: number;
7484
};

0 commit comments

Comments
 (0)