This website requires JavaScript.
Explore
Help
Register
Sign in
PrivateCoffee
/
tldraw
Watch
4
Star
0
Fork
You've already forked tldraw
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
1
c4d9116426
tldraw
/
components
/
code-panel
/
example-code.ts
9 lines
96 B
TypeScript
Raw
Normal View
History
Unescape
Escape
Adds code editing and shape generation
2021-05-15 13:02:13 +00:00
export
default
`
new Circle({
point
:
[
200
,
200
]
,
}
)
adds hit testing for hovers
2021-05-14 22:56:41 +00:00
Adds code editing and shape generation
2021-05-15 13:02:13 +00:00
new
Rectangle
(
{
point
:
[
400
,
300
]
,
}
)
adds hit testing for hovers
2021-05-14 22:56:41 +00:00
`
Reference in a new issue
Copy permalink