mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
feat(stage): 组件对齐不准确,暂时去掉
This commit is contained in:
parent
7f3d6c5438
commit
cb4304b6eb
@ -358,18 +358,25 @@ export default class StageDragResize extends EventEmitter {
|
||||
}
|
||||
|
||||
return {
|
||||
scrollable: true,
|
||||
origin: true,
|
||||
zoom: 1,
|
||||
dragArea: true,
|
||||
dragArea: false,
|
||||
draggable: true,
|
||||
resizable: true,
|
||||
snappable: isAbsolute,
|
||||
snapGap: isAbsolute,
|
||||
snapDirections: { center: isAbsolute, middle: isAbsolute },
|
||||
elementSnapDirections: { center: isAbsolute, middle: isAbsolute },
|
||||
|
||||
elementGuidelines: isAbsolute ? await this.getSnapElements(this.target) : [],
|
||||
snapThreshold: 5,
|
||||
snapDigit: 0,
|
||||
throttleDrag: 0,
|
||||
isDisplaySnapDigit: isAbsolute,
|
||||
snapDirections: {
|
||||
top: isAbsolute,
|
||||
right: isAbsolute,
|
||||
bottom: isAbsolute,
|
||||
left: isAbsolute,
|
||||
center: isAbsolute,
|
||||
middle: isAbsolute,
|
||||
},
|
||||
horizontalGuidelines: this.horizontalGuidelines,
|
||||
verticalGuidelines: this.verticalGuidelines,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user