Commit graph

169 commits

Author SHA1 Message Date
Steve Ruiz
f9c688056e Fixes bug with SVG export 2021-07-09 23:35:38 +01:00
Steve Ruiz
e9d070f354 Show bounds when pinching 2021-07-09 21:19:10 +01:00
Steve Ruiz
97ae80baa0 Cleans up page / creates shape file 2021-07-09 21:04:41 +01:00
Steve Ruiz
552c8457ef Adjust pointer events for shapes 2021-07-09 20:43:18 +01:00
Steve Ruiz
5d12a2fd54 Fix zoom CSS on zoom 2021-07-09 19:42:43 +01:00
Steve Ruiz
b2360550d9 Refactors shapes 2021-07-09 17:15:27 +01:00
Steve Ruiz
2e7ed423ad
Merge branch 'main' into testing-30-transform-command 2021-07-09 10:23:59 +01:00
Steve Ruiz
847767c060 Update types-import.ts 2021-07-09 10:22:22 +01:00
Steve Ruiz
54ea0e3a2d Adds testMode, tests for RectangleShape 2021-07-09 09:59:43 +01:00
Steve Ruiz
5475197509 Add error to debug window 2021-07-07 15:42:17 +01:00
Steve Ruiz
a315f8e9a6 Adds button to copy state to clipboard 2021-07-04 19:54:10 +01:00
Steve Ruiz
8180146eb3 Adds provisional logger 2021-07-04 19:45:07 +01:00
Steve Ruiz
48c659a68a Trims default false boolean props
This should reduce the size of files / saves, for example.
2021-07-04 09:47:37 +01:00
Steve Ruiz
17940d82d6 Improves draw shape, trims unused code, fixes paste on mobile 2021-07-04 09:24:45 +01:00
Steve Ruiz
fb17d4ee02 Simplifies styles 2021-07-03 17:30:06 +01:00
Steve Ruiz
db12ad97e8 Update code-panel.tsx 2021-07-03 15:52:38 +01:00
Steve Ruiz
e88567d7dc Update style-panel.tsx 2021-07-03 15:13:07 +01:00
Steve Ruiz
a454586237 Adds copy / paste / save / load buttons to menu 2021-07-03 15:09:49 +01:00
Steve Ruiz
8a747fe82f Adds support for solid / dotted / dashed draw lines 2021-07-03 14:28:43 +01:00
Steve Ruiz
c4d9116426 Fix text rendering, text layout due to mismatched vertical alignments. 2021-07-02 11:48:49 +01:00
Steve Ruiz
39b943248f Updates style panel 2021-07-01 23:11:09 +01:00
Steve Ruiz
52ed678a73 Update shape.tsx 2021-07-01 15:05:54 +01:00
Steve Ruiz
8ee78d1b90 Fix bug on missing others, adds new tests 2021-07-01 15:03:02 +01:00
Steve Ruiz
b426c40bd8 Improve text bug 2021-06-30 23:44:25 +01:00
Steve Ruiz
7da573ffdb Adds provisional keyboard panning 2021-06-30 21:56:42 +01:00
Steve Ruiz
49baa47a0e Updates cursor logic 2021-06-30 21:31:29 +01:00
Steve Ruiz
5d66c153be Fix missing shape (accept it) 2021-06-29 19:29:33 +01:00
Steve Ruiz
a6b8c23fce fix big on transform 2021-06-29 17:04:45 +01:00
Steve Ruiz
84949fffe6 Fix missing shapes, I hope 2021-06-29 16:56:38 +01:00
Steve Ruiz
9e3d2eb7cd Only show controls when present 2021-06-29 15:58:27 +01:00
Steve Ruiz
364dbe0fd9 Removes expensive immer current calls 2021-06-29 15:54:46 +01:00
Steve Ruiz
45223e2a8d Big restructure of utils 2021-06-29 13:00:59 +01:00
Steve Ruiz
80d2ba5f00 cursors! 2021-06-28 23:22:23 +01:00
Steve Ruiz
36fc386269 Stubs initial API for coop with Pusher 2021-06-28 21:45:06 +01:00
Steve Ruiz
ad0aff9fea Update hovered-shape.tsx 2021-06-28 14:01:49 +01:00
Steve Ruiz
8ff8b87a9e perf improvements around selected / hovered shapes 2021-06-28 13:13:34 +01:00
Steve Ruiz
bb2268a1f4 Fixes font issues with Recursive 2021-06-27 22:30:37 +01:00
Steve Ruiz
a568de9557 Prevent key propagation in controls panel 2021-06-27 20:53:47 +01:00
Steve Ruiz
6ef197e30a Add API for points to draw code class 2021-06-27 20:50:11 +01:00
Steve Ruiz
9f16f886ea Improves performance issue caused by @radix-ui/use-direction 2021-06-27 20:19:57 +01:00
Steve Ruiz
a9a8629ad2 Update scripts 2021-06-27 14:55:48 +01:00
Steve Ruiz
3f4f5e73ae Adds initial docs for code editor 2021-06-27 14:53:06 +01:00
Steve Ruiz
14902099f9 Improves window resizing, adds shouldRender to shapes 2021-06-27 13:28:54 +01:00
Steve Ruiz
ec7ec06a6d Fix missing shapes when resizing window 2021-06-27 13:12:28 +01:00
Steve Ruiz
61399fb9d0 Improves code editor types, adds es5 lib 2021-06-27 12:58:08 +01:00
Steve Ruiz
9d63160521 Change docs icon 2021-06-27 11:39:55 +01:00
Steve Ruiz
35b0ba27e6 Improves error reporting in code editor 2021-06-27 11:37:42 +01:00
Steve Ruiz
d1a3860bb1 Fixes a perf-killing deepCompare in context menu
Was deep comparing an array of actual selected shapes, rather than selected shape ids
2021-06-27 10:07:20 +01:00
Steve Ruiz
ff58073d12 Adds more tests, simplifies draw tool 2021-06-26 12:52:36 +01:00
Steve Ruiz
776c0b5f0e Fixes types for code editor 2021-06-25 13:09:53 +01:00