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
4 gadus atpakaļ
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
4 gadus atpakaļ
Steve Ruiz
826ed9a185
Fixes cleanup for new shapes on undo (#150)
* Fixes cleanup for new shapes on undo
* Fix streamline
4 gadus atpakaļ
Steve Ruiz
f8516a2c4a
Fix pinching on tools other than select
4 gadus atpakaļ
Steve Ruiz
46c9ac508d
[feature] Side cloning (#149)
* Adds side clone behavior
* Adds tab to clone, fixes wheel
* Fix bug in draw shape
* Passing tests
4 gadus atpakaļ
Steve Ruiz
d95a2e83a0
Fix handles when drawing
4 gadus atpakaļ
Steve Ruiz
1c65c51b60
Fix zoom and paste for embedded shapes
4 gadus atpakaļ
Steve Ruiz
f8cb7f03b6
Adds space panning, tweak css for performance
4 gadus atpakaļ
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
4 gadus atpakaļ
Steve Ruiz
1408ac2cbe
Refactor tools (#147)
* Refactor Tools
* Update text.tsx
* Passing tests
* Error fixes
* Fix re-selecting tool
* Fix arrow
4 gadus atpakaļ
Steve Ruiz
bd6197ea16
Fix types
4 gadus atpakaļ
Steve Ruiz
93827e45dd
Adds indicators for selected shapes from other users
4 gadus atpakaļ
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
4 gadus atpakaļ
Steve Ruiz
d6b38ed79e
[feature] Live cursors MVP (#137)
* Adds very basic live cursors
* Adds ability to hide pages / menu
4 gadus atpakaļ
Steve Ruiz
a144360adf
fixes cursors, bounding box when hidden (#133)
4 gadus atpakaļ
Steve Ruiz
798bae28ca
Set zoom scale bounds based on camera zoom
4 gadus atpakaļ
Steve Ruiz
5c9e148ad8
Rough fix for zoom events
4 gadus atpakaļ
Steve Ruiz
22a9668b5c
[feature] Add `isStateful` flag for shape definitions (#130)
* Add `isStateful` flag for shape definitions
* Update useShapeTree.tsx
4 gadus atpakaļ
Steve Ruiz
639f2412d1
Fix outline on non-draw-style rectangles
4 gadus atpakaļ
Steve Ruiz
31638c7c90
[fix] indicator shapes (#121)
* Fix indicator shape for draw shape, rectangle shape
* Fixes perfect-freehand bug
* Tweaks streamline
4 gadus atpakaļ
Steve Ruiz
1e3e19199c
[fix] Allows boundsDragEvents to fire even when hidden (#115)
* Allows boundsDragEvents to fire even when hidden
* Fix failing test
4 gadus atpakaļ
Steve Ruiz
fc1dde724e
Makes keyboard events work again (#114)
4 gadus atpakaļ
Steve Ruiz
2fe7923bc4
Support rotated shapes when pasting (#107)
4 gadus atpakaļ
Steve Ruiz
b90c57bbc3
improve canvas positioning, fix zaxis reordering
4 gadus atpakaļ
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
4 gadus atpakaļ
Steve Ruiz
421989f827
Revert changes to translate3d
4 gadus atpakaļ
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
4 gadus atpakaļ
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
4 gadus atpakaļ
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 >
4 gadus atpakaļ
Steve Ruiz
e7c6a9b6de
Makes strokes more consistent across sizes / dash weights
4 gadus atpakaļ
Steve Ruiz
2952aab8a8
Improves logic for when to display a group as hovered (#95)
4 gadus atpakaļ
Steve Ruiz
87d271d7aa
[improvement] Improve rotation (#94)
* Fix rotation handle, rotation for arrows and shapes with handles
* Fix bug on draw bounds when cloning
4 gadus atpakaļ
Steve Ruiz
bec693a1d9
Tweaks the draw appearance, fix ellipse rotation (#93)
4 gadus atpakaļ
Steve Ruiz
8ae625baef
Fix stale inputs reference (#92)
* Add `onMount` to Renderer to share inputs
* Removes brush updater
* Update brush.test.tsx
4 gadus atpakaļ
Steve Ruiz
cdb7c74f8e
Updates perfect-freehand, draw renderings
4 gadus atpakaļ
Steve Ruiz
17a7b15f9a
Changes usePosition to useLayoutEffect (#91)
4 gadus atpakaļ
Steve Ruiz
820de45a35
Fix draw shape, menu
4 gadus atpakaļ
Steve Ruiz
56f327d4f9
Adds tsconfig-replace-paths
4 gadus atpakaļ
Steve Ruiz
fc9b9fa3e3
expand arrow bounds based on interpolated points (#90)
4 gadus atpakaļ
Steve Ruiz
3603ec3953
fix types
4 gadus atpakaļ
Steve Ruiz
eaeffae333
More type adjustments
4 gadus atpakaļ
Steve Ruiz
22fbca58d3
Allows for additional properties
4 gadus atpakaļ
Steve Ruiz
2f4a1f97a2
big refactor
4 gadus atpakaļ
Steve Ruiz
7f0cfd2c5a
Splits vectors and intersections into new packages
esbuild isn't currently tree shaking intersections, but that's a file where we could save some room
4 gadus atpakaļ
Steve Ruiz
8bcb2e1154
Fix tests
4 gadus atpakaļ
Steve Ruiz
af81a98fa4
Fix jumpy shapes
4 gadus atpakaļ
Steve Ruiz
d79f66da4e
Fix null issues (more to do here)
4 gadus atpakaļ
Steve Ruiz
4b7d9c2af9
Fix transforms
4 gadus atpakaļ
Steve Ruiz
0afd7f2806
Fix impossible type
4 gadus atpakaļ
Steve Ruiz
c004ed5e56
Fix text scrolling
4 gadus atpakaļ