Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapes folder, move tools into shape defs #1574

Merged
merged 6 commits into from
Jun 12, 2023
Merged

Conversation

SomeHats
Copy link
Contributor

This diff adds a new property to defineShape: tool.

The tool prop allows shapes to bring a tool along with them as part of their definition. E.g. the draw shape isn't much use without the draw tool, so adding the draw shape to your app gives you the draw tool tool.

As part of this, i renamed the shapeutils folder to just shapes, and moved a bunch of shape-specific tools from the tools folder into the shapes folder. This more closely reflects how things will be once we move our default shapes out of core for tldraw-zero.

Change Type

  • patch — Bug fix

Test Plan

Tested locally

Release Notes

n/a

@huppy-bot huppy-bot bot added the bugfix Bug fix label Jun 12, 2023
@vercel
Copy link

vercel bot commented Jun 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
examples ✅ Ready (Inspect) Visit Preview Jun 12, 2023 3:40pm
tldraw-docs-staging ✅ Ready (Inspect) Visit Preview Jun 12, 2023 3:40pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant