Skip to content

Commit

Permalink
feat(types): add ScrollBar
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jul 6, 2020
1 parent 253ba56 commit 9f0e2a3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
21 changes: 21 additions & 0 deletions types/ScrollBar.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { CanvasProps } from './CanvasProps';

/**
* 进度条参数。
*/
export interface ScrollBarParams {
/**
* 用于确定进度条的渲染方向。
*/
mode?: 'x' | 'y' | 'xy';

/**
* 用于设置 x 轴方向进度条的样式。
*/
xStyle?: CanvasProps;

/**
* 用于设置 y 轴方向进度条的样式。
*/
yStyle?: CanvasProps;
}
2 changes: 2 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import {
InteractionParams,
} from './Interaction';
import { GestureParams } from './Gesture';
import { ScrollBarParams } from './ScrollBar';

declare namespace F2 {
export {
Expand Down Expand Up @@ -148,6 +149,7 @@ declare namespace F2 {
InteractionSwipeParams,
InteractionParams,
GestureParams,
ScrollBarParams,
};
}

Expand Down

0 comments on commit 9f0e2a3

Please sign in to comment.