336 KiB
v2.3.0 (Tue Jun 25 2024)
Release Notes
editing: don't allow editing locked shapes when edit→edit mode. (#4007)
- Editing: don't allow editing locked shapes when edit→edit mode.
clipboard: fix copy/paste bad typo, ugh (#4008)
- Clipboard: fix copy/paste for older versions of Firefox
clipboard: fix copy/paste on Firefox (#4003)
- Clipboard: fix copy/paste in Firefox 127+
Fix multiple editor instances issue (#4001)
- Fix a bug causing text shape measurement to work incorrectly when using react strict mode
fix: typo on "CardShapeUtil" example name (#3998)
- Fix typo on "CardShapeUtil" name in the custom shape example documentation.
Update license in readme of the store package (#3990)
- Fix the license in the readme file for the store package.
Add a new environment for publishing (#3981)
- Introduce a new CI environment and use it for publishing vs code extension.
Fix vs code publishing (#3976)
- Fix VS Code publishing.
Fix border color for following user (#3975)
- Add a brief release note for your PR here.
Fix edge scrolling at odd browser zoom levels (#3973)
- Add a brief release note for your PR here.
images: make isAnimated check on shared rooms work better (#3967)
- Images: fix isAnimated checks when adding an image to a shared room.
Add fill fill style. (#3966)
- Secretly adds a fill-fill style (Alt-F)
Add tags to examples frontmatter (#3929)
- Improve filtering of examples
Fix solid style draw shape. (#3963)
- Fixes the appearance of solid-style heart shapes.
Fix asset positions (#3965)
- Fixes the position of multiple assets when pasted / dropped onto the canvas.
Fix draw shape indicators for pen-drawn solid shapes (#3962)
- Fixes a bug with the indicator for stylus-drawn draw shapes.
assets: fix copy/paste with missing src (#3959)
- Assets: fix copy/paste for new asset resolver mechanic.
[Experiment] Allow users to use system's appearance (dark / light) mode (#3703)
- Add a brief release note for your PR here.
Improve edge scrolling (#3950)
- Add a delay and easing to edge scrolling.
Set up automatic VS Code publishing (#3905)
- Automate publishing of the VS Code extension.
Move from unpkg to our own cdn. (#3923)
- Start using our own cdn instead of unpkg.
bookmark: css tweaks (#3955)
- Bookmarks: padding tweaks
Dynamic size mode + fill fill (#3835)
- Adds a dynamic size user preferences.
- Removes double click to reset scale on text shapes.
- Removes double click to reset autosize on text shapes.
assets: preload fonts (#3927)
- Perf: improve font loading timing on dotcom.
[tiny] getSnapshot and loadSnapshot on Editor class (#3912)
- Add a brief release note for your PR here.
Make ArrowBindingUtil public (#3913)
- Add a brief release note for your PR here.
Flatten shapes to image(s) (#3933)
- Add Flatten, a new menu item to flatten shapes into images
Update with api key with access to all buckets (#3944)
- Retrigger canary packaging.
Retrying with Mime's keys (#3943)
- Retrigger canary package build to publish a new package and upload assets to R2.
Empty PR to trigger canary publish (#3942)
- Retrigger canary package build to publish a new package and upload assets to R2.
Fix uploading static assets to r2 (#3941)
- Fix an issue with uploading the static assets.
Uploading the static assets to R2 bucket (#3921)
- Upload our static assets (fonts, icons, embed-icons, translations) to a R2 bucket so that we can move away from using unpkg and start using our own cdn.
assets: store in indexedDB, not as base64 (#3836)
- Assets: store as reference to blob in indexedDB instead of storing directly as base64 in the snapshot.
images: avoid double request for animated images (#3924)
- Images: avoid double request for animated images.
Fix document name editable in readonly mode (#3911)
- Remove ability to rename document while in readonly mode
assets: make option to transform urls dynamically / LOD (#3827)
- Assets: make option to transform urls dynamically to provide different sized images on demand.
VS Code release 2.0.36 (#3922)
- VS Code 2.0.36 release.
📚 SDK Changes
- images: make isAnimated check on shared rooms work better #3967 (@mimecuvalo)
@tldraw/editor
tldraw
- editing: don't allow editing locked shapes when edit→edit mode. #4007 (@mimecuvalo)
- clipboard: fix copy/paste bad typo, ugh #4008 (@mimecuvalo)
- clipboard: fix copy/paste on Firefox #4003 (@mimecuvalo)
- theme: rename color scheme to theme #3991 (@mimecuvalo)
- Fix scale issue with new draw lines #3971 (@steveruizok)
- lod: dont resize images that are culled #3970 (@mimecuvalo)
- flattening: use correct id for asset #3968 (@mimecuvalo)
- Add fill fill style. #3966 (@steveruizok)
- Fix solid style draw shape. #3963 (@steveruizok)
- Fix asset positions #3965 (@steveruizok)
- lod: fix up missing timeout from bad merge #3964 (@mimecuvalo)
- Fix draw shape indicators for pen-drawn solid shapes #3962 (@steveruizok)
- assets: fix copy/paste with missing src #3959 (@mimecuvalo)
- Move from unpkg to our own cdn. #3923 (@MitjaBezensek)
- assets: fix up videos with indexedDB #3954 (@mimecuvalo)
- Make ArrowBindingUtil public #3913 (@ds300)
- images: avoid double request for animated images #3924 (@mimecuvalo)
@tldraw/editor
,tldraw
- better auto-generated docs for Tldraw and TldrawEditor #4012 (@SomeHats)
- Fix multiple editor instances issue #4001 (@SomeHats)
- [Experiment] Allow users to use system's appearance (dark / light) mode #3703 (@MitjaBezensek)
- Improve edge scrolling #3950 (@steveruizok)
- bookmark: css tweaks #3955 (@mimecuvalo)
- Flatten shapes to image(s) #3933 (@steveruizok)
@tldraw/assets
,@tldraw/editor
,tldraw
,@tldraw/tlschema
- Dynamic size mode + fill fill #3835 (@steveruizok @Taha-Hassan-Git @huppy-bot[bot])
@tldraw/editor
,tldraw
,@tldraw/validate
- assets: store in indexedDB, not as base64 #3836 (@mimecuvalo)
@tldraw/editor
,@tldraw/state
,tldraw
- image: follow-up fixes for LOD #3934 (@mimecuvalo)
@tldraw/editor
,@tldraw/state
,tldraw
,@tldraw/tlschema
- assets: make option to transform urls dynamically / LOD #3827 (@mimecuvalo)
@tldraw/editor
,@tldraw/store
,tldraw
,@tldraw/utils
- security: enforce use of our fetch function and its default referrerpolicy #3884 (@mimecuvalo)
🖥️ tldraw.com Changes
- assets: add crossorigin tag for preloaded fonts #3953 (@mimecuvalo)
- Fix document name editable in readonly mode #3911 (@Taha-Hassan-Git)
@tldraw/utils
- lod: dont transform SVGs #3972 (@mimecuvalo)
@tldraw/editor
,tldraw
- assets: preload fonts #3927 (@mimecuvalo @steveruizok)
📖 Documentation changes
- fix: typo on "CardShapeUtil" example name #3998 (@bholmesdev)
- Add tags to examples frontmatter #3929 (@Taha-Hassan-Git)
- Generated docs cleanup #3935 (@SomeHats)
- Inline documentation links in type excerpts #3931 (@SomeHats)
@tldraw/store
- Update license in readme of the store package #3990 (@MitjaBezensek)
@tldraw/editor
,tldraw
🏠 Internal
- Update with api key with access to all buckets #3944 (@MitjaBezensek)
- Retrying with Mime's keys #3943 (@MitjaBezensek)
- Empty PR to trigger canary publish #3942 (@MitjaBezensek)
- Fix uploading static assets to r2 #3941 (@MitjaBezensek)
- Uploading the static assets to R2 bucket #3921 (@MitjaBezensek)
🧹 Chores
- VS Code release 2.0.36 #3922 (@MitjaBezensek)
🧪 Tests
- Add a new environment for publishing #3981 (@MitjaBezensek)
🛠️ Tools
- Fix vs code publishing #3976 (@MitjaBezensek)
- Set up automatic VS Code publishing #3905 (@MitjaBezensek)
🔩 Dependency Updates
- build(deps): bump ws from 8.16.0 to 8.17.1 in the npm_and_yarn group across 1 directory #3984 (@dependabot[bot])
- Bump the npm_and_yarn group across 3 directories with 4 updates #3920 (@dependabot[bot])
Authors: 9
- @dependabot[bot]
- @huppy-bot[bot]
- alex (@SomeHats)
- Ben Holmes (@bholmesdev)
- David Sheldrick (@ds300)
- Mime Čuvalo (@mimecuvalo)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.2.0 (Tue Jun 11 2024)
Release Notes
Fix 'insert media' undo operation (#3910)
- Add a brief release note for your PR here.
Cropping undo/redo UX (#3891)
- Add a brief release note for your PR here.
Bindings tests (#3800)
- Add a brief release note for your PR here.
Fix Content-Security-Policy browser warnings (#3906)
- Fix Content-Security-Policy warnings
bookmark: fix up double request and rework extractor (#3856)
- Bookmarks: fix up double request and rework extractor code.
Open share menu when navigating from create new shared project button (#3898)
- Open share menu when navigating from the create new shared project button.
Add option for max points per draw shape (#3900)
- SDK: Add option for controlling max length of draw shapes
Bindings onBeforeShapeIsolate? (#3871)
- Add a brief release note for your PR here.
Add option to navigate to new project from file menu (#3876)
- Add a brief release note for your PR here.
[DX] sensible defaults for createTLStore (#3886)
- Add a brief release note for your PR here.
Editor.blur method (#3875)
- Add a brief release note for your PR here.
security: don't send referrer paths for images and bookmarks (#3881)
- Security: fix referrer being sent for bookmarks and images.
Prevent stale shape data in render (#3882)
- Add a brief release note for your PR here.
Fix pressure (#3877)
- Fixes pen pressure.
Fix drag distance (#3873)
- Fixed a bug where the minimum distance for a drag was wrong when zoomed in or out.
editor: register timeouts/intervals/rafs for disposal (#3852)
- Editor: add registry of timeouts/intervals/rafs
Taha/more constraints tests (#3863)
- Adds more tests for the camera constraints API
Snapshots pit of success (#3811)
- Add a brief release note for your PR here.
[bugfix] Preserve redo stack when selection changes (#3862)
- Add a brief release note for your PR here.
Add select
option to Editor.groupShapes
and Editor.ungroupShapes
(#3690)
- Add a brief release note for your PR here.
share: make share/fork/copy actions clearer (#3846)
- Share menu: make sharing/fork/copy actions clearer
cloudflare: dont cache no-cache headers (#3849)
- Cloudflare: don't cache no-cache headers.
text labels: address some rendering inconsistencies with the content vs. textarea (#3830)
- Text labels: fix some inconsistencies with rendering.
Camera Constraints Tests (#3844)
- Adds tests for the camera constraints api
Move constants to options prop (#3799)
You can now override many options which were previously hard-coded constants. Pass an options
prop into the tldraw component to change the maximum number of pages, grid steps, or other previously hard-coded values. See TldrawOptions
for more
toolbar: disable items that dont work when not in select mode (#3819)
- Toolbar: disable menu items that don't work when not in select mode.
Fix cropped image export (#3837)
- Fixed cropped images not exporting properly
[fix] setCamera animates to constrained viewport (#3828)
- Add a brief release note for your PR here.
Add heart geo shape (#3787)
- Adds a heart shape to the geo shape set.
rework canBind callback (#3797)
Breaking changes
The canBind
flag now accepts an options object instead of just the shape in question. If you're relying on its arguments, you need to change from canBind(shape) {}
to canBind({shape}) {}
.
Add unit tests for the camera (#3814)
- Adds unit tests for the camera
fix coarse pointer detection (#3795)
- Fix a bug where coarse-pointer mode would get incorrectly detected on some touch devices
Update validation.ts (#3324)
- Update example for Union type
I believe this type was changed and literal
is what it should be now.
Tighten up zoom to fit padding (#3798)
- Reduce padding when zooming to fit.
toolbar: rework overflow css logic (#3779)
- Toolbar: cleanup overflow css rules.
Fix spacebar/mmb panning bug. (#3791)
- Fix bug with panning
[bugfix] Cleanup input state after middle-click-to-pan (#3792)
- Add a brief release note for your PR here.
Move InFrontOfTheCanvas (#3782)
- Add a brief release note for your PR here.
google meet: add hardware whiteboard integration (#3765)
- Google Meet: add hardware whiteboard integration
fix flipping for arrows (#3780)
- Add a brief release note for your PR here.
[bugfix?] End interactions before switching page (#3771)
- Add a brief release note for your PR here.
add missing spline icons (#3778)
- Add a brief release note for your PR here.
delete old todo comment (#3777)
- Add a brief release note for your PR here.
Prevent pressing escape when editing document name to bubble up to the editor (#3725)
- Prevent escaping out of editing the document name to switch the active tool to select tool.
Prevent wobble during viewport following (#3695)
- Fixes a bug that caused the cursor & shapes to wiggle around when following someone else's viewport
E2E camera tests (#3747)
- Adds E2E tests for the camera
Bump max shapes to 4000 (#3716)
- Increase maximum number of shapes per page from 2000 to 4000.
export DefaultNavigationPanel (#3772)
- Add a brief release note for your PR here.
Allow DefaultErrorFallback to be used independently (#3769)
- Add a brief release note for your PR here.
focus: rework and untangle existing focus management logic in the sdk (#3718)
- Focus: rework and untangle existing focus management logic in the SDK
[bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete (#3761)
- Add a brief release note for your PR here.
No defaults for contexts (#3750)
useEditor
and other context-based hooks will now throw an error when used out-of-context, instead of returning a fake value.
Store-level "operation end" event (#3748)
Breaking changes
editor.registerBatchCompleteHandler
has been replaced with editor.registerOperationCompleteHandler
Fix readonly fetching happening too often. (#3732)
- Fix an issue where readonly slug was being fetched every time the url changed (panning, zooming,...).
assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif (#3730)
- Images: unify list of acceptable types and expand to include webp, webm, apng, avif
Fix imports in Astro (#3742)
- Fix bug effecting imports in Astro.
Move arrow helpers from editor to tldraw (#3721)
Breaking changes
editor.getArrowInfo(shape)
has been replaced withgetArrowInfo(editor, shape)
editor.getArrowsBoundTo(shape)
has been removed. Instead, useeditor.getBindingsToShape(shape, 'arrow')
and follow thefromId
of each binding to the corresponding arrow shape- These types have moved from
@tldraw/editor
totldraw
:TLArcInfo
TLArrowInfo
TLArrowPoint
WeakMapCache
has been removed
fix link (#3726)
- Add a brief release note for your PR here.
Just a small link fix for the docs.
Bindings (#3326)
Breaking changes
- The
start
andend
properties onTLArrowShape
no longer havetype: point | binding
. Instead, they're always a point, which may be out of date if a binding exists. To check for & retrieve arrow bindings, usegetArrowBindings(editor, shape)
instead. getArrowTerminalsInArrowSpace
must be passed aTLArrowBindings
as a third argument:getArrowTerminalsInArrowSpace(editor, shape, getArrowBindings(editor, shape))
- The following types have been renamed:
ShapeProps
->RecordProps
ShapePropsType
->RecordPropsType
TLShapePropsMigrations
->TLPropsMigrations
SchemaShapeInfo
->SchemaPropsInfo
Move storing of snapshots to R2 (#3693)
- Move storing of snapshots to cloudflare R2.
Add asset pruning when importing files (#3689)
- Prunes unused assets when loading a tldraw document.
Fix background color for patterned shapes. (#3708)
- Fixes an issue with copy pasting shapes as svg and png not correctly working for patterned shapes.
Camera options (#3282)
- SDK: Adds camera options.
Prevent duplicate from creating any shapes if we reach max allowed shapes (#3692)
- Prevent duplicating shapes if we would go over the maximum shape limit. It's now an all or nothing operation, where as before some shapes would get created.
textfields: fix RTL layout for SVG exports (#3680)
- [Add a brief release note for your PR here.](textfields: fix RTL layout for SVG exports)
Prevent unnecessary fetching of readonly slugs (#3663)
- Prevent unnecessary fetching of readonly slugs.
delete stray error screen css import (#3683)
- Add a brief release note for your PR here.
Fix viewport following (#3681)
- Fixes an issue where viewport following was not working
Fix className.includes bug (#3672)
- Fixes a rare bug effecting text shapes on mobile.
Fix link in collaboration documentation (#3662)
- Add a brief release note for your PR here.
[signia] perf thing again (#3645)
- Add a brief release note for your PR here.
VS Code 2.0.32 (#3664)
- VS Code release.
Fix textbox direction when it contains both RTL and LTR languages (#3188)
Fix textbox direction when it contains both RTL and LTR languages
embed: prevent nested tldraw (#3659)
- Embeds: Fix infinite nesting of tldraw rooms.
fix android long press changing cursor to non-coarse (#3656)
- Add a brief release note for your PR here.
[bugfix] don't crash if a bound shape doesn't exist (#3653)
- fixes an edge case in multiplayer rooms where the room can crash if an arrow's bound shape is deleted by a peer
embed: allow embeds like YouTube to link back to its site (#3609)
- Embeds: fix being able to click on links that go back to the embed's site (e.g. YouTube)
Improve pressure-detection logic in drawing (#3639)
- Improves handling of mouse-type devices that support pressure, e.g. wacom tablets. They now use the same freehand options as true pen-type inputs.
copy/paste: fix pasting not working from Edit menu (#3623)
- Clipboard: fix pasting from the Edit menu.
textfields: for unfilled geo shapes fix edit->edit (#3577)
- Text labels: fix edit→edit not working as expected when unfilled geo shapes are on 'top' of other shapes.
Allow embedding tldraw in iframes (#3640)
- Allow embedding tldraw inside iframes again.
Separate text-align property for shapes (#3627)
- Separates the text align property for text shapes and labels.
Fix text resizing with alt key (#3632)
- Fixed a bug with resizing text shapes from the left and right while holding alt.
Don't hover locked shapes (#3575)
- Fixed a bug with locked shapes being hoverable.
Add desmos graph embed type (#3608)
- (feature) add desmos embed
Make coarse pointer check dynamic (#3572)
- Add a brief release note for your PR here.
examples: add filter input (#3625)
- Examples: add a filter box.
stickies: make pit/pack distance the same (#3606)
- Shapes: tweak default gap value to be consistent with sticky note gaps.
Fix an issue with the minimap (#3617)
- Fixes clicking on the minimap when we clicked just slightly outside of the current viewport.
Fix an issue with minimap. (#3621)
- Fixes an issue with the minimap bugging out after you change the window's height.
Bring back /r
(#3615)
- Brings back
/r
route for creating new rooms.
Expose migrations, validators, and versions from tlschema (#3613)
Previously, we weren't exporting migrations & validators for our default shapes. This meant that it wasn't possible to make your own tlschema with both our default shapes and some of your own (e.g. for custom multiplayer). This fixes that by exposing all the migrations, validators, and versions from tlschema, plus defaultShapeSchemas
which can be passed directly to createTLSchema
Readonly / room creation omnibus (#3192)
- This adds new functionality for readonly rooms:
- We have a new route
/ro
for newly created readonly rooms. These rooms no longer use the scrambling logic to create readonly slugs. Instead we now use KV storage from cloudflare to track the mapping for slugs -> readonly slug and readonly slug -> slug. - The old route
/v
is preserved, so that the old room still work as they did before. - For old rooms we will keep on generating the old readonly slugs, but for new rooms we'll start using the new logic.
- We no longer prevent embedding of tldraw inside iframes.
- We do prevent generating new rooms from inside the iframes though.
/r
,/new
,/r/non-existing-id
should not allow creation of new rooms inside iframes. Only/new
still works when not inside iframes. - Forking a project from inside an iframe now opens it on tldraw.com
- Slight copy change on the sharing menu. We no longer have a toggle between readonly and non-readonly links.
editor
andapp
are no longer exposed on the window object for readonly rooms. Prevents users from using theupdateInstanceState
to escape readonly rooms.
fix migration exports (#3586)
- Expose
createShapePropsMigrationIds
,defaultEditorAssetUrls
,PORTRAIT_BREAKPOINT
,useDefaultColorTheme
, &getPerfectDashProps
🐛 Bug Fix
- build: disable flaky edit->edit focus test for now #3803 (@mimecuvalo)
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
🏎 Performance
📚 SDK Changes
- touchscreen: allow meet.google.com origin #3805 (@mimecuvalo)
- touchscreen: just create a new room #3802 (@mimecuvalo)
- touchscreen: wrong url argh #3790 (@mimecuvalo)
- touchscreen: just add a fallback, figure out env later #3789 (@mimecuvalo)
- touchscreen: fix env var name #3788 (@mimecuvalo)
- touchscreen: whoops, fix up script tag #3786 (@mimecuvalo)
- make route prefixes have a single place where they are defined #3624 (@mimecuvalo)
@tldraw/store
- Add return info to StoreSideEffects methods #3918 (@steveruizok)
tldraw
- Fix 'insert media' undo operation #3910 (@ds300)
- Fix pressure #3877 (@steveruizok)
- share: make share/fork/copy actions clearer #3846 (@mimecuvalo)
- toolbar: disable items that dont work when not in select mode #3819 (@mimecuvalo)
- Fix cropped image export #3837 (@TodePond)
- fix excalidraw paste #3822 (@SomeHats)
- Fix broken files #3821 (@steveruizok)
- fix pattern fill lods #3801 (@SomeHats)
- toolbar: rework overflow css logic #3779 (@mimecuvalo @steveruizok)
- export DefaultNavigationPanel #3772 (@ds300)
- Add asset pruning when importing files #3689 (@MitjaBezensek)
- Fix background color for patterned shapes. #3708 (@MitjaBezensek)
- don't render the minimap if it fails to initialize the gl context #3679 (@ds300)
- embed: prevent nested tldraw #3659 (@mimecuvalo)
- Hacky fix safari transparency #3657 (@steveruizok)
- Fix missing icon #3652 (@steveruizok)
- Improve pressure-detection logic in drawing #3639 (@steveruizok)
- copy/paste: fix pasting not working from Edit menu #3623 (@mimecuvalo)
- stickies: make pit/pack distance the same #3606 (@mimecuvalo)
- Fix an issue with minimap. #3621 (@MitjaBezensek)
@tldraw/editor
,tldraw
- Cropping undo/redo UX #3891 (@ds300)
- Bindings tests #3800 (@ds300)
- Add option for max points per draw shape #3900 (@steveruizok)
- Bindings onBeforeShapeIsolate? #3871 (@ds300)
- Editor.blur method #3875 (@ds300)
- Fix drag distance #3873 (@steveruizok)
- Add
select
option toEditor.groupShapes
andEditor.ungroupShapes
#3690 (@Taha-Hassan-Git @steveruizok) - chore: cleanup z-indices so that they're all clearly listed #3855 (@mimecuvalo)
- text labels: address some rendering inconsistencies with the content vs. textarea #3830 (@mimecuvalo)
- Move constants to options prop #3799 (@SomeHats)
- [fix] setCamera animates to constrained viewport #3828 (@ds300)
- Tighten up zoom to fit padding #3798 (@steveruizok)
- [bugfix] Cleanup input state after middle-click-to-pan #3792 (@ds300)
- Move InFrontOfTheCanvas #3782 (@ds300)
- fix flipping for arrows #3780 (@ds300)
- [bugfix?] End interactions before switching page #3771 (@ds300)
- [bindings] beforeUnbind/afterUnbind to replace beforeDelete/afterDelete #3761 (@ds300)
- No defaults for contexts #3750 (@SomeHats)
- Fix imports in Astro #3742 (@steveruizok)
- textfields: fix RTL layout for SVG exports #3680 (@mimecuvalo @huppy-bot[bot])
- fix undo/redo issues #3658 (@SomeHats)
- textfields: for unfilled geo shapes fix edit->edit #3577 (@mimecuvalo)
- Fix text resizing with alt key #3632 (@steveruizok)
- Don't hover locked shapes #3575 (@steveruizok)
@tldraw/editor
- [DX] sensible defaults for createTLStore #3886 (@ds300)
- Prevent stale shape data in render #3882 (@ds300)
- [bugfix] Preserve redo stack when selection changes #3862 (@ds300)
- fix coarse pointer detection #3795 (@SomeHats)
- Fix spacebar/mmb panning bug. #3791 (@steveruizok)
- Prevent wobble during viewport following #3695 (@ds300)
- Bump max shapes to 4000 #3716 (@steveruizok)
- Allow DefaultErrorFallback to be used independently #3769 (@ds300)
- Prevent duplicate from creating any shapes if we reach max allowed shapes #3692 (@MitjaBezensek)
- Fix viewport following #3681 (@ds300)
- Fix className.includes bug #3672 (@steveruizok)
- [bugfix] don't crash if a bound shape doesn't exist #3653 (@ds300)
tldraw
,@tldraw/utils
- security: don't send referrer paths for images and bookmarks #3881 (@mimecuvalo)
- assets: rework mime-type detection to be consistent/centralized; add support for webp/webm, apng, avif #3730 (@mimecuvalo)
@tldraw/state
@tldraw/editor
,@tldraw/state
,tldraw
,@tldraw/utils
- editor: register timeouts/intervals/rafs for disposal #3852 (@mimecuvalo @steveruizok)
@tldraw/editor
,@tldraw/store
,tldraw
,@tldraw/tlschema
@tldraw/assets
,@tldraw/editor
,tldraw
,@tldraw/tlschema
- Add heart geo shape #3787 (@steveruizok)
- Separate text-align property for shapes #3627 (@steveruizok @huppy-bot[bot])
@tldraw/editor
,tldraw
,@tldraw/tlschema
- rework canBind callback #3797 (@SomeHats)
- Camera options #3282 (@MitjaBezensek @steveruizok)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/assets
,tldraw
- add missing spline icons #3778 (@ds300)
- Fix missing icons #3654 (@steveruizok)
@tldraw/editor
,@tldraw/store
,tldraw
- focus: rework and untangle existing focus management logic in the sdk #3718 (@mimecuvalo)
@tldraw/editor
,@tldraw/store
@tldraw/editor
,@tldraw/store
,tldraw
,@tldraw/utils
@tldraw/editor
,tldraw
,@tldraw/utils
- Camera options followups #3701 (@steveruizok)
@tldraw/tlschema
- embed: allow embeds like YouTube to link back to its site #3609 (@mimecuvalo @steveruizok)
- Expose migrations, validators, and versions from tlschema #3613 (@SomeHats)
tldraw
,@tldraw/tlschema
🖥️ tldraw.com Changes
- csp: disable for now #3907 (@mimecuvalo)
- Fix Content-Security-Policy browser warnings #3906 (@kitschpatrol)
- dotcom: desc tweak #3885 (@mimecuvalo)
- Add option to navigate to new project from file menu #3876 (@Taha-Hassan-Git)
- cloudflare: dont cache no-cache headers #3849 (@mimecuvalo)
- security: nix list and delete commands #3847 (@mimecuvalo)
- security: add recommended OWASP settings; also Zoom apps require them #3810 (@mimecuvalo)
- Remove unneeded worker IS_LOCAL check #3808 (@SomeHats)
- touchscreen: improve the side panel, fix deploy env var, create room programmatically #3806 (@mimecuvalo)
- Prevent pressing escape when editing document name to bubble up to the editor #3725 (@MitjaBezensek)
- Fix readonly fetching happening too often. #3732 (@MitjaBezensek @mimecuvalo)
- Move storing of snapshots to R2 #3693 (@MitjaBezensek)
- Prevent unnecessary fetching of readonly slugs #3663 (@MitjaBezensek)
- delete stray error screen css import #3683 (@ds300)
- Allow clients to gracefully handle rejection #3673 (@ds300)
- Allow embedding tldraw in iframes #3640 (@MitjaBezensek)
- Bring back
/r
#3615 (@MitjaBezensek) tldraw
- bookmarks: resolve relative urls #3914 (@mimecuvalo)
- Open share menu when navigating from create new shared project button #3898 (@Taha-Hassan-Git @steveruizok)
- Fix textbox direction when it contains both RTL and LTR languages #3188 (@mokazemi @mimecuvalo @steveruizok)
- Readonly / room creation omnibus #3192 (@MitjaBezensek @mimecuvalo)
@tldraw/editor
,tldraw
,@tldraw/tlschema
- bookmark: fix up double request and rework extractor #3856 (@mimecuvalo @steveruizok)
@tldraw/editor
- fix android long press changing cursor to non-coarse #3656 (@TodePond)
- Make coarse pointer check dynamic #3572 (@Taha-Hassan-Git @steveruizok)
@tldraw/assets
,tldraw
,@tldraw/tlschema
- Add desmos graph embed type #3608 (@not-first @steveruizok)
📖 Documentation changes
- Add editor notes to the docs #3832 (@CodeTorso @steveruizok)
- Remove alpha mention in installation for static assets #3833 (@steveruizok)
- Fix markdown list rendering on docs site #3813 (@SomeHats)
- Update README.md #3818 (@SomeHats)
- docs: smaller snapshot so it doesnt crash #3768 (@mimecuvalo)
- fix link #3726 (@Trevato)
- Fix link in collaboration documentation #3662 (@eswarclynn)
- 3d example #3647 (@steveruizok)
- examples: add filter input #3625 (@mimecuvalo)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/editor
,@tldraw/tlschema
@tldraw/validate
- Update validation.ts #3324 (@lorenzolewis)
tldraw
🏠 Internal
- tests: ugh edit->edit still flaky, skip #3919 (@mimecuvalo)
- test: disable camera pinch test for now, too flaky #3854 (@mimecuvalo)
- tests: fix edit→edit flakiness #3850 (@mimecuvalo)
- tests: fix camera scroll flakiness #3829 (@mimecuvalo)
- google meet: add hardware whiteboard integration #3765 (@mimecuvalo)
- delete old todo comment #3777 (@ds300)
- E2E camera tests #3747 (@Taha-Hassan-Git)
- Update template versions to latest #3646 (@steveruizok)
- Fix patch release script #3597 (@SomeHats)
- increase publish script timeouts #3570 (@SomeHats)
- longer retries for package publishing #3567 (@SomeHats)
tldraw
- Taha/more constraints tests #3863 (@Taha-Hassan-Git)
- npm: improve tldraw package readme #3851 (@mimecuvalo)
- Camera Constraints Tests #3844 (@Taha-Hassan-Git)
- Add unit tests for the camera #3814 (@Taha-Hassan-Git)
- Fix an issue with the minimap #3617 (@MitjaBezensek)
@tldraw/assets
,@tldraw/editor
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- Update READMEs, add form link #3741 (@steveruizok)
@tldraw/editor
,@tldraw/utils
- Measure action durations and fps for our interactions #3472 (@MitjaBezensek)
@tldraw/assets
,tldraw
@tldraw/editor
,@tldraw/tldraw
,@tldraw/state
,@tldraw/store
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
🧹 Chores
- VS Code 2.0.35 #3879 (@MitjaBezensek)
- VS Code version bump 2.0.34 #3874 (@MitjaBezensek)
- [VS Code] Version 2.0.33 #3687 (@MitjaBezensek)
- Lokalise: Translations update #3665 (@TodePond @steveruizok)
- VS Code 2.0.32 #3664 (@MitjaBezensek)
- VS Code 2.0.31 #3566 (@MitjaBezensek)
🔩 Dependency Updates
- Bump the npm_and_yarn group across 2 directories with 4 updates #3731 (@dependabot[bot] @mimecuvalo)
- Bump the npm_and_yarn group across 2 directories with 4 updates #3719 (@dependabot[bot])
- Bump the npm_and_yarn group across 2 directories with 6 updates #3712 (@dependabot[bot] @github-actions[bot] @mimecuvalo)
Authors: 17
- @dependabot[bot]
- @github-actions[bot]
- @huppy-bot[bot]
- alex (@SomeHats)
- CodeTorso (@CodeTorso)
- David Sheldrick (@ds300)
- Eric Mika (@kitschpatrol)
- Eswar Prasad Clinton. A (@eswarclynn)
- fakerr (@not-first)
- Lorenzo Lewis (@lorenzolewis)
- Lu Wilson (@TodePond)
- Mime Čuvalo (@mimecuvalo)
- Mitja Bezenšek (@MitjaBezensek)
- Mohammad Kazemi (@mokazemi)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
- Trevor Dobbertin (@Trevato)
v2.1.0 (Tue Apr 23 2024)
Release Notes
Make note handles show only one when zoomed out (#3562)
- Show only the bottom handle on notes when zoomed between .25 and .5
Perf: minor drawing speedup (#3464)
- Improve performance of draw shapes.
Prevent default on native clipboard events (#3536)
- Fix copy sound on clipboard events.
WebGL Minimap (#3510)
- Add a brief release note for your PR here.
arrows: fix bound arrow labels going over text shape (#3512)
- Arrows: fix label positioning when bound.
arrows: still use Dist instead of Dist2 (#3511)
- Fix arrow label positioning
Fix culling. (#3504)
- Fix culling.
"Soft preload" icons (#3507)
- Improve icon preloading
Color tweaks (light and dark mode) (#3486)
- Adjusts colors
Add slides example (#3467)
- Docs: Added a slideshow example
Only show cursor chat button in select mode (#3485)
- Fix cursor chat button appearing when not in select tool.
Fix alt-duplicating shapes sometimes not working (#3488)
- Add a brief release note for your PR here.
[perf] faster signia capture (again) (#3487)
- Add a brief release note for your PR here.
[perf] faster signia capture (#3471)
- Slight performance improvement to reactivity bookkeeping.
New migrations again (#3220)
BREAKING CHANGES
-
The
Migrations
type is now calledLegacyMigrations
. -
The serialized schema format (e.g. returned by
StoreSchema.serialize()
andStore.getSnapshot()
) has changed. You don't need to do anything about it unless you were reading data directly from the schema for some reason. In which case it'd be best to avoid that in the future! We have no plans to change the schema format again (this time was traumatic enough) but you never know. -
compareRecordVersions
and theRecordVersion
type have both disappeared. There is no replacement. These were public by mistake anyway, so hopefully nobody had been using it. -
compareSchemas
is gone. Comparing the schemas directly is no longer really possible since we introduced some fuzziness. The best thing to do now to check compatibility is to callschema.getMigraitonsSince(prevSchema)
and it will return an error if the schemas are not compatible, an empty array if there are no migrations to apply since the prev schema, and a nonempty array otherwise.Generally speaking, the best way to check schema compatibility now is to call
store.schema.getMigrationsSince(persistedSchema)
. This will throw an error if there is no upgrade path from thepersistedSchema
to the current version. -
defineMigrations
has been deprecated and will be removed in a future release. For upgrade instructions see https://tldraw.dev/docs/persistence#Updating-legacy-shape-migrations-defineMigrations -
migrate
has been removed. Nobody should have been using this but if you were you'll need to find an alternative. For migrating tldraw data, you should stick to usingschema.migrateStoreSnapshot
and, if you are building a nuanced sync engine that supports some amount of backwards compatibility, also feel free to useschema.migratePersistedRecord
. -
the
Migration
type has changed. If you need the old one for some reason it has been renamed toLegacyMigration
. It will be removed in a future release. -
the
Migrations
type has been renamed toLegacyMigrations
and will be removed in a future release. -
the
SerializedSchema
type has been augmented. If you need the old version specifically you can useSerializedSchemaV1
Stickies: release candidate (#3249)
- Improves sticky notes (see list)
Cancel pointer velocity while pinching (#3462)
- Fixed a bug that could occur while pinching with the hand tool selected.
conditionally use star-history dark theme (#3461)
updates the star-history image in the README to conditionally show a dark theme image based on the user's prefers-color-scheme
Allow users to edit the document title by double clicking it even when editing a shape. (#3459)
- Allow users to editing document name by double clicking even when previously editing text.
Don't show edit link for locked shapes. (#3457)
- Hide edit link context menu option for locked shapes.
Faster selection / erasing (#3454)
- Improve performance of minimum distance checks.
Make minimap display sharp rectangles. (#3434)
- Improve
Update font import URL in quick-start.mdx (#3430)
- Fixes font import link in tldraw.dev quickstart guide
Perf: Improve text outline performance (#3429)
- Improves performance of text shapes on iOS / Safari.
Perf: throttle updateHoveredId
(#3419)
- Improves canvas performance by throttling the update to the editor's hovered id.
Perf: block hit tests while moving camera (#3418)
- Improves performance of canvas while the camera is moving.
Perf: (slightly) faster min dist checks (#3401)
- Performance: small improvements to hit testing.
Examples: update kbd shortcuts, add actions overrides example (#3330)
- Add action overrides example, update keyboard shortcuts example
Add long press event (#3275)
- Add support for long pressing on desktop.
Tool with child states (#3074)
- Add an example of a tool with child states
Fix text resizing bug (#3327)
- Fixes an issue with text shapes overflowing their bounds when resized.
Input buffering (#3223)
- Add a brief release note for your PR here.
Add white (#3321)
- Adds secret white color.
Don't trigger pointer move on zoom (#3305)
- Improve performance of zooming.
Decrease the number of rendered dom nodes for geo shape and arrows (#3283)
- Reduce the number of rendered dom nodes for geo shapes and arrows without text.
Improve performance of culling (#3272)
- Improve performance of the canvas when many shapes are present.
styling: make dotcom and examples site have consistent font styling (#3271)
- Add a brief release note for your PR here.
ui: make toasts look more toasty (#2988)
- UI: Add severity to toasts.
textfields [1 of 3]: add text into speech bubble; also add rich text example (#3050)
- Refactor textfields be composable/swappable.
Update romanian translations (#3269)
- Update Romanian translation.
Allow hiding debug panel. (#3261)
- Allow users to fully override the
DebugPanel
.
Add inline behaviour example (#3113)
- Docs: Added an example for inline behaviour.
toolbar: fix missing title attributes (#3244)
- Fix title's being missing on toolbar items.
Don't double squash (#3182)
- Minor improvement when modifying multiple shapes at once.
Fix lag while panning + translating at the same time (#3186)
- Add a brief release note for your PR here.
fix docs build (#3201)
- Add a brief release note for your PR here.
Update the document title to include the document name. (#3197)
- Use the document name in the
document.title
.
Remove access token logic. (#3187)
- Remove some leftover logic from pro days.
[fix] Batch tick events (#3181)
- Fix a performance issue effecting resizing multiple shapes.
[tinyish] Simplify / skip some work in Shape (#3176)
- SDK: minor improvements to the Shape component
[tiny] Slightly more efficient selection rotated page bounds / page bounds (#3178)
- SDK, slightly more performant selection bounds calculations.
[sync] allow connections from v4 clients (#3173)
- Add a brief release note for your PR here.
[fix] Handles extra renders (#3172)
- SDK: Fixed a minor rendering issue related to handles.
[fix] Cleanup text measures (#3169)
- Fixed a bug that could cause multiple text measurement divs in development mode.
[perf] Reinstate render throttling (#3160)
- Add a brief release note for your PR here.
Fix release eliding (#3156)
- Add a brief release note for your PR here.
Updated exploded example link from installation page. (#3138)
- Add a brief release note for your PR here. Installation docs has a link to example for exploded which points to github 404. I have updated the working link.
Make the custom menu examples a bit clearer (#3106)
- Add a brief release note for your PR here.
Menu updates / fix flip / add export / remove Shape menu (#3115)
- Revert some changes in the menu.
Performance improvements (#2977)
- Improves the performance of rendering.
[fix] Rotated crop handle (#3093)
- Fixed a bug that could cause rotated cropping images to have incorrectly rotated handles.
Fix typo in useValue comment (#3088)
- Fix typo in useValue comment.
Shape with Migrations (#3078)
- Adds a shape with migrations example
Fix viewport params for pages. (#3079)
- Fixes an issue with url params in the share links. The viewport params only worked on the first page in the document.
Fix typo (#3069)
N/A
Add custom tool examples (#3064)
- Adds a simple custom tool example
Fix validation errors for duplicateProps
(#3065)
- Add a brief release note for your PR here.
Shorten url state (#3041)
- Shortens url parameters for dot com.
Fix an issue where the video size was not drawn correctly (#3047)
- Fix an issue where the video size was not drawn correctly.
[fix] Input tags (#3038)
- Fixed autocomplete, autocapitalize, and autocorrect tags on text inputs.
Lokalise: Translations update (#3049)
- Updated Hungarian translations.
[terrible] Firefox: Allow scrolling on keyboard shortcuts dialog (#2974)
- Add a brief release note for your PR here.
Fix cursor chat bubble position. (#3042)
- Fixed a bug where cursor chat bubble position could be wrong when a sidebar was open.
Fix broken link for shape example (#3046)
- Fix a link that was pointing to a 404 on GitHub
Protect local storage calls (#3043)
- Fixes a bug that could cause crashes in React Native webviews.
Custom shape examples (#2994)
- adds a simple custom shape example
- adds an interactive shape example
- updates editable shape example
Expose getStyleForNextShape
(#3039)
- Expose the API for
Editor.getStyleForNextShape
, previously marked as internal.
[fix] Missing element crash (rare) on video shapes. (#3037)
- Fixed a rare crash with video shapes.
Example of using tldraw styles (#3017)
- shape with tldraw styles example
Show a broken image for files without assets (#2990)
- Better handling of broken images / videos.
Selection UI example (plus fixes to pageToScreen) (#3015)
- Adds selection UI example.
- Adds
Editor.getSelectionRotatedScreenBounds
method - Fixes a bug with
pageToScreen
.
[bugfix] Avoid randomness at init time to allow running on cloudflare. (#3016)
- Prevent using randomness API at init time, to allow importing the tldraw package in a cloudflare worker.
💥 Breaking Change
@tldraw/editor
,tldraw
,@tldraw/validate
- React-powered SVG exports #3117 (@SomeHats @huppy-bot[bot])
@tldraw/editor
,tldraw
- Component-based toolbar customisation API #3067 (@SomeHats @steveruizok)
tldraw
- Menu updates / fix flip / add export / remove Shape menu #3115 (@steveruizok)
@tldraw/state
,@tldraw/store
,tldraw
,@tldraw/utils
- Performance improvements #2977 (@MitjaBezensek @steveruizok)
🚀 Enhancement
- squish sync data events before sending them out #3118 (@si14)
@tldraw/editor
,tldraw
- textfields [1 of 3]: add text into speech bubble; also add rich text example #3050 (@mimecuvalo)
@tldraw/editor
- Selection UI example (plus fixes to pageToScreen) #3015 (@steveruizok)
🐛 Bug Fix
- Revert "squish sync data events before sending them out" #3331 (@ds300)
- docs: fix up github link #3108 (@mimecuvalo)
- Bump the npm_and_yarn group across 3 directories with 3 updates #3087 (@dependabot[bot] @github-actions[bot] @MitjaBezensek)
- simplify fnmatch pattern (@ds300)
- Bump the npm_and_yarn group group with 7 updates #2982 (@dependabot[bot] @MitjaBezensek)
tldraw
- quick fixes #3128 (@steveruizok)
📚 SDK Changes
- Update useFileSystem.tsx #3371 (@steveruizok)
- only buffer pointer events #3337 (@steveruizok)
tldraw
- Fix collaborator size with zoom #3563 (@steveruizok)
- Make note handles show only one when zoomed out #3562 (@steveruizok)
- Fix transparent colors in the minimap #3561 (@steveruizok)
- Expose
usePreloadAssets
#3545 (@SomeHats) - Prevent default on native clipboard events #3536 (@steveruizok)
- Improve back to content #3532 (@steveruizok)
- arrows: fix bound arrow labels going over text shape #3512 (@mimecuvalo)
- textfields: fix Safari cursor rendering bug, take 2 #3513 (@mimecuvalo)
- geo: fix double unique id on DOM #3514 (@mimecuvalo)
- arrows: still use Dist instead of Dist2 #3511 (@mimecuvalo)
- textfields: nix disableTab option; make TextShapes have custom Tab behavior as intended #3506 (@mimecuvalo)
- "Soft preload" icons #3507 (@steveruizok)
- textfields: wait a tick before selecting all to fix iOS #3501 (@mimecuvalo)
- textfields: fix dragging selected shape behind another #3498 (@mimecuvalo)
- stickies: a bit of fuzziness when calculating certain text #3493 (@mimecuvalo)
- Fix alt-duplicating shapes sometimes not working #3488 (@TodePond)
- stickies: dont remove selection ranges when edit->edit #3484 (@mimecuvalo)
- stickies: hide clone handles on mobile #3478 (@mimecuvalo)
- Don't show edit link for locked shapes. #3457 (@MitjaBezensek)
- Performance measurement tool (for unit tests) #3447 (@steveruizok)
- Remove minimap throttling #3438 (@steveruizok)
- Make minimap display sharp rectangles. #3434 (@steveruizok)
- Perf: throttle
updateHoveredId
#3419 (@steveruizok) - Revert "Fix text resizing bug (#3327)" #3332 (@mimecuvalo)
- Fix text resizing bug #3327 (@Taha-Hassan-Git)
- Fix count shapes and nodes #3318 (@steveruizok)
- Decrease the number of rendered dom nodes for geo shape and arrows #3283 (@MitjaBezensek)
- styling: make dotcom and examples site have consistent font styling #3271 (@mimecuvalo @steveruizok)
- Allow hiding debug panel. #3261 (@MitjaBezensek)
- toolbar: fix missing title attributes #3244 (@mimecuvalo @steveruizok)
- Fix jpg export and tests #3198 (@SomeHats)
- [tiny] lift theme in style panel #3170 (@steveruizok)
tldraw
,@tldraw/utils
- Perf: minor drawing speedup #3464 (@steveruizok)
- fixup file helpers #3130 (@SomeHats)
@tldraw/editor
,tldraw
- WebGL Minimap #3510 (@ds300)
- textfields: on mobile edit->edit, allow going to empty geo #3469 (@mimecuvalo)
- Faster selection / erasing #3454 (@steveruizok)
- Fix SVG exports in Next.js #3446 (@SomeHats)
- Perf: Incremental culled shapes calculation. #3411 (@MitjaBezensek @steveruizok)
- Fix some tests #3403 (@steveruizok)
- Add long press event #3275 (@steveruizok)
- textfields: fix regression with Text shape and resizing #3333 (@mimecuvalo)
- Add image annotator example #3147 (@SomeHats)
- [fix] Batch tick events #3181 (@steveruizok)
- [tinyish] Simplify / skip some work in Shape #3176 (@steveruizok)
@tldraw/state
tldraw
,@tldraw/validate
@tldraw/editor
,@tldraw/tlschema
- Color tweaks (light and dark mode) #3486 (@steveruizok @huppy-bot[bot])
@tldraw/editor
- Stickies: fix sticky note clipping #3503 (@steveruizok)
- css more shapes that need transparent behavior #3497 (@mimecuvalo)
- [fix] use page point for pointer #3476 (@ds300)
- perf: calculate hypoteneuse manually instead of using hypot #3468 (@mimecuvalo)
- Cancel pointer velocity while pinching #3462 (@steveruizok)
- Perf: Use a computed cache for masked shape page bounds #3460 (@steveruizok)
- Remove docs for Editor.batch #3451 (@steveruizok)
- Fix panning. #3445 (@MitjaBezensek)
- Perf: Improve text outline performance #3429 (@steveruizok)
- Fix text bug on iOS #3423 (@steveruizok)
- Perf: block hit tests while moving camera #3418 (@steveruizok)
- Fix an issue with layers when moving shapes. #3380 (@MitjaBezensek)
- [culling] minimal culled diff with webgl #3377 (@steveruizok)
- put
getCurrentPageId
into a computed #3378 (@steveruizok) - Don't trigger pointer move on zoom #3305 (@steveruizok)
- Improve performance of culling #3272 (@steveruizok)
- Skip the random ID for regular history entries #3183 (@steveruizok)
- [tiny] Slightly more efficient selection rotated page bounds / page bounds #3178 (@steveruizok)
- [fix] handles #3177 (@steveruizok)
- [fix] Handles extra renders #3172 (@steveruizok)
- [tiny] remove unused shape indicator equality checker #3171 (@steveruizok)
- [fix] Cleanup text measures #3169 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/state
,@tldraw/store
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- New migrations again #3220 (@ds300 @steveruizok)
@tldraw/store
- undo devFreeze unintentional commit #3466 (@mimecuvalo)
- Fix typo. #3306 (@MitjaBezensek)
- Don't double squash #3182 (@steveruizok)
@tldraw/editor
,tldraw
,@tldraw/tlschema
- Stickies: release candidate #3249 (@steveruizok @mimecuvalo @TodePond @huppy-bot[bot])
@tldraw/editor
,@tldraw/store
,tldraw
- Improve hand dragging with long press #3432 (@steveruizok)
- Perf: (slightly) faster min dist checks #3401 (@steveruizok)
@tldraw/editor
,@tldraw/utils
- Perf: slightly faster
getShapeAtPoint
#3416 (@steveruizok)
- Perf: slightly faster
@tldraw/state
,@tldraw/tlschema
- Add white migration #3334 (@steveruizok)
@tldraw/editor
,@tldraw/state
,tldraw
- Fix blur bug in editable text #3343 (@steveruizok)
@tldraw/editor
,tldraw
,@tldraw/utils
- Input buffering #3223 (@MitjaBezensek @steveruizok)
- Fix lag while panning + translating at the same time #3186 (@ds300 @steveruizok)
tldraw
,@tldraw/tlschema
- Add white #3321 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/store
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/editor
,@tldraw/state
🖥️ tldraw.com Changes
- fix document name alignment #3559 (@SomeHats)
- Fix version #3521 (@MitjaBezensek)
- Only show cursor chat button in select mode #3485 (@TodePond)
- Allow users to edit the document title by double clicking it even when editing a shape. #3459 (@MitjaBezensek)
- Fix cursor chat in context menu. #3435 (@steveruizok)
- Update romanian translations #3269 (@TodePond)
- fix document name overflow #3263 (@SomeHats)
- top bar design tweaks #3205 (@SomeHats)
- Update the document title to include the document name. #3197 (@MitjaBezensek)
- Remove access token logic. #3187 (@MitjaBezensek)
- [sync] allow connections from v4 clients #3173 (@ds300)
@tldraw/editor
📖 Documentation changes
- Add releases section to docs #3564 (@SomeHats)
- conditionally use star-history dark theme #3461 (@sunnyzanchi)
- Update font import URL in quick-start.mdx #3430 (@Taha-Hassan-Git)
- Examples: update kbd shortcuts, add actions overrides example #3330 (@Taha-Hassan-Git @steveruizok)
- Tool with child states #3074 (@Taha-Hassan-Git @steveruizok)
- Add inline behaviour example #3113 (@TodePond)
- docs: make header fixed instead of sticky #3228 (@mimecuvalo)
- fix docs slugs #3227 (@SomeHats)
- docs: work around browser bug with input+scrolling #3209 (@mimecuvalo)
- PDF editor example #3159 (@SomeHats)
- fix docs build #3201 (@ds300)
- [example] culling #3174 (@steveruizok)
- Fix release eliding #3156 (@ds300)
- [docs] Sync docs deploy with npm deploy #3153 (@ds300)
- Updated exploded example link from installation page. #3138 (@Kesavaraja)
- Make the custom menu examples a bit clearer #3106 (@Taha-Hassan-Git)
- Custom renderer example #3091 (@steveruizok)
- Shape with Migrations #3078 (@Taha-Hassan-Git @steveruizok)
- Fix typo #3069 (@calebeby)
- Add custom tool examples #3064 (@Taha-Hassan-Git)
- Fix broken link for shape example #3046 (@lorenzolewis)
- Custom shape examples #2994 (@Taha-Hassan-Git @steveruizok)
- Example of using tldraw styles #3017 (@Taha-Hassan-Git @steveruizok)
@tldraw/editor
@tldraw/store
- Fix typo in Store.ts #3385 (@OrionReed)
tldraw
- docs: fix missing API entries #3111 (@mimecuvalo @steveruizok)
@tldraw/state
- Fix typo in useValue comment #3088 (@Slowhand0309)
🏠 Internal
- Fix deploy script #3550 (@MitjaBezensek)
- [internal] Add license report scripts #2751 (@steveruizok)
- [chore] Bump browser-fs-access. #3277 (@steveruizok)
- log message size in worker analytics #3274 (@SomeHats)
- Add yarn immutable check to pre-commit. #3218 (@MitjaBezensek)
- tooling: prettier ignore pr template #3210 (@mimecuvalo)
- Add release docs #3158 (@ds300)
- Simplify tlsync types #3139 (@si14)
- [DX] PR labels revamp #3112 (@ds300)
- Restore export menu content #3126 (@steveruizok)
- Don't import package.json in scripts/refresh-assets.ts, just read it #3116 (@si14)
- [dx] Allow vscode to search inside md files by default #3105 (@ds300)
- Debounce/aggregate tlsync messages #3012 (@si14)
- [infra] Fix patch release script #3095 (@ds300)
- [infra] Patch release scripting #3072 (@ds300)
- Shorten url state #3041 (@steveruizok)
- Fix cursor chat bubble position. #3042 (@steveruizok)
- Configure dependabot. #2980 (@MitjaBezensek)
- [infra] fix canary dist tag #3048 (@ds300)
@tldraw/editor
- Use computed cache for getting the parent child relationships #3508 (@MitjaBezensek)
- Perf: Improve perf of
getCurrentPageShapesSorted
#3453 (@MitjaBezensek @steveruizok) - Only run when shapes change. #3456 (@MitjaBezensek)
- Reorder dom elements. #3431 (@MitjaBezensek @steveruizok)
- fix export preview size #3264 (@SomeHats)
- A few more async routes #3023 (@steveruizok)
@tldraw/editor
,tldraw
- Fix culling. #3504 (@MitjaBezensek)
- Revert "RBush again? (#3439)" #3481 (@MitjaBezensek)
- RBush again? #3439 (@MitjaBezensek @steveruizok)
- [culling] Improve setting of display none. #3376 (@MitjaBezensek)
@tldraw/state
@tldraw/utils
- Add two simple perf helpers. #3399 (@MitjaBezensek)
@tldraw/editor
,tldraw
,@tldraw/tlschema
- Display none for culled shapes #3291 (@MitjaBezensek @steveruizok)
@tldraw/editor
,@tldraw/state
,tldraw
- Revert perf changes #3217 (@MitjaBezensek)
@tldraw/tldraw
@tldraw/tlschema
- Remove dependabot config since it only controls version updates? #3057 (@MitjaBezensek)
🐛 Bug Fixes
- VS Code 2.0.30 #3519 (@MitjaBezensek)
- [hotfix] Panning fix for VS Code #3452 (huppy+SomeHats@tldraw.com huppy+ds300@tldraw.com @SomeHats @web-flow huppy+mimecuvalo@tldraw.com @steveruizok @MitjaBezensek @ds300 huppy+steveruizok@tldraw.com)
- Fix viewport params for pages. #3079 (@MitjaBezensek)
- Better websocket reconnection handling #2960 (@si14 @ds300)
- Lokalise: Translations update #3049 (@TodePond)
@tldraw/assets
,@tldraw/editor
,tldraw
- ui: make toasts look more toasty #2988 (@mimecuvalo)
@tldraw/state
- Revert throttling of useValue and useStateTracking. #3129 (@MitjaBezensek)
tldraw
,@tldraw/utils
- chore: cleanup multiple uses of FileReader #3110 (@mimecuvalo)
tldraw
- [fix] Rotated crop handle #3093 (@steveruizok)
- Fix an issue where the video size was not drawn correctly #3047 (@bubweiser @steveruizok)
- [fix] Input tags #3038 (@steveruizok)
- [terrible] Firefox: Allow scrolling on keyboard shortcuts dialog #2974 (@TodePond @steveruizok)
- [fix] Missing element crash (rare) on video shapes. #3037 (@steveruizok)
@tldraw/editor
,tldraw
- Fix validation errors for
duplicateProps
#3065 (@MitjaBezensek) - children: any -> children: ReactNode #3061 (@SomeHats)
- Fix validation errors for
@tldraw/editor
,tldraw
,@tldraw/utils
@tldraw/editor
- Expose
getStyleForNextShape
#3039 (@steveruizok) - [bugfix] Avoid randomness at init time to allow running on cloudflare. #3016 (@ds300)
- Expose
@tldraw/editor
,@tldraw/tldraw
,tldraw
- Show a broken image for files without assets #2990 (@steveruizok)
🧹 Chores
- VS Code 2.0.29 #3515 (@MitjaBezensek)
- VS Code 2.0.27 #3442 (@MitjaBezensek)
- VS Code 2.0.26 #3148 (@MitjaBezensek)
🧪 Tests
- attempted fix of a flaky ClientWebSocketAdapter test #3114 (@si14)
@tldraw/editor
- Add tests for Vec.Average #3071 (@MitjaBezensek)
@tldraw/editor
,@tldraw/tlschema
- [fix] Routes check on e2e tests #3022 (@steveruizok)
🔩 Dependency Updates
- Bump the npm_and_yarn group across 1 directory with 2 updates #3505 (@dependabot[bot] @mimecuvalo @steveruizok)
- Bump the npm_and_yarn group across 1 directory with 2 updates #3443 (@dependabot[bot])
- Bump the npm_and_yarn group across 1 directory with 1 update #3348 (@dependabot[bot])
- Bump the npm_and_yarn group across 1 directory with 2 updates #3304 (@dependabot[bot] @github-actions[bot] @MitjaBezensek)
- Bump the npm_and_yarn group across 1 directory with 2 updates #3165 (@dependabot[bot])
Authors: 23
- @dependabot[bot]
- @github-actions[bot]
- @huppy-bot[bot]
- alex (@SomeHats)
- Caleb Eby (@calebeby)
- Dan Groshev (@si14)
- David Sheldrick (@ds300)
- ds300 (huppy+ds300@tldraw.com)
- GitHub Web Flow (@web-flow)
- hirano (@bubweiser)
- Kesavaraja Krishnan (@Kesavaraja)
- Lorenzo Lewis (@lorenzolewis)
- Lu Wilson (@TodePond)
- Mime Čuvalo (@mimecuvalo)
- mimecuvalo (huppy+mimecuvalo@tldraw.com)
- Mitja Bezenšek (@MitjaBezensek)
- Orion Reed (@OrionReed)
- Slowhand (@Slowhand0309)
- SomeHats (huppy+SomeHats@tldraw.com)
- Steve Ruiz (@steveruizok)
- steveruizok (huppy+steveruizok@tldraw.com)
- Sunny Zanchi (@sunnyzanchi)
- Taha (@Taha-Hassan-Git)
v2.0.0 (Thu Feb 29 2024)
⚠️ Pushed to main
@tldraw/tldraw
,tldraw
- updatereadmes (@steveruizok)
📝 Documentation
@tldraw/tldraw
- Update readmes / docs for 2.0 #3011 (@steveruizok)
Authors: 1
- Steve Ruiz (@steveruizok)
v2.0.0-beta.9 (Thu Feb 29 2024)
⚠️ Pushed to main
Authors: 1
- David Sheldrick (@ds300)
v2.0.0-beta.8 (Thu Feb 29 2024)
⚠️ Pushed to main
@tldraw/editor
,tldraw
- use glob to pick up version files? (@ds300)
Authors: 1
- David Sheldrick (@ds300)
v2.0.0-beta.7 (Thu Feb 29 2024)
Release Notes
Fix publish script one more time (#3010)
- Add a brief release note for your PR here.
🏠 Internal
Authors: 1
- David Sheldrick (@ds300)
v2.0.0-beta.6 (Thu Feb 29 2024)
Release Notes
fix setAllVersions (#3009)
- Add a brief release note for your PR here.
Fix publishing scripts (#3008)
- Add a brief release note for your PR here.
🏠 Internal
Authors: 1
- David Sheldrick (@ds300)
v2.0.0-beta.5 (Thu Feb 29 2024)
Release Notes
fix publishing scripts (#3006)
- Add a brief release note for your PR here.
tldraw_final_v6_final(old version).docx.pdf (#2998)
- The
@tldraw/tldraw
package has been renamed totldraw
. You can keep using the old version if you want though!
Don't add editor / app to window. (#2995)
- Remove
window.editor
andwindow.app
references to editor.
Adding a single E2E test per menu (#2954)
- Add a brief release note for your PR here.
unbork publish-new (#2999)
- Add a brief release note for your PR here.
Implement new package publish process (#2996)
- Add a brief release note for your PR here.
[feature] wrap mode (#2938)
- Added
isWrapMode
to user preferences. - Added Wrap Mode toggle to user preferences menu.
Don't allow edge scrolling when camera is frozen. (#2992)
- Don't allow edge scrolling when camera is frozen.
Setup papercuts (#2987)
- Add a brief release note for your PR here.
Add external dialog example (#2887)
- Dev: Added an example for dialogs that go outside the component.
fix document name overlapping people menu (#2970)
- Fix people menu overlapping with document name when it grew too large.
Make exportToBlob public (#2983)
- Exposes the exportToBlob function for library users
export default ui items (#2973)
- Components within default menu content components are now exported.
Show toast on upload error (#2959)
- Adds a quick toast to show when image uploads fail.
Fix transparency toggle (#2964)
- Fixes the Transparent toggle. The condition was accidentally flipped.
menu: rework File menu / ensure Export menu is present (#2783)
- Composable UI: makes File items be more granularly accessible / usable
- Menu: show Export under the File menu.
ui events: prevent sending 2nd event unnecessarily (#2921)
- Some cleanup on duplicate UI events being sent.
[fix] fit to content shown on groups (#2946)
- Fix bug where "fit frame to content" would be shown when a group is selected.
fix structured clone reference in drawing (#2945)
- Fixes a reference to structuredClone that caused a crash on older browsers.
[fix] Corejs imports (#2940)
- Fixes a bug effecting some users related to corejs imports.
Add example for external UI (#2846)
- Docs: Added external UI example.
Remove template references (#2919)
- changes the doc site so it no longer references the site template
Fix keyboard shortcuts bugs (#2936)
- [Fix] Keyboard shortcut focus bug
E2E Style Panel Tests (#2878)
- Add style panel E2E tests
Fix undo/redo for Opacity Slider + Style dropdowns. (#2933)
- Fixed issues where undo/redo entries were not being set up correctly for the opacity slider or the style dropdown menus.
Add custom static assets example, extract preloadFont (#2932)
- Docs, added custom static assets example.
Fix frames not preserving shape order (#2928)
- Fix an issue when framing shapes did not preserve the original order of the shapes.
- You can now frame shapes inside of the frame.
Bounds snapping shape (#2909)
- Adds a custom bounds snapping shape
Improve dialog appearance on small components (#2884)
- Dev: Made default dialogs work better when used in small components.
Better example intros (#2912)
- Adds more info to the examples section of the docs.
docs: add star history and contributor list to README. (#2914)
add star history and contributor list to README.
-
Increases project transparency: This can help other developers understand the popularity and activity level of the project.
-
Recognizes contributors: Listing contributors can recognize those who have contributed to the project, which may also motivate more people to participate in the project.
-
Provides more information: The star history chart and contributor list provide more information for potential users or contributors, helping them make decisions about whether to use or participate in the project.
-
Enhances the project's professionalism: A detailed README file can enhance the professionalism of the
💥 Breaking Change
@tldraw/editor
- Don't add editor / app to window. #2995 (@steveruizok)
🚀 Enhancement
@tldraw/editor
,tldraw
- [feature] wrap mode #2938 (@steveruizok)
tldraw
- Make exportToBlob public #2983 (@ds300)
- export default ui items #2973 (@Taha-Hassan-Git)
- Fix keyboard shortcuts bugs #2936 (@steveruizok @ds300)
- Add custom static assets example, extract preloadFont #2932 (@steveruizok)
- Export history hooks #2926 (@steveruizok)
- Improve dialog appearance on small components #2884 (@TodePond)
🐛 Bug Fix
- husky: add +x chmod flag #2986 (@mimecuvalo)
- fix document name overlapping people menu #2970 (@Taha-Hassan-Git)
- docs: Adjust max columns of contributor list in README. #2917 (@wangrongding)
- VS Code 2.0.25 #2911 (@MitjaBezensek)
tldraw
- textfields: make them consistent #2984 (@mimecuvalo)
- Show toast on upload error #2959 (@ds300)
- menu: export followup with different semantics for file menu #2968 (@mimecuvalo)
- Fix transparency toggle #2964 (@ds300)
- menu: rework File menu / ensure Export menu is present #2783 (@mimecuvalo)
- ui events: prevent sending 2nd event unnecessarily #2921 (@mimecuvalo)
- [fix] fit to content shown on groups #2946 (@steveruizok)
- Fix frames not preserving shape order #2928 (@MitjaBezensek)
@tldraw/editor
- Don't allow edge scrolling when camera is frozen. #2992 (@MitjaBezensek)
- migrate shapes / assets as a store on
putContent
#2971 (@steveruizok) - [fix] double spinner #2963 (@steveruizok)
- [fix] Corejs imports #2940 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
@tldraw/assets
,@tldraw/editor
,tldraw
,@tldraw/tlschema
- Prevent iframe embedding for dotcom (except on tldraw.com) #2947 (@steveruizok)
@tldraw/editor
,tldraw
- Expand props #2948 (@steveruizok)
- Fix undo/redo for Opacity Slider + Style dropdowns. #2933 (@ds300)
tldraw
,@tldraw/tlschema
,@tldraw/utils
- fix structured clone reference in drawing #2945 (@steveruizok)
⚠️ Pushed to main
- better name for publish-new (@ds300)
- remove dry run early return (@ds300)
- better error message in publish-new.yml (@ds300)
- fix error logging in publish-now.yml (@ds300)
- fix bash thing (@ds300)
🏠 Internal
- fix publishing scripts #3006 (@ds300)
- unbork "unbork publish-new" #3003 (@si14)
- unbork publish-new #2999 (@ds300)
- remove yarn stuff from the templates and ignore it #2997 (@si14)
- Implement new package publish process #2996 (@ds300)
- Use github actions to mirror templates from monorepo to appropriate repos #2781 (@si14 @Taha-Hassan-Git)
- tooling: notify team members if package.json/yarn has been updated #2972 (@mimecuvalo)
- Open iframe production links in new tab #2966 (@SomeHats)
- [examples] Log out the 'after' values of changes in StoreEventsExample #2956 (@ds300)
- [dx] Derive vercel routes from react-router config #2937 (@ds300)
- Update auto #2952 (@ds300)
- Fix an issue with publishing canary #2931 (@MitjaBezensek)
- Make Vercel URL rewrites precise #2913 (@si14)
- examples: let people copy out code #2920 (@mimecuvalo)
- Lokalise: Translations update #2908 (@TodePond)
@tldraw/editor
,@tldraw/tldraw
,tldraw
tldraw
- license: make them not be scrubbed out in code munging #2976 (@mimecuvalo)
📝 Documentation
- Add external dialog example #2887 (@TodePond)
- speech bubble handle -> tail #2975 (@SomeHats)
- [docs] Fix mailtos #2961 (@steveruizok)
- [docs] content #2958 (@steveruizok)
- Add example for external UI #2846 (@TodePond @steveruizok)
- Remove template references #2919 (@Taha-Hassan-Git)
- Bounds snapping shape #2909 (@Taha-Hassan-Git)
- Better example intros #2912 (@Taha-Hassan-Git)
- docs: add star history and contributor list to README. #2914 (@wangrongding)
tldraw
- [docs] design shuffle #2951 (@steveruizok)
🧪 Tests
- E2E Style Panel Tests #2878 (@Taha-Hassan-Git @steveruizok)
tldraw
- Adding a single E2E test per menu #2954 (@Taha-Hassan-Git @steveruizok)
🔩 Dependency Updates
@tldraw/assets
,@tldraw/editor
,@tldraw/state
,@tldraw/store
,tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- bump typescript / api-extractor #2949 (@steveruizok)
Authors: 9
- alex (@SomeHats)
- Dan Groshev (@si14)
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- Mime Čuvalo (@mimecuvalo)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
- 荣顶 (@wangrongding)
v2.0.0-beta.4 (Wed Feb 21 2024)
Release Notes
menu fixes: add company links in general; add tracking to lang menu (#2902)
- Add company menu links back in and make sure the Language menu is updated on change.
Fix some menu issues on mobile (#2906)
- Add a brief release note for your PR here.
[experiment] paste: show little puff when pasting to denote something happened (#2787)
- UI: add a little 'puff' when something is pasted to tell that something has happened.
Fix custom keyboard shortcut dialog example (#2876)
- Docs: Fixed custom keyboard shortcut dialog example.
Sentence case all example titles (#2889)
- Docs: Made the examples titles sentence case.
Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' (#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)
- Add a brief release note for your PR here.
[Snapping 6/6] Self-snapping API (#2869)
- Line handles now snap to other handles on the same line when holding command
Editable shape example (#2853)
- Adds an editable shape example
Fix dialog title styles (#2873)
- Unreleased bug: Fixed dialog titles appearance.
Fix some incorrect translation keys (#2870)
- Unreleased issue. Fixed some translation keys being wrong.
Allow users to set document name and use it for exporting / saving (#2685)
- Allow users to name their documents.
Fix some problem under Windows OS development enviroment (#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)
- fix typo in examples
[fix] grid, other insets (#2858)
- Fixes a bug with the grid not appearing.
E2e tests for the toolbar (#2709)
- Add e2e tests for the toolbar
fix frame style panel (#2851)
- Fixes an issue with the opacity slider getting squished.
Add component for viewing an image of a snapshot (#2804)
- Dev: Added the
TldrawImage
component.
fix typo(examples/hosted-images) (#2849)
- Fixed a typo in the description in the hosted-images example.
ui: refactor breakpoints to fit in an enum (#2843)
- Refactor breakpoints into an enum.
[Snapping 5/5] Better handle snapping for geo shapes (#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)
- Line handles
[Snapping 3/5] Custom snapping API (#2793)
- Add
ShapeUtil.getSnapInfo
for customising shape snaps.
Composable custom UI (#2796)
- Add a brief release note for your PR here.
errors: improve msg in dialog when error happens (#2844)
- Improves error dialog messaging.
[Snapping 2/5] Fix line-handle mid-point snapping (#2831)
- Simplify the contents of
TLLineShape.props.handles
Readonly defaults to the hand tool (#2833)
- Shared projects in read only mode now default to the hand tool
Improve signia error handling (#2835)
- Add a brief release note for your PR here.
[docs] Fix missing Persistence page (#2828)
- Add a brief release note for your PR here.
emojis! 🧑🎨 🎨 ✏️ (#2814)
- Adds emoji picker to text fields.
💥 Breaking Change
@tldraw/tldraw
,@tldraw/tlschema
@tldraw/editor
,@tldraw/tldraw
- Allow users to set document name and use it for exporting / saving #2685 (@MitjaBezensek)
@tldraw/tldraw
- UI components round two #2847 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/validate
- Composable custom UI #2796 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
🚀 Enhancement
- Readonly defaults to the hand tool #2833 (@Taha-Hassan-Git)
@tldraw/editor
,@tldraw/tldraw
- [Snapping 6/6] Self-snapping API #2869 (@SomeHats @steveruizok)
- Add component for viewing an image of a snapshot #2804 (@TodePond @steveruizok)
- [Snapping 4/5] Add handle-point snapping #2841 (@SomeHats)
- [Snapping 3/5] Custom snapping API #2793 (@SomeHats)
- emojis! 🧑🎨 🎨 ✏️ #2814 (@mimecuvalo)
@tldraw/tldraw
,@tldraw/tlschema
- [handles] Line shape handles -> points #2856 (@steveruizok)
@tldraw/tldraw
- [Snapping 5/5] Better handle snapping for geo shapes #2845 (@SomeHats)
- Remove pointer check for arrow labels #2824 (@steveruizok)
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
- Lokalise: Translations update #2830 (@TodePond @MitjaBezensek)
🐛 Bug Fix
- fix invite others #2904 (@SomeHats)
- Update Hungarian and Korean #2871 (@TodePond)
- docs: tweak search kbd placement to match loupe #2834 (@mimecuvalo)
@tldraw/tldraw
- menu fixes: add company links in general; add tracking to lang menu #2902 (@mimecuvalo)
- Fix some menu issues on mobile #2906 (@TodePond)
- remove stray 'console' #2881 (@ds300)
- Fix dialog title styles #2873 (@TodePond)
- Fix some incorrect translation keys #2870 (@TodePond)
- fix frame style panel #2851 (@Taha-Hassan-Git @steveruizok)
- ui: refactor breakpoints to fit in an enum #2843 (@mimecuvalo)
@tldraw/validate
- Fix object validator #2897 (@MitjaBezensek)
@tldraw/editor
,@tldraw/tldraw
- [experiment] paste: show little puff when pasting to denote something happened #2787 (@mimecuvalo @steveruizok)
- Fix 'style panel doesn't always disappear if you switch to the hand/laser tools' #2886 (@ds300)
- Roundup fixes #2862 (@steveruizok)
- [fix] grid, other insets #2858 (@steveruizok)
@tldraw/editor
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/validate
@tldraw/editor
- [fix] pointer capture logging when debug flag is off #2850 (@steveruizok)
- errors: improve msg in dialog when error happens #2844 (@mimecuvalo)
- seo: take 2 #2817 (@mimecuvalo @steveruizok)
- [fix] sticky note bug #2836 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/state
🏠 Internal
- Fix some problem under Windows OS development enviroment #2722 (@Rokixy)
- fix typo(examples/hosted-images) #2849 (@pocari)
- ✋ humans.txt #2842 (@mimecuvalo)
- examples: rename ui events and increase priority #2840 (@mimecuvalo)
- repair Huppy's handling of LICENCE #2821 (@si14)
@tldraw/assets
,@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/validate
@tldraw/tldraw
@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 (@mimecuvalo)
@tldraw/editor
,@tldraw/tldraw
📝 Documentation
- Sentence case all example titles #2889 (@TodePond)
- docs: fix scroll position and theming issue for code snippets #2883 (@mimecuvalo)
- Editable shape example #2853 (@Taha-Hassan-Git)
- doc: fix typo in examples #2859 (@Rokixy)
- [docs] Fix missing Persistence page #2828 (@ds300)
🧪 Tests
@tldraw/tldraw
- E2e tests for the toolbar #2709 (@Taha-Hassan-Git)
Authors: 10
- @Rokixy
- alex (@SomeHats)
- Dan Groshev (@si14)
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- Mime Čuvalo (@mimecuvalo)
- Mitja Bezenšek (@MitjaBezensek)
- pocari (@pocari)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-beta.3 (Tue Feb 13 2024)
Release Notes
Fix camera. (#2818)
- Fixes an issue with the camera and zooming.
Use canvas bounds for viewport bounds (#2798)
- Changes the source of truth for the viewport page bounds to be the canvas instead.
docs: better code snippets (#2801)
- Docs: reworks code snippets
Quick start guide (#2692)
- Add a quick start guide
docs: fix scrolling issue with sidebar (#2791)
- Docs: fix up scrolling.
Style UI based on component size instead of window size (#2758)
- Dev: Fixed the default tldraw UI not matching the size of the component.
examples: clean up Canvas/Store events and make UiEvents have code snippets (#2770)
- Examples: add an interactive example that shows code snippets for the SDK.
Fixed actions menu opening in wrong direction on mobile (and add an inline layout example) (#2730)
- Dev: Fixed the actions menu opening in the wrong direction.
error reporting: rm ids from msgs for better Sentry grouping (#2738)
- Error reporting: improve grouping for Sentry.
rearrange export / import from tldraw to help builds (#2739)
- Build: Help with import/export error on some builds.
i18n: add HR 🇭🇷 (#2778)
- i18n: add Croatian / Hrvatski.
arrows: account for another NaN (#2753)
- Fixes zero-width arrow NaN computation when moving the label.
Split snap manager into ShapeBoundsSnaps and HandleSnaps (#2747)
SnapLine
s are now calledSnapIndicator
s- Snapping methods moved from
editor.snaps
toeditor.snaps.shapeBounds
andeditor.snaps.handles
depending on the type of snapping you're trying to do.
arrows: update cursor only when in Select mode (#2742)
- Cursor tweak for arrow labels.
Fix pinch zooming (#2748)
- None: Fixes an unreleased bug.
docs: disable ai search for now (#2740)
- Docs: disable AI search for now.
seo: attempt at avoiding a "soft 404" with there being thin content on dotcom (#2737)
- Add a "Loading..." text to help SEO.
docs: add full-text search (#2735)
- Docs: Add full-text search.
docs: fix CORS issue and broken example link (#2727)
- Fixes docs CORS issue.
docs: rework search UI (#2723)
- Docs: rework the search to be an inline dropdown.
[fix] VSCode keyboard shortcuts while editing text (#2721)
- Fixed a bug in the VS Code that prevented keyboard shortcuts from working in text labels.
[Fix] Camera coordinate issues (#2719)
- Fixed bugs with
getViewportScreenCenter
that could effect zooming and pinching on editors that aren't full screen
fix(docs): fix user-interface.mdx (#2700)
Add newMenuItem
creation in "Toolbar and Menus" example
docs: more cleanup following restructure (#2702)
- Docs: further cleanup following restructure.
reactive context menu overrides (#2697)
- Context Menu overrides will now update reactively
[Fix] Note shape border radius (#2696)
- Fixes a bad border radius
arrows: separate out handle behavior from labels (#2621)
- Arrow labels: provide more polish on label placement
docs: fix up gen links to point to the new /reference section (#2690)
- Fix up doc links with /gen links
docs: rework docs site to have different sections (#2686)
- Rework our docs site to pull together the examples app and reference section more cohesively.
Fix svg exporting for images with not fully qualified url (/tldraw.png
or ./tldraw.png
) (#2676)
- Fix the svg export for images that have a local url.
Remove examples app landing page (#2678)
- Remove examples app landing page
dev: add test-dev command for easier testing of packages (#2627)
- Adds easier testing command for individual packages.
debug: start adding more tooling for debugging when interacting with shapes (#2560)
- Adds more information in the debug view about what shape is selected and coordinates.
Grouping examples into categories (#2585)
- Add collapsible categories to the examples app
[Fix] Overlapping non-adjacent handles (#2663)
- Fixed a bug with virtual / create handle visibility.
[Fix] Missing bend handles on curved arrows (#2661)
- Fixed a bug where the bend handle on arrows with a large curve could sometimes be hidden.
Improved duplication (#2480)
- Add a brief release note for your PR here.
Positional keyboard shortcuts for toolbar (#2409)
- You can now use the number keys to select the corresponding tool from the toolbar
Add button to Examples to request an example (#2597)
- Add a button to request an example to the examples app
Update README and examples copy in the docs (#2594)
- Update examples copy and tldraw README
Remove repeated word in CONTRIBUTING.md (#2651)
- Remove repeated word in CONTRIBUTING.md.
[Fix] Wheel bug (#2657)
- Fixed a bug with the mouse wheel effecting the pointer location when the editor was not full screen
Update layout.tsx (#2619)
- Add a brief release note for your PR here.
[Improvement] Share zone styling (#2628)
- Tweaked user avatar size.
[draft] Keep editor focus after losing focus of an action button (#2630)
- Fixed a bug where keyboard shortcuts could stop working after using an action button.
Fix nudge bug (#2634)
- Fixes a bug with keyboard nudging.
menus: address several little big things about menu styling (#2624)
- Fixes nits on styling on our Radix menus.
i18n: sort languages by name, not by locale code (#2625)
- Sorts the locale list by locale name, not code.
style: fix missing titles on vertical align menu (#2623)
- Adds missing titles to vertical align menu.
Only actions on selected shapes if we are in select tool. (#2617)
- Disable actions that work on selections when we are not in select tool as it makes it not obvious what the target for these actions.
debug: add FPS counter (#2558)
- Adds FPS counter to debug panel.
Fix ios export crash (#2615)
- iOS Safari: Fixed a crash when exporting large images.
arrows: add ability to change label placement (#2557)
- Adds ability to change label position on arrows.
Add context toolbar example. (#2596)
- Add context toolbar example.
Export TLCommandHistoryOptions type (#2598)
- Added TLCommandHistoryOptions to the exported types.
[improvement] better comma control for pointer (#2568)
- Improve comma key as a replacement for pointer down / pointer up.
fix: replaced dead links (#2567)
- N/A
[dotcom] Delete service worker, cache tldraw assets (#2552)
- Fix 'could not load assets' error that we often see on tldraw.com after a deploy
Allow snapping of shapes to the frame when dragging inside the frame. (#2520)
- Adds snapping to frames when dragging shapes inside a frame.
Allow dismissing dialogs by clicking backdrop (#2497)
- Allows dismissing dialogs by clicking the backdrop.
Fix the first run of dev script. (#2484)
- Fix first
yarn dev
experience.
Prevent overlay content disappearing at some browser zoom levels (#2483)
- removes the internal
useDprMultiple
hook
add keyboard shortcuts example (#2474)
- Add keyboard shortcuts example
[hot take] Make dark mode colours pop more (#2478)
- Tweaked dark mode colour styles to make them pop more.
fix typo in hideRotateHandle method (#2473)
- fix typo in hideRotateHandle method
Maintain bindings whilst translating arrows (#2424)
- You can now move arrows without them becoming unattached the shapes they're pointing to
[improvement] update dark mode (#2468)
- Updated dark mode colors.
rename and annotate user presence example (#2462)
- annotate user presence example and rename to presence-record
annotate onthecanvas example (#2459)
- annotate onthecanvas example
annotate snapshot example (#2454)
- annotate snapshot example
Fix and annotate minimal example (#2448)
- Fix and annotate minimal example
annotate zones example (#2461)
- annotate zones example
annotate ui events example (#2460)
- annotate ui events example
Annotate shape meta data example (#2453)
- Annotate shape meta data example
Annotate example for using Tldraw component in a scrollable container (#2452)
- Annotate example for using Tldraw component in a scrollable container
Annotate example for making editor read-only (#2451)
- Annotate example for making editor read-only
Fix typos and add comments for persistence example (#2450)
- Fix typos and add comments for persistence example
Fix bookmark info for VS Code (#2449)
- Fix bookmark image and description for VS code extension.
[fix] disable vertical edge resizing for text on mobile (#2456)
- Add a brief release note for your PR here.
Don't bother measuring canvas max size for small images (#2442)
- Android: Sped up exporting and importing images.
[Minor] change Simplified Chinese label to Chinese (#2434)
- Changed the label for the Simplified Chinese language from
Chinese - Simplified
to简体中文
, following the convention of other languages. - Updated the API and relevant documentation through build scripts.
annotate external sources example (#2414)
- Adds annotation to the external sources example.
annotate multiple example (#2431)
- annotate multiple example
annotate force mobile example (#2421)
- annotate force mobile example
annotate hosted images example (#2422)
- annotate hosted images example
annotate local images example (#2423)
- annotate local images example
Lokalise: Translations update (#2418)
- Added Hungarian translations.
- Updated Turkish translations.
annotate meta oncreate example (#2426)
- annotate meta oncreate example
Annotate exploded example (#2413)
- Adds annotation to exploded example
- imports all default components instead of just a few
annotate hide-ui example (#2420)
- Annotate hide ui example
Annotate custom ui example (#2408)
- Adds annotation to the custom ui example
[improvement] account for coarse pointers / insets in edge scrolling (#2401)
- Add
instanceState.insets
to track which edges of the component are inset from the edges of the document body. - Improve behavior around edge scrolling
Custom components annotation (#2403)
- Annotate the custom components example.
annotate meta onchange (#2430)
- annotate meta onchange
💥 Breaking Change
@tldraw/editor
,@tldraw/tldraw
- Use canvas bounds for viewport bounds #2798 (@steveruizok)
- Remove Geometry2d.isSnappable #2768 (@SomeHats)
- [Fix] Camera coordinate issues #2719 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/utils
@tldraw/tldraw
,@tldraw/utils
🚀 Enhancement
- docs: rework search UI #2723 (@mimecuvalo)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/assets
,@tldraw/tlschema
@tldraw/tldraw
- debug: start adding more tooling for debugging when interacting with shapes #2560 (@mimecuvalo)
- Positional keyboard shortcuts for toolbar #2409 (@SomeHats @steveruizok)
@tldraw/tldraw
,@tldraw/tlschema
- Improved duplication #2480 (@Taha-Hassan-Git @MitjaBezensek @ds300 @steveruizok)
@tldraw/editor
,@tldraw/tldraw
- debug: add FPS counter #2558 (@mimecuvalo @steveruizok)
- [improvement] better comma control for pointer #2568 (@steveruizok)
- Allow snapping of shapes to the frame when dragging inside the frame. #2520 (@MitjaBezensek)
- Maintain bindings whilst translating arrows #2424 (@SomeHats @steveruizok)
- [improvement] update dark mode #2468 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- arrows: add ability to change label placement #2557 (@mimecuvalo @steveruizok @SomeHats)
- [improvement] account for coarse pointers / insets in edge scrolling #2401 (@steveruizok)
@tldraw/assets
🐛 Bug Fix
- VS Code 2.0.24 #2816 (@MitjaBezensek)
- menu: just have an empty space for checked menuitems #2785 (@mimecuvalo)
- VS Code 2.0.23 #2756 (@MitjaBezensek)
- seo: attempt at avoiding a "soft 404" with there being thin content on dotcom #2737 (@mimecuvalo)
- docs: add full-text search #2735 (@mimecuvalo)
- docs: fix up gen links to point to the new /reference section #2690 (@mimecuvalo)
- [DX] Use tabs in JSON.stringify #2674 (@steveruizok)
- [Improvement] Share zone styling #2628 (@mimecuvalo @steveruizok)
- VS Code 2.0.22 #2500 (@MitjaBezensek)
- fix geo cloud icon #2485 (@ds300)
- Update README.md #2464 (@steveruizok)
- Fix bookmark info for VS Code #2449 (@MitjaBezensek)
- Fix the publish script #2440 (@MitjaBezensek)
- Lokalise: Translations update #2418 (@TodePond)
- VS Code 2.0.21 #2438 (@MitjaBezensek)
@tldraw/editor
- Fix camera. #2818 (@MitjaBezensek)
- [fix] overlays, custom brush example #2806 (@steveruizok)
- Fix pinch zooming #2748 (@TodePond)
- [Improvement] Text measurement tweaks #2670 (@steveruizok)
- [Fix] Missing bend handles on curved arrows #2661 (@steveruizok)
- [Fix] Wheel bug #2657 (@steveruizok)
- Export TLCommandHistoryOptions type #2598 (@steveruizok)
- Prevent overlay content disappearing at some browser zoom levels #2483 (@ds300)
@tldraw/tldraw
- Style UI based on component size instead of window size #2758 (@TodePond)
- Fixed actions menu opening in wrong direction on mobile (and add an inline layout example) #2730 (@TodePond)
- rearrange export / import from tldraw to help builds #2739 (@mimecuvalo)
- Fix infinite cursor chat issue by partially reverting "reactive context menu overrides (#2697)" #2775 (@SomeHats)
- [fix] VSCode keyboard shortcuts while editing text #2721 (@steveruizok)
- [fix] Debug panel text overflow #2715 (@steveruizok)
- reactive context menu overrides #2697 (@SomeHats)
- [Fix] Note shape border radius #2696 (@steveruizok)
- Fix svg exporting for images with not fully qualified url (
/tldraw.png
or./tldraw.png
) #2676 (@MitjaBezensek @steveruizok) - [draft] Keep editor focus after losing focus of an action button #2630 (@TodePond)
- menus: address several little big things about menu styling #2624 (@mimecuvalo)
- style: fix missing titles on vertical align menu #2623 (@mimecuvalo)
- Only actions on selected shapes if we are in select tool. #2617 (@MitjaBezensek)
- Fix ios export crash #2615 (@TodePond)
- Allow dismissing dialogs by clicking backdrop #2497 (@ds300)
- Fix the first run of dev script. #2484 (@MitjaBezensek)
- Don't bother measuring canvas max size for small images #2442 (@TodePond)
- Fix main. #2439 (@MitjaBezensek)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/validate
- error reporting: rm ids from msgs for better Sentry grouping #2738 (@mimecuvalo)
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
- i18n: add HR 🇭🇷 #2778 (@mimecuvalo)
@tldraw/editor
,@tldraw/tldraw
- arrows: account for another NaN #2753 (@mimecuvalo)
- arrows: update cursor only when in Select mode #2742 (@mimecuvalo)
- [Fix] Overlapping non-adjacent handles #2663 (@steveruizok)
- Fix nudge bug #2634 (@steveruizok)
- [tweak] dark mode colors #2469 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- arrows: separate out handle behavior from labels #2621 (@mimecuvalo @steveruizok)
@tldraw/tlschema
- i18n: sort languages by name, not by locale code #2625 (@mimecuvalo)
- [hot take] Make dark mode colours pop more #2478 (@TodePond @huppy-bot[bot])
- [Minor] change Simplified Chinese label to Chinese #2434 (@peilingjiang)
@tldraw/editor
,@tldraw/tlschema
- Make sure correct dark mode colours get used in exports #2492 (@SomeHats @huppy-bot[bot])
@tldraw/validate
- Fix validation for local files. #2447 (@MitjaBezensek)
@tldraw/tldraw
,@tldraw/tlschema
- [fix] disable vertical edge resizing for text on mobile #2456 (@mimecuvalo)
🏠 Internal
- hello@tldraw.com -> sales@tldraw.com #2774 (@steveruizok)
- fix(infra): Fix routing config #2741 (@ds300)
- [dotcom]
TLSyncRoom
tidy #2712 (@steveruizok) - [dx] add gen docs to gitignore #2704 (@steveruizok)
- return 404 on missing docs content instead of 500 #2699 (@si14)
- fix prune preview deployment script #2698 (@SomeHats)
- fix sub-project vercel configs #2687 (@si14)
- remove dotcom's vercel.json #2689 (@si14)
- check for duplicate dependencies in CI #2682 (@si14)
- Introduce a Cloudflare health worker #2499 (@si14 @steveruizok)
- [dx] Add docs to lazy caching. #2672 (@steveruizok)
- Restore vercel.jsons #2650 (@steveruizok)
- remove erroneous mount entry from fly.toml #2644 (@si14)
- make Huppy deployable (again) #2632 (@si14)
- Fix yarn clean #2620 (@si14)
- Replace "original tldraw issue" with docs link. #2599 (@steveruizok)
- [Internal] Create build-docs.sh #2569 (@steveruizok)
- add dev / build scripts #2551 (@steveruizok)
- auto-it/typescript fails the release, patch the problem away while mods are asleep #2498 (@si14)
- use github.ref rather than github.event.ref in deploy.yml #2495 (@SomeHats)
- add bash scripts for Vercel #2494 (@si14)
@tldraw/tldraw
- examples: clean up Canvas/Store events and make UiEvents have code snippets #2770 (@mimecuvalo)
- delete unused duplicated DraggingHandle.ts #2463 (@ds300)
@tldraw/assets
,@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/validate
- Update the project to Node 20 #2691 (@si14)
- Add docs #2470 (@steveruizok)
@tldraw/assets
,@tldraw/store
,@tldraw/tlschema
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- dev: add test-dev command for easier testing of packages #2627 (@mimecuvalo)
@tldraw/state
,@tldraw/store
- unbrivate, dot com in #2475 (@steveruizok @si14 @SomeHats)
📝 Documentation
- [docs] Small style changes #2805 (@steveruizok)
- docs: better code snippets #2801 (@mimecuvalo)
- Quick start guide #2692 (@Taha-Hassan-Git @mimecuvalo)
- docs: rm ... from some examples and fix up inset example #2788 (@mimecuvalo)
- docs: fix scrolling issue with sidebar #2791 (@mimecuvalo)
- docs: disable ai search for now #2740 (@mimecuvalo)
- [docs] Autocomplete styling tweaks #2732 (@steveruizok)
- docs: fix CORS issue and broken example link #2727 (@mimecuvalo)
- [docs] Fix links, little style tweaks #2724 (@steveruizok @mimecuvalo)
- [Docs] Tweak sidebar titles #2706 (@steveruizok)
- fix(docs): fix user-interface.mdx #2700 (@Rokixy @steveruizok)
- docs: more cleanup following restructure #2702 (@mimecuvalo)
- [Examples] Add a stupid 404 page #2694 (@steveruizok)
- docs: rework docs site to have different sections #2686 (@Taha-Hassan-Git @steveruizok @MitjaBezensek @mimecuvalo @TodePond @si14)
- Remove examples app landing page #2678 (@Taha-Hassan-Git)
- Grouping examples into categories #2585 (@Taha-Hassan-Git @steveruizok)
- Add button to Examples to request an example #2597 (@Taha-Hassan-Git @steveruizok)
- Update README and examples copy in the docs #2594 (@Taha-Hassan-Git)
- Remove repeated word in CONTRIBUTING.md #2651 (@albjoh2)
- Update layout.tsx #2619 (@steveruizok)
- Add context toolbar example. #2596 (@MitjaBezensek @Taha-Hassan-Git)
- Use simple example #2561 (@steveruizok)
- fix: replaced dead links #2567 (@alikiki @steveruizok)
- add keyboard shortcuts example #2474 (@Taha-Hassan-Git)
- Fix translations link #2477 (@steveruizok)
- rename and annotate user presence example #2462 (@Taha-Hassan-Git @steveruizok)
- annotate onthecanvas example #2459 (@Taha-Hassan-Git)
- annotate snapshot example #2454 (@Taha-Hassan-Git)
- Fix and annotate minimal example #2448 (@Taha-Hassan-Git)
- annotate zones example #2461 (@Taha-Hassan-Git)
- annotate ui events example #2460 (@Taha-Hassan-Git)
- Annotate shape meta data example #2453 (@Taha-Hassan-Git)
- Annotate example for using Tldraw component in a scrollable container #2452 (@Taha-Hassan-Git)
- Annotate example for making editor read-only #2451 (@Taha-Hassan-Git)
- Fix typos and add comments for persistence example #2450 (@Taha-Hassan-Git)
- annotate external sources example #2414 (@Taha-Hassan-Git @steveruizok)
- Update README #2444 (@steveruizok)
- annotate multiple example #2431 (@Taha-Hassan-Git @steveruizok)
- annotate force mobile example #2421 (@Taha-Hassan-Git)
- annotate hosted images example #2422 (@Taha-Hassan-Git)
- annotate local images example #2423 (@Taha-Hassan-Git)
- annotate meta oncreate example #2426 (@Taha-Hassan-Git)
- Annotate exploded example #2413 (@Taha-Hassan-Git)
- annotate hide-ui example #2420 (@Taha-Hassan-Git)
- Annotate custom ui example #2408 (@Taha-Hassan-Git)
- Custom components annotation #2403 (@Taha-Hassan-Git)
- annotate meta onchange #2430 (@Taha-Hassan-Git)
@tldraw/tldraw
- Examples tweaks #2681 (@steveruizok)
@tldraw/editor
- fix typo in hideRotateHandle method #2473 (@Taha-Hassan-Git)
🧪 Tests
@tldraw/editor
,@tldraw/store
,@tldraw/tldraw
,@tldraw/utils
- Bump jest to fix weird prettier bug #2716 (@steveruizok)
🔩 Dependency Updates
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
Authors: 13
- @huppy-bot[bot]
- @Rokixy
- a22albjo (@albjoh2)
- Alex (@alikiki)
- alex (@SomeHats)
- Dan Groshev (@si14)
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- Mime Čuvalo (@mimecuvalo)
- Mitja Bezenšek (@MitjaBezensek)
- Peiling Jiang (@peilingjiang)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-beta.2 (Wed Jan 10 2024)
Release Notes
Fix validation when pasting images. (#2436)
- Fixes url validations.
Fix decrement button label in OnTheCanvas example component (#2432)
- tiny bug fix, simply changing a label to match behaviour
refactor copy/export, fix safari copy-as-image being broken (#2411)
- Fix a bug preventing copying as an image on iOS
Add url validation (#2428)
- Add validation to urls.
[fix] next selected shapes comment (#2427)
- Fix error in setStyleForNextSelectedShapes comment
annotate error boundary example (#2410)
- Add annotation to error boundary example
Fix issues with clip paths for frames (#2406)
- Add a brief release note for your PR here.
Annotate custom styles example (#2405)
- Add annotation to the custom styles example
annotate custom config example (#2404)
- Adds annotation to the custom config example with a bit more detail
annotate asset props, correct image/video confusion (#2399)
- Annotates the asset props example and fixes a mistake in the existing comments
Annotate/refactor store events example (#2400)
- Update store events example to use store.listen method
- Annotate with explanations of the code
annotate canvas events (#2397)
- Adds annotation to the canvas events example
[fix] edge scrolling when component is inside of screen (#2398)
- Add a brief release note for your PR here.
Annotate api example (#2395)
- Annotate API example
[tech debt] Primitives renaming party / cleanup (#2396)
- renames Vec2d to Vec
- renames Vec2dModel to VecModel
- renames Box2d to Box
- renames Box2dModel to BoxModel
- renames Matrix2d to Mat
- renames Matrix2dModel to MatModel
- removes unused primitive helpers
Refactor and document speech bubble example (#2392)
- Add annotations to the speech bubble example
- Refactor code for clarity
Fix trademark links (#2380)
- Fixes broken links in a number of docs files.
[fix] polygon bounds (#2378)
- Fixed a bug with the bounds calculation for polygons.
Avoid importing editor.css
twice (#2373)
- Prevent importing
editor.css
twice which should help when debugging the styles via developer console.
Adding an image shape from a file the public folder (#2370)
- Adds a simple image example.
💥 Breaking Change
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- [tech debt] Primitives renaming party / cleanup #2396 (@steveruizok)
🚀 Enhancement
- Adding an image shape from a file the public folder #2370 (@MitjaBezensek)
🐛 Bug Fix
- Avoid importing
editor.css
twice #2373 (@MitjaBezensek) - VS Code bump 2.0.20 #2371 (@MitjaBezensek)
@tldraw/tlschema
- Fix validation when pasting images. #2436 (@MitjaBezensek @SomeHats)
@tldraw/tldraw
- refactor copy/export, fix safari copy-as-image being broken #2411 (@SomeHats @huppy-bot[bot])
- [fix] Asset versions #2389 (@steveruizok)
@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- Add url validation #2428 (@MitjaBezensek @SomeHats)
@tldraw/editor
- Fix issues with clip paths for frames #2406 (@MitjaBezensek)
@tldraw/editor
,@tldraw/tldraw
- [fix] edge scrolling when component is inside of screen #2398 (@steveruizok)
- [fix] polygon bounds #2378 (@steveruizok)
@tldraw/store
- Fix meta examples #2379 (@steveruizok)
🏠 Internal
- Fix license language. #2365 (@steveruizok)
📝 Documentation
- Fix decrement button label in OnTheCanvas example component #2432 (@StanFlint)
- annotate error boundary example #2410 (@Taha-Hassan-Git @steveruizok)
- fix example scrolling on ios #2412 (@SomeHats)
- Add descriptions to active examples #2407 (@SomeHats)
- Annotate custom styles example #2405 (@Taha-Hassan-Git @steveruizok)
- annotate custom config example #2404 (@Taha-Hassan-Git)
- annotate asset props, correct image/video confusion #2399 (@Taha-Hassan-Git)
- Annotate/refactor store events example #2400 (@Taha-Hassan-Git)
- annotate canvas events #2397 (@Taha-Hassan-Git)
- Annotate api example #2395 (@Taha-Hassan-Git)
- Refactor and document speech bubble example #2392 (@Taha-Hassan-Git @steveruizok)
- Fix README link typo #2372 (@chunderbolt)
@tldraw/editor
- [fix] next selected shapes comment #2427 (@Taha-Hassan-Git)
@tldraw/tldraw
- [example] Changing the default tldraw colors #2402 (@steveruizok)
- add descriptions to examples #2375 (@SomeHats @steveruizok)
@tldraw/assets
,@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- Fix trademark links #2380 (@nonparibus)
- Another typo fix. #2366 (@steveruizok)
Authors: 8
- @chunderbolt
- @huppy-bot[bot]
- alex (@SomeHats)
- David @ HASH (@nonparibus)
- Mitja Bezenšek (@MitjaBezensek)
- Stan Flint (@StanFlint)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-beta.1 (Wed Dec 20 2023)
Release Notes
add speech bubble example (#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)
- Fix not being able to close the context menu by clicking on the UI or your selected shape.
fix read only page menu (#2356)
- Add a brief release note for your PR here.
refactor: Keep hook function convention the same (#2358)
- Add a brief release note for your PR here.
focus on container before deleting to avoid losing focus (#2354)
- Prevents losing focus when clicking the trash button
Stop shape text labels being hoverable when context menu is open (#2352)
- Add a brief release note for your PR here.
Use custom font (#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)
- Don't allow edges resizing on mobile. The only exception is a single text shape.
Fix iconleft padding (#2345)
- Fixes the icon padding in back to content / pen mode buttons.
[bug] Fix for issue #2329 (#2330)
- Fix for
Matrix2d.Scale
function
Allow dragging on top of locked shapes. (#2337)
- Allow translating of shapes on top of a locked shape by clicking inside of selection and moving the mouse.
Remove deprecated getters (#2333)
- (Breaking) Removed deprecated getters.
Lokalise: Translations update (#2342)
Added Czech translations. Updated translations for German, Korean, Russian, Ukrainian, Traditional Chinese.
Prevent diff mutation (#2336)
- Fix
squashRecordDiffs
to prevent a bug where it mutates the 'updated' entires
Fix indicator radius for bookmarks. (#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)
- 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)
- Decrease the size of uploaded assets.
Use a global singleton for tlstate (#2322)
- Make a global singleton for tlstate.
VS Code 2.0.19 (#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 (@steveruizok)
- Change licenses to tldraw #2167 (@steveruizok)
@tldraw/assets
,@tldraw/tldraw
- Use custom font #2343 (@ds300 @huppy-bot[bot])
@tldraw/editor
,@tldraw/state
🚀 Enhancement
- add speech bubble example #2362 (@Taha-Hassan-Git)
@tldraw/editor
,@tldraw/tldraw
- Start scrolling if we are dragging close to the window edges. #2299 (@MitjaBezensek @steveruizok)
🐛 Bug Fix
- VS Code 2.0.19 #2324 (@MitjaBezensek)
@tldraw/editor
,@tldraw/tldraw
- Fix clicking off the context menu #2355 (@TodePond @steveruizok)
- Drop edge scrolling adjustment for mobile #2346 (@steveruizok)
@tldraw/tldraw
- fix read only page menu #2356 (@Taha-Hassan-Git @TodePond)
- focus on container before deleting to avoid losing focus #2354 (@ds300)
- Only allow side resizing when we have some shapes that are not aspect ratio locked #2347 (@MitjaBezensek)
- Fix iconleft padding #2345 (@steveruizok)
- Allow dragging on top of locked shapes. #2337 (@MitjaBezensek)
- Fix indicator radius for bookmarks. #2335 (@MitjaBezensek)
- Fix downscaling #2325 (@MitjaBezensek)
@tldraw/editor
@tldraw/utils
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
@tldraw/store
,@tldraw/tldraw
@tldraw/store
@tldraw/state
🏠 Internal
Authors: 9
- @huppy-bot[bot]
- @zfedoran
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- MinhoPark (@Lennon57)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-alpha.19 (Tue Dec 12 2023)
Release Notes
zoom to affected shapes after undo/redo (#2293)
- Make sure affected shapes are visible after undo/redo
Fix hmr. (#2303)
- Fixes HMR in local dev.
Fix migrations. (#2302)
- Fix migrations of
instance_page_state
.
Add fit to content for frames. (#2275)
- Add Fit to content option to the context menu for frames. This resizes the frames to correctly fit all their content.
Fix an issue with a stale editor reference in shape utils (#2295)
- Fix an issue where the shape utils could have a stale reference to the editor.
fix new page naming (#2292)
- Fix naming of pages created by the "move to page" action
Fix exporting of cropped images. (#2268)
- Fix exporting of cropped images.
Update the comment in the example. (#2272)
- Improve the comment for one of our examples.
[improvements] arrows x enclosing shapes x precision. (#2265)
- Improves the logic about when to draw "precise" arrows between the center of bound shapes.
fix vite HMR issue (#2279)
- Fixes a bug that could cause crashes due to a re-render loop with HMR #1989
Add connecting screen override. (#2273)
- Allow users to customize the connecting screen.
Removing frames and adding elements to frames (#2219)
- Allow users to remove the frame, but keep it's children. Allow the users to add shapes to the frame directly when creating a frame.
fix typo in useFixSafariDoubleTapZoomPencilEvents.ts (#2242)
- Add a brief release note for your PR here.
improves translation into pt-br (#2231)
- Improves the overall translation into Portuguese (pt-br).
Fixes #2246 Sublibraries example (ExplodedExample.tsx) (#2247)
- Fixed Sublibraries (Exploded) example
Fix missing padding-right in toast (#2251)
- Fox padding-right in toast content.
Fix "custom UI" example (#2253)
- Fixed double rendering of canvas in the "custom UI" example
Lokalise: Translations update (#2248)
- Update Romanian translations.
Also export TLUiEventMap
(#2234)
- Export
TLUiEventMap
type.
Fix the tool lock button. (#2225)
- Adds the missing tool lock button.
Custom Tools DX + screenshot example (#2198)
- adds ScreenshotTool custom tool example
- improvements and new exports related to copying and exporting images / files
- loosens up types around icons and translations
- moving
StateNode.isActive
into an atom - adding
Editor.path
StateNode atoms (#2213)
- adds computed
StateNode.getPath
- adds computed StateNode.getCurrent`
- adds computed StateNode.getIsActive`
- adds computed
Editor.getPath()
- makes transition's second property optional
VS Code bump 2.0.17 (#2217)
- VS code extension 2.0.17.
don't overwrite bookmark position if it changed before metadata arrives (#2215)
- Fixes issue when creating new bookmark shape where the position would be reset if you moved it before the bookmark metadata was fetched.
Add prettier caching (#2212)
- Speed up formatting of files via
yarn format
.
Update translations from community submissions (#2201)
- Updated translations for Spanish, Japanese, Romanian, Russian, Ukrainian, and Simplified Chinese.
[fix] huge images, use downscale for image scaling (#2207)
- Improved image rescaling.
Revert back to the previous color. (#2210)
- Fixes the color of culled shapes when using dark mode.
Fix an issue with not being able to group a shape an an arrow. (#2205)
- Add a brief release note for your PR here.
Japanese translations. (update) (#2199)
- Updated Japanese translations.
feat: add new prop to force mobile mode layout (#1734)
- add new prop to force mobile mode layout
[fix] masked bounds calculation (#2197)
- Fix bug with getmaskedpagebounds calculation for identical parent / child sizes
💥 Breaking Change
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
- No impure getters pt 1 #2189 (@steveruizok @ds300)
🚀 Enhancement
@tldraw/editor
,@tldraw/tldraw
- Add fit to content for frames. #2275 (@MitjaBezensek @steveruizok)
- Removing frames and adding elements to frames #2219 (@MitjaBezensek @steveruizok @Taha-Hassan-Git)
- Custom Tools DX + screenshot example #2198 (@steveruizok)
- StateNode atoms #2213 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- [improvements] arrows x enclosing shapes x precision. #2265 (@steveruizok)
@tldraw/editor
- Add connecting screen override. #2273 (@MitjaBezensek)
@tldraw/tldraw
- Add
getSvgAsImage
to exports. #2229 (@steveruizok) - [fix] huge images, use downscale for image scaling #2207 (@steveruizok)
- feat: add new prop to force mobile mode layout #1734 (@gabrielchl @steveruizok)
- Add
🐛 Bug Fix
- Fix hmr. #2303 (@MitjaBezensek)
- VS Code version bump. #2297 (@MitjaBezensek)
- improves translation into pt-br #2231 (@bybruno)
- Fixes #2246 Sublibraries example (ExplodedExample.tsx) #2247 (gary.saunders@sportsengine.com @steveruizok)
- Lokalise: Translations update #2248 (@TodePond)
- Update translations from community submissions #2201 (@TodePond @steveruizok)
- Japanese translations. (update) #2199 (@sugitlab)
- VS code bump 2.0.16 #2193 (@MitjaBezensek)
@tldraw/editor
,@tldraw/tldraw
- Revert "zoom to affected shapes after undo/redo" #2310 (@ds300)
- zoom to affected shapes after undo/redo #2293 (@ds300)
- fix new page naming #2292 (@SomeHats)
- No impure getters pt9 #2222 (@ds300)
- No impure getters pt8 #2221 (@ds300)
- No impure getters pt7 #2220 (@ds300)
- No impure getters pt6 #2218 (@ds300)
- No impure getters pt5 #2208 (@ds300)
- Fix an issue with not being able to group a shape an an arrow. #2205 (@MitjaBezensek)
- No impure getters pt4 #2206 (@ds300)
- No impure getters pt3 #2203 (@ds300)
- No impure getters pt2 #2202 (@ds300)
@tldraw/tlschema
- Fix migrations. #2302 (@MitjaBezensek)
@tldraw/editor
- Fix an issue with a stale editor reference in shape utils #2295 (@MitjaBezensek)
- Fix the cleanup of event handlers #2298 (@MitjaBezensek)
- Revert back to the previous color. #2210 (@MitjaBezensek)
- [fix] masked bounds calculation #2197 (@steveruizok)
@tldraw/tldraw
- Fix exporting of cropped images. #2268 (@MitjaBezensek)
- Hot elbows #2258 (@ds300 @steveruizok)
- Fix missing padding-right in toast #2251 (@ByMykel @steveruizok)
- Also export
TLUiEventMap
#2234 (@MitjaBezensek) - Fix the tool lock button. #2225 (@MitjaBezensek)
- don't overwrite bookmark position if it changed before metadata arrives #2215 (@ds300)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/utils
@tldraw/editor
,@tldraw/state
,@tldraw/tldraw
,@tldraw/utils
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
🏠 Internal
- Fix "custom UI" example #2253 (@OriginalEXE)
- Add floaty window example #2250 (@steveruizok)
- VS Code bump 2.0.17 #2217 (@MitjaBezensek)
@tldraw/tlschema
- Add prettier caching #2212 (@MitjaBezensek)
📝 Documentation
- Update the comment in the example. #2272 (@MitjaBezensek)
@tldraw/editor
,@tldraw/state
@tldraw/editor
- fix typo in useFixSafariDoubleTapZoomPencilEvents.ts #2242 (@eltociear)
🧪 Tests
Authors: 13
- @ByMykel
- alex (@SomeHats)
- Ante Sepic (@OriginalEXE)
- Bruno (@bybruno)
- David Sheldrick (@ds300)
- Gabriel Lee (@gabrielchl)
- Gary Saunders (@codenamegary)
- Ikko Eltociear Ashimine (@eltociear)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Sugit (@sugitlab)
- Taha (@Taha-Hassan-Git)
v2.0.0-alpha.18 (Fri Nov 10 2023)
Release Notes
Fix an error when using context menu. (#2186)
- Fixes the console error when opening the context menu for the first time.
[fix] actions menu freezing ui (#2187)
- Fix actions menu not closing when clicking the canvas after grouping items via the actions menu.
Fix an issue with edit link. (#2184)
- Fixes an issue with using the Edit link dialog.
add missing semicolon (#2182)
- Fix typo in CSS file
Only use the hack if we are in safari. (#2185)
- Improve the speed of exporting to png for non Safari browsers.
Fix keyboard shortcuts for vscode. (#2181)
- Fixes keyboard shortcuts for VS Code extension.
Fix printing. (#2177)
- Fixes printing of shapes.
[fix] Frame label not following staying aligned correctly on rotation (#2172)
- Frame labels immediately update their position on rotation.
Don't show scrollbars. (#2171)
- Hide the horizontal scrollbar in the vertical alignment for Firefox.
instant bookmarks (#2176)
- Improves ux around pasting bookmarks
Fix arrow dropdown localizations. (#2174)
- Fix arrow headstyle dropdown translations.
Fix crash with zero length arrow (#2173)
- Fix a hyper niche arrow crash with zero length arrows.
Allow users to select shapes when drag starts on top of a locked shape. (#2169)
- Allows brush selecting when you start it on top of a locked shape.
Fix the problem with text not being correctly aligned in small geo shapes. (#2168)
- Fixes position of Text labels in geo shapes.
Zooming improvement (#2149)
- Improves zooming for inactive windows.
[feature] Things on the canvas (#2150)
- [editor] Adds two new components,
OnTheCanvas
andInFrontOfTheCanvas
.
Bump vs code extension. (#2142)
- Release a new version of VS Code extension with all the latest changes.
Fix cleanupText (#2138)
- Fixes a minor bug where cleaning up text would fail.
[android] Fix text labels and link button getting misaligned (#2132)
- Fixed a bug where labels and links could lose alignment on android.
[feature] multi-scribbles (#2125)
- [feature] multi scribbles
Tighten up editor ui (#2102)
- Small adjustment to editor ui.
Remove indicator for autosize text shapes while editing (#2120)
- Removed the indicator from autosize text shapes.
Taha/initial shape in handle change (#2117)
- Add a brief release note for your PR here.
Fix an issue with addEventListener
in old Safari (pre v14) (#2114)
- Fixes an issue with
addEventListener
on MediaQueryList object in old versions of Safari.
fix selection fg transform (#2113)
- Fixes a small issue causing the selection foreground to be offset when the browser is at particular zoom levels.
Remove (optional) from jsdocs (#2109)
- dev: Removed duplicate/inconsistent
(optional)
s from docs
[fix] mobile style panel switching open / closed (#2101)
- Fix bug with style panel
🚀 Enhancement
@tldraw/tldraw
@tldraw/editor
,@tldraw/tldraw
- [feature] Things on the canvas #2150 (@steveruizok)
- Tighten up editor ui #2102 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- [feature] multi-scribbles #2125 (@steveruizok)
🐛 Bug Fix
- Bump vs code extension. #2142 (@MitjaBezensek)
- Bump VS Code #2100 (@MitjaBezensek)
@tldraw/tldraw
- Add tldraw component exports #2188 (@steveruizok)
- Fix an error when using context menu. #2186 (@MitjaBezensek)
- Fix an issue with edit link. #2184 (@MitjaBezensek)
- Only use the hack if we are in safari. #2185 (@MitjaBezensek)
- Fix keyboard shortcuts for vscode. #2181 (@MitjaBezensek)
- Fix printing. #2177 (@MitjaBezensek)
- [fix] Frame label not following staying aligned correctly on rotation #2172 (@Taha-Hassan-Git @steveruizok)
- Don't show scrollbars. #2171 (@MitjaBezensek)
- Fix arrow dropdown localizations. #2174 (@MitjaBezensek)
- Allow users to select shapes when drag starts on top of a locked shape. #2169 (@MitjaBezensek)
- Fix the problem with text not being correctly aligned in small geo shapes. #2168 (@MitjaBezensek)
- Fix cleanupText #2138 (@ds300)
- [android] Fix text labels and link button getting misaligned #2132 (@TodePond)
- [fix] button gaps #2130 (@steveruizok)
- [fix] Move to page button / toasts styling #2126 (@steveruizok)
- [fix] css for editing page title #2124 (@steveruizok)
- fix selection fg transform #2113 (@ds300)
- [fix] mobile style panel switching open / closed #2101 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
- [fix] actions menu freezing ui #2187 (@steveruizok)
- Fix crash with zero length arrow #2173 (@TodePond)
- Zooming improvement #2149 (@MitjaBezensek)
@tldraw/editor
- add missing semicolon #2182 (@Taha-Hassan-Git)
- fix scroll event coords #2180 (@ds300)
- Fix an issue with
addEventListener
in old Safari (pre v14) #2114 (@MitjaBezensek)
🏠 Internal
@tldraw/assets
,@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/editor
,@tldraw/tldraw
- Taha/initial shape in handle change #2117 (@Taha-Hassan-Git)
📝 Documentation
@tldraw/editor
- Add meta example #2122 (@steveruizok)
@tldraw/editor
,@tldraw/state
,@tldraw/tldraw
Authors: 5
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-alpha.17 (Tue Oct 17 2023)
Release Notes
Firefox, Touch: Fix not being able to open style dropdowns (#2092)
- Firefox Mobile: Fixed a bug where you couldn't open some style dropdown options.
Add timestamp to file names (#2096)
- Add timestamp to exported image file names
[fix] Context menu + menus not closing correctly (#2086)
- [fix] bug with menus
Fix not being able to upload massive images (#2095)
- Fixed big images being too big to get added to the canvas.
fix cropped image size (#2097)
- Fixes a rendering issue where cropped images were sometimes bleeding outside their bounds.
Add offline indicator (also to top zone example) (#2083)
- [@tldraw/tldraw] add offline indicator to ui components
[fix] missing border on group shape when unlocked (#2075)
- Fix case where indicator was not shown when unlocking groups
[fix] reparenting locked shapes (#2070)
- Fix a bug where grouped locked shapes would be deleted when ungrouped.
[fix] Don't select locked shapes on pointer up (#2069)
- Fix bug where locked shape could be selected by clicking on its label
[fix] locked shape of opacity problem with eraser.pointing (#2073)
🚀 Enhancement
@tldraw/assets
,@tldraw/tldraw
- Add offline indicator (also to top zone example) #2083 (@steveruizok)
@tldraw/tldraw
- Add data breakpoint to layout css #2076 (@steveruizok)
@tldraw/tldraw
,@tldraw/tlschema
- Same first page id for all editors #2071 (@steveruizok)
🐛 Bug Fix
@tldraw/tldraw
- Firefox, Touch: Fix not being able to open style dropdowns #2092 (@TodePond)
- Add timestamp to file names #2096 (@Taha-Hassan-Git)
- move imports #2099 (@SomeHats)
- Fix not being able to upload massive images #2095 (@TodePond)
- fix cropped image size #2097 (@ds300)
- Fixed a bug checking translated string keys #2082 (@kewell-tsao)
- [fix] Don't select locked shapes on pointer up #2069 (@steveruizok)
- [fix] locked shape of opacity problem with eraser.pointing #2073 (@momenthana)
@tldraw/editor
,@tldraw/tldraw
- [fix] Context menu + menus not closing correctly #2086 (@steveruizok)
- [fix] reparenting locked shapes #2070 (@steveruizok)
@tldraw/editor
- [fix] remove findLast calls #2081 (@steveruizok)
- [fix] missing border on group shape when unlocked #2075 (@steveruizok)
- Compact children when updating parents to children. #2072 (@steveruizok)
🏠 Internal
- Fix ExplodedExample.tsx #2068 (@antmoux @steveruizok)
- Update VS Code extension 2.0.13 #2066 (@MitjaBezensek)
🧪 Tests
- Only upload playwright to S3 if we have the right credentials #2074 (@SomeHats @steveruizok)
- Cache playwright browsers. #2067 (@MitjaBezensek)
🔩 Dependency Updates
Authors: 9
- alex (@SomeHats)
- antonio moura (@antmoux)
- David Sheldrick (@ds300)
- Hana (@momenthana)
- Kewell (@kewell-tsao)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-alpha.16 (Wed Oct 11 2023)
Release Notes
Fix shape opacity when erasing (#2055)
- Fixes opacity of shapes while erasing in a group or frame.
[fix] Hit testing against zero width / height lines (#2060)
- [fix] Bug where arrows would not bind to straight lines
Fix opacity lowering on shapes that cannot be deleted (#2061)
- Locked shapes don't change opacity when scribble erasing.
Before/after:
fix: proper label for opacity tooltip on hover (#2044)
- Add a brief release note for your PR here.
Fix alt + shift keyboard shortcuts (#2053)
- Fixes keyboard shortcuts that use
alt
andshift
modifiers.
[improvement] Scope getShapeAtPoint
to rendering shapes only (#2043)
- Improve perf for hovering shapes / shape hit tests
Remove topBar prop from (#2018)
- [BREAKING] removed topBar prop
🚀 Enhancement
@tldraw/editor
,@tldraw/tldraw
- [improvement] Scope
getShapeAtPoint
to rendering shapes only #2043 (@steveruizok)
- [improvement] Scope
@tldraw/tldraw
,@tldraw/tlschema
- Remove dot com ui styles [1/2] #2039 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
@tldraw/tldraw
🐛 Bug Fix
- fix standalone examples #2042 (@SomeHats)
@tldraw/editor
@tldraw/editor
,@tldraw/tldraw
- [fix] Hit testing against zero width / height lines #2060 (@steveruizok)
- Fix newlines in text geo shapes #2059 (@SomeHats @huppy-bot[bot] @steveruizok)
- Restore background #2037 (@steveruizok)
@tldraw/tldraw
- Fix opacity lowering on shapes that cannot be deleted #2061 (@Taha-Hassan-Git)
- fix: proper label for opacity tooltip on hover #2044 (@Prince-Mendiratta)
- Fix alt + shift keyboard shortcuts #2053 (@MitjaBezensek)
- [fix] Stylepanel default spacing #2036 (@steveruizok)
- Export tools #2035 (@steveruizok)
@tldraw/tlschema
- [fix] Page state migration #2040 (@steveruizok)
- [fix] migrations for page state #2038 (@steveruizok)
🏠 Internal
- Move example into examples folder #2064 (@steveruizok)
@tldraw/tlschema
- [fix] broken docs link #2062 (@steveruizok)
- Remove fixup script #2041 (@steveruizok)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- Publish api.json #2034 (@steveruizok)
🧪 Tests
- re-enable visual regression tests #2056 (@SomeHats @huppy-bot[bot])
Authors: 7
- @huppy-bot[bot]
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Mitja Bezenšek (@MitjaBezensek)
- Prince Mendiratta (@Prince-Mendiratta)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
v2.0.0-alpha.15 (Fri Oct 06 2023)
Release Notes
frame label fix (#2016)
- Add a brief release note for your PR here.
fix cloud rendering (#2008)
- Improves cloud shape rendering
[improvement] prevent editing in readonly (#1990)
- Prevent editing text shapes in readonly mode.
[fix] Hovered indicators shown when coarse pointer (#1985)
- Hide hovered indicators on mobile / coarse pointer devices.
fix(docs): update shapes docs add the array of defined shapes (#1949)
This pr add the custom defined shapes that's being passed to Tldraw
Fix style panel opening when disabled (#1983)
- When select tool is active, the style menu shouldn't be openable unless a shape is also selected.
Before/After
[fix] pinch events (#1979)
- Improve pinch gesture events.
Fix text-wrapping on Safari (#1980)
- Fix text wrapping differently on Safari and Chrome/Firefox
Before/After
Remove focus management (#1953)
- [editor] Make autofocus default, remove automatic blur / focus events.
[fix] Drawing tool touch for first pen mark (#1977)
- [fix] Accidental palm inputs when using iPad pencil
Remove targeted editing from text (#1962)
- Fixed some cases where text would get selected in the wrong place.
- Changed the behaviour of text selection. Removed 'deep editing'.
fix line bugs (#1936)
- This PR patches a couple of bugs which led to straight draw lines and beziered dash lines not rendering on the canvas
Before & After:
Allow right clicking selection backgrounds (#1968)
- Improved right click behaviour.
Mark an undo before toggling lock (#1969)
- Mark an undo before toggling locked.
Stop editing frame headers when clicking inside a frame. (#1955)
- Stop editing frame headers when clicking inside of a frame.
Lokalise: Translations update (#1964)
- Updated community translations for German and Galician
[improvement] improve arrows (for real) (#1957)
- Improve arrows.
[feature] Include sources
in TLExternalContent
(#1925)
- [editor / tldraw] add
sources
toTLExternalContent
[improvement] quick actions (#1922)
- Improve the menu / kbds behavior when select tool is not active
Fix shape drag perf (#1932)
- Fixes a perf regression for dragging shapes around
Firefox: Fix dropdowns not opening with touch (#1923)
- Firefox: Fixed dropdown menus not opening with touch.
Use smarter rounding for shape container div width/height (#1930)
- Improves the precision of the shape dimensions rounding logic
Fix lines being draggable via their background (#1920)
- None - unreleased bug
Fix first handle of line snapping to itself (#1912)
- Fixed a bug where the first handle of a line shape could snap to itself.
[fix] Moving group items inside of a frame (dropping) (#1886)
- Fix bug: ungroup when moving a shape in a group in a frame.
[fix] id properties of undefined (#1730) (#1919)
- Fixed a bug similar #1730
♻️ fix: editing is not terminated after the conversion is confirmed. (#1885)
- fix: editing is not terminated after the conversion is confirmed.
Update community translations (#1889)
- Updated translations for Russian, Ukrainian, and Simplified Chinese
Fix line wobble (#1915)
- Fixes an issue where lines would wobble as you dragged the handles around
Fix selecting one shape from selection group (#1905)
- Fix bug when selecting a single shape from a selection group
Before
https://github.com/tldraw/tldraw/assets/98838967/1412f9c6-d466-42b3-af94-d08cbc1656be
Fix highlighter dots not being clickable (#1903)
- None - unreleased bug
Fix video shape controls (#1909)
- Fixes pointer events for editing video shapes.
Fix line handles (#1904)
- Fixes an issue where line handles were slightly offset from the indicator line.
Fix pinch start with toolbar open (#1895)
- Fixes a bug that could trigger undo by accident when closing the style toolbar via a pinch gesture on mobile.
[wip] Viewport focus of editing shapes (#1873)
Removed a feature to reset the viewport back to a shape that is being edited.
(Before) Don't be held back by the past
(After) You are free to find new avenues of exploration
Migrate snapshot (#1843)
- [editor] add
Store.migrateSnapshot
[fix] zero width / height bounds (#1840)
- Fix bug with straight lines / arrows
clamp x-box and check-box lines to stay within box at small scales (#1860)
- Fixes a regression introduced by the geometry refactor related to x-box and checkbox resizing.
Fix paste transform (#1859)
- Fixes a bug affecting the position of pasted content inside frames.
Fix indicator transform miscalculation (#1852)
- Fixes indicator transform miscalculation on android and windows
update currentPageShapesSorted reference in docs (#1851)
- Add a brief release note for your PR here.
[fix] awful rendering issue (#1842)
- [fix] iframe rendering issue
fix typo (#1831)
- Just fixed a typo in the docs
[feature] Asset props (#1824)
- [@tldraw/tldraw] add asset props
[fix] snapping bug (#1819)
- [fix] crash that could occur when snapping
[fix] editing video shapes (#1821)
- Fix bug with editing video shapes.
[feature] unlock all action (#1820)
- Adds the unlock all feature.
[fix] bug with eventemitter3 default export (#1818)
- [@tldraw/editor] updates eventemitter3 import to fix issue with Astro builds.
Add next cache to clean command (#1811)
- Internal tooling change
Fix text editing in page menu popover (#1790)
- (fix) page menu editing
[fix] embeds switching / tldraw embed (#1792)
- [fix] tldraw embeds
Custom rendering margin / don't cull selected shapes (#1788)
- [editor] add
Editor.renderingBoundsMargin
Camera APIs (#1786)
- (editor) improve camera commands
environment manager (#1784)
- [editor] Move environment flags to environment manager
Editor commands API / effects (#1778)
- tbd
[feature] Add val town embed (#1777)
- (feature) val town
export UiEventsProvider
(#1774)
- [@tldraw/tldraw] export ui events, so that UI hooks can work without context
remove useForceSolid effect for geo / line shapes (#1769)
- Remove the force solid switching for geo / line shapes
[fix] shape indicator showing when locked shapes are hovered (#1771)
- locked shapes do not show an indicator when hovered
remove selectionPageCenter
(#1766)
- [dev] Removes
Editor.selectionPageCenter
rename selection page bounds (#1763)
- [editor] rename
selectedPageBounds
toselectionPageBounds
ShapeUtil.getGeometry
, selection rewrite (#1751)
- [editor] Remove
ShapeUtil.getBounds
,ShapeUtil.getOutline
,ShapeUtil.hitTestPoint
,ShapeUtil.hitTestLineSegment
- [editor] Add
ShapeUtil.getGeometry
- [editor] Add
Editor.getShapeGeometry
Fix asset urls (#1758)
- Fixed asset urls
[fix] arrow snapping bug (#1756)
- [fix] arrow snapping
[fix] dark mode (#1754)
- [fix] dark mode colors not updating
Remove helpers / extraneous API methods. (#1745)
- [tldraw] rename
useReadonly
touseReadOnly
- [editor] remove
Editor.isDarkMode
- [editor] remove
Editor.isChangingStyle
- [editor] remove
Editor.isCoarsePointer
- [editor] remove
Editor.isDarkMode
- [editor] remove
Editor.isFocused
- [editor] remove
Editor.isGridMode
- [editor] remove
Editor.isPenMode
- [editor] remove
Editor.isReadOnly
- [editor] remove
Editor.isSnapMode
- [editor] remove
Editor.isToolLocked
- [editor] remove
Editor.locale
- [editor] rename
Editor.pageState
toEditor.currentPageState
- [editor] add
Editor.pageStates
- [editor] add
Editor.setErasingIds
- [editor] add
Editor.setEditingId
- [editor] add several new component overrides
add shapes docs content (#1705)
- Documentation: Added more info about shapes.
fix: escape eraser tool on escape (#1732)
- escape eraser tool on escape
fix: arrow label dark mode color (#1733)
- fixed arrow label dark mode color
tldraw zero - package shuffle (#1710)
- [@tldraw/editor] lots, wip
- [@tldraw/ui] gone, merged to tldraw/tldraw
- [@tldraw/polyfills] gone, merged to tldraw/editor
- [@tldraw/primitives] gone, merged to tldraw/editor / tldraw/tldraw
- [@tldraw/indices] gone, merged to tldraw/editor
- [@tldraw/file-format] gone, merged to tldraw/tldraw
[fix] add cloud tooltip (#1728)
- Add a brief release note for your PR here.
(2/2) Add content to Tools docs page. (#1721)
- Tools docs.
tweaks for cloud shape (#1723)
- Add a brief release note for your PR here.
Add cloud shape (#1708)
- Adds a cloud shape.
[refactor] reduce dependencies on shape utils in editor (#1693)
- removes shape utils from the arguments of
isShapeOfType
, replacing with a generic - removes shape utils from the arguments of
getShapeUtil
, replacing with a generic - moves custom arrow info cache out of the util and into the editor class
- changes the a tool's
shapeType
to be a string instead of a shape util
Make some missing tsdocs appear on the docs site (#1706)
- Docs: Fixed some missing docs for the TldrawEditor component.
[hot take] remove tool
from shape definition (#1691)
- [dev] Removed the
tool
property fromdefineShape
[refactor] reordering shapes (#1718)
- [api] removes
Editor.getParentsMappedToChildren
- [api] removes
Editor.reorderShapes
- [api] moves reordering shapes code into its own file, outside of the editor
remove state checks for brush and zoom brush (#1717)
- [editor] remove
editor.isIn
state checks for displaying brush and zoom brush.
Add API links to all docs pages (#1661)
- Documentation: Added links to API reference in guides.
Go back to default cursor when done resizing. (#1700)
- Switch back to the default cursor after you are done inserting a new text shape.
Firefox: Fix coarse pointer issue (#1701)
- Fixed firefox not being able to use cursor chat when using a touch screen on desktop.
Fix tsdocs for TldrawUi component (#1707)
- Docs: Show some docs missing from TldrawUi component.
💥 Breaking Change
@tldraw/editor
,@tldraw/tldraw
- [improvement] prevent editing in readonly #1990 (@steveruizok)
- Remove focus management #1953 (@steveruizok @ds300)
- Make user preferences optional #1963 (@ds300)
- [fix] style changes #1814 (@steveruizok)
- Cleanup page state commands #1800 (@steveruizok)
- Rendering / cropping side-effects #1799 (@steveruizok)
- history options / markId / createPage #1796 (@steveruizok)
- Update setter names,
setXXShapeId
rather thansetXXId
#1789 (@steveruizok) - Rename shapes apis #1787 (@steveruizok)
- Camera APIs #1786 (@steveruizok)
- environment manager #1784 (@steveruizok)
- remove
selectionPageCenter
#1766 (@steveruizok) - rename selection page bounds #1763 (@steveruizok)
@tldraw/tldraw
- Remove targeted editing from text #1962 (@TodePond @steveruizok)
- [improvement] quick actions #1922 (@steveruizok)
@tldraw/editor
,@tldraw/store
- SideEffectManager #1785 (@steveruizok)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
- Revert "Editor commands API / effects" #1783 (@steveruizok)
- Editor commands API / effects #1778 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
ShapeUtil.getGeometry
, selection rewrite #1751 (@steveruizok)- More cleanup, focus bug fixes #1749 (@steveruizok)
- Remove helpers / extraneous API methods. #1745 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/utils
- move some utils into tldraw/utils #1750 (@steveruizok)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
- tldraw zero - package shuffle #1710 (@steveruizok @SomeHats)
@tldraw/editor
- [refactor] reduce dependencies on shape utils in editor #1693 (@steveruizok)
- [hot take] remove
tool
from shape definition #1691 (@TodePond) - [refactor] reordering shapes #1718 (@steveruizok)
🚀 Enhancement
@tldraw/editor
,@tldraw/tldraw
- Debugging cleanup / misc cleanup #2025 (@steveruizok)
- [feature] Include
sources
inTLExternalContent
#1925 (@steveruizok) - Add snapshot prop, examples #1856 (@steveruizok)
- [fix] arrow snapping bug #1756 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- Fix arrow handle snapping, snapping to text labels, selection of text labels #1910 (@steveruizok)
@tldraw/editor
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
- Migrate snapshot #1843 (@steveruizok)
@tldraw/tldraw
- export asset stuff #1829 (@steveruizok)
- [feature] Asset props #1824 (@steveruizok)
- [feature] unlock all action #1820 (@steveruizok)
- export
UiEventsProvider
#1774 (@steveruizok)
@tldraw/editor
- Add className as prop to Canvas #1827 (@steveruizok)
- refactor
parentsToChildrenWithIndexes
#1764 (@steveruizok) - remove state checks for brush and zoom brush #1717 (@steveruizok)
@tldraw/editor
,@tldraw/state
,@tldraw/tldraw
- [improvement] More selection logic #1806 (@steveruizok)
@tldraw/assets
,@tldraw/tlschema
- [feature] Add val town embed #1777 (@steveruizok)
@tldraw/tldraw
,@tldraw/validate
- Add shapes to exports #1776 (@steveruizok)
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
🐛 Bug Fix
- [fix] Multiple example #2026 (@steveruizok)
- Fix vs code extension. Prepare for new release. #2011 (@MitjaBezensek @steveruizok)
- Lokalise: Translations update #1964 (@TodePond)
- Update community translations #1889 (@TodePond)
- Bump vs code version. #1735 (@MitjaBezensek)
- [fix] add cloud tooltip #1728 (@ds300)
- Bump vs code version. #1719 (@MitjaBezensek)
@tldraw/tldraw
- Update readme #2027 (@steveruizok)
- [fix] Minimap interactions #2012 (@steveruizok)
- [fix] Image size #2002 (@steveruizok)
- [fix] tool lock button in toolbar #2009 (@steveruizok)
- fix cloud rendering #2008 (@ds300)
- Fix hooks error. #2000 (@MitjaBezensek)
- Fix style panel opening when disabled #1983 (@Taha-Hassan-Git @steveruizok)
- [fix] Drawing tool touch for first pen mark #1977 (@steveruizok)
- [fix] Screen bounds offset after editing text #1976 (@steveruizok)
- fix line bugs #1936 (@Taha-Hassan-Git @steveruizok)
- Mark an undo before toggling lock #1969 (@steveruizok)
- Stop editing frame headers when clicking inside a frame. #1955 (@MitjaBezensek @TodePond)
- Firefox: Fix dropdowns not opening with touch #1923 (@TodePond)
- Fix lines being draggable via their background #1920 (@TodePond)
- Fix first handle of line snapping to itself #1912 (@TodePond)
- [fix] id properties of undefined (#1730) #1919 (@momenthana)
- ♻️ fix: editing is not terminated after the conversion is confirmed. #1885 (@mr04vv @steveruizok)
- Fix selecting one shape from selection group #1905 (@Taha-Hassan-Git)
- [fix] help menu css #1888 (@steveruizok)
- Fix highlighter dots not being clickable #1903 (@TodePond)
- Fix video shape controls #1909 (@ds300)
- Fix line handles #1904 (@ds300)
- Fix pinch start with toolbar open #1895 (@ds300)
- clamp x-box and check-box lines to stay within box at small scales #1860 (@ds300)
- [fix] exit penmode #1847 (@steveruizok)
- [fix] assets and content handlers #1846 (@steveruizok)
- [fix] line tool bug with tool locked #1841 (@steveruizok)
- [fix] arrows bind to locked shapes #1833 (@steveruizok @MitjaBezensek)
- [fix] Collaborator scribble on tldraw #1804 (@steveruizok)
- [fix] Don't make arrows shapes to arrows #1793 (@steveruizok)
- Fix text editing in page menu popover #1790 (@steveruizok)
- Fix outlines on text shapes #1781 (@steveruizok)
- remove useForceSolid effect for geo / line shapes #1769 (@steveruizok)
- [fix] arrow rendering safari #1767 (@steveruizok)
- [fix] revert legacy changes to buildFromV1Document.ts #1761 (@steveruizok)
- Fix asset urls #1758 (@lakesare)
- [fix]: Fix typo in shapeType declaration #1747 (@ricardo-crespo @steveruizok)
- fix: escape eraser tool on escape #1732 (@gabrielchl @steveruizok)
- fix: arrow label dark mode color #1733 (@gabrielchl @steveruizok)
@tldraw/editor
- fix screen bounds not updating #2022 (@SomeHats)
- [improvement] Refactor curved arrows #2019 (@steveruizok)
- [fix] focus events #2013 (@steveruizok)
- Re-focus on focus. #2010 (@steveruizok)
- [fix] X box shape arrow intersections #2006 (@steveruizok)
- Fix group opacity #1997 (@ds300)
- [fix] Escape key exiting full screen while editing shapes #1986 (@steveruizok)
- [fix] Hovered indicators shown when coarse pointer #1985 (@steveruizok)
- Sliiiightly darken muted-2 color. #1981 (@steveruizok)
- [fix] pinch events #1979 (@steveruizok)
- Make state node methods arrow functions #1973 (@steveruizok)
- Arrows followup #1972 (@steveruizok)
- [improvement] improve arrows (for real) #1957 (@steveruizok)
- fix clipping on nested non-intersecting frames #1934 (@SomeHats)
- Use smarter rounding for shape container div width/height #1930 (@ds300)
- Fix line wobble #1915 (@ds300)
- [fix] right click #1891 (@steveruizok)
- [wip] Viewport focus of editing shapes #1873 (@Taha-Hassan-Git)
- Fix indicator transform miscalculation #1852 (@ds300)
- [fix] pointer events in shapes #1855 (@steveruizok)
- [fix] overlays stacking #1849 (@steveruizok)
- [fix] awful rendering issue #1842 (@steveruizok)
- [fix] svg overlays when browser zoom is not 100% #1836 (@steveruizok)
- Allow setting
user
as a prop #1832 (@SomeHats) - [fix] snapping bug #1819 (@steveruizok)
- [fix] Replace
findLast
for browser compat #1822 (@steveruizok) - [fix] bug with eventemitter3 default export #1818 (@steveruizok)
- [fix] handles updates #1779 (@steveruizok)
- [fix] transform errors #1772 (@steveruizok)
- [fix] shape indicator showing when locked shapes are hovered #1771 (@steveruizok)
- tweaks for cloud shape #1723 (@ds300)
- Go back to default cursor when done resizing. #1700 (@MitjaBezensek)
- Firefox: Fix coarse pointer issue #1701 (@TodePond)
@tldraw/editor
,@tldraw/tldraw
- frame label fix #2016 (@ds300)
- [fix] Focus events (actually) #2015 (@steveruizok)
- Contain all the things #1999 (@steveruizok)
- fix text in geo shapes not causing its container to grow #2003 (@SomeHats)
- Fix an issue with arrow creation. #2004 (@MitjaBezensek @steveruizok)
- Fix text-wrapping on Safari #1980 (@Taha-Hassan-Git)
- [fix] text shape outline #1974 (@steveruizok)
- Allow right clicking selection backgrounds #1968 (@TodePond @steveruizok)
- [fix] geo shape text label placement #1927 (@steveruizok @ds300)
- expanded highlighter geometry #1929 (@SomeHats)
- [fix] Moving group items inside of a frame (dropping) #1886 (@mr04vv @steveruizok)
- [fix] iframe losing focus on pointer down #1848 (@steveruizok)
- [fix] zero width / height bounds #1840 (@steveruizok)
- avoid pixel rounding / transformation miscalc for overlay items #1858 (@BrianHung @ds300)
- Fix paste transform #1859 (@ds300)
- [fix] text editing outline when scaled #1826 (@steveruizok)
- [fix] Line shape rendering #1825 (@steveruizok)
- [fix] remove CSS radius calculations #1823 (@steveruizok)
- [fix] editing video shapes #1821 (@steveruizok)
- [fix] Sticky text content / hovered shapes #1808 (@steveruizok)
- [fix] page to screen #1797 (@steveruizok)
- Custom rendering margin / don't cull selected shapes #1788 (@steveruizok)
- [fix] minimap, common page bounds #1770 (@steveruizok)
- [fix] restore bg option, fix calculations #1765 (@steveruizok)
@tldraw/editor
,@tldraw/store
@tldraw/tldraw
,@tldraw/tlschema
- [fix] embeds switching / tldraw embed #1792 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
- [fix] dark mode #1754 (@steveruizok)
🏠 Internal
- Remove docs source. #2030 (@steveruizok)
- [infra] missing await #1951 (@ds300)
- [infra] maybe fix canary publish #1950 (@ds300)
- fix typo #1831 (@judicaelandria)
- Add next cache to clean command #1811 (@ds300)
- remove yjs example #1795 (@steveruizok)
- support custom shapes in yjs example #1737 (@steveruizok)
- [internal] Add basic list to examples #1688 (@steveruizok)
- cleanup #1711 (@SomeHats)
@tldraw/tldraw
- [fix] CSS reload in dev #1791 (@steveruizok)
📝 Documentation
- fix(docs): update shapes docs add the array of defined shapes #1949 (@judicaelandria @steveruizok)
- update currentPageShapesSorted reference in docs #1851 (@Taha-Hassan-Git)
- Fix broken link in docs #1830 (@jmduke @steveruizok)
- add shapes docs content #1705 (@TodePond @steveruizok)
- (2/2) Add content to Tools docs page. #1721 (@TodePond)
- Add API links to all docs pages #1661 (@TodePond)
- Fix tsdocs for TldrawUi component #1707 (@TodePond)
@tldraw/editor
🧪 Tests
- Fix e2e test #1748 (@steveruizok)
@tldraw/tldraw
- [fix] Right click groups #1975 (@TodePond @steveruizok)
🔩 Dependency Updates
@tldraw/editor
- (chore) bump #1744 (@steveruizok)
Authors: 14
- alex (@SomeHats)
- Brian Hung (@BrianHung)
- David Sheldrick (@ds300)
- Evgenia Karunus (@lakesare)
- Gabriel Lee (@gabrielchl)
- Hana (@momenthana)
- Judicael (@judicaelandria)
- Justin Duke (@jmduke)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Ricardo Crespo (@ricardo-crespo)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
- Takuto Mori Gump (@mr04vv)
v2.0.0-alpha.14 (Tue Jul 04 2023)
Release Notes
Disable styles panel button on mobile when using the laser tool. (#1704)
- Disable the styles panel button for laser tool on mobile.
remove lock option from highlighter (#1703)
- We no longer show the tool lock option for highlighter - it didn't do anything anyway
[fix] penmode (#1698)
- [fix] pen mode
Update readme (#1686)
- Documentation: Updated readme to reflect recent library changes.
[docs] Fix the types in the Shapes example (#1681)
- Documentation: Fix some incorrect types on the Shapes page.
[improvement] More nuanced cursor state (#1682)
- Improve cursor timeouts and hiding logic.
Fix VS Code commits failing on bublic? (#1680)
- [internal] fixed commits failing from bublic when using UI
[fix] Lock shortcut (#1677)
- [@tldraw/editor] Fix lock tool shortcut
[fix] comma keyboard shortcuts (#1675)
- [@tldraw/editor] Bug fixes on document events.
[improvement] add box sizing border box (#1674)
- [@tldraw/editor] Add
box-sizing: border-box
totl-container
[improvemnet] drop crc, Buffer dependency (#1673)
- [@tldraw/editor] Remove peer dependency on buffer.
[improvement] export scribble manager (#1671)
- [@tldraw/tldraw] Export
ScribbleManager
[feature] add meta
property to records (#1627)
- todo
[fix] mutating snapshot
in migrateStoreSnapshot
(#1663)
- [@tldraw/store] Fixed a bug that would cause
Store.migrateStoreSnapshot
to mutate itssnapshot
argument.
🚀 Enhancement
@tldraw/editor
- [improvement] More nuanced cursor state #1682 (@steveruizok)
- [improvement] export scribble manager #1671 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
,@tldraw/validate
- [feature] add
meta
property to records #1627 (@steveruizok)
- [feature] add
🐛 Bug Fix
- Lokalise: Translations update #1694 (@TodePond)
@tldraw/ui
- Disable styles panel button on mobile when using the laser tool. #1704 (@MitjaBezensek)
- remove lock option from highlighter #1703 (@SomeHats)
- [fix] Lock shortcut #1677 (@steveruizok)
@tldraw/editor
- [fix] penmode #1698 (@steveruizok)
- [fix] indicator not updating #1696 (@steveruizok)
- [fix] comma keyboard shortcuts #1675 (@steveruizok)
- [improvement] add box sizing border box #1674 (@steveruizok)
- [improvemnet] drop crc, Buffer dependency #1673 (@steveruizok)
- [fix] Shape rendering #1670 (@steveruizok)
@tldraw/state
- [fix] rename
global
in @tldraw/state to avoid collissions #1672 (@steveruizok)
- [fix] rename
@tldraw/store
- [fix] mutating
snapshot
inmigrateStoreSnapshot
#1663 (@steveruizok)
- [fix] mutating
🏠 Internal
- [infra] use huppy token for publish-new #1687 (@ds300)
- Fix VS Code commits failing on bublic? #1680 (@TodePond)
📝 Documentation
- Update readme #1686 (@TodePond)
- [docs] Update multiple test #1685 (@steveruizok)
- [docs] Fix the types in the Shapes example #1681 (@TodePond)
Authors: 5
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.13 (Wed Jun 28 2023)
Release Notes
Fix crash when rotating a deleted shape (#1658)
- Fixed a crash when trying to rotate a deleted shape.
[improvement] store snapshot types (#1657)
- [dev] Rename
StoreSnapshot
toSerializedStore
- [dev] Create new
StoreSnapshot
as type related togetSnapshot
/loadSnapshot
[fix] pen mode touches (#1655)
- Removes three touches to cancel pen mode feature.
(2/2) [docs] Fix links to API. (#1654)
- Documentation: Simplified links to the API reference.
(1/2) [docs] Restore some missing changes (#1652)
- None (Docs internals)
[docs] Remove embeds page (#1653)
- Documentation: Removed unused Embeds page.
Fix text shapes not having colour (#1649)
- None: Fixes an unreleased bug.
Styles API docs (#1641)
--
Styles API follow-ups (#1636)
--
docs: remove not accepting contributions notice (#1647)
- Remove not accepting contributions notice from README
Fix SVG cursors not being used (#1639)
- None: Fixing an unreleased bug.
[docs] Add table of contents to Editor page (#1642)
- Documentation: Added a table of contents to the Editor page.
speed up playwright and add visual regression tests (#1638)
--
[docs] Allow sidebar to be scrolled on short screens (#1632)
- Documentation: Fixed the sidebar being unscrollable on some short screens.
[docs] Add feedback when you search (#1633)
- Documentation: Added some immediate feedback when you search.
[docs] Separate some pages out of the Docs section (#1626)
- Documentation: Restructured the sidebar for clarity.
[docs] Fix wrong cursor when hovering buttons (#1630)
- Documentation: Fixed the wrong cursor showing when hovering some buttons.
[docs] Tighten up wording & structure of Usage page (#1624)
- Documentation: Impoved clarity of wording and structure of the Usage page.
[docs] Tighten up Editor page introduction (#1622)
- Documentation: Simplified the Editor page.
[docs] Tighten up Introduction page (#1621)
- Documentation: Simplified the Introduction page.
Lokalise: Translations update (#1618)
- Added more translations for Simplified Chinese.
[docs] Simplify paths for uncategorised pages (#1619)
- Documentation: Cleaned up some paths.
ShapeUtil
refactor, Editor
cleanup (#1611)
- [editor] renames
defaultProps
togetDefaultProps
- [editor] removes
outline
,outlineSegments
,handles
,bounds
- [editor] renames
renderBackground
tobackgroundComponent
Revert "Update dependencies (#1613)" (#1617)
Remove on drop override (#1612)
- [editor] Remove
onDropOverride
Make resizeBox a regular function (#1610)
- [editor] Change
resizeBox
to be a regular function.
Rename ShapeUtil.render
-> ShapeUtil.component
(#1609)
- [editor] rename
ShapeUtil.render
toShapeUtil.component
tldraw.css (#1607)
- [tldraw] Removes
editor.css
andui.css
exports, replaces withtldraw.css
[fix] camera culling (#1602)
- [editor] Adds
Editor.cameraState
- Adds smart culling to make panning and zooming more smooth
Styles API (#1580)
(1/2) Timeout collaborator cursors (#1525)
- Brought back cursor timeouts. Collaborator cursors now disappear after 3 seconds of inactivity.
Remove @tldraw/utils
from the docs site (#1596)
- [docs] Removed an internal utilities package.
(1/2) Cursor Chat - Presence (#1487)
- [dev] Added support for cursor chat presence.
[docs] Add barebones note about translations (#1593)
- [docs] Added brief info on how to join as a translations contributor.
[refactor] snapping (#1589)
- [editor] fix bug in snapping
remove ShapeUtil.transform
(#1590)
- [editor] Remove
ShapeUtil.transform
Change app to editor in docs (#1592)
- [docs] Updated 'App' to 'Editor'.
Make sure loading screens use dark mode user preference. (#1552)
- Make sure our loading and error screens take dark mode setting into account.
remove ShapeUtil.point
(#1591)
- [editor] Remove
ShapeUtil.point
[fix] Remove group shape export backgrounds (#1587)
- Fix image exports for groups
Add tsdocs to Editor methods (#1581)
- [dev] Added initial documentation for the Editor class.
add presence to yjs example (#1582)
- [editor] Add presence to yjs example.
Add optional generic to updateShapes
/ createShapes
(#1579)
- [editor] adds an optional shape generic to
updateShapes
andcreateShapes
fix: properly remove awareness from store (#1565)
- Add a brief release note for your PR here.
[improvement] Embed shape cleanup (#1569)
- [editor] Remove unused props for
TLEditorShape
- [editor] Adds
canUnmount
property to embed definitions
Move the loading of assets to the TldrawEditorWithReadyStore so that all code paths load the assets. (#1561)
- Fix a problem where assets were not loading in some cases (snapshots).
Add anchor targets to our headings. (#1571)
- Improve documentation to include anchor targets.
shapes folder, move tools into shape defs (#1574)
n/a
mini defineShape
API (#1563)
[dev-facing, notes to come]
Lokalise: Translations update (#1572)
- Added and updates translations for Italian, Russian, and Ukrainian.
Fix README typo (#1451)
- None
yjs example (#1560)
- [editor] Adds yjs example project
ExternalContentManager
for handling external content (files, images, etc) (#1550)
- [editor] add
ExternalContentManager
for plopping content onto the canvas - [editor] remove
onCreateAssetFromFile
prop - [editor] remove
onCreateBookmarkFromUrl
prop - [editor] introduce
ExternalContentManager
- [editor] add cleanup function to
onMount
Misc sync fixes (#1555)
- Fixes a handful of state management bugs that manifest in multiplayer rooms
[Docs] Change some editor properties to methods (#1553)
- [docs] Fixed some methods that were incorrectly marked as properties.
[Docs] Change some internal methods to public (#1554)
- [docs] Changed some Editor methods from internal to public.
Use unpkg as a default for serving assets. (#1548)
- Use unpkg asset hosting as a default.
hoist opacity out of props (#1526)
[internal only for now]
Fix arrows with weird bends crashing (#1540)
- Fixed a rare crash that could happen when you try to curve an arrow with zero distance.
[feature] add vertical align to note shape (#1539)
- Adds vertical align prop to note shapes
[fix] Shift key code / nudge (#1537)
- Fix shift key nudging
scale exported canvases when they reach the browsers max size (#1536)
- Fix a bug where sometimes exports would fail when they were too big for your browser. Now, they're scaled down to the max supported size.
[fix] control click on mac (#1535)
- Fix control click to open menu on Mac
Fix being able to undo following (#1531)
- Fixed a bug where you could undo viewport-following and viewport-unfollowing.
Select locked shapes on long press (#1529)
highlighter fixes (#1530)
[aq bug fixes]
Lokalise: Translations update (#1515)
- Added and updated community translations for Galician, Italian, Romanian, Russian, Ukrainian, and Traditional Chinese.
Simplify static cursors (#1520)
- (editor) Simplifies the cursors in our CSS.
Renaming types, shape utils, tools (#1513)
- Renaming of types, shape utils, tools
tlschema cleanup (#1509)
- [editor] Remove
app.createShapeId
- [tlschema] Cleans up exports
Rename tlstore to store (#1507)
- Replace @tldraw/tlstore with @tldraw/store
Rename tlvalidate to validate (#1508)
- Rename tlvalidate to validate
Filter out unused assets. (#1502)
- Optimize file size of exported files.
Cleanup @tldraw/ui types / exports (#1504)
- [editor] clean up / unify types
rename app to editor (#1503)
- Rename
App
toEditor
and many other things that referenceapp
toeditor
.
Revert 09c36781
& tweak linting (#1501)
[internal-only]
Add support for locking shapes (#1447)
- Add support for locking shapes.
[3/3] Highlighter styling (#1490)
Highlighter pen is here! 🎉🎉🎉
[2/3] renderer changes to support "sandwich mode" highlighting (#1418)
[not yet!]
[1/3] initial highlighter shape/tool (#1401)
[internal only change layout ground work for highlighter]
[feature] reduce motion (#1485)
- [editor] Add
reduceMotion
user preference - Add reduce motion option to preferences
[feature] Easier store persistence API + persistence example (#1480)
- [tlstore] adds
getSnapshot
andloadSnapshot
Add DSL to make writing shape-layout test cases much easier (#1413)
[internal only change]
Feature flags rework (#1474)
[internal only change]
[tiny] add isPageId (#1482)
- [tlschema] Add
isPageId
[minor] Mark tlsync-client internal APIs (#1481)
- Removes internal APIs from
@tldraw/tlsync-client
[refactor] update record names (#1473)
- [editor] rename record types
remove safari special-casing for paste (#1470)
[fixes a regression introduced during this release]
Don't allow g
keyboard shortcut in readonly mode, show laser tool in the toolbar (#1459)
- Disable geo tool shortcut in readonly mode. Show laser on the toolbar.
[mini-feature] Following indicator (#1468)
- Adds viewport following indicator
[chore] refactor user preferences (#1435)
- Add a brief release note for your PR here.
Add translations for "Leave shared project" action (#1394)
- None
update use-gesture (#1453)
- Updates use-gesture to fix pinch gesture bug on iPad.
Add migration for horizontal alignment (#1443)
- Add support for legacy alignment options.
Stricter ID types (#1439)
[internal only, covered by #1432 changelog]
[refactor] restore createTLSchema (#1444)
- [editor] Simplifies custom shape definition
- [tldraw] Updates props for component to require a
TldrawEditorConfig
.
Fix cursor shadow getting clipped (#1441)
- Fixed a bug where custom cursors could have their shadow clipped.
Add SVG cursors for all cursor types (#1416)
- Added consistent custom cursors.
[refactor] remove createTLSchema
(#1440)
- [tlschema] Removes
createTLSchema
in favor ofTldrawEditorConfig
[refactor] Remove TLShapeDef
, getShapeUtilByType
. (#1432)
- [tlschema] Update props of
createTLSchema
- [editor] Update props of
TldrawEditorConfig
- [editor] Remove
App.getShapeUtilByType
- [editor] Update
App.getShapeUtil
to take a type rather than a shape
[refactor] record migrations (#1430)
- [tlschema] Improve
defineMigrations
- [editor] Simplify migration definitions
Measure individual words instead of just line breaks for text exports (#1397)
- Add a brief release note for your PR here.
Update docs links + guides + build (#1422)
- [docs] Updated guides to get assets from the new
tldraw/tldraw
repo instead of the oldtldraw/tldraw-examples
. - [docs] Updated an old CodeSandbox link to the new StackBlitz.
Create @tldraw/indices package (#1426)
- [@tldraw/editor] Remove fractional indices code into
@tldraw/indices
- [@tldraw/indices] Create library for fractional indices code
[feature] Add checkbox to toolbar (#1423)
- Adds missing checkbox to toolbar.
[improvement] set horizontal position using text alignment (#1419)
- Geo shapes and sticky notes now position their labels based on their alignment.
[fix] reorder handles in front of selection (#1420)
- Fix a bug where handles would appear behind selection indicators.
[feature] add laser pointer (#1412)
- Adds the laser pointer tool.
[firefox] Fix the pointer getting stuck down when you press the control key (#1390)
- [Firefox] Fixed a bug where the pointer could get stuck down when the control key is held down.
Vertical text alignment for geo shapes (#1414)
- This adds vertical text alignment property to geo shapes.
[fix] page menu, drag handle css (#1406)
- Fix styling in the page menu
Switch to new collaborators component (#1405)
- [Breaking] Removes the old version of LiveCollaborators, replacing it with the new one based on
TLInstancePresence
[improvement] refactor paste to support multi-line text (#1398)
- Improves clipboard logic when pasting text
- Adds support for pasting multi-line text
- Adds maximum widths when pasting single-line text
- Adds support for RTL languages when pasting multi-line or wrapped text
- Strips leading indentation when pasting text
remove url state, to private (#1402)
- [editor] remove
useUrlState
Don't allow the users to use keyboard shortcuts to select tools in readonly mode. (#1382)
- Disable keyboard shortcut events for tools in readonly mode. We only allow the select, hand tools, and zoom tool.
[fix] Don't synchronize isReadOnly (#1396)
- Removes the isReadOnly value from the
user_document_settings
record type.
fix pasted tabs not getting converted to space (#1388)
- Fixed a bug where pasted tabs wouldn't get converted into spaces.
Delete an empty text shape when clicking on another text shape. (#1384)
- Fix a problem with empty text shapes not getting deleted if you clicked on another text shape.
Fix setting the grid mode. (#1386)
- Fix grid mode toggle.
Update codesandbox + example link (#1368)
- [docs] Fixed some links to examples.
Fix selection foreground being misaligned (#1380)
- None (fix for a bug that hasn't released)
Expand selection outline for single-selected draw shape (#1379)
- Improve selection outlines around horizontal or vertical draw shapes
Add localizations for snapshots links (#1347)
- Add localization for creating snapshot links.
[fix] pointer location not updating when moving over editing shape (#1378)
- Fix a bug where the pointer location would not update when moving the pointer over an editing shape.
[perf] deleteShapes (#1373)
- Perf improvement for deleting shapes in a document with lots of pages.
Neaten up pr template (#1369)
- None: internal
fix a couple of consistency assumptions (#1365)
- Fixes a couple of minor consistency bugs affecting shape updating and page deletion in multiplayer contexts.
Disable nightly/on-demand webdriver scripts (#1366)
None
avoid lazy race conditions (#1364)
[internal only]
Adds CI for webdriver tests (#1343)
- Github action CI workflows added for webdriver tests
- Refactored e2e test runner
enable eslint for test files (#1363)
internal-only change
[perf] make ensureStoreIsUsable scale better (#1362)
- Add a brief release note for your PR here.
Export Events stuff (#1360)
- [ui] export the
TLUiEventSource
type - [ui] export the
EventsProviderProps
type - [ui] export the
useEvents
hook
presence-related fixes (#1361)
- Fix a bug where creating a page could throw an error in some multiplayer contexts.
[improvement] rename onEvent to onUiEvent (#1358)
- [docs] Adds docs for ui events
- [tldraw] Renames
onEvent
toonUiEvent
[docs] Update links in docs (#1357)
- [docs] Update links in docs to point to the tldraw repository rather than tldraw-examples.
[improvement] Ui events followup (#1354)
- [ui] Adds source to ui events data object
- [ui] Corrects source for toolbar events
- [ui] Corrects source for clipboard events
- [examples] Updates events example
[fix] various text (#1350)
- Allow leading whitespace
[chore] Bump nanoid (#1349)
- Remove unused userId and instanceId props from AppOptions
Fix "copy as png" in firefox when dom.events.asyncClipboard.clipboardItem
is enabled (#1342)
- Fix "copy as png" in firefox when
dom.events.asyncClipboard.clipboardItem
is enabled
Rework the assets package for strategy-specific imports (#1341)
- [dev] If you're using the
@tldraw/assets
package, you need to update your code toimport { getAssetUrlsByImport } from '@tldraw/assets/imports'
instead ofimport { getBundlerAssetUrls } from '@tldraw/assets
💥 Breaking Change
- [minor] Mark tlsync-client internal APIs #1481 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/store
- [tweak] migrate store snapshot arguments #1659 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/store
,@tldraw/tlschema
- [improvement] store snapshot types #1657 (@steveruizok)
- Rename tlstore to store #1507 (@steveruizok)
@tldraw/editor
,@tldraw/ui
- [fix] react component runaways, error boundaries #1625 (@steveruizok)
- Tidy up #1600 (@steveruizok)
- Use unpkg as a default for serving assets. #1548 (@MitjaBezensek)
- Switch to new collaborators component #1405 (@ds300)
- [improvement] Ui events followup #1354 (@steveruizok)
- [feature] ui events #1326 (@orangemug @steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tldraw
,@tldraw/tlschema
ShapeUtil
refactor,Editor
cleanup #1611 (@steveruizok)- [refactor] restore createTLSchema #1444 (@steveruizok)
@tldraw/editor
- Remove on drop override #1612 (@steveruizok)
- Rename
ShapeUtil.render
->ShapeUtil.component
#1609 (@steveruizok) - [fix] camera culling #1602 (@steveruizok)
- remove
ShapeUtil.transform
#1590 (@steveruizok) - remove
ShapeUtil.point
#1591 (@steveruizok) - remove url state, to private #1402 (@steveruizok)
@tldraw/editor
,@tldraw/tldraw
,@tldraw/ui
- tldraw.css #1607 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
,@tldraw/validate
- Styles API #1580 (@SomeHats @steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/utils
,@tldraw/validate
@tldraw/editor
,@tldraw/file-format
,@tldraw/tldraw
,@tldraw/ui
ExternalContentManager
for handling external content (files, images, etc) #1550 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
,@tldraw/ui
- hoist opacity out of props #1526 (@SomeHats)
- Add support for project names #1340 (@TodePond @steveruizok)
- [refactor] Remove
TLShapeDef
,getShapeUtilByType
. #1432 (@steveruizok @SomeHats) - [fix] Don't synchronize isReadOnly #1396 (@ds300)
@tldraw/editor
,@tldraw/file-format
,@tldraw/store
,@tldraw/tlschema
,@tldraw/ui
- Independent instance state persistence #1493 (@ds300)
- tlschema cleanup #1509 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/ui
- Renaming types, shape utils, tools #1513 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tlschema
,@tldraw/validate
- Rename tlvalidate to validate #1508 (@steveruizok)
@tldraw/file-format
,@tldraw/tlschema
,@tldraw/ui
- Cleanup @tldraw/ui types / exports #1504 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/indices
,@tldraw/tldraw
,@tldraw/ui
- rename app to editor #1503 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/ui
- [refactor] User-facing APIs #1478 (@steveruizok)
- [chore] refactor user preferences #1435 (@ds300)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tlschema
,@tldraw/ui
- [refactor] update record names #1473 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
- [refactor] remove
createTLSchema
#1440 (@steveruizok) - [refactor] record migrations #1430 (@steveruizok)
- [chore] Bump nanoid #1349 (@ds300)
- [refactor] remove
@tldraw/editor
,@tldraw/indices
,@tldraw/utils
- Create @tldraw/indices package #1426 (@steveruizok)
@tldraw/ui
- [improvement] rename onEvent to onUiEvent #1358 (@steveruizok)
@tldraw/assets
,@tldraw/tlschema
🚀 Enhancement
- [feature] Easier store persistence API + persistence example #1480 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
,@tldraw/ui
- Styles API follow-ups #1636 (@SomeHats @steveruizok)
- (1/2) Cursor Chat - Presence #1487 (@TodePond @steveruizok)
@tldraw/editor
- Make resizeBox a regular function #1610 (@steveruizok)
- [improvement] set horizontal position using text alignment #1419 (@steveruizok)
- [fix] pointer location not updating when moving over editing shape #1378 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
- [fix] yjs presence #1603 (@steveruizok)
- (1/2) Timeout collaborator cursors #1525 (@TodePond @steveruizok)
- [feature] add vertical align to note shape #1539 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
- Add optional generic to
updateShapes
/createShapes
#1579 (@steveruizok) - move v1 migration code into file-format #1499 (@steveruizok)
- Add optional generic to
@tldraw/editor
,@tldraw/ui
- Add support for locking shapes #1447 (@MitjaBezensek @steveruizok)
- [feature] reduce motion #1485 (@steveruizok)
- [mini-feature] Following indicator #1468 (@steveruizok)
- Add SVG cursors for all cursor types #1416 (@TodePond @steveruizok)
- [improvement] refactor paste to support multi-line text #1398 (@steveruizok)
@tldraw/assets
,@tldraw/editor
,@tldraw/ui
- [3/3] Highlighter styling #1490 (@SomeHats @steveruizok)
@tldraw/editor
,@tldraw/primitives
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
,@tldraw/ui
- [1/3] initial highlighter shape/tool #1401 (@SomeHats)
- [feature] add laser pointer #1412 (@steveruizok)
- Vertical text alignment for geo shapes #1414 (@MitjaBezensek @steveruizok)
@tldraw/ui
- [feature] Add checkbox to toolbar #1423 (@steveruizok)
- Add stuff for new 'share project' flow #1403 (@ds300)
- Snapshot link menu translations #1399 (@steveruizok)
@tldraw/assets
,@tldraw/ui
- open menus refactor #1400 (@steveruizok)
🐛 Bug Fix
- Lokalise: Translations update #1618 (@TodePond)
- Fa translation #1500 (@mokazemi @steveruizok)
- Lokalise: Translations update #1572 (@TodePond)
- Update changelog. Bump version. #1546 (@MitjaBezensek)
- Lokalise: Translations update #1515 (@TodePond)
- VS Code version bump, changelog. #1497 (@MitjaBezensek)
- Fix issue template label not getting applied #1428 (@TodePond)
- Bump version. #1421 (@MitjaBezensek)
- Update community translations + remove unused translations #1356 (@TodePond)
- [docs] Update links in docs #1357 (@steveruizok)
- [chore] Add label options to PR template #1339 (@ds300)
- Fix publishing #1338 (@SomeHats)
- Update README.md #1331 (@steveruizok)
- [docs] editor API #1328 (@steveruizok)
- [docs] Add missing params docs #1223 (@TodePond)
- Add link to original tldraw within issue template #1225 (@TodePond)
- Fix issue templates not appearing #1228 (@TodePond)
- [improvement] readme / contributing #1199 (@TodePond @steveruizok)
- [improvement] add bug report / feature request #1218 (@steveruizok)
- add
env
and prefix output options to exec #1217 (@SomeHats) - [wip] Going bublic #1195 (@SomeHats @ds300 @orangemug @steveruizok @TodePond)
- [chore] use explicit yarn in clean script #1216 (@ds300)
- fix husky install #1212 (@SomeHats)
- Alex/test #1202 (@SomeHats)
@tldraw/editor
- Fix crash when rotating a deleted shape #1658 (@TodePond)
- [fix] pen mode touches #1655 (@steveruizok)
- Fix text shapes not having colour #1649 (@TodePond)
- Fix SVG cursors not being used #1639 (@TodePond)
- [fix] tldraw file drop #1616 (@steveruizok)
- Make sure loading screens use dark mode user preference. #1552 (@MitjaBezensek @steveruizok)
- [fix] Remove group shape export backgrounds #1587 (@steveruizok)
- Move the loading of assets to the TldrawEditorWithReadyStore so that all code paths load the assets. #1561 (@MitjaBezensek)
- shapes folder, move tools into shape defs #1574 (@SomeHats)
- offset drop point by editor client rect #1564 (@BrianHung)
- More misc sync fixes #1559 (@ds300)
- Misc sync fixes #1555 (@ds300)
- [fix] Shift key code / nudge #1537 (@steveruizok)
- scale exported canvases when they reach the browsers max size #1536 (@SomeHats)
- [fix] control click on mac #1535 (@steveruizok)
- Fix being able to undo following #1531 (@TodePond)
- send user prefs data in broadcast msg #1466 (@ds300)
- Fix positioning of default cursor #1458 (@TodePond)
- change pointer cursor to white #1454 (@TodePond)
- Fix cursor shadow getting clipped #1441 (@TodePond)
- Fix new wobble #1431 (@TodePond)
- [fix] laser pointer #1429 (@steveruizok)
- [fix] reorder handles in front of selection #1420 (@steveruizok)
- [firefox] Fix the pointer getting stuck down when you press the control key #1390 (@TodePond)
- fix viewport following #1411 (@ds300)
- fix pasted tabs not getting converted to space #1388 (@TodePond)
- Delete an empty text shape when clicking on another text shape. #1384 (@MitjaBezensek)
- Fix setting the grid mode. #1386 (@MitjaBezensek)
- Fix selection foreground being misaligned #1380 (@TodePond @steveruizok)
- Expand selection outline for single-selected draw shape #1379 (@SomeHats)
- [fix] Allow interactions with embeds in readonly mode #1333 (@MitjaBezensek)
- [perf] deleteShapes #1373 (@ds300)
- fix a couple of consistency assumptions #1365 (@ds300)
- [fix] various text #1350 (@steveruizok)
- [fix] tabs in text exports #1323 (@steveruizok)
- [fix] update useTransform.ts #1327 (@steveruizok)
- [improvement] dragging start distance on coarse pointer #1220 (@steveruizok)
- [fix] SVG export for arrows with labels but no arrowheads #1229 (@steveruizok)
- add docs for TLShapeUtil #1215 (@TodePond)
- [fix] publish #1222 (@ds300)
- [fix] typo in isFocusingInput #1221 (@ds300)
- [feat] new LiveCollaborators behind feature flag #1219 (@ds300)
- [fix] collaborator render order #1213 (@steveruizok)
@tldraw/editor
,@tldraw/ui
- 3/2 Cursor chat #1623 (@steveruizok)
- [fix] embeds #1578 (@steveruizok)
- highlighter fixes #1530 (@SomeHats)
- Feature flags rework #1474 (@SomeHats)
- remove svg layer, html all the things, rs to tl #1227 (@TodePond @steveruizok)
- Added
pHYs
to import/export of png images #1200 (@orangemug @steveruizok)
@tldraw/tldraw
- [fix] tldraw api report #1615 (@steveruizok)
- Fix to not ignore the
userId
option for<Tldraw/>
component in@tldraw/tldraw
#1205 (@orangemug)
@tldraw/editor
,@tldraw/primitives
- [refactor] snapping #1589 (@steveruizok)
- Fix arrows with weird bends crashing #1540 (@TodePond)
- ensure that fixed points stay fixed #1523 (@steveruizok)
- Use
strokePathData
for<ShapeFill/>
path to avoid bugs in the inner path algo #1207 (@orangemug @steveruizok)
@tldraw/editor
,@tldraw/tlschema
- update exports for user presence #1583 (@steveruizok)
- [improvement] Embed shape cleanup #1569 (@steveruizok)
- Add migration for horizontal alignment #1443 (@MitjaBezensek @steveruizok)
- [chore] move schema construction to tlschema package #1334 (@ds300)
@tldraw/assets
,@tldraw/editor
,@tldraw/ui
,@tldraw/utils
- Asset improvements #1557 (@MitjaBezensek)
@tldraw/ui
- Use
"Toggle locked"
#1538 (@steveruizok) - Select locked shapes on long press #1529 (@steveruizok)
- remove safari special-casing for paste #1470 (@SomeHats)
- Don't allow
g
keyboard shortcut in readonly mode, show laser tool in the toolbar #1459 (@MitjaBezensek @steveruizok) - Fix people menu button border on android #1471 (@TodePond)
- [fix] lock option for laser tool #1460 (@steveruizok)
- Add laser keyboard shortcut. #1467 (@MitjaBezensek)
- [fix] make follow icon visible on iPad #1462 (@steveruizok)
- [fix] page item submenu #1461 (@steveruizok)
- Add translations for "Leave shared project" action #1394 (@TodePond @steveruizok)
- [fix] page menu, drag handle css #1406 (@steveruizok)
- Don't allow the users to use keyboard shortcuts to select tools in readonly mode. #1382 (@MitjaBezensek)
- Disabling middle click paste in favour of panning #1335 (@orangemug @steveruizok)
- Export Events stuff #1360 (@steveruizok)
- Fix "copy as png" in firefox when
dom.events.asyncClipboard.clipboardItem
is enabled #1342 (@orangemug) - [tiny] rename show menu paste #1332 (@steveruizok)
- update @radix-ui/react-popover to 1.0.6-rc.5 #1206 (@SomeHats)
- Use
@tldraw/file-format
- Filter out unused assets. #1502 (@MitjaBezensek)
@tldraw/editor
,@tldraw/file-format
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
- Stricter ID types #1439 (@SomeHats @steveruizok)
@tldraw/editor
,@tldraw/primitives
,@tldraw/ui
@tldraw/tlschema
@tldraw/editor
,@tldraw/utils
@tldraw/assets
,@tldraw/editor
,@tldraw/tlschema
,@tldraw/ui
- [feature]
check-box
geo shape #1330 (@steveruizok)
- [feature]
@tldraw/assets
,@tldraw/editor
,@tldraw/tldraw
,@tldraw/ui
@tldraw/assets
,@tldraw/file-format
,@tldraw/polyfills
,@tldraw/primitives
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
- [wip] Going bublic #1195 (@SomeHats @ds300 @orangemug @steveruizok @TodePond)
@tldraw/assets
,@tldraw/editor
,@tldraw/file-format
,@tldraw/polyfills
,@tldraw/primitives
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
- [chore] update lazyrepo #1211 (@ds300)
- [lite] upgrade lazyrepo #1198 (@ds300)
- [wip] Going bublic #1195 (@SomeHats @ds300 @orangemug @steveruizok @TodePond)
@tldraw/tlschema
,@tldraw/ui
- [fix] pick a better default language #1201 (@steveruizok @TodePond)
@tldraw/assets
,@tldraw/editor
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
⚠️ Pushed to main
- Update publish-new.yml (@steveruizok)
- Update lerna.json (@steveruizok)
- Update publish-new.ts (@steveruizok)
- change App to Editor in docs (@TodePond)
- rename api.mdx to editor.mdx (@TodePond)
- remove e2e files (@steveruizok)
- main: notify huppy after release (@SomeHats)
- main: exclude @tldraw/assets from vite dep optimization to fix examples links (@SomeHats)
@tldraw/assets
,@tldraw/editor
,@tldraw/file-format
,@tldraw/indices
,@tldraw/polyfills
,@tldraw/primitives
,@tldraw/store
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
,@tldraw/validate
- update lazyrepo (@ds300)
🏠 Internal
- [chore] bump vscode extension to 2.0.9 #1662 (@steveruizok)
- untrack generated files #1646 (@steveruizok)
- Update pr template #1570 (@steveruizok)
- Add contributor license agreement. #1556 (@steveruizok)
- Reinstate auto #1524 (@ds300)
- [infra] use npx to run auto #1521 (@ds300)
- Revert
09c36781
& tweak linting #1501 (@SomeHats) - [fix] eslint from brivate #1498 (@steveruizok)
- [chore] remove webdriver dependencies / scripts #1488 (@steveruizok)
- [fix] local e2e script #1442 (@steveruizok)
- [chore] remove yarnrc-private.yml #1427 (@steveruizok)
- [fix] example routes on vercel #1391 (@steveruizok)
- Neaten up pr template #1369 (@TodePond)
- remove references to tldraw-lite #1367 (@SomeHats)
@tldraw/editor
,@tldraw/ui
- Explicit shape type checks #1594 (@steveruizok)
- [improvement] bookmark shape logic #1568 (@steveruizok)
- Simplify static cursors #1520 (@steveruizok)
@tldraw/ui
- move some kbds into actions and tools #1585 (@BrianHung @steveruizok)
- Add localizations for snapshots links #1347 (@MitjaBezensek)
@tldraw/editor
- use the right TLEventHandlers #1486 (@judicaelandria @steveruizok)
- yjs example #1560 (@steveruizok)
- rename app folder to editor #1528 (@steveruizok)
- [fix] overlay rendering issues #1389 (@steveruizok)
- Remove commented code in App #1377 (@steveruizok)
- enable eslint for test files #1363 (@SomeHats)
@tldraw/tlschema
- restore styles sets exports #1512 (@steveruizok)
@tldraw/primitives
- replace console.log with nicelog #1496 (@steveruizok)
@tldraw/editor
,@tldraw/indices
,@tldraw/primitives
,@tldraw/tldraw
,@tldraw/ui
- [chore] remove benchmark #1489 (@steveruizok)
@tldraw/editor
,@tldraw/tlschema
- [tiny] add isPageId #1482 (@steveruizok)
@tldraw/editor
,@tldraw/file-format
,@tldraw/polyfills
,@tldraw/primitives
,@tldraw/tldraw
,@tldraw/tlschema
,@tldraw/ui
,@tldraw/utils
📝 Documentation
- [fix] remove docs scripts #1651 (@steveruizok)
- (2/2) [docs] Fix links to API. #1654 (@TodePond)
- (1/2) [docs] Restore some missing changes #1652 (@TodePond)
- [docs] Remove embeds page #1653 (@TodePond)
- docs: remove not accepting contributions notice #1647 (@gabrielchl)
- [docs] Add table of contents to Editor page #1642 (@TodePond @steveruizok)
- remove docs (again) #1643 (@steveruizok)
- [1/2] Move docs to brivate #1640 (@steveruizok)
- [docs] Allow sidebar to be scrolled on short screens #1632 (@TodePond)
- [docs] Add feedback when you search #1633 (@TodePond)
- [docs] Separate some pages out of the Docs section #1626 (@TodePond)
- [docs] Fix wrong cursor when hovering buttons #1630 (@TodePond)
- [docs] Tighten up wording & structure of Usage page #1624 (@TodePond @steveruizok)
- [docs] Tighten up Editor page introduction #1622 (@TodePond)
- [docs] Tighten up Introduction page #1621 (@TodePond @steveruizok)
- [docs] Simplify paths for uncategorised pages #1619 (@TodePond)
- Auto content refresh for docs site #1606 (@steveruizok)
- Remove
@tldraw/utils
from the docs site #1596 (@TodePond) - [docs] Add barebones note about translations #1593 (@TodePond @steveruizok)
- Change app to editor in docs #1592 (@TodePond)
- add presence to yjs example #1582 (@steveruizok)
- fix: properly remove awareness from store #1565 (@shahriar-shojib @steveruizok)
- Add anchor targets to our headings. #1571 (@MitjaBezensek)
- Fix README typo #1451 (@fossinating @steveruizok)
- Update examples links to point to examples folder. #1522 (@steveruizok)
- Update docs links + guides + build #1422 (@TodePond)
- Update codesandbox + example link #1368 (@TodePond)
@tldraw/editor
- [improvement] custom shapes example #1660 (@steveruizok)
- Add tsdocs to Editor methods #1581 (@TodePond @steveruizok)
- [Docs] Change some editor properties to methods #1553 (@TodePond)
- [Docs] Change some internal methods to public #1554 (@TodePond)
@tldraw/editor
,@tldraw/tlschema
- Styles API docs #1641 (@SomeHats @steveruizok)
@tldraw/tlschema
- TLSchema readme #1506 (@steveruizok)
🧪 Tests
- speed up playwright and add visual regression tests #1638 (@SomeHats @huppy-bot[bot])
- Disable nightly/on-demand webdriver scripts #1366 (@orangemug)
- Adds CI for webdriver tests #1343 (@orangemug)
- Added initial webdriver tests #1337 (@orangemug)
@tldraw/editor
- update editor tests #1547 (@steveruizok)
- Add DSL to make writing shape-layout test cases much easier #1413 (@SomeHats)
@tldraw/editor
,@tldraw/ui
- Add playwright tests #1484 (@steveruizok)
🔩 Dependency Updates
- [chore] update wdio-vscode-service #1346 (@ds300)
@tldraw/editor
,@tldraw/state
,@tldraw/store
,@tldraw/tlschema
,@tldraw/ui
- Incorporate signia as @tldraw/state #1620 (@steveruizok @ds300)
@tldraw/assets
,@tldraw/editor
,@tldraw/polyfills
,@tldraw/tldraw
,@tldraw/ui
- Revert "Update dependencies (#1613)" #1617 (@SomeHats)
- Update dependencies #1613 (@steveruizok)
@tldraw/editor
Authors: 13
- @huppy-bot[bot]
- alex (@SomeHats)
- Brian Hung (@BrianHung)
- David (@fossinating)
- David Sheldrick (@ds300)
- Gabriel Lee (@gabrielchl)
- Judicael (@judicaelandria)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Mohammad Kazemi (@mokazemi)
- Orange Mug (@orangemug)
- Shahriar Shojib (@shahriar-shojib)
- Steve Ruiz (@steveruizok)