Skip to content

Commit

Permalink
feat(types): improve CanvasProps
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 6, 2020
1 parent 9075b46 commit 2ab3195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/CanvasProps.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export interface CanvasLineProps extends CanvasCommonProps {
* @see https://f2.antv.vision/zh/docs/api/canvas#%E6%96%87%E6%9C%AC%E5%B1%9E%E6%80%A7
*/
export interface CanvasTextProps extends CanvasCommonProps {
textAlign?: 'center';
textBaseline?: 'top';
textAlign?: 'start' | 'center' | 'end';
textBaseline?: 'top' | 'middle' | 'bottom';
fontStyle?: 'normal' | 'italic' | 'oblique';
fontSize?: number;
fontFamily?: string;
Expand Down

0 comments on commit 2ab3195

Please sign in to comment.