Commit Graph

606 Commits

Author SHA1 Message Date
Mitchell McCaffrey
9892227caf Added fix for grid nudge causing scroll 2021-02-07 17:40:22 +11:00
Mitchell McCaffrey
9f96145410 Updated rotation to have 15 degree increments 2021-02-07 17:25:29 +11:00
Mitchell McCaffrey
76533852cd Added a grid snapping sensitivity accessibility option 2021-02-07 16:42:29 +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
de84e77e58 Add basic hex functionality and clean up hooks and Vector2 class 2021-02-04 15:06:34 +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
d8f5ccb6a8 Fix token label not resizing on players screens 2021-01-28 17:10:26 +11:00
Mitchell McCaffrey
ff8d7c1547 Moved notes to be above drawings 2021-01-28 16:26:28 +11:00
Mitchell McCaffrey
2108d32501 Added colours and gradients to pointers 2021-01-28 15:12:30 +11:00
Mitchell McCaffrey
72ecd002dd Added automatic token label fitting 2021-01-27 17:00:03 +11:00
Mitchell McCaffrey
83a987d9df Add initial import export functionality 2021-01-26 21:49:44 +11:00
Mitchell McCaffrey
feb803ebef Added note text only mode 2021-01-25 10:03:20 +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
34fcff9052 Added fallback for token statuses empty values and duplicates 2021-01-21 15:55:47 +11:00
Mitchell McCaffrey
2f9a55f176 Removed overflow from token and note menu 2021-01-21 14:47:49 +11:00
Mitchell McCaffrey
82e8eb014e Update TokenStatus.js 2021-01-21 13:58:37 +11:00
Mitchell McCaffrey
af3839c9ff Added null check to token status 2021-01-21 07:14:32 +11:00
Mitchell McCaffrey
c61ff28942 Fix image drop url parameters 2021-01-19 18:40:22 +11:00
Mitchell McCaffrey
a892c09fd1 Reduced note menu back to 1 row 2021-01-14 15:40:29 +11:00
Mitchell McCaffrey
e91cdfcac2 Fix note text fitting for multiline support 2021-01-14 15:14:07 +11:00
Mitchell McCaffrey
7281e9b9ba Change note text input to allow for multiline editing 2021-01-14 12:36:48 +11:00
Mitchell McCaffrey
2311bf2b5b Update MapToken.js 2021-01-10 12:42:05 +11:00
Mitchell McCaffrey
fd9f47e41e Added check for stage in drag overlay 2021-01-04 12:22:09 +11:00
Mitchell McCaffrey
30a1319298 Updated notes to always be square 2021-01-04 09:39:58 +11:00
Mitchell McCaffrey
7693db325a Removed unused imports 2021-01-03 16:46:51 +11:00
Mitchell McCaffrey
037e4a4ab4 Added fallback for token without size 2021-01-03 16:46:22 +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
cf12629f82 Increased map loading overlay height 2021-01-03 12:34:37 +11:00
Mitchell McCaffrey
a3622979b8 Added more cases to note text update 2021-01-03 10:45:43 +11:00
Mitchell McCaffrey
2482196876 Fix errors with fog disappearing on zoom and crashing on zooming out 2021-01-02 18:01:04 +11:00
Mitchell McCaffrey
c90434b626 Added drop shadow to fog, and optimized it with caching 2021-01-02 12:17:27 +11:00
Mitchell McCaffrey
4adc6015f1 Changed token cache pixel ratio to use canvas ratio 2021-01-02 09:49:52 +11:00
Mitchell McCaffrey
cc7db42894 Changed hit detection for tokens to only enable when dragging a vehicle 2021-01-02 09:41:18 +11:00
Mitchell McCaffrey
ae98b54c7b Fix drawings being erased when drawing tool not selected 2021-01-02 09:17:56 +11:00
Mitchell McCaffrey
a146495326 Fix timer shifting when player state is updated 2021-01-01 14:57:56 +11:00
Mitchell McCaffrey
63129dfa14 Moved joined and left notifications to new networking 2021-01-01 14:50:11 +11:00
Mitchell McCaffrey
0fee1a910f Changed loading bar to be purple 2021-01-01 13:25:46 +11:00
Mitchell McCaffrey
b13b46b17d Moved pointer out of player state and into separate socket event 2021-01-01 12:37:54 +11:00
Mitchell McCaffrey
501fc4377c Optimised pointer 2020-12-31 17:56:51 +11:00
Mitchell McCaffrey
9265b99788 Added url support to image dropping 2020-12-11 16:36:27 +11:00
Mitchell McCaffrey
6a4c6b30ec Moved peer connections to an optional pull model 2020-12-11 13:24:39 +11:00
Mitchell McCaffrey
b40f78042f Moved party to use socket networking 2020-12-08 15:58:01 +11:00
Mitchell McCaffrey
b7da0cffa7 Added height and width check to resize handle 2020-12-05 17:16:31 +11:00
Mitchell McCaffrey
f1ae78612c Added fog rectangle tool 2020-12-03 17:32:41 +11:00
Mitchell McCaffrey
f5b875e101 Renamed remove fog to erase fog and changed shortcut 2020-12-03 16:53:44 +11:00
Mitchell McCaffrey
c24133813f Replaced fog subtraction with fog cutting 2020-12-03 16:52:24 +11:00
Mitchell McCaffrey
19d44f3f79 Fix note crash when selecting pan tool 2020-11-27 12:23:57 +11:00
Mitchell McCaffrey
ddda241c56 Limit note and label text to 144 characters 2020-11-27 11:53:25 +11:00
Mitchell McCaffrey
309870247b Moved map loading overlay to be full screen width 2020-11-27 11:37:15 +11:00
Mitchell McCaffrey
fca1c9fd1f Added margin to markdown list and added default props 2020-11-27 11:19:52 +11:00
Mitchell McCaffrey
d231d9340e Fix styling of indexeddb disabled warning 2020-11-26 17:08:25 +11:00
Mitchell McCaffrey
9131557b71 Merge branch 'master' into release/v1.7.0 2020-11-26 10:23:08 +11:00
Mitchell McCaffrey
7346eced44 Fix vehicle tokens in Konva 7 2020-11-21 11:12:05 +11:00
Mitchell McCaffrey
4c301604fc Added alternating diagonals map measurement 2020-11-20 12:00:59 +11:00
Mitchell McCaffrey
c338af5557 Merge branch 'master' into release/v1.7.0 2020-11-20 09:40:43 +11:00
Mitchell McCaffrey
f48a39c3ad Fix erase of drawing and fog with a short click 2020-11-20 09:24:28 +11:00
Mitchell McCaffrey
dd41925b25 Added decimal support to measure tool and added calculated precision 2020-11-20 09:08:13 +11:00
Mitchell McCaffrey
9a1a98ce9f Merge branch 'master' into release/v1.7.0 2020-11-20 08:30:09 +11:00
Mitchell McCaffrey
1db2fb04d2 Fix pointer being shown when tapping map controls on touch devices 2020-11-19 15:08:03 +11:00
Mitchell McCaffrey
b6b68014ed Fix issue with drag start using old positions on touch devices 2020-11-19 14:53:07 +11:00
Mitchell McCaffrey
edab7c85f1 Seperated drag events in map interaction 2020-11-19 14:26:06 +11:00
Mitchell McCaffrey
e886da6dd9 Remove dice share background colour 2020-11-07 12:35:23 +11:00
Mitchell McCaffrey
68a5ae1f46 Remove int requirement from default token size 2020-11-07 12:27:21 +11:00
Mitchell McCaffrey
485c418b57 Updated note text sizes to be relative to the note height 2020-11-06 16:27:47 +11:00
Mitchell McCaffrey
cb2c432d0a Changed min token and note scale to 0.5 and fix grid snapping for non integer values 2020-11-06 15:48:35 +11:00
Mitchell McCaffrey
088466ea07 Added slider label on drag 2020-11-06 13:35:11 +11:00
Mitchell McCaffrey
6fedcc171d Added note edit flags 2020-11-05 16:21:52 +11:00
Mitchell McCaffrey
8873e59205 Added sorting to notes 2020-11-05 15:39:56 +11:00
Mitchell McCaffrey
f5aec514f8 Added locking to notes 2020-11-05 15:30:22 +11:00
Mitchell McCaffrey
9790d4e44f Added animation and visibility to notes 2020-11-05 15:17:23 +11:00
Mitchell McCaffrey
5fd3f6d814 Changed note text color based off of background color 2020-11-05 14:48:32 +11:00
Mitchell McCaffrey
a6085599dd Added note removal 2020-11-05 14:41:33 +11:00
Mitchell McCaffrey
807a1be626 Removed label from map note menu 2020-11-05 13:40:50 +11:00
Mitchell McCaffrey
dcdbb1ea98 Removed modes from note tool 2020-11-05 12:28:28 +11:00
Mitchell McCaffrey
a3ae3471e8 Added note menu and note text 2020-11-04 15:03:34 +11:00
Mitchell McCaffrey
927c596b04 Added notes to map state reset detection 2020-11-04 15:03:14 +11:00
Mitchell McCaffrey
6c1d952855 Added basic persistance to notes 2020-11-03 17:15:39 +11:00
Mitchell McCaffrey
84af4c5845 Removed unused props from map drawing and fog 2020-11-03 16:38:26 +11:00
Mitchell McCaffrey
9fbd0d2a9d Added notes tool setup 2020-11-03 16:21:39 +11:00
Mitchell McCaffrey
9c1960ba71 Refactored getBrushPosition helper 2020-11-03 16:20:51 +11:00
Mitchell McCaffrey
b72f6d483f Added null checks to token menu state changes 2020-10-30 12:01:46 +11:00
Mitchell McCaffrey
d7b866d98d Added token group null check in tokenDragOverlay 2020-10-30 11:50:19 +11:00
Mitchell McCaffrey
fcbc903d16 Added lazy loading to dice and tensorflow 2020-10-30 11:17:27 +11:00
Mitchell McCaffrey
75a9c604a3 Fix loading overlay being behind dice tray 2020-10-27 18:26:09 +11:00
Mitchell McCaffrey
1d3443414e Added toast notification for party joining 2020-10-27 18:25:50 +11:00
Mitchell McCaffrey
5df01973e5 Moved map database disabled banner down to account for search bar 2020-10-23 20:50:37 +11:00
Mitchell McCaffrey
60d24050ee Added back show more option for maps but made it on by default 2020-10-23 20:22:12 +11:00
Mitchell McCaffrey
f98fc394d4 Renamed show grid to draw grid 2020-10-22 21:15:07 +11:00
Mitchell McCaffrey
d6b790035a Fix unused import 2020-10-22 20:57:01 +11:00
Mitchell McCaffrey
611e7af3d9 Removed show more button for editing maps 2020-10-22 16:39:24 +11:00
Mitchell McCaffrey
f26cbf24d2 Refactored stage zooming to center on the mouse position 2020-10-22 16:10:31 +11:00
Mitchell McCaffrey
1c79032f30 Added max zoom based off of map size and normalized wheelY by window height 2020-10-22 12:51:37 +11:00