Steve Ruiz
b94c97aafe
moves svg utils into its own package
2021-10-22 20:03:22 +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
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
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
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
a7e8fafb96
Adds up and downstream links ( #171 )
2021-10-19 12:19:56 +01:00
Steve Ruiz
235a57d302
Adds indicator for text, linked translate
2021-10-18 16:59:12 +01:00
Steve Ruiz
6661ab0586
[feature] transform snaps ( #170 )
...
* transform single
* transform
2021-10-18 15:26:34 +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
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
abcdcd8dae
improves multiplayer presence ( #160 )
2021-10-16 21:24:31 +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
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
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
f8516a2c4a
Fix pinching on tools other than select
2021-10-14 17:25:10 +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
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
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
bd6197ea16
Fix types
2021-10-12 23:02:44 +01:00
Steve Ruiz
93827e45dd
Adds indicators for selected shapes from other users
2021-10-12 15:59:04 +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
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
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
22a9668b5c
[feature] Add isStateful
flag for shape definitions ( #130 )
...
* Add `isStateful` flag for shape definitions
* Update useShapeTree.tsx
2021-09-28 11:12:36 +01:00
Steve Ruiz
639f2412d1
Fix outline on non-draw-style rectangles
2021-09-24 12:02:49 +01:00
Steve Ruiz
31638c7c90
[fix] indicator shapes ( #121 )
...
* Fix indicator shape for draw shape, rectangle shape
* Fixes perfect-freehand bug
* Tweaks streamline
2021-09-24 10:47:25 +01:00
Steve Ruiz
1e3e19199c
[fix] Allows boundsDragEvents to fire even when hidden ( #115 )
...
* Allows boundsDragEvents to fire even when hidden
* Fix failing test
2021-09-23 12:45:39 +01:00
Steve Ruiz
fc1dde724e
Makes keyboard events work again ( #114 )
2021-09-23 12:14:22 +01:00
Steve Ruiz
2fe7923bc4
Support rotated shapes when pasting ( #107 )
2021-09-22 18:24:16 +01:00
Steve Ruiz
b90c57bbc3
improve canvas positioning, fix zaxis reordering
2021-09-22 16:00:20 +01:00
Steve Ruiz
4a99c13006
[feature] focus mode ( #103 )
...
* Adds isFocusMode
* Adds menu option, fixes scale for group dashes, scopes themes to each component based on id
* Add example for a "no size" embed
2021-09-22 12:28:55 +01:00
Steve Ruiz
421989f827
Revert changes to translate3d
2021-09-22 09:54:18 +01:00
Steve Ruiz
68efbf69fa
[fix] Fixes off-center bugs ( #101 )
...
* moves center from window center to center of element
* Removes onMount in Renderer, adds onBoundsChange
* Fix centered-g css
* Fix zoom to fit
2021-09-22 09:45:09 +01:00
Steve Ruiz
bbee7bc2b2
Feature copy and paste ( #99 )
...
* adds copy and paste, scopes keyboard events to focused elements
* Fix tools panel bug, adds copy across documents
* Makes autofocus default
2021-09-21 16:47:04 +01:00
Pedro Duarte
f8b2fe1c85
Refactor to Stitches Core ( #89 )
...
* Refactor www/styles to Stitches Core
* Update package.json
* Begin refactor of `tldraw`
* More refactoring
* A bit more
* little bit more
* Update yarn.lock
* Drops React dependencies to 16.8
Co-authored-by: Steve Ruiz <steveruizok@gmail.com>
2021-09-19 20:45:50 +01:00
Steve Ruiz
e7c6a9b6de
Makes strokes more consistent across sizes / dash weights
2021-09-19 18:20:23 +01:00
Steve Ruiz
2952aab8a8
Improves logic for when to display a group as hovered ( #95 )
2021-09-19 17:53:32 +01:00
Steve Ruiz
87d271d7aa
[improvement] Improve rotation ( #94 )
...
* Fix rotation handle, rotation for arrows and shapes with handles
* Fix bug on draw bounds when cloning
2021-09-19 14:53:52 +01:00
Steve Ruiz
bec693a1d9
Tweaks the draw appearance, fix ellipse rotation ( #93 )
2021-09-18 18:39:34 +01:00
Steve Ruiz
8ae625baef
Fix stale inputs reference ( #92 )
...
* Add `onMount` to Renderer to share inputs
* Removes brush updater
* Update brush.test.tsx
2021-09-17 22:29:45 +01:00
Steve Ruiz
cdb7c74f8e
Updates perfect-freehand, draw renderings
2021-09-17 17:37:40 +01:00
Steve Ruiz
17a7b15f9a
Changes usePosition to useLayoutEffect ( #91 )
2021-09-15 16:47:34 +01:00
Steve Ruiz
820de45a35
Fix draw shape, menu
2021-09-14 12:17:49 +01:00