apps/docs/content/releases/v4.1.0.mdx
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.
A new template demonstrating WebGL shader integration with tldraw for dynamic, interactive backgrounds that respond to canvas interactions. Includes four complete examples:
Features configurable parameters, localStorage persistence, and full TypeScript support.
embedOnPaste option to EmbedDefinition for opting out of automatic embed-on-paste behavior. (#6874)hideInMinimap option to ShapeUtil for excluding shapes from the minimap. (#6327)snapType?: 'point' | 'align' to TLHandle for finer control over handle snapping. The canSnap property is now deprecated. (#6883)Editor#getShapePageBounds and isRecordsDiffEmpty as public methods. (#6871)localStorageAtom to @tldraw/state for atoms backed by localStorage with cross-tab syncing. (#6876)npm create tldraw command in the CLI output.InFrontOfTheCanvas component back out of the .tl-canvas element. (#7021)