feat: Add node/edge types id

* ID can be used to switch between different types of nodes/edges
* Add example
This commit is contained in:
Braks
2021-10-22 08:49:53 +02:00
parent 26b3901bd5
commit 0a45e09c32
6 changed files with 87 additions and 3 deletions
+6
View File
@@ -0,0 +1,6 @@
<script lang="ts" setup>
const props = defineProps<{ nodeStyles: Record<string, any> }>()
</script>
<template>
<div :style="props.nodeStyles">B</div>
</template>