feat(web): 实现循环节点中新增节点
This commit is contained in:
@@ -126,7 +126,7 @@ export const useNodeDrag = (deps: DependencyList) => {
|
||||
if (parentNode) {
|
||||
let newPosition = {
|
||||
x: max(min(node.position.x, (parentNode.measured?.width ?? 0) - (node.measured?.width ?? 0) - 28), 28),
|
||||
y: max(min(node.position.y, (parentNode.measured?.height ?? 0) - (node.measured?.height ?? 0) - 28), 90),
|
||||
y: max(min(node.position.y, (parentNode.measured?.height ?? 0) - (node.measured?.height ?? 0) - 28), 130),
|
||||
}
|
||||
setNode({
|
||||
...node,
|
||||
|
||||
Reference in New Issue
Block a user