mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(stage): 多选时禁止拖出边界
This commit is contained in:
parent
c949590f80
commit
edf66cc076
@ -244,6 +244,15 @@ export default class StageMultiDragResize extends EventEmitter {
|
|||||||
zoom: 1,
|
zoom: 1,
|
||||||
origin: true,
|
origin: true,
|
||||||
padding: { left: 0, top: 0, right: 0, bottom: 0 },
|
padding: { left: 0, top: 0, right: 0, bottom: 0 },
|
||||||
|
snappable: true,
|
||||||
|
bounds: {
|
||||||
|
top: 0,
|
||||||
|
// 设置0的话无法移动到left为0,所以只能设置为-1
|
||||||
|
left: -1,
|
||||||
|
right: this.container.clientWidth - 1,
|
||||||
|
bottom: this.container.clientHeight,
|
||||||
|
...(multiMoveableOptions.bounds || {}),
|
||||||
|
},
|
||||||
...options,
|
...options,
|
||||||
...multiMoveableOptions,
|
...multiMoveableOptions,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user