Files
upstream-tldraw/apps/docs/content/releases/v4.1.0.mdx
upstream-mirror a774ac673a
Some checks failed
Deploy analytics worker / Deploy analytics worker to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
i18n upload strings / Upload latest strings (push) Failing after 1s
Deploy bemo / Deploy bemo to ${{ (github.ref == 'refs/heads/bemo-production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Failing after 1s
Deploy grafana resources / ${{ github.event_name == 'push' && 'Deploy grafana resources' || 'Validate grafana resources (dry run)' }} (push) Failing after 0s
End to end tests (dotcom) / Check for relevant changes (push) Failing after 0s
End to end tests (examples) / Check for relevant changes (push) Failing after 0s
End to end tests (mermaid readability) / Check for relevant changes (push) Failing after 1s
End to end tests (perf) / Check for relevant changes (push) Failing after 0s
Publish editor extensions / Publish editor extensions (push) Failing after 1s
Publish SDK packages / Remove the publish-packages label (push) Has been skipped
Checks / Tests & checks (push) Has been cancelled
Checks / Build all projects (push) Has been cancelled
Deploy templates / Deploy templates (push) Has been cancelled
End to end tests (dotcom) / End to end tests (dotcom) (push) Has been cancelled
End to end tests (mermaid readability) / End to end tests (mermaid readability) (push) Has been cancelled
End to end tests (perf) / End to end tests (perf) (push) Has been cancelled
Deploy .com / Deploy dotcom to ${{ (github.ref == 'refs/heads/production' && 'production') || (github.ref == 'refs/heads/main' && 'staging') || 'preview' }} (push) Has been cancelled
End to end tests (examples) / End to end tests (examples) (push) Has been cancelled
Publish SDK packages / Publish SDK packages (push) Has been cancelled
Publish SDK packages / Tell user released version (push) Has been cancelled
Publish SDK packages / Publishes code templates to separate repositories (push) Has been cancelled
Publish SDK packages / Deploys the template demos with the new SDK version (push) Has been cancelled
snapshot of https://github.com/tldraw/tldraw.git (main, 2026-09-23; blobs > 131072B omitted)
2026-09-23 16:12:52 +05:00

79 lines
3.4 KiB
Plaintext

---
title: 'v4.1.0'
created_at: 10/15/2025
updated_at: 10/15/2025
keywords:
- changelog
- release
- v4.1
- v4.1.0
- v4.1.1
- v4.1.2
- shader
- webgl
- starter-kit
- embed
- minimap
status: published
---
This month's release introduces a new shader starter kit for WebGL integration, along with API additions for embed control, minimap filtering, and localStorage-backed atoms.
## What's new
### Shader starter kit ([#6847](https://github.com/tldraw/tldraw/pull/6847))
A new template demonstrating WebGL shader integration with tldraw for dynamic, interactive backgrounds that respond to canvas interactions. Includes four complete examples:
- **Fluid simulation** - Navier-Stokes dynamics
- **Rainbow** - Animated gradients
- **Shadows** - Raymarching and signed distance fields
- **Minimal** - Bare-bones template for custom shaders
Features configurable parameters, localStorage persistence, and full TypeScript support.
## API changes
- Add `embedOnPaste` option to `EmbedDefinition` for opting out of automatic embed-on-paste behavior. ([#6874](https://github.com/tldraw/tldraw/pull/6874))
- Add `hideInMinimap` option to `ShapeUtil` for excluding shapes from the minimap. ([#6327](https://github.com/tldraw/tldraw/pull/6327))
- Add `snapType?: 'point' | 'align'` to `TLHandle` for finer control over handle snapping. The `canSnap` property is now deprecated. ([#6883](https://github.com/tldraw/tldraw/pull/6883))
- Expose `Editor#getShapePageBounds` and `isRecordsDiffEmpty` as public methods. ([#6871](https://github.com/tldraw/tldraw/pull/6871))
- Add `localStorageAtom` to `@tldraw/state` for atoms backed by localStorage with cross-tab syncing. ([#6876](https://github.com/tldraw/tldraw/pull/6876))
- Add inline style picker component variants. ([#6920](https://github.com/tldraw/tldraw/pull/6920))
## Improvements
- Make bookmark titles clickable. ([#6326](https://github.com/tldraw/tldraw/pull/6326))
- Optimize mobile top bar rendering. ([#6895](https://github.com/tldraw/tldraw/pull/6895))
- Add numpad Enter support for entering edit mode. ([#6830](https://github.com/tldraw/tldraw/pull/6830))
- Consolidate preferences menu items. ([#6802](https://github.com/tldraw/tldraw/pull/6802))
## Bug fixes
- Fix accessibility shortcut typo. ([#6811](https://github.com/tldraw/tldraw/pull/6811))
- Fix focus mode action missing. ([#6812](https://github.com/tldraw/tldraw/pull/6812))
- Fix arrow rendering edge case. ([#6799](https://github.com/tldraw/tldraw/pull/6799))
- Fix empty window opening on anchor click. ([#6817](https://github.com/tldraw/tldraw/pull/6817))
- Fix missing translation key. ([#6826](https://github.com/tldraw/tldraw/pull/6826))
- Fix shape index race condition. ([#6884](https://github.com/tldraw/tldraw/pull/6884))
- Fix zero geometry vertices edge case. ([#6885](https://github.com/tldraw/tldraw/pull/6885))
- Fix style panel button overflow. ([#6920](https://github.com/tldraw/tldraw/pull/6920))
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.1.0)
---
## Patch releases
### v4.1.1
- Update the formatting of the `npm create tldraw` command in the CLI output.
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.1.1)
### v4.1.2
- Move `InFrontOfTheCanvas` component back out of the `.tl-canvas` element. ([#7021](https://github.com/tldraw/tldraw/pull/7021))
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.1.2)