81 KiB
81 KiB
v2.0.0-alpha.18 (Fri Nov 10 2023)
Release Notes
[fix] actions menu freezing ui (#2187)
- Fix actions menu not closing when clicking the canvas after grouping items via the actions menu.
add missing semicolon (#2182)
- Fix typo in CSS file
Fix crash with zero length arrow (#2173)
- Fix a hyper niche arrow crash with zero length arrows.
Zooming improvement (#2149)
- Improves zooming for inactive windows.
[feature] Things on the canvas (#2150)
- [editor] Adds two new components,
OnTheCanvas
andInFrontOfTheCanvas
.
[feature] multi-scribbles (#2125)
- [feature] multi scribbles
Tighten up editor ui (#2102)
- Small adjustment to editor ui.
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.
Remove (optional) from jsdocs (#2109)
- dev: Removed duplicate/inconsistent
(optional)
s from docs
🚀 Enhancement
- [feature] Things on the canvas #2150 (@steveruizok)
- [feature] multi-scribbles #2125 (@steveruizok)
- Tighten up editor ui #2102 (@steveruizok)
🐛 Bug Fix
- [fix] actions menu freezing ui #2187 (@steveruizok)
- add missing semicolon #2182 (@Taha-Hassan-Git)
- fix scroll event coords #2180 (@ds300)
- Fix crash with zero length arrow #2173 (@TodePond)
- Zooming improvement #2149 (@MitjaBezensek)
- Fix an issue with
addEventListener
in old Safari (pre v14) #2114 (@MitjaBezensek)
🏠 Internal
- Revert "bump prerelease from alpha to beta" #2192 (@ds300)
- bump prerelease from alpha to beta #2148 (@ds300)
- Taha/initial shape in handle change #2117 (@Taha-Hassan-Git)
📝 Documentation
- Add meta example #2122 (@steveruizok)
- Remove (optional) from jsdocs #2109 (@TodePond)
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
[fix] Context menu + menus not closing correctly (#2086)
- [fix] bug with menus
[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.
🐛 Bug Fix
- [fix] Context menu + menus not closing correctly #2086 (@steveruizok)
- [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)
- [fix] reparenting locked shapes #2070 (@steveruizok)
🔩 Dependency Updates
Authors: 2
- David Sheldrick (@ds300)
- Steve Ruiz (@steveruizok)
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
[improvement] Scope getShapeAtPoint
to rendering shapes only (#2043)
- Improve perf for hovering shapes / shape hit tests
🚀 Enhancement
- [improvement] Scope
getShapeAtPoint
to rendering shapes only #2043 (@steveruizok) - prevent hover indicator from showing when pointer isn't over the canvas #2023 (@SomeHats)
🐛 Bug Fix
- Fix shape opacity when erasing #2055 (@ds300)
- [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)
🏠 Internal
- Publish api.json #2034 (@steveruizok)
Authors: 4
- @huppy-bot[bot]
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.15 (Fri Oct 06 2023)
Release Notes
frame label fix (#2016)
- Add a brief release note for your PR here.
[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] 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.
Allow right clicking selection backgrounds (#1968)
- Improved right click behaviour.
[improvement] improve arrows (for real) (#1957)
- Improve arrows.
[feature] Include sources
in TLExternalContent
(#1925)
- [editor / tldraw] add
sources
toTLExternalContent
Fix shape drag perf (#1932)
- Fixes a perf regression for dragging shapes around
Use smarter rounding for shape container div width/height (#1930)
- Improves the precision of the shape dimensions rounding logic
[fix] Moving group items inside of a frame (dropping) (#1886)
- Fix bug: ungroup when moving a shape in a group in a frame.
Fix line wobble (#1915)
- Fixes an issue where lines would wobble as you dragged the handles around
[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
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
[fix] awful rendering issue (#1842)
- [fix] iframe rendering issue
[fix] snapping bug (#1819)
- [fix] crash that could occur when snapping
[fix] editing video shapes (#1821)
- Fix bug with editing video shapes.
[fix] bug with eventemitter3 default export (#1818)
- [@tldraw/editor] updates eventemitter3 import to fix issue with Astro builds.
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
[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] 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
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
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.
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.
💥 Breaking Change
- [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)
- SideEffectManager #1785 (@steveruizok)
- environment manager #1784 (@steveruizok)
- Revert "Editor commands API / effects" #1783 (@steveruizok)
- Editor commands API / effects #1778 (@steveruizok)
- remove
selectionPageCenter
#1766 (@steveruizok) - rename selection page bounds #1763 (@steveruizok)
ShapeUtil.getGeometry
, selection rewrite #1751 (@steveruizok)- More cleanup, focus bug fixes #1749 (@steveruizok)
- move some utils into tldraw/utils #1750 (@steveruizok)
- Remove helpers / extraneous API methods. #1745 (@steveruizok)
- tldraw zero - package shuffle #1710 (@steveruizok @SomeHats)
- [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
- Debugging cleanup / misc cleanup #2025 (@steveruizok)
- [feature] Include
sources
inTLExternalContent
#1925 (@steveruizok) - Fix arrow handle snapping, snapping to text labels, selection of text labels #1910 (@steveruizok)
- Migrate snapshot #1843 (@steveruizok)
- Add snapshot prop, examples #1856 (@steveruizok)
- Add className as prop to Canvas #1827 (@steveruizok)
- [improvement] More selection logic #1806 (@steveruizok)
- refactor
parentsToChildrenWithIndexes
#1764 (@steveruizok) - [fix] arrow snapping bug #1756 (@steveruizok)
- Add cloud shape #1708 (@ds300)
- remove state checks for brush and zoom brush #1717 (@steveruizok)
🐛 Bug Fix
- fix screen bounds not updating #2022 (@SomeHats)
- frame label fix #2016 (@ds300)
- [improvement] Refactor curved arrows #2019 (@steveruizok)
- [fix] Focus events (actually) #2015 (@steveruizok)
- [fix] focus events #2013 (@steveruizok)
- Re-focus on focus. #2010 (@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] 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)
- Fix text-wrapping on Safari #1980 (@Taha-Hassan-Git)
- [fix] text shape outline #1974 (@steveruizok)
- Make state node methods arrow functions #1973 (@steveruizok)
- Arrows followup #1972 (@steveruizok)
- Allow right clicking selection backgrounds #1968 (@TodePond @steveruizok)
- [improvement] improve arrows (for real) #1957 (@steveruizok)
- [fix] geo shape text label placement #1927 (@steveruizok @ds300)
- fix clipping on nested non-intersecting frames #1934 (@SomeHats)
- expanded highlighter geometry #1929 (@SomeHats)
- Fix shape drag perf #1932 (@ds300)
- Use smarter rounding for shape container div width/height #1930 (@ds300)
- [fix] Moving group items inside of a frame (dropping) #1886 (@mr04vv @steveruizok)
- Fix line wobble #1915 (@ds300)
- [fix] right click #1891 (@steveruizok)
- [wip] Viewport focus of editing shapes #1873 (@Taha-Hassan-Git)
- [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 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] text editing outline when scaled #1826 (@steveruizok)
- [fix] Line shape rendering #1825 (@steveruizok)
- [fix] remove CSS radius calculations #1823 (@steveruizok)
- [fix] snapping bug #1819 (@steveruizok)
- [fix] Replace
findLast
for browser compat #1822 (@steveruizok) - [fix] editing video shapes #1821 (@steveruizok)
- [fix] bug with eventemitter3 default export #1818 (@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] handles updates #1779 (@steveruizok)
- [fix] transform errors #1772 (@steveruizok)
- [fix] shape indicator showing when locked shapes are hovered #1771 (@steveruizok)
- [fix] minimap, common page bounds #1770 (@steveruizok)
- [fix] restore bg option, fix calculations #1765 (@steveruizok)
- [fix] dark mode #1754 (@steveruizok)
- tweaks for cloud shape #1723 (@ds300)
- Go back to default cursor when done resizing. #1700 (@MitjaBezensek)
- Firefox: Fix coarse pointer issue #1701 (@TodePond)
📝 Documentation
🔩 Dependency Updates
- (chore) bump #1744 (@steveruizok)
Authors: 8
- alex (@SomeHats)
- Brian Hung (@BrianHung)
- David Sheldrick (@ds300)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
- Taha (@Taha-Hassan-Git)
- Takuto Mori Gump (@mr04vv)
v2.0.0-alpha.14 (Tue Jul 04 2023)
Release Notes
[fix] penmode (#1698)
- [fix] pen mode
[improvement] More nuanced cursor state (#1682)
- Improve cursor timeouts and hiding logic.
[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
🚀 Enhancement
- [improvement] More nuanced cursor state #1682 (@steveruizok)
- [improvement] export scribble manager #1671 (@steveruizok)
- [feature] add
meta
property to records #1627 (@steveruizok)
🐛 Bug Fix
- [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)
Authors: 1
- 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.
Fix text shapes not having colour (#1649)
- None: Fixes an unreleased bug.
Styles API docs (#1641)
--
Styles API follow-ups (#1636)
--
Fix SVG cursors not being used (#1639)
- None: Fixing an unreleased bug.
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.
(1/2) Cursor Chat - Presence (#1487)
- [dev] Added support for cursor chat presence.
[refactor] snapping (#1589)
- [editor] fix bug in snapping
remove ShapeUtil.transform
(#1590)
- [editor] Remove
ShapeUtil.transform
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 optional generic to updateShapes
/ createShapes
(#1579)
- [editor] adds an optional shape generic to
updateShapes
andcreateShapes
[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).
shapes folder, move tools into shape defs (#1574)
n/a
mini defineShape
API (#1563)
[dev-facing, notes to come]
yjs example (#1560)
- [editor] Adds yjs example project
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.
highlighter fixes (#1530)
[aq bug fixes]
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
rename app to editor (#1503)
- Rename
App
toEditor
and many other things that referenceapp
toeditor
.
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 flags rework (#1474)
[internal only change]
[tiny] add isPageId (#1482)
- [tlschema] Add
isPageId
[refactor] update record names (#1473)
- [editor] rename record types
[mini-feature] Following indicator (#1468)
- Adds viewport following indicator
[chore] refactor user preferences (#1435)
- Add a brief release note for your PR here.
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.
Create @tldraw/indices package (#1426)
- [@tldraw/editor] Remove fractional indices code into
@tldraw/indices
- [@tldraw/indices] Create library for fractional indices code
[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.
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
[fix] Don't synchronize isReadOnly (#1396)
- Removes the isReadOnly value from the
user_document_settings
record type.
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.
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
[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.
fix a couple of consistency assumptions (#1365)
- Fixes a couple of minor consistency bugs affecting shape updating and page deletion in multiplayer contexts.
avoid lazy race conditions (#1364)
[internal only]
enable eslint for test files (#1363)
internal-only change
presence-related fixes (#1361)
- Fix a bug where creating a page could throw an error in some multiplayer contexts.
[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
💥 Breaking Change
- [tweak] migrate store snapshot arguments #1659 (@steveruizok)
- [improvement] store snapshot types #1657 (@steveruizok)
- [fix] react component runaways, error boundaries #1625 (@steveruizok)
ShapeUtil
refactor,Editor
cleanup #1611 (@steveruizok)- Remove on drop override #1612 (@steveruizok)
- Rename
ShapeUtil.render
->ShapeUtil.component
#1609 (@steveruizok) - tldraw.css #1607 (@steveruizok)
- [fix] camera culling #1602 (@steveruizok)
- Tidy up #1600 (@steveruizok)
- Styles API #1580 (@SomeHats @steveruizok)
- remove
ShapeUtil.transform
#1590 (@steveruizok) - remove
ShapeUtil.point
#1591 (@steveruizok) - mini
defineShape
API #1563 (@SomeHats) - Use unpkg as a default for serving assets. #1548 (@MitjaBezensek)
- hoist opacity out of props #1526 (@SomeHats)
- Independent instance state persistence #1493 (@ds300)
- Renaming types, shape utils, tools #1513 (@steveruizok)
- tlschema cleanup #1509 (@steveruizok)
- Rename tlstore to store #1507 (@steveruizok)
- Rename tlvalidate to validate #1508 (@steveruizok)
- rename app to editor #1503 (@steveruizok)
- Add support for project names #1340 (@TodePond @steveruizok)
- [refactor] User-facing APIs #1478 (@steveruizok)
- [refactor] update record names #1473 (@steveruizok)
- [chore] refactor user preferences #1435 (@ds300)
- [refactor] restore createTLSchema #1444 (@steveruizok)
- [refactor] remove
createTLSchema
#1440 (@steveruizok) - [refactor] Remove
TLShapeDef
,getShapeUtilByType
. #1432 (@steveruizok @SomeHats) - [refactor] record migrations #1430 (@steveruizok)
- Create @tldraw/indices package #1426 (@steveruizok)
- Switch to new collaborators component #1405 (@ds300)
- remove url state, to private #1402 (@steveruizok)
- [fix] Don't synchronize isReadOnly #1396 (@ds300)
- [improvement] Ui events followup #1354 (@steveruizok)
- [feature] ui events #1326 (@orangemug @steveruizok)
- [chore] Bump nanoid #1349 (@ds300)
🚀 Enhancement
- Styles API follow-ups #1636 (@SomeHats @steveruizok)
- Make resizeBox a regular function #1610 (@steveruizok)
- [fix] yjs presence #1603 (@steveruizok)
- (1/2) Timeout collaborator cursors #1525 (@TodePond @steveruizok)
- (1/2) Cursor Chat - Presence #1487 (@TodePond @steveruizok)
- Add optional generic to
updateShapes
/createShapes
#1579 (@steveruizok) - [feature] add vertical align to note shape #1539 (@steveruizok)
- move v1 migration code into file-format #1499 (@steveruizok)
- Add support for locking shapes #1447 (@MitjaBezensek @steveruizok)
- [3/3] Highlighter styling #1490 (@SomeHats @steveruizok)
- [2/3] renderer changes to support "sandwich mode" highlighting #1418 (@SomeHats)
- [1/3] initial highlighter shape/tool #1401 (@SomeHats)
- [feature] reduce motion #1485 (@steveruizok)
- [mini-feature] Following indicator #1468 (@steveruizok)
- Add SVG cursors for all cursor types #1416 (@TodePond @steveruizok)
- [improvement] set horizontal position using text alignment #1419 (@steveruizok)
- [feature] add laser pointer #1412 (@steveruizok)
- Vertical text alignment for geo shapes #1414 (@MitjaBezensek @steveruizok)
- [improvement] refactor paste to support multi-line text #1398 (@steveruizok)
- [fix] pointer location not updating when moving over editing shape #1378 (@steveruizok)
🐛 Bug Fix
- 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)
- 3/2 Cursor chat #1623 (@steveruizok)
- [fix] tldraw file drop #1616 (@steveruizok)
- [refactor] snapping #1589 (@steveruizok)
- Make sure loading screens use dark mode user preference. #1552 (@MitjaBezensek @steveruizok)
- update exports for user presence #1583 (@steveruizok)
- [fix] Remove group shape export backgrounds #1587 (@steveruizok)
- [fix] embeds #1578 (@steveruizok)
- [improvement] Embed shape cleanup #1569 (@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)
- Asset improvements #1557 (@MitjaBezensek)
- More misc sync fixes #1559 (@ds300)
- Misc sync fixes #1555 (@ds300)
- Fix arrows with weird bends crashing #1540 (@TodePond)
- [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)
- highlighter fixes #1530 (@SomeHats)
- ensure that fixed points stay fixed #1523 (@steveruizok)
- Feature flags rework #1474 (@SomeHats)
- send user prefs data in broadcast msg #1466 (@ds300)
- Fix positioning of default cursor #1458 (@TodePond)
- change pointer cursor to white #1454 (@TodePond)
- Add migration for horizontal alignment #1443 (@MitjaBezensek @steveruizok)
- Stricter ID types #1439 (@SomeHats @steveruizok)
- Fix cursor shadow getting clipped #1441 (@TodePond)
- Fix new wobble #1431 (@TodePond)
- Measure individual words instead of just line breaks for text exports #1397 (@SomeHats)
- [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)
- 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)
- presence-related fixes #1361 (@ds300)
- [fix] various text #1350 (@steveruizok)
- [fix] tabs in text exports #1323 (@steveruizok)
- [chore] move schema construction to tlschema package #1334 (@ds300)
- [feature]
check-box
geo shape #1330 (@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)
- remove svg layer, html all the things, rs to tl #1227 (@TodePond @steveruizok)
- add docs for TLShapeUtil #1215 (@TodePond)
- New vite-based examples app #1226 (@SomeHats)
- [fix] publish #1222 (@ds300)
- [fix] typo in isFocusingInput #1221 (@ds300)
- [feat] new LiveCollaborators behind feature flag #1219 (@ds300)
- [fix] collaborator render order #1213 (@steveruizok)
- [chore] update lazyrepo #1211 (@ds300)
- Use
strokePathData
for<ShapeFill/>
path to avoid bugs in the inner path algo #1207 (@orangemug @steveruizok) - Added
pHYs
to import/export of png images #1200 (@orangemug @steveruizok) - derived presence state #1204 (@ds300)
- [lite] upgrade lazyrepo #1198 (@ds300)
- transfer-out: transfer out #1195 (@SomeHats)
⚠️ Pushed to main
- update lazyrepo (@ds300)
🏠 Internal
- Explicit shape type checks #1594 (@steveruizok)
- [improvement] bookmark shape logic #1568 (@steveruizok)
- use the right TLEventHandlers #1486 (@judicaelandria @steveruizok)
- yjs example #1560 (@steveruizok)
- rename app folder to editor #1528 (@steveruizok)
- Simplify static cursors #1520 (@steveruizok)
- [chore] remove benchmark #1489 (@steveruizok)
- [tiny] add isPageId #1482 (@steveruizok)
- [fix] overlay rendering issues #1389 (@steveruizok)
- Remove commented code in App #1377 (@steveruizok)
- avoid lazy race conditions #1364 (@SomeHats)
- enable eslint for test files #1363 (@SomeHats)
📝 Documentation
- [improvement] custom shapes example #1660 (@steveruizok)
- Styles API docs #1641 (@SomeHats @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)
🧪 Tests
- update editor tests #1547 (@steveruizok)
- Add playwright tests #1484 (@steveruizok)
🔩 Dependency Updates
- Incorporate signia as @tldraw/state #1620 (@steveruizok @ds300)
- Revert "Update dependencies (#1613)" #1617 (@SomeHats)
- Update dependencies #1613 (@steveruizok)
- update use-gesture #1453 (@ds300)
Authors: 8
- alex (@SomeHats)
- Brian Hung (@BrianHung)
- David Sheldrick (@ds300)
- Judicael (@judicaelandria)
- Lu Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Orange Mug (@orangemug)
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.12 (Mon Apr 03 2023)
🐛 Bug Fix
- [fix] Start on page 1 when importing from v1 #1589 (@steveruizok)
- [fix] Arrow rebinding in v1 imports #1588 (@steveruizok)
- Move resizing to the correct place. #1579 (@MitjaBezensek)
- [fix] use masked page bounds for finding drop parent #1564 (@steveruizok)
- Revert "[fix] text jump bug" #1566 (@ds300)
- [improvement] select shapes on paste #1565 (@steveruizok)
- Fix to
setPenMode
tofalse
whenthis._touchEventsRemainingBeforeExitingPenMode
reaches zero #1541 (@orangemug) - [fix] text jump bug #1555 (@ds300)
- Add proper messaging & import flows for migration from local & multiplayer rooms #1506 (@SomeHats @steveruizok)
- fix errors when migrating extremely large v1 rooms or rooms with funky data #1553 (@SomeHats)
- Fix an error when we have an empty group. #1549 (@MitjaBezensek)
- Make sure all types and build stuff get run in CI #1548 (@SomeHats)
- make sure error annotations can't throw #1550 (@SomeHats)
- [fix] Prevent unwanted offsets when embedding tldraw in scrollable page #1551 (@ds300)
- Fix an error with importing certain files. #1547 (@MitjaBezensek)
- [fix] simplify draw shape's outline #1537 (@steveruizok)
- [fix] simplify line shape's outline #1536 (@steveruizok)
- [feature]
App.canMoveCamera
#1543 (@steveruizok) - Fix the migration of ovals, size was not correct. #1544 (@MitjaBezensek)
- An attempt to fix text selection on chrome/android #1452 (@orangemug @steveruizok)
- run v1 migrations when rebuilding v1 doc #1534 (@SomeHats)
- add pre-commit api report generation #1517 (@SomeHats)
- Migrate assets to v2 storage #1520 (@SomeHats)
- [improvement] restore snap to center #1529 (@steveruizok)
- Rename some methods #1528 (@steveruizok)
- [ux] Don't select draw shapes when you use the draw tool #1527 (@steveruizok)
- [fix] brush while pinch zooming #1526 (@steveruizok)
- [fix] Don't let changing screen bounds be undoable #1525 (@steveruizok)
- [tweak] Center camera on shape in new page #1522 (@steveruizok)
- [fix] clear editing shape id when window loses focus #1523 (@steveruizok)
- Fix splitting of chars for wide UTF-8 characters #1501 (@orangemug)
- Don't use previous opacity for new
bookmark
/embed
shapes #1510 (@orangemug) - Fix back to content button. #1519 (@MitjaBezensek @steveruizok)
- Allow migration of readonly rooms. #1498 (@MitjaBezensek @steveruizok)
- [chore] restore api extractor #1500 (@steveruizok)
- Asset loading overhaul #1457 (@SomeHats)
- [improvement] docs / api cleanup #1491 (@steveruizok)
- David/publish good #1488 (@ds300)
- [improvement] mobile docs #1487 (@steveruizok)
- [chore] alpha 10 #1486 (@ds300)
- [chore] package build improvements #1484 (@ds300)
- [chore] bump for alpha 8 #1485 (@steveruizok)
- [fix] page point offset #1483 (@steveruizok)
- [improvement] API Reference docs #1478 (@steveruizok)
- stop using broken-af turbo for publishing #1476 (@ds300)
- [chore] add canary release script #1423 (@ds300 @steveruizok)
- [fix] missing fonts in exports #1468 (@steveruizok)
- [temp] no preload icons #1466 (@steveruizok)
- [fix] crash with frames #1465 (@steveruizok)
- Removed incorrect width recalc in text label for geo shapes #1396 (@orangemug @steveruizok)
- derive currentToolId from app.root #1459 (@ds300 @steveruizok)
- Convert multiple spaces in export by converting to nbsp #1419 (@orangemug @TodePond @steveruizok)
- Always file->print with light-mode enabled #1315 (@orangemug @steveruizok)
- [chore] export frameutil #1461 (@steveruizok)
- [chore] upgrade yarn #1430 (@ds300)
- Added
preserveAspectRatio
to print for overflow of content #1453 (@orangemug) - Fixed throttle of
updateBounds
inuseScreenBounds
#1442 (@orangemug @steveruizok) - [update] docs #1448 (@steveruizok)
- Always paste images with opactiy=1 #1444 (@orangemug @steveruizok)
- [improvement] Wrap
buildFromV1Document
in transact #1435 (@steveruizok) - Hack around the outline cache for rendering x-box shapes #1438 (@orangemug @steveruizok)
- [fix] dev version number for tldraw/tldraw #1434 (@steveruizok)
- repo cleanup #1426 (@steveruizok)
- Vscode extension #1253 (@steveruizok @MitjaBezensek @orangemug)
- [fix] use polyfill for
structuredClone
#1408 (@TodePond @steveruizok) - Run all the tests. Fix linting for tests. #1389 (@MitjaBezensek)
- Fix an issue with loading v1 draw shapes that don't have any points. #1404 (@MitjaBezensek @steveruizok)
⚠️ Pushed to main
- Revert "update tldraw's bounds" (@steveruizok)
- update tldraw's bounds (@steveruizok)
Authors: 6
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Lu[ke] Wilson (@TodePond)
- Mitja Bezenšek (@MitjaBezensek)
- Orange Mug (@orangemug)
- Steve Ruiz (@steveruizok)
@tldraw/tldraw-beta
2.0.0-alpha.11
Patch Changes
- fix some package build scripting
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.11
- @tldraw/tlschema@2.0.0-alpha.11
- @tldraw/tlstore@2.0.0-alpha.11
- @tldraw/tlvalidate@2.0.0-alpha.10
- @tldraw/utils@2.0.0-alpha.10
2.0.0-alpha.10
Patch Changes
- Updated dependencies [4b4399b6e]
- @tldraw/primitives@2.0.0-alpha.10
- @tldraw/tlschema@2.0.0-alpha.10
- @tldraw/tlstore@2.0.0-alpha.10
- @tldraw/tlvalidate@2.0.0-alpha.9
- @tldraw/utils@2.0.0-alpha.9
2.0.0-alpha.9
Patch Changes
- Release day!
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.9
- @tldraw/tlschema@2.0.0-alpha.9
- @tldraw/tlstore@2.0.0-alpha.9
- @tldraw/tlvalidate@2.0.0-alpha.8
- @tldraw/utils@2.0.0-alpha.8
2.0.0-alpha.8
Patch Changes
- 23dd81cfe: Make signia a peer dependency
- Updated dependencies [23dd81cfe]
- @tldraw/tlstore@2.0.0-alpha.8
- @tldraw/tlschema@2.0.0-alpha.8
- @tldraw/primitives@2.0.0-alpha.8
2.0.0-alpha.7
Patch Changes
- Bug fixes.
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.7
- @tldraw/tlschema@2.0.0-alpha.7
- @tldraw/tlstore@2.0.0-alpha.7
- @tldraw/tlvalidate@2.0.0-alpha.7
- @tldraw/utils@2.0.0-alpha.7
2.0.0-alpha.6
Patch Changes
- Add licenses.
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.6
- @tldraw/tlschema@2.0.0-alpha.6
- @tldraw/tlstore@2.0.0-alpha.6
- @tldraw/tlvalidate@2.0.0-alpha.6
- @tldraw/utils@2.0.0-alpha.6
2.0.0-alpha.5
Patch Changes
- Add CSS files to tldraw/tldraw.
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.5
- @tldraw/tlschema@2.0.0-alpha.5
- @tldraw/tlstore@2.0.0-alpha.5
- @tldraw/tlvalidate@2.0.0-alpha.5
- @tldraw/utils@2.0.0-alpha.5
2.0.0-alpha.4
Patch Changes
- Add children to tldraw/tldraw
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.4
- @tldraw/tlschema@2.0.0-alpha.4
- @tldraw/tlstore@2.0.0-alpha.4
- @tldraw/tlvalidate@2.0.0-alpha.4
- @tldraw/utils@2.0.0-alpha.4
2.0.0-alpha.3
Patch Changes
- Change permissions.
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.3
- @tldraw/tlschema@2.0.0-alpha.3
- @tldraw/tlstore@2.0.0-alpha.3
- @tldraw/tlvalidate@2.0.0-alpha.3
- @tldraw/utils@2.0.0-alpha.3
2.0.0-alpha.2
Patch Changes
- Add tldraw, editor
- Updated dependencies
- @tldraw/primitives@2.0.0-alpha.2
- @tldraw/tlschema@2.0.0-alpha.2
- @tldraw/tlstore@2.0.0-alpha.2
- @tldraw/tlvalidate@2.0.0-alpha.2
- @tldraw/utils@2.0.0-alpha.2
0.1.0-alpha.11
Patch Changes
- Fix stale reactors.
- Updated dependencies
- @tldraw/primitives@0.1.0-alpha.11
- @tldraw/tlschema@0.1.0-alpha.11
- @tldraw/tlstore@0.1.0-alpha.11
- @tldraw/tlvalidate@0.1.0-alpha.11
- @tldraw/utils@0.1.0-alpha.11
0.1.0-alpha.10
Patch Changes
- Fix type export bug.
- Updated dependencies
- @tldraw/primitives@0.1.0-alpha.10
- @tldraw/tlschema@0.1.0-alpha.10
- @tldraw/tlstore@0.1.0-alpha.10
- @tldraw/tlvalidate@0.1.0-alpha.10
- @tldraw/utils@0.1.0-alpha.10
0.1.0-alpha.9
Patch Changes
- Fix import bugs.
- Updated dependencies
- @tldraw/primitives@0.1.0-alpha.9
- @tldraw/tlschema@0.1.0-alpha.9
- @tldraw/tlstore@0.1.0-alpha.9
- @tldraw/tlvalidate@0.1.0-alpha.9
- @tldraw/utils@0.1.0-alpha.9
0.1.0-alpha.8
Patch Changes
- Changes validation requirements, exports validation helpers.
- Updated dependencies
- @tldraw/primitives@0.1.0-alpha.8
- @tldraw/tlschema@0.1.0-alpha.8
- @tldraw/tlstore@0.1.0-alpha.8
- @tldraw/tlvalidate@0.1.0-alpha.8
- @tldraw/utils@0.1.0-alpha.8
0.1.0-alpha.7
Patch Changes
-
- Pre-pre-release update
- Updated dependencies
- @tldraw/primitives@0.1.0-alpha.7
- @tldraw/tlschema@0.1.0-alpha.7
- @tldraw/tlstore@0.1.0-alpha.7
- @tldraw/tlvalidate@0.1.0-alpha.7
- @tldraw/utils@0.1.0-alpha.7
0.0.2-alpha.1
Patch Changes
- Fix error with HMR
- Updated dependencies
- @tldraw/primitives@0.0.2-alpha.1
- @tldraw/tlschema@0.0.2-alpha.1
- @tldraw/tlstore@0.0.2-alpha.1
- @tldraw/utils@0.0.2-alpha.1
0.0.2-alpha.0
Patch Changes
- Initial release
- Updated dependencies
- @tldraw/primitives@0.0.2-alpha.0
- @tldraw/tlschema@0.0.2-alpha.0
- @tldraw/tlstore@0.0.2-alpha.0
- @tldraw/utils@0.0.2-alpha.0