mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
fix: improve graph rendering performances
This commit is contained in:
@@ -183,8 +183,9 @@
|
||||
}
|
||||
}
|
||||
|
||||
const sortedNewNodes = clone(nodes)
|
||||
const sortedNewNodes = nodes
|
||||
.filter((n) => n.type !== 'asset')
|
||||
.map((n) => ({ id: n.id, position: $state.snapshot(n.position) }))
|
||||
.sort((a, b) => a.position.y - b.position.y)
|
||||
let currentYOffset = 0
|
||||
let prevYPos = NaN
|
||||
@@ -234,7 +235,6 @@
|
||||
import { MessageCircle, Play, Wrench, X } from 'lucide-svelte'
|
||||
import { twMerge } from 'tailwind-merge'
|
||||
import { getContext } from 'svelte'
|
||||
import { clone } from '$lib/utils'
|
||||
import type { Edge, Node } from '@xyflow/svelte'
|
||||
|
||||
import type { Writable } from 'svelte/store'
|
||||
|
||||
Reference in New Issue
Block a user