Commit Graph

22 Commits

Author SHA1 Message Date
Mitchell McCaffrey
3ba7c8809c Moved drawing tools into one section 2020-06-21 11:01:03 +10:00
Mitchell McCaffrey
aa4ba33a0b Added fog polygon tool and changed fog interaction method 2020-06-19 18:04:58 +10:00
Mitchell McCaffrey
a4a8722de0 Reversed zoom direction 2020-05-29 07:36:11 +10:00
Mitchell McCaffrey
8432176014 Fix map scroll when modal open 2020-05-28 11:52:18 +10:00
Mitchell McCaffrey
0d37f8c6e3 Changed map interaction to ignore events not on the canvas
This removes the need for calling prevent interaction all over the code also allowed pointer events to go through the empty parts of the dice tray
2020-05-27 15:26:42 +10:00
Mitchell McCaffrey
5a2e0a53ed Fix map scroll with modals open 2020-05-26 15:44:41 +10:00
Mitchell McCaffrey
43b0ff3e2e Removed double click map reset due to conflicts with other interactions 2020-05-25 18:56:46 +10:00
Mitchell McCaffrey
4b4c88f85c Added back double click to reset map transform 2020-05-25 18:08:39 +10:00
Mitchell McCaffrey
92c14533f1 Updated pinch map gesture to support movement and fix bug with drawing while pinching 2020-05-25 17:26:36 +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
5f2d282df8 Added pinch to zoom for map 2020-05-22 23:43:55 +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
5b70f69fb7 Moved map and map tokens to Konva 2020-05-21 16:46:50 +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
86450a04db Added loading spinner to map load 2020-04-30 22:08:03 +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
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
e08dc60f5f Cleaned map interaction props and changed drawing interaction handle 2020-04-27 17:40:36 +10:00
Mitchell McCaffrey
2cf93ab77f Added UI elements for the new drawing system
Removed old gesture system
Refactored map interaction into separate component
2020-04-27 17:29:46 +10:00