example
This commit is contained in:
parent
de7de98ee8
commit
59ab53a8f7
|
|
@ -1,5 +1,5 @@
|
||||||
import { type DocHandle } from "@automerge/automerge-repo"
|
import { type DocHandle } from "@automerge/automerge-repo"
|
||||||
import { type TLStoreSnapshot, Tldraw, track, useEditor } from "@tldraw/tldraw"
|
import { type TLStoreSnapshot, Tldraw, defaultShapeUtils, track, useEditor } from "@tldraw/tldraw"
|
||||||
import "@tldraw/tldraw/tldraw.css"
|
import "@tldraw/tldraw/tldraw.css"
|
||||||
|
|
||||||
import { useAutomergeStore } from "./useAutomergeStore"
|
import { useAutomergeStore } from "./useAutomergeStore"
|
||||||
|
|
@ -13,7 +13,7 @@ export function TLDrawAutomergeExample({
|
||||||
handle,
|
handle,
|
||||||
userId,
|
userId,
|
||||||
}: TLDrawAutomergeExampleProps) {
|
}: TLDrawAutomergeExampleProps) {
|
||||||
const store = useAutomergeStore({ handle, userId })
|
const store = useAutomergeStore({ handle, userId, shapeUtils: [...defaultShapeUtils, ...customShapeUtils] })
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="tldraw__editor">
|
<div className="tldraw__editor">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue