29044867dd
This PR adds the docs app back into the tldraw monorepo. ## Deploying We'll want to update our deploy script to update the SOURCE_SHA to the newest release sha... and then deploy the docs pulling api.json files from that release. We _could_ update the docs on every push to main, but we don't have to unless something has changed. Right now there's no automated deployments from this repo. ## Side effects To make this one work, I needed to update the lock file. This might be ok (new year new lock file), and everything builds as expected, though we may want to spend some time with our scripts to be sure that things are all good. I also updated our prettier installation, which decided to add trailing commas to every generic type. Which is, I suppose, [correct behavior](https://github.com/prettier/prettier-vscode/issues/955)? But that caused diffs in every file, which is unfortunate. ### Change Type - [x] `internal` — Any other changes that don't affect the published package[^2]
105 lines
5.4 KiB
Text
105 lines
5.4 KiB
Text
---
|
|
title: v2.0.0-alpha.16
|
|
description: Examples
|
|
author: tldraw
|
|
date: 10/11/2023
|
|
order: 5
|
|
status: published
|
|
---
|
|
|
|
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-alpha.16)
|
|
|
|
#### Fix shape opacity when erasing ([#2055](https://github.com/tldraw/tldraw/pull/2055))
|
|
|
|
- Fixes opacity of shapes while erasing in a group or frame.
|
|
|
|
#### [fix] Hit testing against zero width / height lines ([#2060](https://github.com/tldraw/tldraw/pull/2060))
|
|
|
|
- [fix] Bug where arrows would not bind to straight lines
|
|
|
|
#### Fix opacity lowering on shapes that cannot be deleted ([#2061](https://github.com/tldraw/tldraw/pull/2061))
|
|
|
|
- Locked shapes don't change opacity when scribble erasing.
|
|
|
|
Before/after:
|
|
|
|
<image
|
|
width="250"
|
|
src="https://github.com/tldraw/tldraw/assets/98838967/763a93eb-ffaa-405c-9255-e68ba88ed9a2"
|
|
/>
|
|
|
|
<image
|
|
width="250"
|
|
src="https://github.com/tldraw/tldraw/assets/98838967/dc9d3f77-c1c5-40f2-a9fe-10c723b6a21c"
|
|
/>
|
|
|
|
#### fix: proper label for opacity tooltip on hover ([#2044](https://github.com/tldraw/tldraw/pull/2044))
|
|
|
|
- Add a brief release note for your PR here.
|
|
|
|
#### Fix alt + shift keyboard shortcuts ([#2053](https://github.com/tldraw/tldraw/pull/2053))
|
|
|
|
- Fixes keyboard shortcuts that use `alt` and `shift` modifiers.
|
|
|
|
#### [improvement] Scope `getShapeAtPoint` to rendering shapes only ([#2043](https://github.com/tldraw/tldraw/pull/2043))
|
|
|
|
- Improve perf for hovering shapes / shape hit tests
|
|
|
|
#### Remove topBar prop from `<TldrawUi />` ([#2018](https://github.com/tldraw/tldraw/pull/2018))
|
|
|
|
- [BREAKING] removed topBar prop
|
|
|
|
---
|
|
|
|
#### 🚀 Enhancement
|
|
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- [improvement] Scope `getShapeAtPoint` to rendering shapes only [#2043](https://github.com/tldraw/tldraw/pull/2043) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/tldraw`, `@tldraw/tlschema`
|
|
- Remove dot com ui styles [1/2] [#2039](https://github.com/tldraw/tldraw/pull/2039) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/editor`, `@tldraw/tlschema`
|
|
- prevent hover indicator from showing when pointer isn't over the canvas [#2023](https://github.com/tldraw/tldraw/pull/2023) ([@SomeHats](https://github.com/SomeHats))
|
|
- `@tldraw/tldraw`
|
|
- Remove topBar prop from `<TldrawUi />` [#2018](https://github.com/tldraw/tldraw/pull/2018) ([@SomeHats](https://github.com/SomeHats))
|
|
|
|
#### 🐛 Bug Fix
|
|
|
|
- fix standalone examples [#2042](https://github.com/tldraw/tldraw/pull/2042) ([@SomeHats](https://github.com/SomeHats))
|
|
- `@tldraw/editor`
|
|
- Fix shape opacity when erasing [#2055](https://github.com/tldraw/tldraw/pull/2055) ([@ds300](https://github.com/ds300))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- [fix] Hit testing against zero width / height lines [#2060](https://github.com/tldraw/tldraw/pull/2060) ([@steveruizok](https://github.com/steveruizok))
|
|
- Fix newlines in text geo shapes [#2059](https://github.com/tldraw/tldraw/pull/2059) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) [@steveruizok](https://github.com/steveruizok))
|
|
- Restore background [#2037](https://github.com/tldraw/tldraw/pull/2037) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/tldraw`
|
|
- Fix opacity lowering on shapes that cannot be deleted [#2061](https://github.com/tldraw/tldraw/pull/2061) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
|
- fix: proper label for opacity tooltip on hover [#2044](https://github.com/tldraw/tldraw/pull/2044) ([@Prince-Mendiratta](https://github.com/Prince-Mendiratta))
|
|
- Fix alt + shift keyboard shortcuts [#2053](https://github.com/tldraw/tldraw/pull/2053) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- [fix] Stylepanel default spacing [#2036](https://github.com/tldraw/tldraw/pull/2036) ([@steveruizok](https://github.com/steveruizok))
|
|
- Export tools [#2035](https://github.com/tldraw/tldraw/pull/2035) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/tlschema`
|
|
- [fix] Page state migration [#2040](https://github.com/tldraw/tldraw/pull/2040) ([@steveruizok](https://github.com/steveruizok))
|
|
- [fix] migrations for page state [#2038](https://github.com/tldraw/tldraw/pull/2038) ([@steveruizok](https://github.com/steveruizok))
|
|
|
|
#### 🏠 Internal
|
|
|
|
- Move example into examples folder [#2064](https://github.com/tldraw/tldraw/pull/2064) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/tlschema`
|
|
- [fix] broken docs link [#2062](https://github.com/tldraw/tldraw/pull/2062) ([@steveruizok](https://github.com/steveruizok))
|
|
- Remove fixup script [#2041](https://github.com/tldraw/tldraw/pull/2041) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
|
- Publish api.json [#2034](https://github.com/tldraw/tldraw/pull/2034) ([@steveruizok](https://github.com/steveruizok))
|
|
|
|
#### 🧪 Tests
|
|
|
|
- re-enable visual regression tests [#2056](https://github.com/tldraw/tldraw/pull/2056) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
|
|
|
#### Authors: 7
|
|
|
|
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
|
- alex ([@SomeHats](https://github.com/SomeHats))
|
|
- David Sheldrick ([@ds300](https://github.com/ds300))
|
|
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Prince Mendiratta ([@Prince-Mendiratta](https://github.com/Prince-Mendiratta))
|
|
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
|
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|