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