Commit graph

222 commits

Author SHA1 Message Date
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
bdafae3db6 Fix double undos, cleans up utils 2021-06-24 13:34:43 +01:00
Steve Ruiz
82bd129e3a Fixes utils imports 2021-06-24 09:18:14 +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
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
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
7d14791d00 Adds double-pointing handles action, toggled arrowheads, removes circles. 2021-06-22 22:06:51 +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
Steve Ruiz
daa44f9911 Updates arrows 2021-06-21 14:13:16 +01:00
Steve Ruiz
fc2e3b3c4c Adds copy to svg 2021-06-20 23:01:40 +01:00
Steve Ruiz
6729435696 Update tag names 2021-06-19 18:22:46 +01:00
Steve Ruiz
6711f980d8 Add gtag to history 2021-06-19 17:24:51 +01:00
Steve Ruiz
6722ae3dfa Update storage.ts 2021-06-19 17:12:44 +01:00
Steve Ruiz
b0a260d6a6 Improves behavior with locked shapes 2021-06-18 16:31:46 +01:00
Steve Ruiz
6ff7b0c50d Improves mobile touch events 2021-06-18 16:19:10 +01:00
Steve Ruiz
1b9e8857e0 Fix blocking text element 2021-06-18 15:39:07 +01:00
Steve Ruiz
5f71f5c38b Fixes text on mobile (iOS) 2021-06-18 14:55:36 +01:00
Steve Ruiz
eccf5f6307 Adds copy and paste 2021-06-18 11:14:23 +01:00
Steve Ruiz
5baf89a513 Adds bounds reset / sizing for text, fixes lost pressure on draw shape resize 2021-06-18 10:32:07 +01:00
Steve Ruiz
66ec007e4f Adds session completes when leaving a creation/editing state 2021-06-18 10:11:12 +01:00
Steve Ruiz
d0d24e9c71 fixes zstacking with text 2021-06-17 22:50:04 +01:00
Steve Ruiz
946fdbab4c Adds alignment to context menu 2021-06-17 13:03:08 +01:00
Steve Ruiz
aabc7e8e0f Adds text 2021-06-17 11:43:55 +01:00
Steve Ruiz
4ce2b8cc6b Improves file saving / page saving and loading 2021-06-16 13:09:45 +01:00
Steve Ruiz
7e03adcd52 Fix page zoom bug 2021-06-15 13:20:22 +01:00
Steve Ruiz
027815f199 Adds most of text feature, except creation 2021-06-15 12:58:51 +01:00
Steve Ruiz
94fcca1685 Improves translating, breaks save/load again 2021-06-13 15:12:59 +01:00
Steve Ruiz
4a36ff7341 Fix bug in translating 2021-06-13 14:55:37 +01:00
Steve Ruiz
9123fd62fc Improving draw 2021-06-13 14:24:03 +01:00
Steve Ruiz
c88206fd47 encodes local storage data, hides off-screen shapes 2021-06-13 14:04:20 +01:00
Steve Ruiz
c8070857b1 Remove fancy draw prediction.
Until we have a better solution.
2021-06-13 09:10:30 +01:00
Steve Ruiz
a689422576 Improves(?) save / load 2021-06-12 20:40:26 +01:00
Steve Ruiz
e08f8f0116 Update draw-session.ts 2021-06-12 17:53:01 +01:00
Steve Ruiz
03e1904739 Skip projected points on mobile 2021-06-12 17:46:36 +01:00
Steve Ruiz
f90f51efc7 Reduces projection 2021-06-12 17:41:38 +01:00
Steve Ruiz
58c9fc9f83 Improves drawing 2021-06-12 17:34:38 +01:00
Steve Ruiz
b8d58f2d50 improve drawing 2021-06-12 17:04:11 +01:00
Steve Ruiz
fe833b6e3b Improve comments on draw 2021-06-12 09:25:04 +01:00
Steve Ruiz
ba9c5f6d97 fixes dot on drawing 2021-06-12 09:10:12 +01:00
Steve Ruiz
50cffb3404 Annoying file system saving stuff 2021-06-11 23:06:09 +01:00
Steve Ruiz
84971eea30 Fixes manifest 2021-06-11 21:14:43 +01:00
Steve Ruiz
6c08c35dee Update storage.ts 2021-06-11 12:36:30 +01:00
Steve Ruiz
260772e682 Fix save issue 2021-06-11 11:42:23 +01:00
Steve Ruiz
110d8fe0b1 Local file saving 2021-06-11 11:31:31 +01:00
Steve Ruiz
61f56b984e Fixes deleting pages, adds local file saving / loading 2021-06-11 11:11:42 +01:00
Steve Ruiz
e2b53b381b Finish move to page 2021-06-10 11:33:24 +01:00
Steve Ruiz
f2d3231315 Adds context menu, "move to page" 2021-06-10 10:49:16 +01:00
Steve Ruiz
c48537121f Fixes brushing, selection, double-clicking 2021-06-09 17:10:00 +01:00
Steve Ruiz
9943bdd420 Improves selection 2021-06-08 12:27:47 +01:00
Steve Ruiz
5a7e79121a fixes code bug, adds sketchy circle 2021-06-08 11:32:20 +01:00
Steve Ruiz
84c93060d0 inky boxes 2021-06-07 22:12:14 +01:00
Steve Ruiz
350c1debde Moves selectedIds into page state, state mounts only one page state / page at a time 2021-06-07 12:18:50 +01:00
Steve Ruiz
4c876d3d35 Trash icon now clears selection first 2021-06-06 20:42:04 +01:00
Steve Ruiz
704e92faa4 Improves performance for certain actions 2021-06-06 11:50:01 +01:00
Steve Ruiz
8623958e74 adds pressure sensitivity 2021-06-06 08:33:30 +01:00
Steve Ruiz
a52e91459f Fixes nesting groups 2021-06-05 20:36:46 +01:00
Steve Ruiz
72accc5f44 Adds pressure to pointer data 2021-06-05 17:57:29 +01:00
Steve Ruiz
81141e7bb5 improves arrow rotation 2021-06-05 15:29:49 +01:00
Steve Ruiz
554d55a9e3 improves bounds, arrow rotation 2021-06-05 08:42:17 +01:00
Steve Ruiz
72b6db12c4 Improves handles for arrows 2021-06-05 07:36:39 +01:00
Steve Ruiz
ff72493381 Skips rotations for groups. 2021-06-04 22:34:12 +01:00
Steve Ruiz
d99cacd105 Fixes more bugs with groups 2021-06-04 22:21:03 +01:00
Steve Ruiz
9626461ea7 Fixes deleting undos 2021-06-04 19:49:27 +01:00
Steve Ruiz
fcb11f19e3 Fixes selection for shapes in a group 2021-06-04 18:56:46 +01:00
Steve Ruiz
4507f806f6 Update state.ts 2021-06-04 18:18:36 +01:00
Steve Ruiz
d9cbda45e6 Fixes groups 2021-06-04 17:14:01 +01:00
Steve Ruiz
506eecc95f Adds groups 2021-06-04 17:08:43 +01:00
Steve Ruiz
9877c2ff97 Restores selected indicator, removes hook for isSelected on shape 2021-06-03 22:40:27 +01:00
Steve Ruiz
062f446339 Restores local data loading 2021-06-03 14:11:14 +01:00
Steve Ruiz
507c081bd0 Adds create / delete pages 2021-06-03 14:10:54 +01:00
Steve Ruiz
3b74580b4f Fixes styling on page select, bumps data version 2021-06-03 13:20:34 +01:00
Steve Ruiz
5ba56216d0 Adds page control, pages 2021-06-03 13:06:39 +01:00
Steve Ruiz
34256f992a adds tooltips, improves arrow 2021-06-02 22:17:38 +01:00
Steve Ruiz
9ab86ba9ae Removes translateTo, rotateTo 2021-06-02 16:05:44 +01:00
Steve Ruiz
7c768bddf5 Adds quick style selects, rewrites styling 2021-06-02 12:50:34 +01:00
Steve Ruiz
815bf1109c Adds dashes 2021-06-01 22:49:32 +01:00
Steve Ruiz
ea996b627b Improves layout on mobile 2021-06-01 09:56:41 +01:00
Steve Ruiz
a94f4ee170 Fixes bounds for arrows 2021-05-31 21:44:21 +01:00
Steve Ruiz
bcffee6458 Adds arrows, handles 2021-05-31 20:13:43 +01:00
Steve Ruiz
facd9e9845 Fixes transforms on drawn shapes, adds straight line drawing with draw tool 2021-05-30 22:24:31 +01:00
Steve Ruiz
76a4ccdfcb Improves undo/redo, fixes pinching and multitouch 2021-05-30 14:14:35 +01:00
Steve Ruiz
bc6f5cf5b7 Improves rotation? I think? 2021-05-29 23:27:19 +01:00
Steve Ruiz
2755b58f8f Adds undo / redo / clear button 2021-05-29 15:06:23 +01:00
Steve Ruiz
09659ab9ba Adds zoom controls 2021-05-29 14:59:11 +01:00
Steve Ruiz
68577d1838 Fixes bug on drawn dots 2021-05-29 13:54:33 +01:00