Skip to content

Commit

Permalink
feat(stage): 组件对齐不准确,暂时去掉
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen authored and khuntoriia committed Mar 31, 2022
1 parent 7f3d6c5 commit cb4304b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packages/stage/src/StageDragResize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Expand Down

0 comments on commit cb4304b

Please sign in to comment.