--- title: v2.0.0-beta.4 description: Examples author: tldraw date: 2/21/2024 order: 0 status: published --- [View on GitHub](https://github.com/tldraw/tldraw/releases/tag/v2.0.0-beta.4) #### menu fixes: add company links in general; add tracking to lang menu ([#2902](https://github.com/tldraw/tldraw/pull/2902)) - Add company menu links back in and make sure the Language menu is updated on change. #### Fix some menu issues on mobile ([#2906](https://github.com/tldraw/tldraw/pull/2906)) - Add a brief release note for your PR here. #### [experiment] paste: show little puff when pasting to denote something happened ([#2787](https://github.com/tldraw/tldraw/pull/2787)) - UI: add a little 'puff' when something is pasted to tell that something has happened. #### Fix custom keyboard shortcut dialog example ([#2876](https://github.com/tldraw/tldraw/pull/2876)) - Docs: Fixed custom keyboard shortcut dialog example. #### Sentence case all example titles ([#2889](https://github.com/tldraw/tldraw/pull/2889)) - Docs: Made the examples titles sentence case. #### Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' ([#2886](https://github.com/tldraw/tldraw/pull/2886)) - Fixes an bug causing the opacity slider to show up in the move tool and laser pointer tool. #### Faster validations + record reference stability at the same time ([#2848](https://github.com/tldraw/tldraw/pull/2848)) - Add a brief release note for your PR here. #### [Snapping 6/6] Self-snapping API ([#2869](https://github.com/tldraw/tldraw/pull/2869)) - Line handles now snap to other handles on the same line when holding command #### Editable shape example ([#2853](https://github.com/tldraw/tldraw/pull/2853)) - Adds an editable shape example #### Fix dialog title styles ([#2873](https://github.com/tldraw/tldraw/pull/2873)) - Unreleased bug: Fixed dialog titles appearance. #### Fix some incorrect translation keys ([#2870](https://github.com/tldraw/tldraw/pull/2870)) - Unreleased issue. Fixed some translation keys being wrong. #### Allow users to set document name and use it for exporting / saving ([#2685](https://github.com/tldraw/tldraw/pull/2685)) - Allow users to name their documents. #### Fix some problem under Windows OS development enviroment ([#2722](https://github.com/tldraw/tldraw/pull/2722)) - stablize language.ts when running under different OS language. - add isWin32() and posixPath() to format the parameter of glob.sync(). - use child_process.exec() instead of child_process.execFile() for win32 platform. #### doc: fix typo in examples ([#2859](https://github.com/tldraw/tldraw/pull/2859)) - fix typo in examples #### [fix] grid, other insets ([#2858](https://github.com/tldraw/tldraw/pull/2858)) - Fixes a bug with the grid not appearing. #### E2e tests for the toolbar ([#2709](https://github.com/tldraw/tldraw/pull/2709)) - Add e2e tests for the toolbar #### fix frame style panel ([#2851](https://github.com/tldraw/tldraw/pull/2851)) - Fixes an issue with the opacity slider getting squished. #### Add component for viewing an image of a snapshot ([#2804](https://github.com/tldraw/tldraw/pull/2804)) - Dev: Added the `TldrawImage` component. #### fix typo(examples/hosted-images) ([#2849](https://github.com/tldraw/tldraw/pull/2849)) - Fixed a typo in the description in the hosted-images example. #### ui: refactor breakpoints to fit in an enum ([#2843](https://github.com/tldraw/tldraw/pull/2843)) - Refactor breakpoints into an enum. #### [Snapping 5/5] Better handle snapping for geo shapes ([#2845](https://github.com/tldraw/tldraw/pull/2845)) - You can now snap the handles of lines to the corners of rectangles, stars, triangles, etc. #### [Snapping 4/5] Add handle-point snapping ([#2841](https://github.com/tldraw/tldraw/pull/2841)) - Line handles #### [Snapping 3/5] Custom snapping API ([#2793](https://github.com/tldraw/tldraw/pull/2793)) - Add `ShapeUtil.getSnapInfo` for customising shape snaps. #### Composable custom UI ([#2796](https://github.com/tldraw/tldraw/pull/2796)) - Add a brief release note for your PR here. #### errors: improve msg in dialog when error happens ([#2844](https://github.com/tldraw/tldraw/pull/2844)) - Improves error dialog messaging. #### [Snapping 2/5] Fix line-handle mid-point snapping ([#2831](https://github.com/tldraw/tldraw/pull/2831)) - Simplify the contents of `TLLineShape.props.handles` #### Readonly defaults to the hand tool ([#2833](https://github.com/tldraw/tldraw/pull/2833)) - Shared projects in read only mode now default to the hand tool #### Improve signia error handling ([#2835](https://github.com/tldraw/tldraw/pull/2835)) - Add a brief release note for your PR here. #### [docs] Fix missing Persistence page ([#2828](https://github.com/tldraw/tldraw/pull/2828)) - Add a brief release note for your PR here. #### emojis! πŸ§‘β€πŸŽ¨ 🎨 ✏️ ([#2814](https://github.com/tldraw/tldraw/pull/2814)) - Adds emoji picker to text fields. --- #### πŸ’₯ Breaking Change - `@tldraw/tldraw`, `@tldraw/tlschema` - Add line IDs & fractional indexes [#2890](https://github.com/tldraw/tldraw/pull/2890) ([@SomeHats](https://github.com/SomeHats)) - `@tldraw/editor`, `@tldraw/tldraw` - Allow users to set document name and use it for exporting / saving [#2685](https://github.com/tldraw/tldraw/pull/2685) ([@MitjaBezensek](https://github.com/MitjaBezensek)) - `@tldraw/tldraw` - UI components round two [#2847](https://github.com/tldraw/tldraw/pull/2847) ([@steveruizok](https://github.com/steveruizok)) - `@tldraw/editor`, `@tldraw/tldraw`, `@tldraw/validate` - Composable custom UI [#2796](https://github.com/tldraw/tldraw/pull/2796) ([@steveruizok](https://github.com/steveruizok)) - `@tldraw/editor`, `@tldraw/tldraw`, `@tldraw/tlschema` - [Snapping 2/5] Fix line-handle mid-point snapping [#2831](https://github.com/tldraw/tldraw/pull/2831) ([@SomeHats](https://github.com/SomeHats)) #### πŸš€ Enhancement - Readonly defaults to the hand tool [#2833](https://github.com/tldraw/tldraw/pull/2833) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git)) - `@tldraw/editor`, `@tldraw/tldraw` - [Snapping 6/6] Self-snapping API [#2869](https://github.com/tldraw/tldraw/pull/2869) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok)) - Add component for viewing an image of a snapshot [#2804](https://github.com/tldraw/tldraw/pull/2804) ([@TodePond](https://github.com/TodePond) [@steveruizok](https://github.com/steveruizok)) - [Snapping 4/5] Add handle-point snapping [#2841](https://github.com/tldraw/tldraw/pull/2841) ([@SomeHats](https://github.com/SomeHats)) - [Snapping 3/5] Custom snapping API [#2793](https://github.com/tldraw/tldraw/pull/2793) ([@SomeHats](https://github.com/SomeHats)) - emojis! πŸ§‘β€πŸŽ¨ 🎨 ✏️ [#2814](https://github.com/tldraw/tldraw/pull/2814) ([@mimecuvalo](https://github.com/mimecuvalo)) - `@tldraw/tldraw`, `@tldraw/tlschema` - [handles] Line shape handles -> points [#2856](https://github.com/tldraw/tldraw/pull/2856) ([@steveruizok](https://github.com/steveruizok)) - `@tldraw/tldraw` - [Snapping 5/5] Better handle snapping for geo shapes [#2845](https://github.com/tldraw/tldraw/pull/2845) ([@SomeHats](https://github.com/SomeHats)) - Remove pointer check for arrow labels [#2824](https://github.com/tldraw/tldraw/pull/2824) ([@steveruizok](https://github.com/steveruizok)) - `@tldraw/assets`, `@tldraw/editor`, `@tldraw/tlschema` - Lokalise: Translations update [#2830](https://github.com/tldraw/tldraw/pull/2830) ([@TodePond](https://github.com/TodePond) [@MitjaBezensek](https://github.com/MitjaBezensek)) #### πŸ› Bug Fix - fix invite others [#2904](https://github.com/tldraw/tldraw/pull/2904) ([@SomeHats](https://github.com/SomeHats)) - Update Hungarian and Korean [#2871](https://github.com/tldraw/tldraw/pull/2871) ([@TodePond](https://github.com/TodePond)) - docs: tweak search kbd placement to match loupe [#2834](https://github.com/tldraw/tldraw/pull/2834) ([@mimecuvalo](https://github.com/mimecuvalo)) - `@tldraw/tldraw` - menu fixes: add company links in general; add tracking to lang menu [#2902](https://github.com/tldraw/tldraw/pull/2902) ([@mimecuvalo](https://github.com/mimecuvalo)) - Fix some menu issues on mobile [#2906](https://github.com/tldraw/tldraw/pull/2906) ([@TodePond](https://github.com/TodePond)) - remove stray 'console' [#2881](https://github.com/tldraw/tldraw/pull/2881) ([@ds300](https://github.com/ds300)) - Fix dialog title styles [#2873](https://github.com/tldraw/tldraw/pull/2873) ([@TodePond](https://github.com/TodePond)) - Fix some incorrect translation keys [#2870](https://github.com/tldraw/tldraw/pull/2870) ([@TodePond](https://github.com/TodePond)) - fix frame style panel [#2851](https://github.com/tldraw/tldraw/pull/2851) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git) [@steveruizok](https://github.com/steveruizok)) - ui: refactor breakpoints to fit in an enum [#2843](https://github.com/tldraw/tldraw/pull/2843) ([@mimecuvalo](https://github.com/mimecuvalo)) - `@tldraw/validate` - Fix object validator [#2897](https://github.com/tldraw/tldraw/pull/2897) ([@MitjaBezensek](https://github.com/MitjaBezensek)) - `@tldraw/editor`, `@tldraw/tldraw` - [experiment] paste: show little puff when pasting to denote something happened [#2787](https://github.com/tldraw/tldraw/pull/2787) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok)) - Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' [#2886](https://github.com/tldraw/tldraw/pull/2886) ([@ds300](https://github.com/ds300)) - Roundup fixes [#2862](https://github.com/tldraw/tldraw/pull/2862) ([@steveruizok](https://github.com/steveruizok)) - [fix] grid, other insets [#2858](https://github.com/tldraw/tldraw/pull/2858) ([@steveruizok](https://github.com/steveruizok)) - `@tldraw/editor`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/validate` - Faster validations + record reference stability at the same time [#2848](https://github.com/tldraw/tldraw/pull/2848) ([@ds300](https://github.com/ds300)) - `@tldraw/editor` - [fix] pointer capture logging when debug flag is off [#2850](https://github.com/tldraw/tldraw/pull/2850) ([@steveruizok](https://github.com/steveruizok)) - errors: improve msg in dialog when error happens [#2844](https://github.com/tldraw/tldraw/pull/2844) ([@mimecuvalo](https://github.com/mimecuvalo)) - seo: take 2 [#2817](https://github.com/tldraw/tldraw/pull/2817) ([@mimecuvalo](https://github.com/mimecuvalo) [@steveruizok](https://github.com/steveruizok)) - [fix] sticky note bug [#2836](https://github.com/tldraw/tldraw/pull/2836) ([@steveruizok](https://github.com/steveruizok)) - `@tldraw/editor`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate` - [Snapping 1/5] Validation & strict types for fractional indexes [#2827](https://github.com/tldraw/tldraw/pull/2827) ([@SomeHats](https://github.com/SomeHats)) - `@tldraw/state` - Improve signia error handling [#2835](https://github.com/tldraw/tldraw/pull/2835) ([@ds300](https://github.com/ds300)) #### 🏠 Internal - Fix some problem under Windows OS development enviroment [#2722](https://github.com/tldraw/tldraw/pull/2722) ([@Rokixy](https://github.com/Rokixy)) - fix typo(examples/hosted-images) [#2849](https://github.com/tldraw/tldraw/pull/2849) ([@pocari](https://github.com/pocari)) - βœ‹ humans.txt [#2842](https://github.com/tldraw/tldraw/pull/2842) ([@mimecuvalo](https://github.com/mimecuvalo)) - examples: rename ui events and increase priority [#2840](https://github.com/tldraw/tldraw/pull/2840) ([@mimecuvalo](https://github.com/mimecuvalo)) - repair Huppy's handling of LICENCE [#2821](https://github.com/tldraw/tldraw/pull/2821) ([@si14](https://github.com/si14)) - `@tldraw/assets`, `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/validate` - Check tsconfig "references" arrays [#2891](https://github.com/tldraw/tldraw/pull/2891) ([@ds300](https://github.com/ds300)) - `@tldraw/tldraw` - Fix custom keyboard shortcut dialog example [#2876](https://github.com/tldraw/tldraw/pull/2876) ([@TodePond](https://github.com/TodePond)) - `@tldraw/editor`, `@tldraw/state`, `@tldraw/store`, `@tldraw/tldraw`, `@tldraw/tlschema`, `@tldraw/utils`, `@tldraw/validate` - dev: swap yarn test and test-dev for better dx [#2773](https://github.com/tldraw/tldraw/pull/2773) ([@mimecuvalo](https://github.com/mimecuvalo)) - `@tldraw/editor`, `@tldraw/tldraw` - Revert "emojis! πŸ§‘β€πŸŽ¨ 🎨 ✏️ (#2814)" [#2822](https://github.com/tldraw/tldraw/pull/2822) ([@si14](https://github.com/si14)) #### πŸ“ Documentation - Sentence case all example titles [#2889](https://github.com/tldraw/tldraw/pull/2889) ([@TodePond](https://github.com/TodePond)) - docs: fix scroll position and theming issue for code snippets [#2883](https://github.com/tldraw/tldraw/pull/2883) ([@mimecuvalo](https://github.com/mimecuvalo)) - Editable shape example [#2853](https://github.com/tldraw/tldraw/pull/2853) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git)) - doc: fix typo in examples [#2859](https://github.com/tldraw/tldraw/pull/2859) ([@Rokixy](https://github.com/Rokixy)) - [docs] Fix missing Persistence page [#2828](https://github.com/tldraw/tldraw/pull/2828) ([@ds300](https://github.com/ds300)) #### πŸ§ͺ Tests - `@tldraw/tldraw` - E2e tests for the toolbar [#2709](https://github.com/tldraw/tldraw/pull/2709) ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git)) #### Authors: 10 - [@Rokixy](https://github.com/Rokixy) - alex ([@SomeHats](https://github.com/SomeHats)) - Dan Groshev ([@si14](https://github.com/si14)) - David Sheldrick ([@ds300](https://github.com/ds300)) - Lu Wilson ([@TodePond](https://github.com/TodePond)) - Mime Čuvalo ([@mimecuvalo](https://github.com/mimecuvalo)) - Mitja BezenΕ‘ek ([@MitjaBezensek](https://github.com/MitjaBezensek)) - pocari ([@pocari](https://github.com/pocari)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) - Taha ([@Taha-Hassan-Git](https://github.com/Taha-Hassan-Git))