Commit Graph

80 Commits

Author SHA1 Message Date
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
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
23b0432bb2 Fix unused vars 2021-02-07 21:53:29 +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
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
39f3034f91 Moved to Comlink.transfer for worker data loading to prevent memory issues 2021-01-27 16:24:13 +11:00
Mitchell McCaffrey
edffbd8971 Removed duplicate getToken function 2021-01-25 08:19:48 +11:00
Mitchell McCaffrey
bda0aa9ebe Merge branch 'master' into release/v1.7.1 2021-01-25 08:19:25 +11:00
Mitchell McCaffrey
1c143f5464 Moved token request to DB and added sanity check to putToken 2021-01-24 17:50:52 +11:00
Mitchell McCaffrey
ae32068ccb Update TokenDataContext.js 2021-01-24 09:21:22 +11:00
Mitchell McCaffrey
6d548e6fff Update TokenDataContext.js 2021-01-24 09:20:32 +11:00
Mitchell McCaffrey
31f9af583a Added more logging to token put error 2021-01-24 09:18:25 +11:00
Mitchell McCaffrey
3abf9c62fa Changed data contexts to use useCallback and fixed performance issues when changing party state 2021-01-22 14:59:05 +11:00
Mitchell McCaffrey
b9e681f7a1 Updated network state debounce to 500ms 2021-01-22 06:59:49 +11:00
Mitchell McCaffrey
7281e9b9ba Change note text input to allow for multiline editing 2021-01-14 12:36:48 +11:00
Mitchell McCaffrey
02ecf9bffc Changed useNetworkState to implement a partial update mechanism 2021-01-03 10:45:24 +11:00
Mitchell McCaffrey
f24156c44c Clean up imports 2021-01-02 09:13:26 +11:00
Mitchell McCaffrey
b9876c6a38 Fix offline mode and move to optional chaining for session socket 2021-01-01 12:44:56 +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
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
aaa793ad71 Added multi-threaded initial map and token loading 2020-11-26 16:29:10 +11:00
Mitchell McCaffrey
95d0509693 Added banner for quota exceeded error 2020-11-26 15:24:33 +11:00
Mitchell McCaffrey
6fedcc171d Added note edit flags 2020-11-05 16:21:52 +11:00
Mitchell McCaffrey
92fa7133bc Added notes to default map state 2020-11-04 15:02:56 +11:00
Mitchell McCaffrey
05e66e5e82 Reverted unnecessary changes to fix fake-indexeddb issue 2020-10-24 09:05:16 +11:00
Mitchell McCaffrey
b59efda436 Another possible fake-indexeddb work around 2020-10-24 08:52:31 +11:00
Mitchell McCaffrey
58b70a46de Fix another error with fake-indexeddb 2020-10-24 08:23:06 +11:00
Mitchell McCaffrey
e64d715498 Removed debug logs 2020-10-24 00:15:15 +11:00
Mitchell McCaffrey
f8d7f7f19f Updated update map 2020-10-24 00:01:46 +11:00
Mitchell McCaffrey
b70bcdabd2 Updated update map 2020-10-23 23:45:39 +11:00
Mitchell McCaffrey
97c436b5e4 Removed id from map update data 2020-10-23 23:35:43 +11:00
Mitchell McCaffrey
b91d0e4157 more logging 2020-10-23 23:18:57 +11:00
Mitchell McCaffrey
2e5d52b6ac Added more logging to getMapFromDB to test private browsing error 2020-10-23 22:39:01 +11:00
Mitchell McCaffrey
086a7beff3 Added more database sanity checks 2020-10-23 22:16:18 +11:00
Mitchell McCaffrey
6c8833feae Added check that database is available before joining a game
Fixes issue with joining a game already in progress on a browser with indexedDB disabled
2020-10-23 21:11:25 +11:00
Mitchell McCaffrey
3ce6203745 Added check for database in getMapFromDB 2020-10-23 20:50:05 +11:00
Mitchell McCaffrey
539f216cfe Added grid scale and offset to maps and refactored into grid object 2020-10-02 15:19:10 +10:00
Mitchell McCaffrey
f28d1b6690 Added search and groups to token select, refactored map search and group 2020-10-01 22:32:21 +10:00
Mitchell McCaffrey
3215efffa3 Added map group support 2020-10-01 15:05:30 +10:00
Mitchell McCaffrey
99b2bd0240 Added multi map remove to map data context 2020-09-30 15:44:48 +10:00
Mitchell McCaffrey
b7a89a4a4a Refactored keyboard shortcuts to be global and not dependent on map interaction 2020-09-30 13:26:39 +10:00
Mitchell McCaffrey
e92c561a3a Added automatic cache invalidation for maps and tokens 2020-09-11 16:56:40 +10:00
Mitchell McCaffrey
d0002431c5 Added fake storage shim for local and session storage 2020-09-08 12:35:31 +10:00