Feat:鼠标滚轮行为默认改为上下移动画布;改为默认向前滚动放大画布,向后缩小
This commit is contained in:
parent
e59d419708
commit
546cf27b33
@ -56,11 +56,11 @@ export const defaultOpt = {
|
|||||||
// 可以传一个函数,回调参数为事件对象
|
// 可以传一个函数,回调参数为事件对象
|
||||||
customHandleMousewheel: null,
|
customHandleMousewheel: null,
|
||||||
// 鼠标滚动的行为,如果customHandleMousewheel传了自定义函数,这个属性不生效
|
// 鼠标滚动的行为,如果customHandleMousewheel传了自定义函数,这个属性不生效
|
||||||
mousewheelAction: CONSTANTS.MOUSE_WHEEL_ACTION.ZOOM, // zoom(放大缩小)、move(上下移动)
|
mousewheelAction: CONSTANTS.MOUSE_WHEEL_ACTION.MOVE, // zoom(放大缩小)、move(上下移动)
|
||||||
// 当mousewheelAction设为move时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位px
|
// 当mousewheelAction设为move时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位px
|
||||||
mousewheelMoveStep: 100,
|
mousewheelMoveStep: 100,
|
||||||
// 当mousewheelAction设为zoom时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来
|
// 当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来
|
||||||
mousewheelZoomActionReverse: false,
|
mousewheelZoomActionReverse: true,
|
||||||
// 默认插入的二级节点的文字
|
// 默认插入的二级节点的文字
|
||||||
defaultInsertSecondLevelNodeText: '二级节点',
|
defaultInsertSecondLevelNodeText: '二级节点',
|
||||||
// 默认插入的二级以下节点的文字
|
// 默认插入的二级以下节点的文字
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user