feat(svelte): add group node

This commit is contained in:
moklick
2023-10-11 11:17:15 +02:00
parent 77f059a078
commit 0cfecc823f
2 changed files with 8 additions and 1 deletions
@@ -0,0 +1,5 @@
<script lang="ts">
import { type NodeProps } from '@xyflow/system';
interface $$Props extends NodeProps<{}> {}
</script>
@@ -20,6 +20,7 @@ import {
import DefaultNode from '$lib/components/nodes/DefaultNode.svelte';
import InputNode from '$lib/components/nodes/InputNode.svelte';
import OutputNode from '$lib/components/nodes/OutputNode.svelte';
import GroupNode from '$lib/components/nodes/GroupNode.svelte';
import BezierEdge from '$lib/components/edges/BezierEdge.svelte';
import StraightEdge from '$lib/components/edges/StraightEdge.svelte';
import SmoothStepEdge from '$lib/components/edges/SmoothStepEdge.svelte';
@@ -31,7 +32,8 @@ import { initConnectionProps, type ConnectionProps } from './derived-connection-
export const initialNodeTypes = {
input: InputNode,
output: OutputNode,
default: DefaultNode
default: DefaultNode,
group: GroupNode
};
export const initialEdgeTypes = {