Commit graph

294 commits

Author SHA1 Message Date
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
51dbede313 v0.0.109 2021-10-08 12:36:45 +01:00
Steve Ruiz
b9d7e82a7e v0.0.108 2021-10-07 16:07: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
3fc86a46ee v0.0.107 2021-10-06 09:55:06 +01:00
Steve Ruiz
6733e27dbc bumps use gesture 2021-10-05 20:28:52 +01:00
Steve Ruiz
cb55ad96ff v0.0.106 2021-09-28 11:16:02 +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
51eef7d2d0 v0.0.105 2021-09-24 15:13:03 +01:00
Steve Ruiz
151b3083f7 v0.0.104 2021-09-24 15:12:25 +01:00
Steve Ruiz
ea66362135
[fix] copy bindings (#124)
* v0.0.103

* Copies bindings together with shapes that are bound

* Remove old shape bindings from copied shape handles
2021-09-24 13:47:11 +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
5d3af9cec0 v0.0.102 2021-09-23 12:47:39 +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
9ddf7d0dc4 v0.0.101 2021-09-23 12:17:43 +01:00
Steve Ruiz
fc1dde724e
Makes keyboard events work again (#114) 2021-09-23 12:14:22 +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
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
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
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
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
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
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
8bcb2e1154 Fix tests 2021-09-12 00:41:50 +01:00
Steve Ruiz
af81a98fa4 Fix jumpy shapes 2021-09-12 00:13:45 +01:00
Steve Ruiz
d79f66da4e Fix null issues (more to do here) 2021-09-11 23:58:22 +01:00
Steve Ruiz
4b7d9c2af9 Fix transforms 2021-09-11 23:24:49 +01:00
Steve Ruiz
0afd7f2806 Fix impossible type 2021-09-11 23:22:07 +01:00
Steve Ruiz
c004ed5e56 Fix text scrolling 2021-09-11 23:17:54 +01:00
Steve Ruiz
c8c3ebce68 Fix bounds edge handles 2021-09-11 20:02:16 +01:00
Steve Ruiz
dea7d5c7d4 Push a few more methods to the base shape utils class 2021-09-11 18:07:53 +01:00
Steve Ruiz
f4e8631482 Increase padding 2021-09-11 17:23:38 +01:00
Steve Ruiz
5359e92771 Move SVG container to shape implementations 2021-09-11 17:21:10 +01:00
Steve Ruiz
4c41d98c8e Fix text shape 2021-09-11 17:06:28 +01:00
Steve Ruiz
e7987ca451 moves to div renderer 2021-09-11 16:24:03 +01:00
Steve Ruiz
35a18920f4 v0.0.86 2021-09-09 17:18:38 +01:00
Steve Ruiz
64e5edbd6f Fix test and accidental files from dev, fix container styles 2021-09-09 15:37:46 +01:00
Steve Ruiz
9194ee7522 Tweak dev server 2021-09-09 14:58:55 +01:00
Steve Ruiz
44e1c7dfdc Adds independent zooms, prevents elements from effecting root or body 2021-09-09 14:06:45 +01:00
Steve Ruiz
b00e0d3a95 Improves pan and zoom gestures 2021-09-09 13:32:08 +01:00
Steve Ruiz
8154ed5a2a Adjusts small example, makes inputs unique to each instance 2021-09-08 17:18:43 +01:00
Steve Ruiz
2653f396bf v0.0.85 2021-09-08 14:48:03 +01:00
Steve Ruiz
d97cfd494e v0.0.84 2021-09-08 13:04:13 +01:00
Steve Ruiz
7489ee8174 Add imperative test, bump rko 2021-09-08 12:53:52 +01:00
Steve Ruiz
91fe0f612a v0.0.83 2021-09-08 12:16:22 +01:00
Steve Ruiz
91683769ed v0.0.82 2021-09-08 12:15:50 +01:00
Steve Ruiz
220d8aebda Minor fixes 2021-09-08 11:58:24 +01:00
Steve Ruiz
4a0800a5df cleanup 2021-09-08 11:27:05 +01:00
Steve Ruiz
4e13b0e07b Allow for resets when id changes 2021-09-08 11:16:10 +01:00
Steve Ruiz
c21107f9ac v0.0.81 2021-09-06 14:10:03 +01:00
Steve Ruiz
254919a6e3 Remove deepmerge dependency, use merge and patch from rok 2021-09-06 14:09:15 +01:00
Steve Ruiz
55da8880eb v0.0.80 2021-09-06 14:04:56 +01:00
Steve Ruiz
04b6353e41 Adds setter for history 2021-09-06 13:43:56 +01:00
Steve Ruiz
183f9cd798 Write tests, slight tweaks to build / packages 2021-09-06 13:04:12 +01:00
Steve Ruiz
7d37cf34c1 Adds references 2021-09-06 12:44:14 +01:00
Steve Ruiz
9f2148eab9 Fixes import issue 2021-09-06 12:33:30 +01:00
Steve Ruiz
d390ef7758 v0.0.79 2021-09-05 15:20:06 +01:00
Steve Ruiz
51ef8f394c v0.0.78 2021-09-05 15:19:43 +01:00
Steve Ruiz
af69aef5c0 Tweak builds to omit declaration maps in prod 2021-09-05 15:18:08 +01:00
Steve Ruiz
f8c1b9ff4e manual bumps while I debug lerna 2021-09-05 12:19:08 +01:00
Steve Ruiz
c206b29d08 v0.0.73 2021-09-05 12:01:15 +01:00
Steve Ruiz
e081e7a698 tweaks package 2021-09-05 12:00:52 +01:00
Steve Ruiz
0d2aee0059 v0.0.72 2021-09-05 11:52:31 +01:00
Steve Ruiz
84f57601f5 Adds publishConfig 2021-09-05 11:51:59 +01:00
Steve Ruiz
cb40cfd98d v0.0.71 2021-09-05 11:47:42 +01:00
Steve Ruiz
271e615704 bump head 2021-09-05 11:47:27 +01:00
Steve Ruiz
39b8751b65 v0.0.70 2021-09-05 11:46:50 +01:00
Steve Ruiz
59ec5a3c49 v0.0.69 2021-09-05 11:46:31 +01:00
Steve Ruiz
4d3b631520 bump head 2021-09-05 11:46:25 +01:00
Steve Ruiz
7d5335b74b v0.0.68 2021-09-05 11:43:53 +01:00
Steve Ruiz
1d77ca833e removes incremental from build 2021-09-05 11:40:19 +01:00
Steve Ruiz
8672d6d454 v0.0.67 2021-09-05 11:29:08 +01:00
Steve Ruiz
0dd7354ebc more tweaks? 2021-09-05 11:28:09 +01:00
Steve Ruiz
3bebe0695f v0.0.66 2021-09-05 11:24:17 +01:00
Steve Ruiz
2f1860d35d v0.0.65 2021-09-05 11:23:46 +01:00
Steve Ruiz
d5e62d2169 Update files 2021-09-05 11:23:24 +01:00
Steve Ruiz
9fe4e9bfd3 v0.0.64 2021-09-05 11:15:21 +01:00
Steve Ruiz
cfca63dc8e Update package.json 2021-09-05 11:14:46 +01:00
Steve Ruiz
6af6825c25 v0.0.63 2021-09-05 11:13:44 +01:00
Steve Ruiz
c6764b870e update ignore 2021-09-05 11:13:26 +01:00
Steve Ruiz
9955ca87af remove typedoc options 2021-09-05 11:11:29 +01:00
Steve Ruiz
9e92dc13c3 v0.0.62 2021-09-05 11:08:53 +01:00
Steve Ruiz
b6028360d1 ignore docs from build 2021-09-05 11:08:28 +01:00
Steve Ruiz
89163f3d4b v0.0.61 2021-09-05 11:05:12 +01:00
Steve Ruiz
f9a2058c2e v0.0.60 2021-09-05 11:04:47 +01:00
Steve Ruiz
3f89af61b5 Adds ungroup 2021-09-05 10:51:21 +01:00
Steve Ruiz
9e12f96904 Slight changes to tsconfigs to fix bug with yarn docs 2021-09-04 22:32:05 +01:00
Steve Ruiz
e93f6a0750 v0.0.59 2021-09-04 16:41:01 +01:00
Steve Ruiz
8450466cbb Publish 0.0.58 2021-09-04 16:21:46 +01:00
Steve Ruiz
838fabdbff v0.0.58 2021-09-04 16:21:02 +01:00
Steve Ruiz
87ffff5097 Updates deps, pointerMove event handlers 2021-09-04 11:32:33 +01:00
Steve Ruiz
37985f3842 Revert "Merge branch 'next' of https://github.com/tldraw/tldraw into next"
This reverts commit 221eb7b10e, reversing
changes made to fbbaf08513.
2021-09-04 10:17:10 +01:00
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.
2021-09-04 10:17:10 +01:00
Steve Ruiz
69462632a5 Remove a dep that may have been causing issues 2021-09-03 16:09:54 +01:00
Steve Ruiz
6de0dfee8a bumps stitches to 1.0.0, allows move events to propagate correctly 2021-09-03 13:56:07 +01:00
Steve Ruiz
dc74b14c10 v0.0.57 2021-09-03 12:10:35 +01:00
Steve Ruiz
2d59b0e2c9 v0.0.56 2021-09-03 11:25:53 +01:00
Steve Ruiz
e38b9cd600 Fix bad state 2021-09-03 11:24:50 +01:00
Steve Ruiz
9461935aca closing in on group selection bugs 2021-09-03 10:45:36 +01:00
Steve Ruiz
0b93e5a041 v0.0.55 2021-09-03 08:36:00 +01:00
Steve Ruiz
fe9ff2dc2d Fix text bug on firefox, translate cloning for grouped shapes 2021-09-02 21:13:54 +01:00
Steve Ruiz
a3ddfca0be tweak arrow sessions 2021-09-02 16:23:07 +01:00
Steve Ruiz
a1a213f9b4 Starts on groups, fixes duplicate bugs with bindings 2021-09-02 13:51:39 +01:00
Tais Massaro
6a7c99259a test(core): fix test names 2021-09-01 21:22:13 +02:00
Steve Ruiz
f6934dedb8 Adds copy, fix bug on mutating bound shapes, adds binding indicator, adds binding to text 2021-09-01 12:18:50 +01:00
Steve Ruiz
f342cb9ea1 v0.0.54 2021-08-31 22:47:21 +01:00
Steve Ruiz
33efc32db8 v0.0.53 2021-08-31 19:20:28 +01:00
Steve Ruiz
3e3c6d31e7 Fix scripts 2021-08-31 19:20:07 +01:00
Steve Ruiz
6534ce7027 v0.0.52 2021-08-31 19:13:50 +01:00
Steve Ruiz
38114cde37 bumps canvas 2021-08-31 19:13:24 +01:00
Steve Ruiz
f2ed16ff7e Fix build 2021-08-31 13:37:06 +01:00
Steve Ruiz
c619ef0ec1 cleans up package.json, scripts 2021-08-30 19:10:30 +01:00
Steve Ruiz
edc71a4d98 v0.0.51 2021-08-30 14:29:20 +01:00
Steve Ruiz
62a3da0498 Fix arrow bend behavior 2021-08-30 13:15:52 +01:00
Steve Ruiz
b7902f3ce8 Fix types 2021-08-30 11:49:49 +01:00