tldraw/tldraw
 Watch   
 Star   
 Fork   
19 days ago
tldraw

v2.1.4

Release Notes

textfields: for unfilled geo shapes fix edit->edit (#3577) (#3643)

  • Text labels: fix edit→edit not working as expected when unfilled geo shapes are on 'top' of other shapes.

Describe what your pull request does. If appropriate, add GIFs or images showing the before and after.


🐛 Bug Fix

  • @tldraw/editor, tldraw
    • textfields: for unfilled geo shapes fix edit->edit (#3577) #3643 (@mimecuvalo)

Authors: 1

23 days ago
tldraw

v2.1.3

Release Notes

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


📚 SDK Changes

  • @tldraw/tlschema
    • Expose migrations, validators, and versions from tlschema #3613 (@SomeHats)

Authors: 1

23 days ago
tldraw

v2.1.2

Release Notes

Revert "[signia] Smart dirty checking of active computeds (#3516)" (#3611)

This performance optimisation introduced a regression where sometimes computed caches wouldn't get invalidated at the correct time, leading to stale data causing crashes. We're reverting the change for now.


🐛 Bug Fix

  • @tldraw/state
    • Revert "[signia] Smart dirty checking of active computeds (#3516)" #3611 (@SomeHats)

🏠 Internal

Authors: 1

24 days ago
tldraw

v2.1.1

Release Notes

fix migration exports (#3594)

We were missing an export createShapePropsMigrationIds, part of the new migrations API introduced in v2.1.0. This release fixes that, and also adds exports for a few extra APIs that we were using in our examples, but weren't exporting properly: defaultEditorAssetUrls, PORTRAIT_BREAKPOINT, useDefaultColorTheme, & getPerfectDashProps


🐛 Bug Fix

⚠️ Pushed to v2.1.x

Authors: 1

25 days ago
tldraw

v2.1.0

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 called LegacyMigrations.

  • The serialized schema format (e.g. returned by StoreSchema.serialize() and Store.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 the RecordVersion 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 call schema.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 the persistedSchema 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 using schema.migrateStoreSnapshot and, if you are building a nuanced sync engine that supports some amount of backwards compatibility, also feel free to use schema.migratePersistedRecord.

  • the Migration type has changed. If you need the old one for some reason it has been renamed to LegacyMigration. It will be removed in a future release.

  • the Migrations type has been renamed to LegacyMigrations and will be removed in a future release.

  • the SerializedSchema type has been augmented. If you need the old version specifically you can use SerializedSchemaV1

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

🚀 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

🐛 Bug Fix

📚 SDK Changes

🖥️ tldraw.com Changes

📖 Documentation changes

🏠 Internal

🐛 Bug Fixes

🧹 Chores

🧪 Tests

🔩 Dependency Updates

Authors: 23

2024-03-18 23:23:13
tldraw

v2.0.2

🐛 Bug Fix

⚠️ Pushed to v2.0.x

Authors: 2

2024-03-11 17:28:26
tldraw

v2.0.1

🐛 Bug Fix

  • @tldraw/editor
    • [patch 2.0.1] Cherry-pick 'Avoid randomness at init time...' #3076 (@ds300)

⚠️ Pushed to v2.0.x

  • fetch main during patch publish (@ds300)
  • cherry-pick tooling changes too i guess (@ds300)

Authors: 1

2024-03-01 02:28:45
tldraw

v2.0.0

⚠️ Pushed to main

📝 Documentation

Authors: 1

2024-03-01 02:12:00
tldraw

v2.0.0-beta.9

⚠️ Pushed to main

  • allow changes (@ds300)
  • @tldraw/editor, tldraw
    • fix refresh-assets cache inputs (@ds300)

Authors: 1

2024-03-01 01:59:47
tldraw

v2.0.0-beta.8

⚠️ Pushed to main

  • @tldraw/editor, tldraw
    • use glob to pick up version files? (@ds300)

Authors: 1