mirror of
https://github.com/vcscsvcscs/GenerationsHeritage.git
synced 2025-08-12 22:09:07 +02:00
add on mount to solve issues with func call before load
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import dagre from '@dagrejs/dagre';
|
||||
import { Position, type Node, type Edge } from '@xyflow/svelte';
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
const dagreGraph = new dagre.graphlib.Graph();
|
||||
dagreGraph.setDefaultEdgeLabel(() => ({}));
|
||||
onMount(() => {
|
||||
dagreGraph.setDefaultEdgeLabel(() => ({}));
|
||||
});
|
||||
|
||||
const nodeWidth = 250;
|
||||
const nodeHeight = 250;
|
||||
|
Reference in New Issue
Block a user