Commit graph

165 commits

Author SHA1 Message Date
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
Steve Ruiz
6118dfcc2c Starts implementing locked shapes 2021-05-29 13:40:41 +01:00
Steve Ruiz
3329c16e57 Adds boolean props for lock, hide, aspect lock 2021-05-29 11:12:28 +01:00
Steve Ruiz
b369aef7fc Update state.ts 2021-05-28 23:33:28 +01:00
Steve Ruiz
6064683d3c Update data.ts 2021-05-28 22:15:40 +01:00
Steve Ruiz
39ef1cf317 Improves hover appearance 2021-05-28 22:05:40 +01:00
Steve Ruiz
fe3980c80c Adds tool lock 2021-05-28 21:30:27 +01:00
Steve Ruiz
c95c54dae6 Continues on drawing / rotation 2021-05-28 17:25:43 +01:00
Steve Ruiz
79c254a938 Merge branch 'main' of https://github.com/steveruizok/code-slate into main 2021-05-28 15:43:37 +01:00
Steve Ruiz
239aea30b4 moves undo / redo 2021-05-28 15:43:35 +01:00
Steve Ruiz
9fd8ef8421 improves select display 2021-05-28 15:37:23 +01:00
Steve Ruiz
708223fffa improves appearance on safari 2021-05-28 14:08:51 +01:00
Steve Ruiz
8dfef5c302 Improves draw tool 2021-05-27 23:07:27 +01:00
Steve Ruiz
bd02ca4fd9 Adds undo for drawn shapes, zoom scales rdp 2021-05-27 21:11:48 +01:00
Steve Ruiz
c41def99d3 Improves drawing 2021-05-27 19:51:25 +01:00
Steve Ruiz
7ef83dc508 Adds drawing 2021-05-27 18:59:40 +01:00
Steve Ruiz
e9d46a70e4 Adds stretch 2021-05-27 07:32:55 +01:00
Steve Ruiz
f0afe62073 Cleans up distribution code 2021-05-26 22:53:31 +01:00
Steve Ruiz
21927845a8 implements distribution 2021-05-26 22:47:46 +01:00
Steve Ruiz
25fc384216 implements alignment 2021-05-26 20:34:57 +01:00
Steve Ruiz
ab50d76e6e Stubs alignment distribution stretch 2021-05-26 20:20:52 +01:00
Steve Ruiz
733acfaf3a Improves default data 2021-05-26 11:59:03 +01:00
Steve Ruiz
6c8499309e Adds style panel, styles 2021-05-26 11:34:10 +01:00
Steve Ruiz
def8f665d3 Rotation snaps to PI/12 2021-05-25 18:52:02 +01:00
Steve Ruiz
6da9e5f019 Fixes rotation, translation 2021-05-25 12:38:21 +01:00
Steve Ruiz
71b8ac94af Updates code to mark isGenerated 2021-05-25 10:09:51 +01:00
Steve Ruiz
a1cc578bb9 Makes shapes immutable, adds parenting methods to utils 2021-05-25 10:00:59 +01:00
Steve Ruiz
f4e429af0e Adds zoom helpers, improves drag selection 2021-05-24 18:01:27 +01:00
Steve Ruiz
780eba3d98 Adds deleting, z-index re-ordering 2021-05-23 18:09:23 +01:00
Steve Ruiz
f11c35e941 Basic z ordering 2021-05-23 14:46:04 +01:00
Steve Ruiz
6582eb990c improve rotation 2021-05-23 09:30:20 +01:00
Steve Ruiz
3310f1a94c clean transforms 2021-05-22 21:35:01 +01:00
Steve Ruiz
b752782753 refactors bounds, improves transforming rotating shapes 2021-05-22 16:45:24 +01:00
Steve Ruiz
f57507a882 Improves transforms 2021-05-21 08:42:56 +01:00
Steve Ruiz
10b0c50294 renames shapes -> shape utils 2021-05-20 10:49:40 +01:00
Steve Ruiz
eea9af5f31 Improves cloning 2021-05-20 10:25:14 +01:00
Steve Ruiz
b126b1af65 adds aligned dragging / cloning 2021-05-20 09:19:13 +01:00
Steve Ruiz
e8b13103ac Adds cloning, fixes some undo bugs 2021-05-19 22:24:41 +01:00
Steve Ruiz
0c205d1377 Improves rotated transforms, cleans up code 2021-05-19 13:27:01 +01:00
Steve Ruiz
c3740cacdd Improves transforms 2021-05-19 10:35:00 +01:00
Steve Ruiz
da8f812090 Transforming rotated items 2021-05-18 11:45:29 +01:00
Steve Ruiz
1ece606db0 finishes rotation 2021-05-18 09:32:20 +01:00
Steve Ruiz
e2aac4b267 Adds select all, starts on rotation 2021-05-17 22:27:18 +01:00
Steve Ruiz
abd310aa2e Updates code editor 2021-05-17 11:01:11 +01:00
Steve Ruiz
e21748f7b7 Fixes code save 2021-05-16 09:33:08 +01:00
Steve Ruiz
520553fb2f Adds data saving / loading to local storage 2021-05-16 08:09:46 +01:00
Steve Ruiz
b45cef260a use deltas in transforms 2021-05-16 07:29:48 +01:00
Steve Ruiz
e2805ab6d2 dot sizes, borders now scale correctly to camera zoom. fixes (not really) bug with hooks race conditions 2021-05-15 22:04:28 +01:00
Steve Ruiz
138e1fa24d Improves stroke width 2021-05-15 18:11:08 +01:00
Steve Ruiz
8a650a99d6 Adds direction session 2021-05-15 16:20:21 +01:00
Steve Ruiz
a4643edd62 Adds undo redo for shapes 2021-05-15 15:10:11 +01:00
Steve Ruiz
5420b0365f Adds toolbar, tools shortcuts, dot creation state 2021-05-15 14:54:27 +01:00
Steve Ruiz
1a01c47835 Adds code editing and shape generation 2021-05-15 14:02:13 +01:00
Steve Ruiz
afa8f53dff adds hit testing for hovers 2021-05-14 23:56:41 +01:00
Steve Ruiz
b8d3b35b07 Adds lines, improves transforms 2021-05-14 22:05:21 +01:00
Steve Ruiz
b50045c9b7 Adds transforming, ellipse 2021-05-14 13:44:23 +01:00
Steve Ruiz
d99507de5b Improves typing on shapes utils 2021-05-13 19:22:16 +01:00
Steve Ruiz
0ec723e0d6 Fixes hover width, cursors on pointer inputs 2021-05-13 11:13:14 +01:00