Skip to content

Commit

Permalink
docs(review): interaction.zh.md doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dxq613 authored and simaQ committed Mar 18, 2020
1 parent cf252e3 commit 43eab94
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions docs/manual/tutorial/interaction.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,16 @@ function isWheelDown(event) {
}
registerInteraction('view-zoom', {
start: [
{ trigger: 'plot:mousewheel', isEnable(context) {
return isWheelDown(context.event);
}, action: 'scale-zoom:zoomOut', throttle: {wait: 100, leading: true, trailing: false} },
{ trigger: 'plot:mousewheel',isEnable(context) {
return !isWheelDown(context.event);
}, action: 'scale-zoom:zoomIn', throttle: {wait: 100, leading: true, trailing: false} }
{
trigger: 'plot:mousewheel', isEnable(context) {
return isWheelDown(context.event);
}, action: 'scale-zoom:zoomOut', throttle: { wait: 100, leading: true, trailing: false }
},
{
trigger: 'plot:mousewheel', isEnable(context) {
return !isWheelDown(context.event);
}, action: 'scale-zoom:zoomIn', throttle: { wait: 100, leading: true, trailing: false }
}
]
});
```
Expand Down Expand Up @@ -619,7 +623,7 @@ Chart 和 View 上的 Action 用户控制视图的变化,目前支持的有:
- scale-translate
- scale-zoom

### move
### view-move

用于移动 View 的位置,支持以下几个方法:
- start() 开始移动
Expand Down

0 comments on commit 43eab94

Please sign in to comment.