Fix ExplodedExample.tsx (#2068)
Previous implementation was incorrect, causing the following bug: ![image](https://github.com/tldraw/tldraw/assets/26308297/03f2a996-dd58-4864-8f89-8e7af2ecca69) ### Change Type - [] `patch` — Bug fix - [ ] `minor` — New feature - [ ] `major` — Breaking change - [ ] `dependencies` — Changes to package dependencies[^1] - [ ] `documentation` — Changes to the documentation only[^2] - [ ] `tests` — Changes to any test code only[^2] - [x] `internal` — Any other changes that don't affect the published package[^2] - [ ] I don't know --------- Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
This commit is contained in:
parent
8f1850785e
commit
981ef61810
1 changed files with 2 additions and 1 deletions
|
@ -3,6 +3,7 @@ import {
|
||||||
ContextMenu,
|
ContextMenu,
|
||||||
TldrawEditor,
|
TldrawEditor,
|
||||||
TldrawUi,
|
TldrawUi,
|
||||||
|
defaultShapeTools,
|
||||||
defaultShapeUtils,
|
defaultShapeUtils,
|
||||||
defaultTools,
|
defaultTools,
|
||||||
} from '@tldraw/tldraw'
|
} from '@tldraw/tldraw'
|
||||||
|
@ -14,7 +15,7 @@ export default function ExplodedExample() {
|
||||||
<TldrawEditor
|
<TldrawEditor
|
||||||
initialState="select"
|
initialState="select"
|
||||||
shapeUtils={defaultShapeUtils}
|
shapeUtils={defaultShapeUtils}
|
||||||
tools={defaultTools}
|
tools={[...defaultTools, ...defaultShapeTools]}
|
||||||
persistenceKey="exploded-example"
|
persistenceKey="exploded-example"
|
||||||
>
|
>
|
||||||
<TldrawUi>
|
<TldrawUi>
|
||||||
|
|
Loading…
Reference in a new issue