Skip to content

Commit 1569112

Browse files
authoredMar 19, 2021
Merge pull request #1807 from aknaut/add-handle-width-to-brush-props
add handleWidth to VictoryBrushContainer interface
2 parents f282255 + 4956f87 commit 1569112

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
 

‎demo/js/components/victory-brush-container-demo.js

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ class App extends React.Component {
318318
<VictoryBrushContainer
319319
brushDomain={{ y: [-3, 3] }}
320320
brushComponent={<rect style={{ fill: "teal" }} />}
321+
handleWidth={1}
322+
handleStyle={{ stroke: "black", fill: "black" }}
321323
/>
322324
}
323325
data={[

‎demo/ts/components/victory-brush-container-demo.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ export default class VictoryBrushContainerDemo extends React.Component<
328328
<VictoryBrushContainer
329329
brushDomain={{ y: [-3, 3] }}
330330
brushComponent={<rect style={{ fill: "teal" }} />}
331+
handleWidth={1}
332+
handleStyle={{ stroke: "black", fill: "black" }}
331333
/>
332334
}
333335
data={[

‎packages/victory-brush-container/src/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface VictoryBrushContainerProps extends VictoryContainerProps {
1212
disable?: boolean;
1313
handleComponent?: React.ReactElement;
1414
handleStyle?: React.CSSProperties;
15+
handleWidth?: number;
1516
onBrushCleared?: (
1617
domain: { x: DomainTuple; y: DomainTuple },
1718
props: VictoryBrushContainerProps

0 commit comments

Comments
 (0)