Steve Ruiz
2e6c33342d
[refactor] ShapeUtils ( #206 )
...
* Starts refactor
* tests passing, got it
* Fix next
2021-10-27 16:15:01 +01:00
Steve Ruiz
8d6fe119a5
minor utils tweaks
2021-10-25 09:38:11 +01:00
Steve Ruiz
ac4849a360
release
2021-10-22 20:17:42 +01:00
Steve Ruiz
083b36e167
v0.0.128
2021-10-22 20:14:28 +01:00
Steve Ruiz
0f2887a039
updates package
2021-10-22 20:14:02 +01:00
Steve Ruiz
5fa09a7e4a
v0.0.127
2021-10-22 20:04:50 +01:00
Steve Ruiz
b94c97aafe
moves svg utils into its own package
2021-10-22 20:03:22 +01:00
Steve Ruiz
f8ede2eab2
v0.0.126
2021-10-22 15:08:07 +01:00
Steve Ruiz
fa4cc755e3
[fix] modifiers on arrow shape ( #200 )
...
* Update arrow.session.ts
* Update arrow.session.spec.ts
2021-10-22 15:06:12 +01:00
Steve Ruiz
0806d386ff
v0.0.125
2021-10-22 14:51:56 +01:00
Steve Ruiz
f2960033b0
Fix shape create undos ( #199 )
2021-10-22 14:49:29 +01:00
Steve Ruiz
9aa9a88838
Fixes shortcuts in menu
2021-10-22 14:29:22 +01:00
Steve Ruiz
32425fb74a
Fix group pasting ( #198 )
2021-10-22 14:28:12 +01:00
Steve Ruiz
757feb009b
[fix] group behavior ( #197 )
...
* Fixes nudging on groups
* Fix alignment of grouped shapes
* fix distribute of grouped shapes
* Fixes stretching groups
* Fix rotate command
* Improve idsToMutate code
* remove boundsRotation
2021-10-22 14:09:39 +01:00
Steve Ruiz
dd4f39ae74
Fix bug on group cloning ( #196 )
2021-10-22 13:23:36 +01:00
Steve Ruiz
ad8bf78dd4
Replace ts-jest with swc-node/jest ( #194 )
2021-10-22 12:41:24 +01:00
Steve Ruiz
3ba4d435bc
[fix] Hides handles that are too close to a previous handle ( #193 )
...
* Hides handles that are too close to a previous handle
* Hide handles if only one handle is visible
2021-10-22 12:28:11 +01:00
Steve Ruiz
918ebef54d
Adds selected ids to commands that lack them ( #192 )
2021-10-22 12:08:02 +01:00
Steve Ruiz
ff50aa6ad5
[fix] bound shape size undo ( #191 )
...
* fix text centering, double click grouped text to select rather than edit
* Fix selecting grouped text
* Writes tests for select tool, fixes undo behavior while in session
* reduces binding distance, adds constants for binding distance and cloning distances
* adjust text sizes
* Update arrow.session.spec.ts
2021-10-22 12:05:23 +01:00
Tom Hicks
efbded7a06
Fix stickes: line wrap mismatch between display/edit ( #189 )
...
The 'fake' textarea used to edit text in a sticky had a different
overflow-wrap style than the component that renders the text.
By forcing the display and edit components to use the same wrapping
strategy, the caret from the textarea and the rendered text should
remain in sync.
There is a chance there are more styles which affect the wrapping of
text that could still result in various mismatches, and even moreso
when we consider more browsers (I tested this in Chrome alone).
2021-10-21 23:41:32 +01:00
Steve Ruiz
72d1c06014
Adds todo tests
2021-10-21 23:38:37 +01:00
Steve Ruiz
0dffdd2d29
[improvement] snaps ( #190 )
...
* Simplify snaps
* Update readmes
* Improves snapping
* filter snappable shapes, give viewport information to sessions
2021-10-21 19:54:54 +01:00
Steve Ruiz
8fd9cf8389
[feature] UX preferences ( #172 )
...
* Improves snapping util, styles corner buttons, adds preferences
* Update bounds.test.tsx
* Update preferences.tsx
* Update preferences.tsx
* Change copy
2021-10-19 14:29:55 +01:00
Steve Ruiz
dbf3c253ce
v0.0.124
2021-10-19 12:30:36 +01:00
Steve Ruiz
246cac9b5b
v0.0.123
2021-10-19 12:28:57 +01:00
Steve Ruiz
b0ff17ee68
Update translate.session.ts
2021-10-19 12:27:03 +01:00
Steve Ruiz
a7e8fafb96
Adds up and downstream links ( #171 )
2021-10-19 12:19:56 +01:00
Steve Ruiz
a73cffb139
Disable double-click to create text
2021-10-18 17:44:30 +01:00
Steve Ruiz
700640ad8c
Adds test
2021-10-18 17:00:06 +01:00
Steve Ruiz
235a57d302
Adds indicator for text, linked translate
2021-10-18 16:59:12 +01:00
Steve Ruiz
4b24219fc1
v0.0.122
2021-10-18 15:35:02 +01:00
Steve Ruiz
6661ab0586
[feature] transform snaps ( #170 )
...
* transform single
* transform
2021-10-18 15:26:34 +01:00
Steve Ruiz
c56bf3b0eb
v0.0.121
2021-10-18 14:33:07 +01:00
Steve Ruiz
0cfc68b004
[feature] snapping ( #168 )
...
* defer cloning
* basic snapping
* Improves algorithm for snap points, rendering
* Improves snapping, snaplines
* Enables a clone to snap to its parent
* Adds overlay
* Fix overlay, zoom scaling for distance and speed
2021-10-18 14:30:42 +01:00
Steve Ruiz
b1b9f901d3
v0.0.120
2021-10-17 09:57:26 +01:00
Steve Ruiz
6db09d4da5
Remove consoel log
2021-10-17 09:48:22 +01:00
Steve Ruiz
62343dab9f
[fix] zoom to selection ( #164 )
...
* fix camera on zoom to selection
* Update tlstate.ts
* Update tlstate.ts
2021-10-17 09:47:41 +01:00
Steve Ruiz
01c824bbbe
Improve rectangle rendering ( #163 )
2021-10-17 09:09:01 +01:00
Steve Ruiz
db62005251
Fix dark theme UI ( #161 )
...
* Fix theming
* Cleanup
* Update tldraw.tsx
2021-10-17 06:59:10 +01:00
Steve Ruiz
9b072fec95
v0.0.119
2021-10-16 23:22:36 +01:00
Steve Ruiz
58ffba3047
v0.0.118
2021-10-16 23:21:35 +01:00
Steve Ruiz
ac555cd6c6
Fix bug on arrow
2021-10-16 23:17:41 +01:00
Steve Ruiz
3f5f613e09
Update multiplayer on www
2021-10-16 21:44:58 +01:00
Steve Ruiz
abcdcd8dae
improves multiplayer presence ( #160 )
2021-10-16 21:24:31 +01:00
Steve Ruiz
3e7d2c3ad9
Update translate.session.ts
2021-10-16 21:06:41 +01:00
Steve Ruiz
61f7fa11ab
Fix bug on sticky
2021-10-16 21:06:29 +01:00
Steve Ruiz
19aa5dc789
Fix bug on text tool
2021-10-16 20:57:26 +01:00
Steve Ruiz
273a57209f
[fix] Migrations ( #159 )
...
* Make room optional
* Improves code for migrations, adds tests
* Update tlstate.spec.ts
2021-10-16 20:34:34 +01:00
Steve Ruiz
d87263a3d8
Make room optional ( #158 )
2021-10-16 19:55:18 +01:00
Steve Ruiz
d5fcdfbb5a
Fix start arrow binding ( #157 )
2021-10-16 19:40:59 +01:00
Steve Ruiz
a4bcf32881
Adds start arrow binding ( #156 )
2021-10-16 15:32:55 +01:00
Steve Ruiz
7d9fcc763d
Add docs for tools, sessions, cleans up tools.
2021-10-16 08:33:25 +01:00
Steve Ruiz
c9abaca8d9
[fix] copy painting ( #155 )
...
* Add click to start copy painting, fix clash with clone dragging
* Grid math
2021-10-15 20:53:27 +01:00
Steve Ruiz
794ac5e4d9
Escape or Command+Enter to complete text shape ( #153 )
...
* Escape or Command+Enter to complete text shape
* Removes isStateful flag from stickys
* Restores context menu
2021-10-15 19:40:06 +01:00
Steve Ruiz
32b2ae88ee
[feature] grid cloning ( #152 )
...
* Adds more clone buttons
* Adds grid session, fix bug on text, adds keyboard handlers for sessions
* Adds copy paint, point argument to duplicate
* Adds tests for duplicate at point
* Adds status for shape cloning
* Adds 32px padding when clone brushing
2021-10-15 17:14:36 +01:00
Steve Ruiz
0d8d45d873
v0.0.117
2021-10-15 14:13:17 +01:00
Steve Ruiz
1ec0434a3c
[improvement] improve performance ( #151 )
...
* Remove context menu
* Update stitches elements
* Update yarn.lock
* Fix bug on bounds bg
* Adds timer for will-change
* remove zindex
* jesus christ, just an extra div
* Remove will change timer
2021-10-15 13:49:48 +01:00
Steve Ruiz
2395224314
Removes context menu
2021-10-15 13:24:34 +01:00
Steve Ruiz
826ed9a185
Fixes cleanup for new shapes on undo ( #150 )
...
* Fixes cleanup for new shapes on undo
* Fix streamline
2021-10-15 10:33:48 +01:00
Steve Ruiz
f3f4ace645
v0.0.116
2021-10-14 17:32:35 +01:00
Steve Ruiz
f8516a2c4a
Fix pinching on tools other than select
2021-10-14 17:25:10 +01:00
Steve Ruiz
4476cc6190
v0.0.115
2021-10-14 16:43:47 +01:00
Steve Ruiz
46c9ac508d
[feature] Side cloning ( #149 )
...
* Adds side clone behavior
* Adds tab to clone, fixes wheel
* Fix bug in draw shape
* Passing tests
2021-10-14 16:37:52 +01:00
Steve Ruiz
0183a4d5a2
Restore context menu
2021-10-14 14:28:37 +01:00
Steve Ruiz
d95a2e83a0
Fix handles when drawing
2021-10-14 14:14:47 +01:00
Steve Ruiz
1c65c51b60
Fix zoom and paste for embedded shapes
2021-10-14 13:51:21 +01:00
Steve Ruiz
f8cb7f03b6
Adds space panning, tweak css for performance
2021-10-14 13:33:39 +01:00
Steve Ruiz
5a99f5e49c
Update status in tests
2021-10-14 13:33:06 +01:00
Steve Ruiz
70cd3262f5
Update status in data
2021-10-14 13:32:48 +01:00
Steve Ruiz
2319a42ecc
Move set status to base tool
2021-10-14 13:32:32 +01:00
Steve Ruiz
a633dbcdbc
Fix draw tool
2021-10-13 19:58:12 +01:00
Steve Ruiz
e1c307fd71
[feature] sticky notes ( #148 )
...
* Refactor toolbar
* Adds containerRef prop
* Fix arrows for groups
* Adds auto focus
* Notes on blurring
* Upgrades to match main
* Loose ends around sticky notes
* Fixes user select
* Passing tests
* Update sticky.tsx
2021-10-13 17:03:33 +01:00
Steve Ruiz
1408ac2cbe
Refactor tools ( #147 )
...
* Refactor Tools
* Update text.tsx
* Passing tests
* Error fixes
* Fix re-selecting tool
* Fix arrow
2021-10-13 14:55:31 +01:00
Steve Ruiz
be271f3ca2
Update tlstate.ts
2021-10-13 06:53:58 +01:00
Steve Ruiz
bd6197ea16
Fix types
2021-10-12 23:02:44 +01:00
Steve Ruiz
59fa1e375e
Update multiplayer.tsx
2021-10-12 23:00:43 +01:00
Steve Ruiz
93827e45dd
Adds indicators for selected shapes from other users
2021-10-12 15:59:04 +01:00
Steve Ruiz
7eae5c87e0
v0.0.114
2021-10-10 17:37:15 +01:00
Steve Ruiz
dca4cfca14
Update changelog
2021-10-10 17:36:42 +01:00
Steve Ruiz
2722d81dbd
Add shape fills for ellipse, rectangle ( #145 )
2021-10-10 16:05:13 +01:00
Steve Ruiz
aae43884ca
v0.0.113
2021-10-10 14:14:04 +01:00
Steve Ruiz
74a8a40af8
[fix] Ungrouping ( #144 )
...
* Adds auto ungroup if grouping only a grouped shape
* Adds test for multiple shape ungrouping
2021-10-10 14:08:41 +01:00
Steve Ruiz
d15c1493e2
v0.0.112
2021-10-10 13:25:41 +01:00
Steve Ruiz
9b2de95ec9
Fix move to page ( #143 )
...
* Remove references to window
* Improve drawn strokes for other dash styles
2021-10-10 13:11:37 +01:00
Steve Ruiz
519c18f300
v0.0.111
2021-10-10 11:59:33 +01:00
Steve Ruiz
e695cbb07f
Fix dashes on arrows
2021-10-10 11:55:52 +01:00
Steve Ruiz
a9db0dbe23
tweaks to dashes
2021-10-10 10:52:28 +01:00
Steve Ruiz
c49b2e684a
[improvement] stroke appearance ( #142 )
...
* make default style small, adjust font sizes and stroke widths
* Reduce size of handle click area
* Make save command+shift+s (just persists)
* Update stroke width for arrow
* Update stroke width for draw
* Update stroke width for ellipse
* Update stroke width for rectangle
* Tweak dash algorithm
* Updates snapshot
2021-10-10 10:41:45 +01:00
Steve Ruiz
601ff19cc9
v0.0.110
2021-10-09 15:02:48 +01:00
Steve Ruiz
d6b38ed79e
[feature] Live cursors MVP ( #137 )
...
* Adds very basic live cursors
* Adds ability to hide pages / menu
2021-10-09 14:57:44 +01:00
Steve Ruiz
99730b4fe2
[feature] MVP multiplayer support ( #135 )
...
* Adds multiplayer support
* Update liveblocks.tsx
* Update liveblocks.tsx
* Create chaos.tsx
* Fix undo redo, add merge state
* Update multiplayer-editor.tsx
* Adds secret room
* Update chaos.tsx
* Moves shhh to shhhmp
* Fix accidentally deleting the editing shape
* Fix bug where a selected shape is deleted by another user.
* Remove relative path
* Tweak editor
* Remove chaos endpoint
* Adds error state for maximum connections, fixes selectedIds bug on new rooms
2021-10-09 00:05:24 +01:00
Steve Ruiz
51dbede313
v0.0.109
2021-10-08 12:36:45 +01:00
Steve Ruiz
d2fb13e18c
bumps perfect-freehand, fixes dot issue
2021-10-08 12:34:11 +01:00
Steve Ruiz
b44b59c21f
Update no-size-embedded.tsx
2021-10-07 16:20:04 +01:00
Steve Ruiz
b9d7e82a7e
v0.0.108
2021-10-07 16:07:44 +01:00
Steve Ruiz
a144360adf
fixes cursors, bounding box when hidden ( #133 )
2021-10-07 16:06:11 +01:00
Steve Ruiz
798bae28ca
Set zoom scale bounds based on camera zoom
2021-10-06 13:03:45 +01:00
Steve Ruiz
5c9e148ad8
Rough fix for zoom events
2021-10-06 12:55:09 +01:00
Steve Ruiz
804bf5db60
Fixes position on page dialog.
2021-10-06 12:39:13 +01:00
Steve Ruiz
3fc86a46ee
v0.0.107
2021-10-06 09:55:06 +01:00