13ef8be58d
This PR cleans up some APIs around the editor's current page state: - `setEditingShapeId` -> `setEditingShape` - `setHoveredShapeId` -> `setHoveredShape` - `setCroppingShapeId` -> `setCroppingShape` - `setFocusedGroupId` -> `setFocusedGroup` - `setErasingShapeIds` -> `setErasingShapes` - `setHintingShapeIds` -> `setHintingShapes` It also adds some additional computed getters, e.g. `Editor.croppingShape`. It also adds some errors around `setCroppingShape`. ### Change Type - [x] `major` — Breaking change ### Test Plan - [x] Unit Tests |
||
---|---|---|
.. | ||
src | ||
api-extractor.json | ||
api-report.md | ||
CHANGELOG.md | ||
editor.css | ||
LICENSE | ||
package.json | ||
README.md | ||
setupTests.js | ||
tsconfig.json |
tldraw/tldraw
Benchmark
To run the benchmarks
yarn workspace @tldraw/tldraw benchmark
Or
yarn workspace @tldraw/tldraw benchmark "file_search_string"