Commit Graph

715 Commits

Author SHA1 Message Date
Mitchell McCaffrey
cbebdbcecd Added database upgrade for fog subtraction 2020-06-28 16:13:06 +10:00
Mitchell McCaffrey
eb8caf8f6c Removed unused grid icon and toggle 2020-06-28 16:01:00 +10:00
Mitchell McCaffrey
e2abc9d182 Fix redo shortcut on windows 2020-06-28 16:00:44 +10:00
Mitchell McCaffrey
f4145b2f3b Reduced map grid opacity 2020-06-28 15:44:53 +10:00
Mitchell McCaffrey
9f2ab861bb Fixed bug with token and map settings modal values being edited with no item selected 2020-06-28 15:44:36 +10:00
Mitchell McCaffrey
761bf8e800 Removed async from select map modal setting change functions 2020-06-28 15:44:06 +10:00
Mitchell McCaffrey
c6a9455e8f Added setting change cache to token settings modal 2020-06-28 15:43:45 +10:00
Mitchell McCaffrey
7a3213a0f9 Fix bug with map settings expand disabled 2020-06-28 14:00:36 +10:00
Mitchell McCaffrey
7a40e77de1 Updated progress indicator style 2020-06-28 13:47:05 +10:00
Mitchell McCaffrey
a81031e84e Moved map asset loading progress to use refs to stop re-renders
Moved map loading overlay to use animation frames for a smooth progress bar
2020-06-28 13:37:04 +10:00
Mitchell McCaffrey
bf022e2686 Added progress indicator to map data loading 2020-06-28 12:28:58 +10:00
Mitchell McCaffrey
a370b8e11d Added full stops on session errors 2020-06-28 11:06:26 +10:00
Mitchell McCaffrey
75e2a591b3 Added error handling for peer errors when socket is fine 2020-06-28 09:58:07 +10:00
Mitchell McCaffrey
67356255b9 Added map settings change cache to improve editing performance 2020-06-27 11:18:47 +10:00
Mitchell McCaffrey
f301a58c12 Added is empty helper function 2020-06-27 11:18:10 +10:00
Mitchell McCaffrey
c6bea2a573 Add comment to map menu 2020-06-27 10:25:31 +10:00
Mitchell McCaffrey
1da7ee9e95 Moved shortcut prevention to all modals 2020-06-27 10:21:50 +10:00
Mitchell McCaffrey
62587e471a Fix bug with text input and keyboard shortcuts on token menu 2020-06-27 10:11:10 +10:00
Mitchell McCaffrey
3744364981 Fix bug with token opacity when changing tools with a shortcut 2020-06-27 10:04:54 +10:00
Mitchell McCaffrey
f0edfb8cbc Added measure tool crosshair 2020-06-26 12:33:07 +10:00
Mitchell McCaffrey
5f799548d2 Added shortcuts for map controls 2020-06-26 12:32:51 +10:00
Mitchell McCaffrey
57754e0ac8 Added measure tool 2020-06-26 12:23:06 +10:00
Mitchell McCaffrey
dfce8dee05 Fixed possible render bug 2020-06-25 18:57:12 +10:00
Mitchell McCaffrey
e3704879c9 Added map collapsable tool settings for small screens 2020-06-25 18:56:51 +10:00
Mitchell McCaffrey
cac2af1608 Added line tool 2020-06-25 08:47:53 +10:00
Mitchell McCaffrey
80b711296b Added keyboard shortcuts to drawing and remaining fog tools 2020-06-24 18:05:33 +10:00
Mitchell McCaffrey
96a100c02a Fix divide by zero on triangle shapes 2020-06-24 09:27:36 +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
afb22c7a73 Fix drawing tool rename in map controls 2020-06-22 09:24:45 +10:00
Mitchell McCaffrey
d677f3623f Fix bug with zooming while on the drawing tool on a touch device 2020-06-22 09:22:20 +10:00
Mitchell McCaffrey
ccc0c2b89d Updated version to 1.4.0 preview 2020-06-21 16:58:41 +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
aebc0f9267 Added automatic setting change for drawing when erased all 2020-06-21 16:32:53 +10:00
Mitchell McCaffrey
0bec582116 Moved drawing to use native konva events 2020-06-21 16:29:42 +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
f85b379b15 Added grid snapping to fog polygon, added center snapping and fixed fog magnet 2020-06-21 14:55:17 +10:00
Mitchell McCaffrey
a300e6bd79 Moved fog add toggle to two separate icons 2020-06-21 13:18:03 +10:00
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
5a93d9a526 Fixed map fog draw undo not being sent to other players 2020-06-19 13:45:21 +10:00
Mitchell McCaffrey
1554e7ae5f Merge branch 'master' into feature/partial-shape 2020-06-19 13:28:55 +10:00
Mitchell McCaffrey
41f882668a Updated v1.3.3 social links 2020-06-16 22:28:26 +10:00
Mitchell McCaffrey
28d1033745 Added v1.3.3 release notes 2020-06-16 21:35:13 +10:00
Mitchell McCaffrey
df4a813377 Bump version to 1.3.3 2020-06-16 21:18:35 +10:00
Mitchell McCaffrey
13d682bc9c Added disconnected message and removed peer connection failure message from UI 2020-06-16 20:10:06 +10:00
Mitchell McCaffrey
49787b560d Added automatic party re-join for network error
and fixed bug with connections not being destroyed with network failure
2020-06-16 20:09:24 +10:00
Mitchell McCaffrey
693c2967cd Added allow close option to banner and fixed banner min width 2020-06-16 20:08:10 +10:00
Mitchell McCaffrey
f4d71cd6bf Add support for holes in fog subtraction 2020-06-14 12:27:05 +10:00
Mitchell McCaffrey
9eaece24e5 Added fog subtraction tool 2020-06-09 12:45:52 +10:00
Mitchell McCaffrey
7cc0e6cee0 Updated v1.3.2 reddit link 2020-06-07 11:59:17 +10:00
Mitchell McCaffrey
235dad9dbf Added await to token and map loading 2020-06-07 11:40:14 +10:00
Mitchell McCaffrey
25a5d24cf5 Bump version 2020-06-07 11:25:19 +10:00
Mitchell McCaffrey
a17a041677 Added release notes for v1.3.2 2020-06-07 11:25:14 +10:00
Mitchell McCaffrey
73aec132e7 Fixed bug with large map sizes 2020-06-07 11:19:32 +10:00
Mitchell McCaffrey
f4a6252360 Updated v1.3.1 reddit link 2020-05-31 19:14:55 +10:00
Mitchell McCaffrey
2252cceb96 Bump version to 1.3.1 2020-05-31 18:53:46 +10:00
Mitchell McCaffrey
443aff8e4d Added 1.3.1 release notes 2020-05-31 18:53:35 +10:00
Mitchell McCaffrey
74fb6a2c37 Fixed padding bottom on footer for ios 2020-05-31 18:30:23 +10:00
Mitchell McCaffrey
faddf03ecf Added show map grid option to maps 2020-05-31 16:25:05 +10:00
Mitchell McCaffrey
0720a3df2b Added more visual to checkbox disabled 2020-05-31 16:24:39 +10:00
Mitchell McCaffrey
a5a2c1ac77 Add fill option to divider 2020-05-31 16:24:17 +10:00
Mitchell McCaffrey
98543f60eb Added log image helper function 2020-05-31 15:35:03 +10:00
Mitchell McCaffrey
7dac49f690 Fix fog undo disabling 2020-05-31 13:56:33 +10:00
Mitchell McCaffrey
337a769fe4 Changed map and fog erase to allow for multi item selection 2020-05-31 12:12:16 +10:00
Mitchell McCaffrey
55bf9e4d03 Added multiple simultaneous map and token upload support 2020-05-31 10:53:33 +10:00
Mitchell McCaffrey
31cdbbb8dd Fix bug with deleteing tokens that have been removed 2020-05-31 10:23:45 +10:00
Mitchell McCaffrey
708a8d3790 Updated 1.3 release notes with link 2020-05-29 09:33:59 +10:00
Mitchell McCaffrey
2b2d444e16 Updated 1.3 release notes 2020-05-29 09:13:32 +10:00
Mitchell McCaffrey
45d67be219 Initial v1.3.0 release notes 2020-05-29 08:49:23 +10:00
Mitchell McCaffrey
fb63af1ddd Bump version 2020-05-29 08:43:54 +10:00
Mitchell McCaffrey
7a927959d2 Fix hit test for token label and status 2020-05-29 07:50:03 +10:00
Mitchell McCaffrey
a4a8722de0 Reversed zoom direction 2020-05-29 07:36:11 +10:00
Mitchell McCaffrey
765c84389f Added async / await to dice texture loading
This should fix load issues with the dice tray being blank
Also turnned off the default texture flip so all textures are now unflipped by default
2020-05-28 18:08:26 +10:00
Mitchell McCaffrey
49c18e8cf7 Added hide in sidebar option for custom tokens 2020-05-28 16:23:20 +10:00
Mitchell McCaffrey
8864ef4494 Changed dice tray max width 2020-05-28 15:06:11 +10:00
Mitchell McCaffrey
a09e4f41ca I lied, this should fix the dice load issue 2020-05-28 15:06:01 +10:00
Mitchell McCaffrey
25d0491374 Actually actually fix dice initial load 2020-05-28 13:56:00 +10:00
Mitchell McCaffrey
df57f09080 Actually fix dice initial load 2020-05-28 13:32:55 +10:00
Mitchell McCaffrey
a229d190e4 Fix bug where dice tray doesn't show after load 2020-05-28 13:24:33 +10:00
Mitchell McCaffrey
b8e5554058 Moved dice folder 2020-05-28 13:06:33 +10:00
Mitchell McCaffrey
1e0f767e73 Fix bug with default dice for select dice modal 2020-05-28 13:02:51 +10:00
Mitchell McCaffrey
fc8c65e525 Removed unnesasary async from createDiceInstace and simplified dice meshes to reduce spawn delay 2020-05-28 12:51:42 +10:00
Mitchell McCaffrey
2775fc6e16 Changed dice scene name and added handlers for pointer cancel and leave 2020-05-28 12:25:20 +10:00
Mitchell McCaffrey
8432176014 Fix map scroll when modal open 2020-05-28 11:52:18 +10:00
Mitchell McCaffrey
5b269fe7d1 Added wood dice mesh variant and moved shared meshes 2020-05-28 11:48:18 +10:00
Mitchell McCaffrey
810366dd00 Updated preview images to be a higher resolution and added glass and gemstone dice 2020-05-28 09:53:52 +10:00
Mitchell McCaffrey
a567cee289 Disabled pointer events for dice tray results text 2020-05-27 18:41:34 +10:00
Mitchell McCaffrey
6f51fd8cbe Fix touch highlight for dice overlay 2020-05-27 16:39:53 +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
7f0b4e32af Separated dice loading and dice instance creation and added loading spinner for dice 2020-05-27 14:47:51 +10:00
Mitchell McCaffrey
da84f923d1 Added per dice physics properties 2020-05-27 14:01:12 +10:00
Mitchell McCaffrey
d4ec013df2 Zoom dice camera 2020-05-27 12:25:20 +10:00
Mitchell McCaffrey
293372a3e0 Change dice roll function to prevent overlaps 2020-05-27 12:17:53 +10:00
Mitchell McCaffrey
cf12ff22ed Added thickness to dice tray collision wall and roof 2020-05-27 12:04:28 +10:00
Mitchell McCaffrey
027fc480e1 Removed flex wrap from dice controls 2020-05-27 11:34:32 +10:00
Mitchell McCaffrey
b786b176b0 Added multiple dice tray sizes 2020-05-27 11:24:17 +10:00
Mitchell McCaffrey
0a5b33a69f Removed outline when dice tray is focused 2020-05-26 17:21:50 +10:00
Mitchell McCaffrey
f8fe7a2f2b Updated dice tray textures 2020-05-26 17:17:46 +10:00
Mitchell McCaffrey
5a2e0a53ed Fix map scroll with modals open 2020-05-26 15:44:41 +10:00
Mitchell McCaffrey
dec8fd3c2e Updated dice tray icon and fixed map interaction with select dice modal open 2020-05-26 15:43:46 +10:00
Mitchell McCaffrey
84b198c851 Added dice style select 2020-05-26 14:47:37 +10:00
Mitchell McCaffrey
c99e5bf5f8 Adjusted dice mass and friction and added velocity window for dice throwing 2020-05-26 10:57:12 +10:00
Mitchell McCaffrey
3be729d4a0 Added reset to dice physics when rerolling 2020-05-25 20:52:11 +10:00
Mitchell McCaffrey
70f68a9093 Fix dice momenent conflict on touch devices 2020-05-25 20:46:21 +10:00
Mitchell McCaffrey
fd5998ea17 Added dice tray resizing to match screen size 2020-05-25 20:37:17 +10:00
Mitchell McCaffrey
90e6e43c1d Merge branch 'release/v1.3.0' into feature/dice 2020-05-25 19:29:11 +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
012086745f Added more padding to token drag overlay to avoid problems with ios gesture bar 2020-05-25 17:25:45 +10:00
Mitchell McCaffrey
4299467757 Fix token menu open position bug with selecting the same token after movement 2020-05-25 16:35:48 +10:00
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
73c7ca91fa Fix token remove for touch devices 2020-05-25 13:12:30 +10:00
Mitchell McCaffrey
be7d6c5277 Moved to react spring for konva animations 2020-05-25 10:37:28 +10:00
Mitchell McCaffrey
b3b84d889b Added new members to state db upgrade removed duplicated field from token state
Matched token default id with map default id as map can't be changed
2020-05-24 15:18:30 +10:00
Mitchell McCaffrey
bbb9279228 Fix undefined error in token state sort 2020-05-24 13:32:49 +10:00
Mitchell McCaffrey
d96ec27c88 Remove console log in game 2020-05-24 13:32:33 +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
8b0013be08 Enable ICE trickling for faster connections 2020-05-22 22:22:22 +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
00c24c34a4 Added last edited by in default token state 2020-05-22 20:09:02 +10:00
Mitchell McCaffrey
0304236558 Removed unused draw functions 2020-05-22 18:21:21 +10:00
Mitchell McCaffrey
b6d6a16817 Fix capitilisation of default maps and tokens names 2020-05-22 18:11:45 +10:00
Mitchell McCaffrey
e188294aed Fix select token done button bug 2020-05-22 18:04:17 +10:00
Mitchell McCaffrey
6b176db914 Updated list token size to cover fit 2020-05-22 18:00:10 +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
6b675d8200 Increased token remove button size 2020-05-22 13:44:17 +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
05df26491f Renamed remove token icon 2020-05-21 22:57:05 +10:00
Mitchell McCaffrey
8b83fb8c67 Fix key in token status 2020-05-21 21:31:44 +10:00
Mitchell McCaffrey
07a5d95e4c Remove unused member in proxy token 2020-05-21 21:31:33 +10:00
Mitchell McCaffrey
daab80f45e Fix prevent interaction bug in map token 2020-05-21 21:31:15 +10:00
Mitchell McCaffrey
9ace933d30 Fix no interaction bug when closing token menu with enter 2020-05-21 20:58:17 +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
62476ce43e Added token size to token map menu 2020-05-20 15:44:28 +10:00
Mitchell McCaffrey
26b82cc782 Added default size to token modal 2020-05-20 12:37:29 +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
887bce81d1 Refactored peer sync logic to use the data providers 2020-05-19 22:15:08 +10:00
Mitchell McCaffrey
0f5f90faa6 Added custom token loading and replication 2020-05-19 19:03:36 +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
dff75614da Updated dragon token 2020-05-18 21:35:18 +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
7b12282b08 Added color to default tokens 2020-05-18 18:15:00 +10:00
Mitchell McCaffrey
f080b675dd Added new tokens and database upgrade 2020-05-18 16:31:32 +10:00
Mitchell McCaffrey
6e027cd9a3 Added continuous dice roll calculation and scene render sleep 2020-05-14 22:51:06 +10:00
Mitchell McCaffrey
d9c928dfcd Added dice clear and dice reroll 2020-05-14 18:13:12 +10:00
Mitchell McCaffrey
b57d10c6ef Added dice roll count 2020-05-14 16:48:13 +10:00
Mitchell McCaffrey
f2a17b3cca Fix dice controls for light theme 2020-05-14 15:06:14 +10:00
Mitchell McCaffrey
ebc24a51d1 Added proper dice results 2020-05-14 15:06:02 +10:00
Mitchell McCaffrey
975cc24f4c Added d100 2020-05-14 13:26:21 +10:00
Mitchell McCaffrey
2e3a733d4c Added random dice throwing when creating instances 2020-05-13 23:13:58 +10:00
Mitchell McCaffrey
e48e5481e1 Added more dice 2020-05-13 16:15:32 +10:00
Mitchell McCaffrey
c9f77313a2 Moved to new dice mesh and added remaining dice types 2020-05-12 23:49:35 +10:00
Mitchell McCaffrey
ba17aec263 Remove console log 2020-05-10 19:48:27 +10:00
Mitchell McCaffrey
f2ef63b36f Added v1.2.1 release notes 2020-05-10 19:40:48 +10:00
Mitchell McCaffrey
145b08d93f Added dice tray mesh 2020-05-10 16:13:15 +10:00
Mitchell McCaffrey
d8111de6cc Changed other dice icons to make different dice types temporarily 2020-05-10 16:11:23 +10:00
Mitchell McCaffrey
dd13208424 Changed blob to buffer fallback 2020-05-08 19:28:15 +10:00
Mitchell McCaffrey
fbad2cfa46 Added dice add icons and moved dice tray controls to seperate component 2020-05-08 17:08:47 +10:00
Mitchell McCaffrey
fee7a270e4 Added expand controls to map dice 2020-05-08 15:09:40 +10:00
Mitchell McCaffrey
07e85f46a3 Move dice to overlay and move map interaction to prevent map movement while interacting with dice 2020-05-08 14:22:02 +10:00
Mitchell McCaffrey
0a71609105 Added babylonjs, ammojs, dice models and simple dice interaction 2020-05-08 12:56:36 +10:00
Mitchell McCaffrey
e73f64a3b5 Removed breakpoint in connection markdown 2020-05-08 12:07:00 +10:00
Mitchell McCaffrey
7676797337 Added release notes, markdown renderer and converted FAQ to markdown 2020-05-07 22:29:31 +10:00
Mitchell McCaffrey
43504518ed Bump version 2020-05-04 00:14:26 +10:00
Mitchell McCaffrey
79b46e0b5a Moved urls to environment and turn server retreval 2020-05-03 23:18:45 +10:00
Mitchell McCaffrey
16b27a7058 Fixed upgrade function 2020-05-03 22:12:39 +10:00
Mitchell McCaffrey
17c82861f6 Added database upgrade for blob map files and refactored back to database file 2020-05-03 19:52:01 +10:00
Mitchell McCaffrey
d075ab5faa Removed unused code 2020-05-03 18:40:31 +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
05d5c76c86 Moved to msgpack instead of js-binarypack 2020-05-03 10:44:26 +10:00
Mitchell McCaffrey
ca0240351c Moved to storing maps as uint arrays instead of blobs 2020-05-01 17:37:01 +10:00
Mitchell McCaffrey
86450a04db Added loading spinner to map load 2020-04-30 22:08:03 +10:00
Mitchell McCaffrey
bf9c87341a Moved to new socket server 2020-04-30 21:58:14 +10:00
Mitchell McCaffrey
ce11021e9f Fix bug with dropping token onto empty map 2020-04-30 16:40:17 +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
05a13acf8b Added back state restoration on map modal open 2020-04-30 15:15:12 +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
0d2b6bf4b0 Removed unused map select code 2020-04-30 14:40:05 +10:00
Mitchell McCaffrey
67deb67979 Fixed map sorting 2020-04-30 14:36:36 +10:00
Mitchell McCaffrey
fa800d81bb Add clear cache button 2020-04-30 14:24:47 +10:00
Mitchell McCaffrey
87952491f0 Temp work around of safari map load bug 2020-04-30 14:24:26 +10:00
Mitchell McCaffrey
d066b262fa Implemented own blob to buffer function, fixed permission bug by creating copy of map file 2020-04-30 14:24:03 +10:00
Mitchell McCaffrey
58bee3085d Added owner to map and token keys, added map cache 2020-04-30 11:25:33 +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
2cac27945c Changed brush stroke icon to match brush icon 2020-04-29 09:29:01 +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
Mitchell McCaffrey
c73b099567 Re-added grid settings to fog tools 2020-04-28 17:03:17 +10:00
Mitchell McCaffrey
cd4573770e Removed old gesture data 2020-04-28 17:02:41 +10:00
Mitchell McCaffrey
bebd6ae737 Changed blend on icon to match blend off 2020-04-28 11:33:44 +10:00
Mitchell McCaffrey
b3bf3c3598 Made grid snapping have a threshold and removed the option to toggle it on and off 2020-04-28 11:31:01 +10:00
Mitchell McCaffrey
734b966a53 Moved drawing functions into the drawing helper 2020-04-28 11:04:54 +10:00
Mitchell McCaffrey
581ddf12aa Added smoothing to path drawing 2020-04-28 10:33:09 +10:00
Mitchell McCaffrey
c3ed55e5e8 Fixed erase for stroked paths 2020-04-28 10:14:45 +10:00
Mitchell McCaffrey
81f84d8a19 Added shape drawing and more vector helper functions 2020-04-27 21:39:21 +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
Mitchell McCaffrey
3112890fd3 Fixed settings update delay 2020-04-26 20:48:01 +10:00
Mitchell McCaffrey
079f3704d4 Fix performance issues with settings map name change 2020-04-26 19:45:36 +10:00
Mitchell McCaffrey
f371a62a04 Fix memory async error with map tile double click and default map selection bug 2020-04-26 19:22:30 +10:00
Mitchell McCaffrey
29f13262ff Adjusted spacing on map settings 2020-04-26 19:21:44 +10:00
Mitchell McCaffrey
adfd5b07a3 Removed unused import 2020-04-26 19:21:25 +10:00
Mitchell McCaffrey
4f5f4706c6 Added light theme 2020-04-26 19:04:18 +10:00
Mitchell McCaffrey
506f0287ab Fix map controls divider 2020-04-26 19:03:57 +10:00
Mitchell McCaffrey
b691842a21 Fixed key issue with fragment 2020-04-26 18:33:28 +10:00
Mitchell McCaffrey
9498ff9866 Fix file input bug for the same file twice 2020-04-26 18:29:21 +10:00
Mitchell McCaffrey
1efd918af4 Added settings modal and reset data 2020-04-26 18:24:05 +10:00
Mitchell McCaffrey
7baf808079 Moved nickname into auth and user data into db 2020-04-26 17:59:46 +10:00
Mitchell McCaffrey
568a2d6877 Removed console log 2020-04-26 17:25:13 +10:00
Mitchell McCaffrey
297669173a Added a show more toggle to map settings 2020-04-26 17:25:04 +10:00
Mitchell McCaffrey
a07b95ec2d reload maps every time the select map modal is opened 2020-04-26 17:12:15 +10:00
Mitchell McCaffrey
fbdb68596e Added permissions functionality 2020-04-26 14:34:27 +10:00
Mitchell McCaffrey
4c65aac189 Added map name and map state edit flags to map settings 2020-04-26 13:47:54 +10:00
Mitchell McCaffrey
010d637e0e Refactored map settings 2020-04-26 12:57:36 +10:00
Mitchell McCaffrey
30e4a4c73f Added name display to tile 2020-04-26 12:39:56 +10:00
Mitchell McCaffrey
4c667e9c5f Added name to map and added default props 2020-04-26 12:26:32 +10:00
Mitchell McCaffrey
049a8f5c00 Fix map state update in game 2020-04-26 12:25:07 +10:00
Mitchell McCaffrey
d8f8fb6059 Removed owner data from map state 2020-04-26 11:37:03 +10:00
Mitchell McCaffrey
671c8d7bf7 Fixed unused map source being set on peer map data 2020-04-25 00:43:15 +10:00
Mitchell McCaffrey
6e8cb833aa Moved map tiles to simple scroll 2020-04-25 00:42:23 +10:00
Mitchell McCaffrey
4eec22d922 Merge branch 'master' into feature/multi-map 2020-04-25 00:11:13 +10:00
Mitchell McCaffrey
e705ab2706 Fix nested a tag 2020-04-25 00:10:53 +10:00
Mitchell McCaffrey
485595f7c8 Merge branch 'master' into feature/multi-map 2020-04-25 00:08:54 +10:00
Mitchell McCaffrey
ad7c1fc8c7 Moved to browser routing 2020-04-25 00:02:06 +10:00
Mitchell McCaffrey
57a0977e21 Bump version 2020-04-24 23:18:36 +10:00
Mitchell McCaffrey
e978aabd15 Fix map sorting in select map modal 2020-04-24 18:41:39 +10:00
Mitchell McCaffrey
ece974c5d9 Split tokens into data and state to avoid data duplication 2020-04-24 18:39:11 +10:00
Mitchell McCaffrey
65478d555b Added user id and owner model for map state and tokens db table 2020-04-24 17:53:42 +10:00
Mitchell McCaffrey
a4e1a898ad Send a map clear before replace to ensure new state isn't show on old image 2020-04-24 16:18:48 +10:00
Mitchell McCaffrey
db8e0c14fb Fix bug with map staying live after deletion 2020-04-24 16:18:17 +10:00
Mitchell McCaffrey
ed8f3bd283 Moved maps and tokens to a data source model
This will allow for easier custom token support as well as changing default tokens
2020-04-24 15:50:05 +10:00
Mitchell McCaffrey
98798235c9 Added quick map select with double click 2020-04-23 22:12:50 +10:00
Mitchell McCaffrey
5539fcf16a Fix selectMapButton name and a bug with deleting a map that isn't the current one 2020-04-23 21:54:58 +10:00
Mitchell McCaffrey
81da404eec Changed map and map state send order on sync 2020-04-23 21:20:06 +10:00
Mitchell McCaffrey
6f2e883e74 Moved default maps to being stored in the database to stop overriding 2020-04-23 21:19:52 +10:00
Mitchell McCaffrey
10c259a6b3 Added state to default maps and added clear state option to map tile 2020-04-23 20:32:33 +10:00
Mitchell McCaffrey
6f0df1c674 Made the add map icon larger and changed to select map 2020-04-23 18:01:40 +10:00
Mitchell McCaffrey
25b215d4e4 Added map state to the database 2020-04-23 17:23:34 +10:00
Mitchell McCaffrey
071cd3ea7f Added an indexedb database to store uploaded maps into 2020-04-23 15:02:03 +10:00
Mitchell McCaffrey
8681864ddc Added sending of default maps 2020-04-23 13:31:54 +10:00
Mitchell McCaffrey
22c5b5cf75 Added multiple map layout and basic data flow 2020-04-23 11:54:29 +10:00
Mitchell McCaffrey
f2a92f2ccd Refactored component folder structure to be a little clearer 2020-04-23 10:09:12 +10:00
Mitchell McCaffrey
65c3620732 Bump version 2020-04-21 20:10:00 +10:00
Mitchell McCaffrey
8a9c50f44c Fix circle gesture on non square images 2020-04-21 20:06:52 +10:00
Mitchell McCaffrey
0e8e4a45d5 Added check for null gesture 2020-04-21 20:03:56 +10:00
Mitchell McCaffrey
96efcfd5de Fix bug with concurrent token updates 2020-04-21 18:01:45 +10:00
Mitchell McCaffrey
3c204377d6 Added a new method for calculating the gesture triangle shape
and moved gesture data to a separate file
2020-04-21 17:05:38 +10:00
Mitchell McCaffrey
8f1bcf3806 Added more training data for gesture recognizer 2020-04-21 13:31:55 +10:00
Mitchell McCaffrey
ce1a252b2e Moved to a more compact representation of other gesture shapes in the shape data
Also renamed square to rectangle
2020-04-21 10:04:26 +10:00
Mitchell McCaffrey
a5011b58ac Added aria-labels to color pickers 2020-04-20 23:54:07 +10:00
Mitchell McCaffrey
d2474ae198 Added brush blending and brush gesture options 2020-04-20 23:52:21 +10:00
Mitchell McCaffrey
36c3e76403 Moved map controls again 2020-04-20 17:30:59 +10:00
Mitchell McCaffrey
06d232f058 Move map menu from right side a little 2020-04-20 17:28:30 +10:00
Mitchell McCaffrey
0a1aed30b3 Fixed a possible bug with callbacks and map menus
also made it so clicking on a map control button with a sub menu open will close it
2020-04-20 17:25:40 +10:00
Mitchell McCaffrey
35523fd8ce Fix grid off and on icons not being selectable 2020-04-20 16:45:33 +10:00
Mitchell McCaffrey
0b7c8d6c56 Added map grid size detection from file name 2020-04-20 16:34:38 +10:00
Mitchell McCaffrey
eeaa250ca2 Added background color to menu to make it easier to see on a light background 2020-04-20 15:47:52 +10:00
Mitchell McCaffrey
06f5d3ab42 Added auto switch away from a disabled tool 2020-04-20 15:31:54 +10:00
Mitchell McCaffrey
77df9b6f35 Added icon to erase all submenu 2020-04-20 15:26:36 +10:00
Mitchell McCaffrey
5fa143293c Fix grid off icon name 2020-04-20 15:20:09 +10:00
Mitchell McCaffrey
d4f8433bb1 Added brush grid snapping 2020-04-20 15:17:56 +10:00
Mitchell McCaffrey
6fb2e9f113 Changed map data grid size labelling and fixed ui labels 2020-04-20 14:49:38 +10:00
Mitchell McCaffrey
91537a9477 Fixed interactjs events from being defined multiple times 2020-04-20 13:41:11 +10:00
Mitchell McCaffrey
91c95b4fad Added prevention from drawing single point shapes 2020-04-20 13:03:54 +10:00
Mitchell McCaffrey
f5d1cdf60f Added map control submenus for brush color and erase all 2020-04-20 11:56:56 +10:00
Mitchell McCaffrey
27d3903e66 Refactored token menu overlay into two components 2020-04-20 10:56:51 +10:00
Mitchell McCaffrey
ef369f4866 Added more color options to map colors 2020-04-20 10:40:53 +10:00