Skip to content

Commit

Permalink
Merge pull request #1546 from FormidableLabs/task/voronoi-primitive-t…
Browse files Browse the repository at this point in the history
…ypescript-props

Add Voronoi primitive component DefinitelyTyped props
  • Loading branch information
maddles authored Apr 30, 2020
2 parents 594e96f + 44ceece commit c622975
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/victory-voronoi/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
EventPropTypeInterface,
StringOrNumberOrCallback,
VictoryCommonProps,
VictoryCommonPrimitiveProps,
VictoryDatableProps,
VictoryLabelableProps,
VictoryMultiLabelableProps,
Expand All @@ -22,4 +23,19 @@ export interface VictoryVoronoiProps
style?: VictoryStyleInterface;
}

export interface VoronoiProps extends VictoryCommonPrimitiveProps {
circleComponent?: React.ReactElement;
clipId?: number | string;
clipPathComponent?: React.ReactElement;
datum?: any;
groupComponent?: React.ReactElement;
pathComponent?: React.ReactElement;
polygon?: [];
size?: number;
x?: number;
y?: number;
}

export class VictoryVoronoi extends React.Component<VictoryVoronoiProps, any> {}

export class Voronoi extends React.Component<VoronoiProps, any> {}

0 comments on commit c622975

Please sign in to comment.