Commit graph

1023 commits

Author SHA1 Message Date
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
1e8cba347d Update package.json 2021-06-27 14:56:07 +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
d28376845f Removes fast pan update (which seemed to be slower?) 2021-06-27 13:47:35 +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
75e60d5eb2 Adds more tests for code 2021-06-25 13:21:33 +01:00
Steve Ruiz
776c0b5f0e Fixes types for code editor 2021-06-25 13:09:53 +01:00
Steve Ruiz
000d029354 Adds Text shape, fixes typing for typescript 2021-06-25 12:24:08 +01:00
Steve Ruiz
d2f43e5253 Storage now restores full state as well as document 2021-06-25 12:14:42 +01:00
Steve Ruiz
3c26ffaae3 Adds readOnly test for code 2021-06-25 12:05:29 +01:00
Steve Ruiz
0ee26a8493 Make updating code controls async 2021-06-25 12:01:22 +01:00
Steve Ruiz
85dc3028b4 Stubs tests. Updates types for controls. 2021-06-25 11:28:52 +01:00
Steve Ruiz
32922b3f85 Adds error boundary, improves code shapes types. 2021-06-24 23:09:36 +01:00
Steve Ruiz
69bdab520a Updates to code editor, utils 2021-06-24 15:59:56 +01:00
Steve Ruiz
cbc26f2e06 Updates getPointsBetween 2021-06-24 13:56:25 +01:00
Steve Ruiz
062dbafc36 More utils cleanup 2021-06-24 13:47:54 +01:00
Steve Ruiz
bdafae3db6 Fix double undos, cleans up utils 2021-06-24 13:34:43 +01:00
Steve Ruiz
8271e6d431 Update scripts 2021-06-24 09:20:29 +01:00
Steve Ruiz
82bd129e3a Fixes utils imports 2021-06-24 09:18:14 +01:00
Steve Ruiz
035b98afbc fix zoom buttons 2021-06-24 09:17:54 +01:00
Steve Ruiz
b5490b6857 Update snapshots 2021-06-23 23:42:15 +01:00
Steve Ruiz
59b02a82be Formatting 2021-06-23 23:33:36 +01:00
Steve Ruiz
059d704404 restores code editor 2021-06-23 23:32:21 +01:00
Steve Ruiz
badda0bb1c Adds isInSession to prevent conflicts. 2021-06-23 19:34:37 +01:00
Steve Ruiz
38534e0798 Fix arrow width on curved arrows 2021-06-23 19:00:06 +01:00
Steve Ruiz
84827eea96 fix early break in sessions 2021-06-23 16:51:22 +01:00
Steve Ruiz
2c6545806a Update dashes.test.ts.snap 2021-06-23 16:00:39 +01:00
Steve Ruiz
4fb7096f2b Fixes bug with arrowhead, fits ellipse and rectangle sizes within bounding box 2021-06-23 16:00:23 +01:00
Steve Ruiz
d5fe5612e1 Fixes events with shapes, adds test for selection 2021-06-23 15:39:14 +01:00
Steve Ruiz
e265a85d7b test cleanup 2021-06-23 13:46:46 +01:00
Steve Ruiz
a24b7f7931 Adds tests, fixes bug on pre-complete sessions 2021-06-23 13:46:16 +01:00
Steve Ruiz
22a97d1374 rename start -> begin 2021-06-23 09:50:51 +01:00
Steve Ruiz
5b514e07f9 improve session api 2021-06-23 09:45:34 +01:00
Steve Ruiz
a9042e4b05 Fix type reference to circle 2021-06-22 22:11:47 +01:00
Steve Ruiz
7d14791d00 Adds double-pointing handles action, toggled arrowheads, removes circles. 2021-06-22 22:06:51 +01:00
Steve Ruiz
07f96a8416 Update jest.config.js 2021-06-22 19:14:01 +01:00
Steve Ruiz
9e2938c3d5 Generalize dash helper. 2021-06-22 19:13:16 +01:00
Steve Ruiz
f6c08508dc balances dashes for ellipses 2021-06-22 15:28:44 +01:00
Steve Ruiz
03603b5190 Creates standard shape fallback for dashed / dotted rects, ellipses 2021-06-22 06:22:37 +01:00
Steve Ruiz
fcd1a8276d Small cleanup 2021-06-21 22:35:54 +01:00
Steve Ruiz
864ded959a big cleanup 2021-06-21 22:35:28 +01:00