Commit Graph

207 Commits

Author SHA1 Message Date
Mitchell McCaffrey
89fb803398 Moved konva context bridging to shared component 2021-03-13 14:23:37 +11:00
Mitchell McCaffrey
355da5d012 Add max points to fog bounding box 2021-03-12 13:16:27 +11:00
Mitchell McCaffrey
526fa89a4b Moved fog cut ids to shortids 2021-03-12 11:03:54 +11:00
Mitchell McCaffrey
0a12361b16 Changed thumbnail function to produce square images 2021-02-19 09:13:25 +11:00
Mitchell McCaffrey
b7ed9ae9d0 Removed unused import 2021-02-16 17:33:01 +11:00
Mitchell McCaffrey
7639297510 Removed edge snapping in favour of single layer fog system 2021-02-16 08:27:39 +11:00
Mitchell McCaffrey
2f4e671390 Fix crash when unable to resize image 2021-02-14 08:35:43 +11:00
Mitchell McCaffrey
70eb049b4a Merge branch 'preview/v1.8.0' into release/v1.8.0 2021-02-13 15:48:23 +11:00
Mitchell McCaffrey
ed605fe55b Added bounding box check to fog edge snapping 2021-02-13 10:20:55 +11:00
Mitchell McCaffrey
c6d87baf99 Fix triangle drawing with hexes 2021-02-13 10:00:30 +11:00
Mitchell McCaffrey
9370365ab4 Fix warnings 2021-02-12 00:38:36 +11:00
Mitchell McCaffrey
85270859bb Move to new fog snapping with guides and vertex snapping 2021-02-11 19:57:34 +11:00
Mitchell McCaffrey
547a214149 Added distance calculation support for hex 2021-02-11 10:06:06 +11:00
Mitchell McCaffrey
96298e8943 Move measurement options to map settings 2021-02-10 19:59:15 +11:00
Mitchell McCaffrey
846afe5495 Moved all grid snapping to useGridSnapping hook 2021-02-09 14:13:08 +11:00
Mitchell McCaffrey
24e64f9d32 Update maps and tokens to have thumbnails and removed loading of all files on load 2021-02-08 16:53:56 +11:00
Mitchell McCaffrey
502f872fbf Add hex support to useGridSnapping 2021-02-07 11:16:36 +11:00
Mitchell McCaffrey
fbea8bd7a7 Move grid snapping to hook and added math for hex snapping 2021-02-06 19:29:24 +11:00
Mitchell McCaffrey
f20173de35 Added shared grid context and moved away from calling useContext directly 2021-02-06 13:32:38 +11:00
Mitchell McCaffrey
8991be923e Added undershoot grid cells to hex grid 2021-02-05 17:42:14 +11:00
Mitchell McCaffrey
9ddb9a6bac Add hex support for map size changes 2021-02-05 16:57:10 +11:00
Mitchell McCaffrey
5dfddd6af9 Add hex support for default inset function 2021-02-05 11:00:31 +11:00
Mitchell McCaffrey
e90b6dea49 Add back vector to for capitilization change 2021-02-04 15:15:27 +11:00
Mitchell McCaffrey
835dbbbc0f Delete vector2.js 2021-02-04 15:14:57 +11:00
Mitchell McCaffrey
de84e77e58 Add basic hex functionality and clean up hooks and Vector2 class 2021-02-04 15:06:34 +11:00
Mitchell McCaffrey
924b3e2481 Moved draw action helpers into new file to fix import errors with workers 2021-02-04 09:59:03 +11:00
Mitchell McCaffrey
fa1f6fe18f Converted draw actions storage to collapsed representation
Moved to command pattern for action application
2021-02-04 09:11:27 +11:00
Mitchell McCaffrey
2108d32501 Added colours and gradients to pointers 2021-01-28 15:12:30 +11:00
Mitchell McCaffrey
3127da0b67 Merge branch 'master' into release/v1.7.1 2021-01-27 11:05:39 +11:00
Mitchell McCaffrey
613beff72e Fix networked state update overriding current changes 2021-01-27 07:58:35 +11:00
Mitchell McCaffrey
b803f7b4d8 Fix crash with non synced fog edit 2021-01-27 07:57:59 +11:00
Mitchell McCaffrey
cbe1149178 Added extra logging for shape merge 2021-01-26 08:26:51 +11:00
Mitchell McCaffrey
00422a8113 Added extra logging to fog cut 2021-01-25 13:38:37 +11:00
Mitchell McCaffrey
55b9be4e2d Added center grid snapping for tokens 2021-01-25 09:15:32 +11:00
Mitchell McCaffrey
bda0aa9ebe Merge branch 'master' into release/v1.7.1 2021-01-25 08:19:25 +11:00
Mitchell McCaffrey
f05fe32e13 Merge branch 'master' into release/v1.7.0 2021-01-23 15:50:05 +11:00
Mitchell McCaffrey
b9d8a007e5 Optimized fog shapes to only include needed data 2021-01-23 15:44:25 +11:00
Mitchell McCaffrey
5219815a1f Separated fog snapping and drawing snapping, added square edge snapping 2021-01-22 15:00:31 +11:00
Mitchell McCaffrey
6c8ac51f29 Update useNetworkedState.js 2021-01-22 06:01:43 +11:00
Mitchell McCaffrey
de3c601bb3 Added null check to useNetworkState update 2021-01-21 07:23:07 +11:00
Mitchell McCaffrey
cf63034c0e Fix drawing null action 2021-01-21 07:12:44 +11:00
Mitchell McCaffrey
61b4c8abc3 Fix error with hidding all fog shapes, and visiual bug with hiding first fog shape 2021-01-14 11:38:52 +11:00
Mitchell McCaffrey
69431c17e9 Update grid ml to use MobileNet V2 2021-01-07 11:25:25 +11:00
Mitchell McCaffrey
524a6d9aea Update network partial updates to have id to prevent invalid changes 2021-01-04 09:34:25 +11:00
Mitchell McCaffrey
852d5bce81 Added force update option to useNetworkedState 2021-01-03 16:45:55 +11:00
Mitchell McCaffrey
d1315b3425 Added a larger layout for map and token select and edit 2021-01-03 14:53:06 +11:00
Mitchell McCaffrey
f8a2a1ece5 Added more checks to stage interaction 2021-01-03 12:34:01 +11:00
Mitchell McCaffrey
02ecf9bffc Changed useNetworkState to implement a partial update mechanism 2021-01-03 10:45:24 +11:00
Mitchell McCaffrey
858c489980 Update useNetworkedState.js 2021-01-03 09:18:42 +11:00
Mitchell McCaffrey
815ca6bbe1 Added handling of uncommitted changes to networked state 2021-01-02 23:59:21 +11:00