tldraw/packages/editor
Steve Ruiz 1367e4c500
[feature] Things on the canvas (#2150)
This PR adds two new component overrides to the editor's `components`
slot. They are:

- `<OnTheCanvas/>`, which renders inside of the html layer that scales
and translates with the camera
- `<InFrontOfTheCanvas/>`, which renders in front of the canvas but
behind any UI elements, and which does not scale / pan with the camera.

![Kapture 2023-11-06 at 12 19
15](https://github.com/tldraw/tldraw/assets/23072548/51c0421d-8b39-48b5-9b8a-c717253c3423)

### Change Type

- [x] `minor` — New feature

### Test Plan

1. See the "on the canvas" example.

### Release Notes

- [editor] Adds two new components, `OnTheCanvas` and
`InFrontOfTheCanvas`.
2023-11-07 09:27:20 +00:00
..
api [feature] Things on the canvas (#2150) 2023-11-07 09:27:20 +00:00
src [feature] Things on the canvas (#2150) 2023-11-07 09:27:20 +00:00
api-extractor.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
api-report.md [feature] Things on the canvas (#2150) 2023-11-07 09:27:20 +00:00
CHANGELOG.md Update CHANGELOG.md [skip ci] 2023-10-17 14:39:34 +00:00
editor.css Tighten up editor ui (#2102) 2023-10-28 21:58:32 +00:00
LICENSE transfer-out: transfer out 2023-04-25 12:01:25 +01:00
package.json bump prerelease from alpha to beta (#2148) 2023-11-06 11:57:12 +00:00
README.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
setupTests.js Styles API follow-ups (#1636) 2023-06-24 13:46:04 +00:00
tsconfig.json tldraw zero - package shuffle (#1710) 2023-07-17 21:22:34 +00:00

tldraw/tldraw

Benchmark

To run the benchmarks

yarn workspace @tldraw/tldraw benchmark

Or

yarn workspace @tldraw/tldraw benchmark "file_search_string"