tldraw/apps/examples/src
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
..
components ShapeUtil.getGeometry, selection rewrite (#1751) 2023-07-25 16:10:15 +00:00
examples [feature] Things on the canvas (#2150) 2023-11-07 09:27:20 +00:00
icons New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
BasicExample.tsx Remove focus management (#1953) 2023-10-02 11:29:54 +00:00
index.html New vite-based examples app (#1226) 2023-05-05 13:10:36 +00:00
index.tsx [feature] Things on the canvas (#2150) 2023-11-07 09:27:20 +00:00
styles.css [internal] Add basic list to examples (#1688) 2023-07-05 14:07:28 +00:00