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 years ago
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 years ago
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 years ago
Steve Ruiz
e7c6a9b6de
Makes strokes more consistent across sizes / dash weights
4 years ago
Steve Ruiz
2952aab8a8
Improves logic for when to display a group as hovered (#95)
4 years ago
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 years ago
Steve Ruiz
bec693a1d9
Tweaks the draw appearance, fix ellipse rotation (#93)
4 years ago
Steve Ruiz
8ae625baef
Fix stale inputs reference (#92)
* Add `onMount` to Renderer to share inputs
* Removes brush updater
* Update brush.test.tsx
4 years ago
Steve Ruiz
cdb7c74f8e
Updates perfect-freehand, draw renderings
4 years ago
Steve Ruiz
17a7b15f9a
Changes usePosition to useLayoutEffect (#91)
4 years ago
Steve Ruiz
820de45a35
Fix draw shape, menu
4 years ago
Steve Ruiz
56f327d4f9
Adds tsconfig-replace-paths
4 years ago
Steve Ruiz
fc9b9fa3e3
expand arrow bounds based on interpolated points (#90)
4 years ago
Steve Ruiz
3603ec3953
fix types
4 years ago
Steve Ruiz
eaeffae333
More type adjustments
4 years ago
Steve Ruiz
22fbca58d3
Allows for additional properties
4 years ago
Steve Ruiz
2f4a1f97a2
big refactor
4 years ago
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 years ago
Steve Ruiz
8bcb2e1154
Fix tests
4 years ago
Steve Ruiz
af81a98fa4
Fix jumpy shapes
4 years ago
Steve Ruiz
d79f66da4e
Fix null issues (more to do here)
4 years ago
Steve Ruiz
4b7d9c2af9
Fix transforms
4 years ago
Steve Ruiz
0afd7f2806
Fix impossible type
4 years ago
Steve Ruiz
c004ed5e56
Fix text scrolling
4 years ago
Steve Ruiz
c8c3ebce68
Fix bounds edge handles
4 years ago
Steve Ruiz
dea7d5c7d4
Push a few more methods to the base shape utils class
4 years ago
Steve Ruiz
f4e8631482
Increase padding
4 years ago
Steve Ruiz
5359e92771
Move SVG container to shape implementations
4 years ago
Steve Ruiz
4c41d98c8e
Fix text shape
4 years ago
Steve Ruiz
e7987ca451
moves to div renderer
4 years ago
Steve Ruiz
64e5edbd6f
Fix test and accidental files from dev, fix container styles
4 years ago
Steve Ruiz
9194ee7522
Tweak dev server
4 years ago
Steve Ruiz
44e1c7dfdc
Adds independent zooms, prevents elements from effecting root or body
4 years ago
Steve Ruiz
b00e0d3a95
Improves pan and zoom gestures
4 years ago
Steve Ruiz
8154ed5a2a
Adjusts small example, makes inputs unique to each instance
4 years ago
Steve Ruiz
7489ee8174
Add imperative test, bump rko
4 years ago
Steve Ruiz
220d8aebda
Minor fixes
4 years ago
Steve Ruiz
4a0800a5df
cleanup
4 years ago
Steve Ruiz
4e13b0e07b
Allow for resets when id changes
4 years ago
Steve Ruiz
254919a6e3
Remove deepmerge dependency, use merge and patch from rok
4 years ago
Steve Ruiz
87ffff5097
Updates deps, pointerMove event handlers
4 years ago
Steve Ruiz
37985f3842
Revert "Merge branch 'next' of https://github.com/tldraw/tldraw into next"
This reverts commit 221eb7b10e , reversing
changes made to fbbaf08513 .
4 years ago
Steve Ruiz
24e9be73cc
Let's try that again
This reverts commit da0f8df4d7 .
Revert "Update package.json"
This reverts commit 522f87c833 .
Revert "removes custom document"
This reverts commit 00d9146895 .
Revert "Remove a dep that may have been causing issues"
This reverts commit 69462632a5 .
Revert "Update index.tsx"
This reverts commit d05807bbfb .
Revert "Adds manifest"
This reverts commit 1c30552643 .
4 years ago
Steve Ruiz
69462632a5
Remove a dep that may have been causing issues
4 years ago
Steve Ruiz
6de0dfee8a
bumps stitches to 1.0.0, allows move events to propagate correctly
4 years ago
Steve Ruiz
e38b9cd600
Fix bad state
4 years ago
Steve Ruiz
9461935aca
closing in on group selection bugs
4 years ago
Steve Ruiz
fe9ff2dc2d
Fix text bug on firefox, translate cloning for grouped shapes
4 years ago
Steve Ruiz
a3ddfca0be
tweak arrow sessions
4 years ago
Steve Ruiz
a1a213f9b4
Starts on groups, fixes duplicate bugs with bindings
4 years ago