Commit graph

1020 commits

Author SHA1 Message Date
Steve Ruiz
48f784c322
Fix copy group shapes as svg (#112)
* fixes copy group shapes as svg

* Update tlstate.ts

* Fix failing tests
2021-09-23 10:48:08 +01:00
Steve Ruiz
6ba76c0e78 v0.0.100 2021-09-22 18:34:36 +01:00
Steve Ruiz
2fe7923bc4
Support rotated shapes when pasting (#107) 2021-09-22 18:24:16 +01:00
Steve Ruiz
157b2b9208 v0.0.99 2021-09-22 16:01:51 +01:00
Steve Ruiz
b90c57bbc3 improve canvas positioning, fix zaxis reordering 2021-09-22 16:00:20 +01:00
Steve Ruiz
9c0de7ad9c v0.0.98 2021-09-22 14:25:50 +01:00
Steve Ruiz
86aa20fc8a Fixes text 2021-09-22 13:27:49 +01:00
Steve Ruiz
1d988f132a
[feature] Add Sentry tracking, restore installable PWA (#106)
* This PR restores the sentry and pwa features

* Add gtag to editor in events.
2021-09-22 13:17:52 +01:00
Steve Ruiz
7bc01c70f5 Add unfocus button 2021-09-22 12:40:53 +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
7d61d24398 v0.0.97 2021-09-21 16:50:17 +01:00
Steve Ruiz
6199b5a0b7 Bumps perfect-freehand 2021-09-21 16:49:52 +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
Steve Ruiz
eabaf2f30e v0.0.96 2021-09-19 22:57:54 +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
3c3c23ec4d v0.0.95 2021-09-17 22:43:59 +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
39afd9a3f6 v0.0.94 2021-09-15 16:49:21 +01:00
Steve Ruiz
17a7b15f9a
Changes usePosition to useLayoutEffect (#91) 2021-09-15 16:47:34 +01:00
Steve Ruiz
f5b7190010 v0.0.93 2021-09-14 12:33:28 +01:00
Steve Ruiz
dfd079ad9a Update yarn.lock 2021-09-14 12:33:07 +01:00
Steve Ruiz
820de45a35 Fix draw shape, menu 2021-09-14 12:17:49 +01:00
Steve Ruiz
abbf8f1f0c v0.0.92 2021-09-14 08:52:14 +01:00
Steve Ruiz
56f327d4f9 Adds tsconfig-replace-paths 2021-09-14 08:51:24 +01:00
Steve Ruiz
95518f6bc1 v0.0.91 2021-09-13 22:50:49 +01:00
Steve Ruiz
a2a68f4463 Fix paths on build 2021-09-13 22:49:53 +01:00
Steve Ruiz
5ce18550e7 v0.0.90 2021-09-13 22:33:24 +01:00
Steve Ruiz
fc9b9fa3e3
expand arrow bounds based on interpolated points (#90) 2021-09-13 22:32:17 +01:00
Steve Ruiz
cc6c486918
Merge pull request #88 from tldraw/refactor-shape-utils
[refactor] Shape Utils
2021-09-13 17:51:10 +01:00
Steve Ruiz
3603ec3953 fix types 2021-09-13 17:32:31 +01:00
Steve Ruiz
eaeffae333 More type adjustments 2021-09-13 17:13:48 +01:00
Steve Ruiz
22fbca58d3 Allows for additional properties 2021-09-13 16:59:37 +01:00
Steve Ruiz
2f4a1f97a2 big refactor 2021-09-13 16:38:42 +01:00
Steve Ruiz
612269ab38 v0.0.89 2021-09-12 14:11:47 +01:00
Steve Ruiz
7c02d60ee6 bumps 2021-09-12 14:11:29 +01:00
Steve Ruiz
5cb031ddc2 v0.0.88 2021-09-12 14:09:55 +01:00
Steve Ruiz
fe3bcbfe37
Merge pull request #87 from tldraw/fix-docs
Fix docs
2021-09-12 14:08:35 +01:00
Steve Ruiz
7808d6b75e Adds package sizes to build scripts 2021-09-12 14:05:13 +01:00
Steve Ruiz
f7971d5c6f Cleans up packages, tsconfigs, fixes for docs 2021-09-12 14:00:31 +01:00
Steve Ruiz
a3da5e1937 v0.0.87 2021-09-12 13:26:57 +01:00
Steve Ruiz
9f309bb485
Merge pull request #86 from tldraw/utils-refactor
Split vectors and intersections into new packages
2021-09-12 13:26:08 +01:00
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
2021-09-12 13:21:44 +01:00
Steve Ruiz
6e97d67f0d
Merge pull request #85 from tldraw/divs
Moves to components
2021-09-12 11:18:01 +01:00