Closed xujinglong2021 closed 8 months ago
Hi! we don't exactly have an exact event for that but you can achieve the same thing using onPatch(app, patch, reason)
<Tldraw onPatch={(app, patch) => {
// if the status is pointingBounds that mean the user is clicking a shape
if(patch.appState.status === "pointingBounds") {
// do what you want here
}
}} />
Hi! we don't exactly have an exact event for that but you can achieve the same thing using
onPatch(app, patch, reason)
<Tldraw onPatch={(app, patch) => { // if the status is pointingBounds that mean the user is clicking a shape if(patch.appState.status === "pointingBounds") { // do what you want here } }} />
Wow, so nice of you!
I'm using @tldraw/tldraw. I would like to know which event will be triggered when a user clicks a shape. I would appreciate it if you could post a piece of code.