feat: offload parsing elements to worker
* when we're not in ssr environment we use a web worker to parse the elements as this blocks the main thread when there's a good amount of nodes/edges to parse * when in ssr we don't really care about the main thread blocking so we just parse them like usual * update vite to latest Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -46,9 +46,13 @@ onMounted(() => {
|
||||
}
|
||||
})
|
||||
|
||||
useKeyPress(props.multiSelectionKeyCode, (keyPressed) => (store.multiSelectionActive = keyPressed))
|
||||
useKeyPress(props.multiSelectionKeyCode, (keyPressed) => {
|
||||
store.multiSelectionActive = keyPressed
|
||||
})
|
||||
|
||||
useKeyPress(props.selectionKeyCode, (keyPressed) => (selectionKeyPresed.value = keyPressed))
|
||||
useKeyPress(props.selectionKeyCode, (keyPressed) => {
|
||||
selectionKeyPresed.value = keyPressed
|
||||
})
|
||||
})
|
||||
const userSelection = computed(() => selectionKeyPresed.value && (store.selectionActive || store.elementsSelectable))
|
||||
const nodesSelectionActive = computed(() => store.nodesSelectionActive)
|
||||
|
||||
Reference in New Issue
Block a user