7b03ef9d0c
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 - [x] `patch` — Bug fix ### Test Plan Tested locally ### Release Notes n/a |
||
---|---|---|
.. | ||
docs | ||
examples | ||
vscode |