feat(slots): Add node and edge renderer slots

* more flexibility by having the ability to use the node/edge-renderer and wrapper
* export renderer and wrapper from lib entry

Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
Braks
2021-11-21 12:34:28 +01:00
parent 39b21faa5b
commit da29a613f0
5 changed files with 65 additions and 54 deletions
+2 -1
View File
@@ -181,7 +181,8 @@ store.dimensions = {
height: height.value,
}
await until(() => store.isReady).toBe(true)
// skip waiting for ssr
if (import.meta.env.SSR || typeof window === 'undefined') await until(() => store.isReady)
watch(
[width, height],