Skip to content

Commit

Permalink
fix: region types for g2
Browse files Browse the repository at this point in the history
  • Loading branch information
thonatos authored Jul 13, 2021
1 parent 4838e89 commit 640fa91
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,14 @@ export interface IViewProps extends React.ComponentPropsWithRef<any> {
padding?: ViewPadding;
/** view 的绘制范围,起始点为左上角。 */
region?: {
start?: number | string;
end?: number | string;
start?: {
x: number | string;
y: number | string;
};
end?: {
x: number | string;
y: number | string;
};
};
/**
* @memberof IView
Expand Down

0 comments on commit 640fa91

Please sign in to comment.