Commit Graph

85 Commits

Author SHA1 Message Date
Mitchell McCaffrey
ef96f2f7c4 Reversed context menu as it was bugged with map interaction 2020-05-25 16:12:30 +10:00
Mitchell McCaffrey
6bd0cefc14 Added right click support back for token menu 2020-05-25 16:01:15 +10:00
Mitchell McCaffrey
33d7d972be Added map loading provider to fix bugs with multiple asset loading 2020-05-25 15:34:22 +10:00
Mitchell McCaffrey
b0c1dcf9dd Changed map drag position to use a ref value to avoid re-renders
Added a useMapBrush helper
2020-05-25 15:07:12 +10:00
Mitchell McCaffrey
8932ceb1e3 Make map translation smoother by removing it from the state 2020-05-25 14:09:45 +10:00
Mitchell McCaffrey
be7d6c5277 Moved to react spring for konva animations 2020-05-25 10:37:28 +10:00
Mitchell McCaffrey
bbb9279228 Fix undefined error in token state sort 2020-05-24 13:32:49 +10:00
Mitchell McCaffrey
a91f2c6d39 Added tap events for map interaction 2020-05-22 23:55:50 +10:00
Mitchell McCaffrey
5f2d282df8 Added pinch to zoom for map 2020-05-22 23:43:55 +10:00
Mitchell McCaffrey
09e423fd56 Added token animations back, edited token change event to support multiple edits
This stopped mounted vehicle animations from lagging
2020-05-22 22:17:30 +10:00
Mitchell McCaffrey
ef1c875088 Added token rotation 2020-05-22 21:10:05 +10:00
Mitchell McCaffrey
a8bd5ab672 Added is vehicle checkbox and vehicle type tokens 2020-05-22 20:43:07 +10:00
Mitchell McCaffrey
a77c4158ca Readded loading spinner for map loading and fixed infinite token size when loading 2020-05-22 17:56:03 +10:00
Mitchell McCaffrey
9f21f895ba Disable map interaction in map selection modal 2020-05-22 17:25:17 +10:00
Mitchell McCaffrey
a6768727fe Readded map fog 2020-05-22 17:22:32 +10:00
Mitchell McCaffrey
a81eed1a48 Added transparency for tokens that can't be dragged 2020-05-22 15:11:18 +10:00
Mitchell McCaffrey
14c9151405 Added proper cursors for the selected tool 2020-05-22 15:10:20 +10:00
Mitchell McCaffrey
d26932d17c Added back map drawing 2020-05-22 13:47:11 +10:00
Mitchell McCaffrey
9e01ad1d0e Simplified menu interaction prevention 2020-05-22 13:46:52 +10:00
Mitchell McCaffrey
d9a4b10563 Fix token resolution for high DPI screens 2020-05-22 13:44:05 +10:00
Mitchell McCaffrey
118878d9e1 Readded map token remove 2020-05-21 22:57:44 +10:00
Mitchell McCaffrey
daab80f45e Fix prevent interaction bug in map token 2020-05-21 21:31:15 +10:00
Mitchell McCaffrey
b9968053b7 Converted token label and status to konva 2020-05-21 20:57:52 +10:00
Mitchell McCaffrey
5b70f69fb7 Moved map and map tokens to Konva 2020-05-21 16:46:50 +10:00
Mitchell McCaffrey
542388a67f Removed single character limit for token labels and added sizing for token size 2020-05-20 18:39:57 +10:00
Mitchell McCaffrey
3f959fd3a3 Added unknown token for when a token in use is deleted 2020-05-20 11:35:14 +10:00
Mitchell McCaffrey
dbc3cd83e7 Fix performance issue from changing map state 2020-05-19 16:33:23 +10:00
Mitchell McCaffrey
7b98370e4c Added token edit modal, refactored map and token data providers
Refactored image drop code into reusable component as well
2020-05-19 16:21:01 +10:00
Mitchell McCaffrey
1774b459dc Changed map zooming to always zoom to center of screen and not map 2020-05-18 21:52:46 +10:00
Mitchell McCaffrey
04794eddc1 Added token transition for when an other user moves a token 2020-05-18 19:21:29 +10:00
Mitchell McCaffrey
9e4cbbfb75 Added anchor tags to faq links 2020-05-03 18:30:01 +10:00
Mitchell McCaffrey
60059ff447 Added database faker for when indexedb is disabled
Database is now in a context with a status
New FAQ for indexdb errors
2020-05-03 18:22:09 +10:00
Mitchell McCaffrey
86450a04db Added loading spinner to map load 2020-04-30 22:08:03 +10:00
Mitchell McCaffrey
eed8f63b84 Upped fog stroke width 2020-04-30 16:28:06 +10:00
Mitchell McCaffrey
8c304c76e5 Adjusted map zoom speed 2020-04-30 16:16:12 +10:00
Mitchell McCaffrey
c0d04ea6fa Added normalization to the map mouse zoom 2020-04-30 15:45:20 +10:00
Mitchell McCaffrey
11671849f8 Changed to having token edit permissions still allow you to place tokens 2020-04-30 15:12:34 +10:00
Mitchell McCaffrey
23e42aa115 Center map tile text 2020-04-30 14:42:15 +10:00
Mitchell McCaffrey
88b4785307 Moved undo and redo into tool settings and implemented it for fog 2020-04-30 09:29:16 +10:00
Mitchell McCaffrey
ccaa51fe84 Moved back to always showing controls and removed option to disable map change 2020-04-29 21:32:23 +10:00
Mitchell McCaffrey
4b9b06395d Added map fog permissions 2020-04-29 21:12:57 +10:00
Mitchell McCaffrey
aeb33058bb Added erase all back in 2020-04-29 20:55:52 +10:00
Mitchell McCaffrey
5357b79e70 Added fog toggle 2020-04-29 20:40:34 +10:00
Mitchell McCaffrey
9975f564fa Added map context to scale simplification by map scale
Added distance to quadratic functions to vector
2020-04-29 18:21:44 +10:00
Mitchell McCaffrey
3e5a80e7d1 Fixed shape drawing on different aspect ratio images 2020-04-29 11:04:33 +10:00
Mitchell McCaffrey
abf75f1566 Added smoothing to freehand fog 2020-04-29 09:42:58 +10:00
Mitchell McCaffrey
6e48d7d4e2 Fix drawing erase while on controls and brush type switch bug 2020-04-29 09:25:56 +10:00
Mitchell McCaffrey
aac11790e2 Added stop progagation to map controls to stop drawing empty shapes 2020-04-28 22:06:20 +10:00
Mitchell McCaffrey
5e2c178118 Separated map drawing and map fog into separate action lists 2020-04-28 22:05:47 +10:00
Mitchell McCaffrey
b34a7df443 Added fog edge snapping 2020-04-28 17:04:31 +10:00