3ae48af67c
This PR starts putting in place the high-level changes we want to make to the docs site. - It makes separate sections for Reference and Examples and Community. - Gets rid of the secondary sidebar and integrates it into the main sidebar. - Groups the reference articles by type. - Pulls in the examples alongside code and a live playground so people don't have to visit examples.tldraw.com separately. <img width="1458" alt="Screenshot 2024-01-30 at 09 43 46" src="https://github.com/tldraw/tldraw/assets/469604/4f5aa339-3a69-4d9b-9b9f-dfdddea623e8"> Again, this is the top-level changes and there's more to be done for the next PR(s): - create quick start page - clean up installation page - add accordion to Examples page prbly - put fun stuff in header (from footer) - landing page - something for landing page of API - search cmd-k and border - cleanup _sidebarReferenceContentLinks - external links _blank - address potential skew issue with code examples - have a link to other examples (next.js, etc.) ### Change Type - [x] `documentation` — Changes to the documentation only[^2] ### Test Plan 1. Make sure examples work! ### Release Notes - Rework our docs site to pull together the examples app and reference section more cohesively. --------- Co-authored-by: Taha <98838967+Taha-Hassan-Git@users.noreply.github.com> Co-authored-by: Steve Ruiz <steveruizok@gmail.com> Co-authored-by: Mitja Bezenšek <mitja.bezensek@gmail.com> Co-authored-by: alex <alex@dytry.ch> Co-authored-by: Lu Wilson <l2wilson94@gmail.com> Co-authored-by: Dan Groshev <git@dgroshev.com>
152 lines
No EOL
7.9 KiB
Text
152 lines
No EOL
7.9 KiB
Text
---
|
|
title: v2.0.0-beta.1
|
|
description: Examples
|
|
author: tldraw
|
|
date: 12/20/2023
|
|
order: 1
|
|
status: published
|
|
---
|
|
|
|
[View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-beta.1)
|
|
|
|
|
|
#### add speech bubble example ([#2362](https://github.com/tldraw/tldraw/pull/2362))
|
|
|
|
- Add an example for making a custom shape with handles, this one is a speech bubble with a movable tail.
|
|
|
|
#### Fix clicking off the context menu ([#2355](https://github.com/tldraw/tldraw/pull/2355))
|
|
|
|
- Fix not being able to close the context menu by clicking on the UI or your selected shape.
|
|
|
|
#### fix read only page menu ([#2356](https://github.com/tldraw/tldraw/pull/2356))
|
|
|
|
- Add a brief release note for your PR here.
|
|
|
|
#### refactor: Keep hook function convention the same ([#2358](https://github.com/tldraw/tldraw/pull/2358))
|
|
|
|
- Add a brief release note for your PR here.
|
|
|
|
#### focus on container before deleting to avoid losing focus ([#2354](https://github.com/tldraw/tldraw/pull/2354))
|
|
|
|
- Prevents losing focus when clicking the trash button
|
|
|
|
#### Stop shape text labels being hoverable when context menu is open ([#2352](https://github.com/tldraw/tldraw/pull/2352))
|
|
|
|
- Add a brief release note for your PR here.
|
|
|
|
#### Use custom font ([#2343](https://github.com/tldraw/tldraw/pull/2343))
|
|
|
|
- Add a brief release note for your PR here.
|
|
|
|
#### Only allow side resizing when we have some shapes that are not aspect ratio locked ([#2347](https://github.com/tldraw/tldraw/pull/2347))
|
|
|
|
- Don't allow edges resizing on mobile. The only exception is a single text shape.
|
|
|
|
#### Fix iconleft padding ([#2345](https://github.com/tldraw/tldraw/pull/2345))
|
|
|
|
- Fixes the icon padding in back to content / pen mode buttons.
|
|
|
|
#### [bug] Fix for issue #2329 ([#2330](https://github.com/tldraw/tldraw/pull/2330))
|
|
|
|
- Fix for `Matrix2d.Scale` function
|
|
|
|
#### Allow dragging on top of locked shapes. ([#2337](https://github.com/tldraw/tldraw/pull/2337))
|
|
|
|
- Allow translating of shapes on top of a locked shape by clicking inside of selection and moving the mouse.
|
|
|
|
#### Remove deprecated getters ([#2333](https://github.com/tldraw/tldraw/pull/2333))
|
|
|
|
- (Breaking) Removed deprecated getters.
|
|
|
|
#### Lokalise: Translations update ([#2342](https://github.com/tldraw/tldraw/pull/2342))
|
|
|
|
Added Czech translations.
|
|
Updated translations for German, Korean, Russian, Ukrainian, Traditional Chinese.
|
|
|
|
#### Prevent diff mutation ([#2336](https://github.com/tldraw/tldraw/pull/2336))
|
|
|
|
- Fix `squashRecordDiffs` to prevent a bug where it mutates the 'updated' entires
|
|
|
|
#### Fix indicator radius for bookmarks. ([#2335](https://github.com/tldraw/tldraw/pull/2335))
|
|
|
|
- Fix the indicator for the bookmark shape. The radius now matches the shape's radius.
|
|
|
|
#### Start scrolling if we are dragging close to the window edges. ([#2299](https://github.com/tldraw/tldraw/pull/2299))
|
|
|
|
- Adds the logic to change the camera position when you get close to the edges of the window. This allows you to drag, resize, brush select past the edges of the current viewport.
|
|
|
|
#### Fix downscaling ([#2325](https://github.com/tldraw/tldraw/pull/2325))
|
|
|
|
- Decrease the size of uploaded assets.
|
|
|
|
#### Use a global singleton for tlstate ([#2322](https://github.com/tldraw/tldraw/pull/2322))
|
|
|
|
- Make a global singleton for tlstate.
|
|
|
|
#### VS Code 2.0.19 ([#2324](https://github.com/tldraw/tldraw/pull/2324))
|
|
|
|
- Version bump for VS Code.
|
|
|
|
---
|
|
|
|
#### 💥 Breaking Change
|
|
|
|
- `@tldraw/assets`, `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate`
|
|
- bump to beta [#2364](https://github.com/tldraw/tldraw/pull/2364) ([@steveruizok](https://github.com/steveruizok))
|
|
- Change licenses to tldraw [#2167](https://github.com/tldraw/tldraw/pull/2167) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/assets`, `@tldraw/tldraw`
|
|
- Use custom font [#2343](https://github.com/tldraw/tldraw/pull/2343) ([@ds300](https://github.com/ds300) [@huppy-bot[bot]](https://github.com/huppy-bot[bot]))
|
|
- `@tldraw/editor`, `@tldraw/state`
|
|
- Remove deprecated getters [#2333](https://github.com/tldraw/tldraw/pull/2333) ([@ds300](https://github.com/ds300))
|
|
|
|
#### 🚀 Enhancement
|
|
|
|
- add speech bubble example [#2362](https://github.com/tldraw/tldraw/pull/2362) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- Start scrolling if we are dragging close to the window edges. [#2299](https://github.com/tldraw/tldraw/pull/2299) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@steveruizok](https://github.com/steveruizok))
|
|
|
|
#### 🐛 Bug Fix
|
|
|
|
- VS Code 2.0.19 [#2324](https://github.com/tldraw/tldraw/pull/2324) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- `@tldraw/editor`, `@tldraw/tldraw`
|
|
- Fix clicking off the context menu [#2355](https://github.com/tldraw/tldraw/pull/2355) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok))
|
|
- Drop edge scrolling adjustment for mobile [#2346](https://github.com/tldraw/tldraw/pull/2346) ([@steveruizok](https://github.com/steveruizok))
|
|
- `@tldraw/tldraw`
|
|
- fix read only page menu [#2356](https://github.com/tldraw/tldraw/pull/2356) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@TodePond](https://github.com/TodePond))
|
|
- focus on container before deleting to avoid losing focus [#2354](https://github.com/tldraw/tldraw/pull/2354) ([@ds300](https://github.com/ds300))
|
|
- Only allow side resizing when we have some shapes that are not aspect ratio locked [#2347](https://github.com/tldraw/tldraw/pull/2347) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix iconleft padding [#2345](https://github.com/tldraw/tldraw/pull/2345) ([@steveruizok](https://github.com/steveruizok))
|
|
- Allow dragging on top of locked shapes. [#2337](https://github.com/tldraw/tldraw/pull/2337) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix indicator radius for bookmarks. [#2335](https://github.com/tldraw/tldraw/pull/2335) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Fix downscaling [#2325](https://github.com/tldraw/tldraw/pull/2325) ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- `@tldraw/editor`
|
|
- Stop shape text labels being hoverable when context menu is open [#2352](https://github.com/tldraw/tldraw/pull/2352) ([@TodePond](https://github.com/TodePond))
|
|
- [bug] Fix for issue #2329 [#2330](https://github.com/tldraw/tldraw/pull/2330) ([@zfedoran](https://github.com/zfedoran))
|
|
- `@tldraw/utils`
|
|
- fix png images with pixel ratios <0.5 crashing the app [#2350](https://github.com/tldraw/tldraw/pull/2350) ([@SomeHats](https://github.com/SomeHats))
|
|
- `@tldraw/assets`, `@tldraw/editor`, `@tldraw/tlschema`
|
|
- Lokalise: Translations update [#2342](https://github.com/tldraw/tldraw/pull/2342) ([@TodePond](https://github.com/TodePond))
|
|
- `@tldraw/store`, `@tldraw/tldraw`
|
|
- Prevent diff mutation [#2336](https://github.com/tldraw/tldraw/pull/2336) ([@ds300](https://github.com/ds300))
|
|
- `@tldraw/store`
|
|
- Call devFreeze on initialData [#2332](https://github.com/tldraw/tldraw/pull/2332) ([@ds300](https://github.com/ds300))
|
|
- `@tldraw/state`
|
|
- Fix TSDoc for @tldraw/state [#2327](https://github.com/tldraw/tldraw/pull/2327) ([@ds300](https://github.com/ds300))
|
|
- Use a global singleton for tlstate [#2322](https://github.com/tldraw/tldraw/pull/2322) ([@ds300](https://github.com/ds300))
|
|
|
|
#### 🏠 Internal
|
|
|
|
- `@tldraw/editor`
|
|
- refactor: Keep hook function convention the same [#2358](https://github.com/tldraw/tldraw/pull/2358) ([@Lennon57](https://github.com/Lennon57))
|
|
|
|
#### Authors: 9
|
|
|
|
- [@huppy-bot[bot]](https://github.com/huppy-bot[bot])
|
|
- [@zfedoran](https://github.com/zfedoran)
|
|
- alex ([@SomeHats](https://github.com/SomeHats))
|
|
- David Sheldrick ([@ds300](https://github.com/ds300))
|
|
- Lu Wilson ([@TodePond](https://github.com/TodePond))
|
|
- MinhoPark ([@Lennon57](https://github.com/Lennon57))
|
|
- Mitja Bezenšek ([@MitjaBezensek](https://github.com/MitjaBezensek))
|
|
- Steve Ruiz ([@steveruizok](https://github.com/steveruizok))
|
|
- Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git)) |