panel-operator

This commit is contained in:
StyleZhang
2024-02-28 18:29:12 +08:00
parent 510f0593e9
commit d2d6904c9b
15 changed files with 178 additions and 138 deletions

View File

@ -12,7 +12,6 @@ export const initialNodesPosition = (oldNodes: Node[], edges: Edge[]) => {
const nodes = cloneDeep(oldNodes)
const start = nodes.find(node => node.data.type === BlockEnum.Start)!
start.data.hidden = false
start.position.x = 0
start.position.y = 0
start.data.position = {
@ -38,7 +37,6 @@ export const initialNodesPosition = (oldNodes: Node[], edges: Edge[]) => {
if (outgoers.length) {
queue.push(...outgoers.map((outgoer) => {
outgoer.data.hidden = false
outgoer.data.position = {
x: depth + 1,
y: breadth,