Steve Ruiz
22a9668b5c
[feature] Add `isStateful` flag for shape definitions (#130)
* Add `isStateful` flag for shape definitions
* Update useShapeTree.tsx
4 years ago
Steve Ruiz
639f2412d1
Fix outline on non-draw-style rectangles
4 years ago
Steve Ruiz
31638c7c90
[fix] indicator shapes (#121)
* Fix indicator shape for draw shape, rectangle shape
* Fixes perfect-freehand bug
* Tweaks streamline
4 years ago
Steve Ruiz
1e3e19199c
[fix] Allows boundsDragEvents to fire even when hidden (#115)
* Allows boundsDragEvents to fire even when hidden
* Fix failing test
4 years ago
Steve Ruiz
fc1dde724e
Makes keyboard events work again (#114)
4 years ago
Steve Ruiz
2fe7923bc4
Support rotated shapes when pasting (#107)
4 years ago
Steve Ruiz
b90c57bbc3
improve canvas positioning, fix zaxis reordering
4 years ago
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 years ago
Steve Ruiz
421989f827
Revert changes to translate3d
4 years ago
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