Commit Graph

61 Commits

Author SHA1 Message Date
Mitchell McCaffrey
265f04fc0a Add toasts for unable to draw fog errors 2021-06-14 11:57:08 +10:00
Mitchell McCaffrey
948be7cac2 Move drawing simplify away from grid dependent scaling 2021-06-06 09:39:07 +10:00
Mitchell McCaffrey
f5ccbe8f8f Update fog edit pattern opacity for new shading method 2021-06-06 09:05:39 +10:00
Mitchell McCaffrey
4b225e5c14 Fix fog colour string warning 2021-05-24 13:07:54 +10:00
Mitchell McCaffrey
6ef3f680b4 Fix performance issues with editing map fog with lots of shapes 2021-05-24 11:36:46 +10:00
Mitchell McCaffrey
3a68c47de6 Remove blank rect from map fog 2021-05-20 12:22:22 +10:00
Mitchell McCaffrey
b9ce0fd03d Add fog edit opacity 2021-04-09 15:35:57 +10:00
Mitchell McCaffrey
ad68aa7226 Refactor shortcuts into a central file and fix issue with caps lock 2021-03-25 16:31:06 +11:00
Mitchell McCaffrey
84d6db3ce7 Add more simplification to fog shapes 2021-03-12 14:33:08 +11:00
Mitchell McCaffrey
8148e5c52c Simplify fog points more 2021-03-12 14:15:29 +11:00
Mitchell McCaffrey
506ec25a72 Add show fog guides setting 2021-03-12 13:37:51 +11:00
Mitchell McCaffrey
355da5d012 Add max points to fog bounding box 2021-03-12 13:16:27 +11:00
Mitchell McCaffrey
c8e2707421 Remove merge shape before single layer fog 2021-03-12 12:33:24 +11:00
Mitchell McCaffrey
e6fd10a904 Optimise grid and interaction context 2021-03-12 11:02:58 +11:00
Mitchell McCaffrey
5fb7041698 Fix fog fill pattern with fog preview 2021-02-22 19:58:46 +11:00
Mitchell McCaffrey
d244471870 Removed fog guidelines of touch end 2021-02-22 17:04:35 +11:00
Mitchell McCaffrey
525398d2ec Added back fog stroke when not editing 2021-02-22 10:41:34 +11:00
Mitchell McCaffrey
0b424c31ec Added delete shortcut to remove last point from polygon fog 2021-02-16 08:38:40 +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
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
19def8cdb0 Changed fog shadow color to match shape color 2021-02-09 17:56:49 +11:00
Mitchell McCaffrey
846afe5495 Moved all grid snapping to useGridSnapping hook 2021-02-09 14:13:08 +11:00
Mitchell McCaffrey
cdb91eed60 Change editable fog outline to light grey 2021-02-09 08:00: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
bda0aa9ebe Merge branch 'master' into release/v1.7.1 2021-01-25 08:19:25 +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
037e4a4ab4 Added fallback for token without size 2021-01-03 16:46:22 +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
f1ae78612c Added fog rectangle tool 2020-12-03 17:32:41 +11:00
Mitchell McCaffrey
c24133813f Replaced fog subtraction with fog cutting 2020-12-03 16:52:24 +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
84af4c5845 Removed unused props from map drawing and fog 2020-11-03 16:38:26 +11:00
Mitchell McCaffrey
9c1960ba71 Refactored getBrushPosition helper 2020-11-03 16:20:51 +11: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
f19389fbc5 Changed line joins to round for fog and drawing
Avoids the long overhang with three sided fog shapes
2020-08-07 14:05:55 +10:00
Mitchell McCaffrey
76cad29f2b Added snap to grid option to map settings 2020-08-07 12:28:50 +10:00
Mitchell McCaffrey
558db7d88b Changed fog so it is tranparent when you can edit it
Added a show preview toggle to see how others will see it.
Refactored fog and drawing props to simplify
2020-08-04 14:51:31 +10:00
Mitchell McCaffrey
dfce8dee05 Fixed possible render bug 2020-06-25 18:57:12 +10:00
Mitchell McCaffrey
80b711296b Added keyboard shortcuts to drawing and remaining fog tools 2020-06-24 18:05:33 +10:00
Mitchell McCaffrey
9a4d047cd5 Moved back to drag events for map and fog drawing
Moved to an event driven model for dragging
2020-06-24 09:27:20 +10:00
Mitchell McCaffrey
ceedceabf5 Fix crash when selecting a tool while editing a fog polygon 2020-06-21 16:55:58 +10:00
Mitchell McCaffrey
cb8b66e55f Added touch supprt to fog polygon 2020-06-21 16:17:54 +10:00
Mitchell McCaffrey
2f740efd7c Added UI element to allow accepting fog polygon editing 2020-06-21 16:09:37 +10:00
Mitchell McCaffrey
aa4ba33a0b Added fog polygon tool and changed fog interaction method 2020-06-19 18:04:58 +10:00
Mitchell McCaffrey
f4d71cd6bf Add support for holes in fog subtraction 2020-06-14 12:27:05 +10:00