Commit Graph

1427 Commits

Author SHA1 Message Date
Mitchell McCaffrey
805e53a1dd Adjust note and token label auto sizing to work on Firefox Windows 2021-06-20 12:48:52 +10:00
Mitchell McCaffrey
296a0a02e6 Remove grid from default maps 2021-06-20 10:33:30 +10:00
Mitchell McCaffrey
1f2c70a612 Change measure tool to use full snapping to grid center and add exact euclidean measurements 2021-06-19 09:36:00 +10:00
Mitchell McCaffrey
bfc9c4fba3 Handle edge cases with image outline (semi-transparency, tiny pieces and errors) 2021-06-18 13:11:29 +10:00
Mitchell McCaffrey
5e69ffcef8 Refactor lazy tile to not include sortable rendering 2021-06-18 10:48:52 +10:00
Mitchell McCaffrey
264e298e25 Add token default size from import file name 2021-06-17 12:09:18 +10:00
Mitchell McCaffrey
e352cadaea Add conditional rendering to token status and label 2021-06-17 11:39:41 +10:00
Mitchell McCaffrey
78dac55d7a Fix selection of text when 3D touching a token on iOS 2021-06-17 11:30:06 +10:00
Mitchell McCaffrey
4e2d14e7ac Fix select not scrolling container 2021-06-17 11:16:32 +10:00
Mitchell McCaffrey
b1a0ce7668 Change light theme highlight colour to be more readable 2021-06-17 11:16:11 +10:00
Mitchell McCaffrey
cfd4c163e2 Update edit modal padding to match select screen 2021-06-17 11:11:21 +10:00
Mitchell McCaffrey
09d3023d7a Add text area auto size for notes 2021-06-17 11:05:25 +10:00
Mitchell McCaffrey
bc97f4838a Optimised re-renders with sortable tiles 2021-06-15 20:08:45 +10:00
Mitchell McCaffrey
6b927b4456 Fix bug with importing single item from groups 2021-06-15 08:45:08 +10:00
Mitchell McCaffrey
63a809592e Fix importing with not all groups exported 2021-06-14 17:51:07 +10:00
Mitchell McCaffrey
a997641628 Move token bar to use grid over flex 2021-06-14 17:07:15 +10:00
Mitchell McCaffrey
53be182b1c Add lazy loading for tiles and token bar tokens 2021-06-14 17:06:57 +10:00
Mitchell McCaffrey
f0d93abd31 Fix token bar token titles 2021-06-14 15:50:48 +10:00
Mitchell McCaffrey
1e26193457 Optimise token database sync and add loading indicator for multiple token hiding 2021-06-14 15:18:07 +10:00
Mitchell McCaffrey
0fbd837449 Fix global image drop outside triggering drag end 2021-06-14 13:47:21 +10:00
Mitchell McCaffrey
63421f824a Fix fog useCallback dependency 2021-06-14 12:21:08 +10:00
Mitchell McCaffrey
64dfb17fa1 Move mouse tile drag to a distance constraint 2021-06-14 12:20:06 +10:00
Mitchell McCaffrey
265f04fc0a Add toasts for unable to draw fog errors 2021-06-14 11:57:08 +10:00
Mitchell McCaffrey
1eed2eb15d Fix token preview rendering for token groups 2021-06-12 21:25:03 +10:00
Mitchell McCaffrey
359be5373b Fix edit modal save buttons click 2021-06-12 21:00:30 +10:00
Mitchell McCaffrey
c079a8068f Update v1.9.0.md 2021-06-12 20:55:19 +10:00
Mitchell McCaffrey
d0fba917a2 Add custom intersection for token vehicles using their outline 2021-06-12 20:53:40 +10:00
Mitchell McCaffrey
e81430be80 Add try catch to erase data button 2021-06-12 19:00:01 +10:00
Mitchell McCaffrey
e73d6d8317 Refactor token outline and add SVG option for token bar image previews 2021-06-12 18:40:02 +10:00
Mitchell McCaffrey
870d2de5de Fix dice tile rendering 2021-06-12 14:31:09 +10:00
Mitchell McCaffrey
458feeec9e Move map and token settings to match the group overlay visual 2021-06-12 14:30:54 +10:00
Mitchell McCaffrey
495fa84cb5 Fix map grid settings showing with an invalid grid 2021-06-12 13:17:46 +10:00
Mitchell McCaffrey
3d74dfc88a Fix grid editor mutably changing grid state 2021-06-12 13:14:46 +10:00
Mitchell McCaffrey
833f0082ba Fix grid cell pixel size being set to Infinity 2021-06-12 13:14:21 +10:00
Mitchell McCaffrey
0bf911675c Add more vertical margin to Markdown rendering and change embed to image tag 2021-06-11 17:30:10 +10:00
Mitchell McCaffrey
44aa4d694a Add 1.9.0 Release Notes 2021-06-11 17:15:50 +10:00
Mitchell McCaffrey
52fad1171a Remove worker loading from map and token data contexts 2021-06-11 15:38:23 +10:00
Mitchell McCaffrey
159627072d Remove delete restriction for default maps and tokens 2021-06-11 15:33:14 +10:00
Mitchell McCaffrey
dab655935f Add group support for import/export data 2021-06-11 15:21:08 +10:00
Mitchell McCaffrey
183c7db1a6 Add group support to SelectDataModal 2021-06-11 12:20:22 +10:00
Mitchell McCaffrey
4bfe49f454 Optimisation to tile rendering 2021-06-10 20:08:11 +10:00
Mitchell McCaffrey
fa8d081079 Hide tile overlay immediately when closed 2021-06-10 20:07:40 +10:00
Mitchell McCaffrey
b75db97c26 Add custom drag context wrapper to inject the overlay rect on drag end 2021-06-10 18:04:32 +10:00
Mitchell McCaffrey
5727bade36 Fix bug with pre v1.9.0 import not changing token state ownership 2021-06-10 16:13:19 +10:00
Mitchell McCaffrey
78461cb62f Fix bug with asset manifest not including other users custom assets 2021-06-10 16:12:32 +10:00
Mitchell McCaffrey
d996a81c96 Fix asset db upgrade not having owners 2021-06-10 16:03:17 +10:00
Mitchell McCaffrey
6013d839bb Add token outline generation to db versions 2021-06-10 15:06:11 +10:00
Mitchell McCaffrey
4b67071919 Replace token image cache with token outline hit function
Saves 70% perf on scroll then zoom with 100+ tokens
2021-06-10 11:16:47 +10:00
Mitchell McCaffrey
3d42b62b74 Add shape detection to token outline creation 2021-06-10 11:02:54 +10:00
Mitchell McCaffrey
21986231fa Add prevent select helper to stop highlighting UI elements on drag with touch devices 2021-06-09 23:25:28 +10:00
Mitchell McCaffrey
8b0ee7075d Fix tile droppable rendering on Safari 2021-06-09 23:24:24 +10:00
Mitchell McCaffrey
a8c355f251 Fix tile drag cancel with modal open 2021-06-09 10:33:47 +10:00
Mitchell McCaffrey
63f77059f1 Update TokenSettings.js 2021-06-09 09:51:00 +10:00
Mitchell McCaffrey
1d2696228b Standardise settings select margins 2021-06-09 09:47:39 +10:00
Mitchell McCaffrey
ee34c599da Add remove group items for maps and tokens 2021-06-09 09:29:32 +10:00
Mitchell McCaffrey
1ec67c7a0f Fix map tile add to map drag bug 2021-06-09 08:35:53 +10:00
Mitchell McCaffrey
387ecd6fd7 Fix modal inset for safari 2021-06-09 08:32:58 +10:00
Mitchell McCaffrey
50ce2ee123 Remove tile global position collision work around 2021-06-08 23:53:27 +10:00
Mitchell McCaffrey
57cce9346d Fix drag and drop add to map bugs with scrolled tile grid 2021-06-08 23:46:20 +10:00
Mitchell McCaffrey
2088c2ab04 Fix global image drop zIndex 2021-06-07 22:27:28 +10:00
Mitchell McCaffrey
3ef61cac26 Styled global drop and allow for adding to map on drop 2021-06-07 22:25:36 +10:00
Mitchell McCaffrey
eb9afcc66a Refactor image drop and to a hook and move global image drop 2021-06-07 21:08:14 +10:00
Mitchell McCaffrey
98f7744c1f Add a global image drop for dropping directly to the map screen 2021-06-06 21:04:46 +10:00
Mitchell McCaffrey
4e7ed1d625 Add better optional handling to db error handler 2021-06-06 19:27:23 +10:00
Mitchell McCaffrey
acaf580ac7 Add error toasts for image drag and more restrictive image mime type rejection 2021-06-06 19:27:01 +10:00
Mitchell McCaffrey
7d1cff7358 Fix custom token loading for players 2021-06-06 11:03:07 +10:00
Mitchell McCaffrey
9d9fd5b753 Allow editing of default map and tokens and add default label setting 2021-06-06 10:24:56 +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
27c68b499d Add back group names 2021-06-05 18:05:35 +10:00
Mitchell McCaffrey
05f68dcb92 Add back range tile select 2021-06-05 17:16:39 +10:00
Mitchell McCaffrey
5f98b318b5 Remove old group modal 2021-06-05 16:38:28 +10:00
Mitchell McCaffrey
7b5bbcf05d Remove unused map data update function 2021-06-05 16:38:18 +10:00
Mitchell McCaffrey
e3353c1c44 Add back tile search and action bar 2021-06-05 16:38:01 +10:00
Mitchell McCaffrey
d6b6d6a1eb Hide token bar group if all items are hidden and only add visible tokens on drag 2021-06-05 14:46:14 +10:00
Mitchell McCaffrey
5347e30b98 Move to a delayed asset cleanup function to fix bugs with custom token group images 2021-06-05 14:40:44 +10:00
Mitchell McCaffrey
20351ff097 Add min height to token bar group 2021-06-05 14:19:55 +10:00
Mitchell McCaffrey
adce6ae7da Allow the hiding of default tokens 2021-06-05 13:38:01 +10:00
Nicola Thouliss
bfd0529207 Added all files successfully converted 2021-06-05 13:35:31 +10:00
Mitchell McCaffrey
e22c614150 Add a token tile hidden badge 2021-06-05 13:34:17 +10:00
Mitchell McCaffrey
34461a7899 Change TileDragProvider cursor 2021-06-05 13:04:56 +10:00
Mitchell McCaffrey
5db2b30bc1 Add default props to GroupProvider 2021-06-05 13:04:26 +10:00
Mitchell McCaffrey
1a34dc756a Add token edit bar back 2021-06-05 13:04:12 +10:00
Mitchell McCaffrey
0f2776d774 Add back map edit bar and refactor select map modal edit functions 2021-06-04 21:54:26 +10:00
Mitchell McCaffrey
e508511ab5 Add check for vertical in token drag map bounds 2021-06-03 16:06:15 +10:00
Mitchell McCaffrey
597141d7fb Add token group drag from token bar 2021-06-03 16:05:57 +10:00
Mitchell McCaffrey
1ae9ce06cb Add more efficient method of adding multiple tokens to the map at once 2021-06-03 12:42:19 +10:00
Mitchell McCaffrey
0a03387bf4 Change drag cursors to grab and show no-drag cursor if needed 2021-06-03 12:25:23 +10:00
Nicola Thouliss
c590adf836 Converted /components/banner to typescript 2021-06-02 19:08:36 +10:00
Nicola Thouliss
ecc4f67f37 Converted /modals to typescript 2021-06-02 19:03:01 +10:00
Nicola Thouliss
32f6e1fb23 Converted /ml folder to typescript 2021-05-29 14:20:24 +10:00
Mitchell McCaffrey
bac3101886 Add ability to drag and drop a tile onto the map and added better drag cursors 2021-05-28 17:06:20 +10:00
Mitchell McCaffrey
f84baab6fb Add workaround for token bar token placement 2021-05-28 15:11:46 +10:00
Mitchell McCaffrey
57aafce938 Add support for ungrouping tiles and refactor tile drag functions 2021-05-28 13:13:21 +10:00
Nicola Thouliss
349cad53a2 Converted assets index.js to typescript 2021-05-28 12:37:33 +10:00
Mitchell McCaffrey
456f91c9ae Move tile container background to stay with scrolled content 2021-05-27 17:37:59 +10:00
Mitchell McCaffrey
69eafb868c Ensure order of selected tiles is kept when moving them 2021-05-27 17:19:36 +10:00
Mitchell McCaffrey
dd130a008e More changes to dexie observable change helper 2021-05-27 17:19:02 +10:00
Nicola Thouliss
b9d003196a Converted more files to typescript 2021-05-27 17:14:54 +10:00
Nicola Thouliss
6f28db0789 Converted icons to typescript 2021-05-27 16:21:21 +10:00
Mitchell McCaffrey
3b3e9fba97 Fix an issue with dexie observable change helper 2021-05-27 15:47:35 +10:00
Mitchell McCaffrey
653dc2b963 Updated group drag overlay to be more compact 2021-05-27 15:46:14 +10:00
Mitchell McCaffrey
10808fe516 Fix TokenBarGroup collapsed image drag 2021-05-25 18:13:39 +10:00
Mitchell McCaffrey
d053bb48f3 Add group support for token bar 2021-05-25 18:07:10 +10:00
Mitchell McCaffrey
0d026d3710 Remove unused column property from TokenTileGroup 2021-05-25 18:06:57 +10:00
Mitchell McCaffrey
cd498167aa Handle refs properly for token and map images 2021-05-25 18:06:26 +10:00
Nicola Thouliss
86f15e9274 Added types to helpers 2021-05-25 17:35:26 +10:00
Mitchell McCaffrey
d55514ef7c Refactor map and token image 2021-05-25 16:56:37 +10:00
Mitchell McCaffrey
71b8aeec6c Add multi selection to tile grouping 2021-05-25 15:47:52 +10:00
Mitchell McCaffrey
68a084ebc9 Optimise sortable tile over detection and disable adding groups to groups 2021-05-24 17:44:49 +10:00
Mitchell McCaffrey
82f3a985f2 Added transition to modal open 2021-05-24 17:28:57 +10:00
Mitchell McCaffrey
4e5bd8bf02 Add animation to group open 2021-05-24 17:11:46 +10:00
Mitchell McCaffrey
0917ef05a1 Rename select helper to group 2021-05-24 15:17:23 +10:00
Mitchell McCaffrey
b776b86186 Refactored group functions into common context and added group overlay 2021-05-24 13:34:21 +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
549ecbf65a Fix rendering of sub groups in group tiles 2021-05-21 16:14:11 +10:00
Mitchell McCaffrey
f496adae1d Fix drop overlay with single rowed grids 2021-05-21 16:12:32 +10:00
Mitchell McCaffrey
db460b2a4a Add creation of groups with drop 2021-05-21 16:12:09 +10:00
Mitchell McCaffrey
9c04a28c38 Add border around tile group drop over 2021-05-21 15:30:13 +10:00
Mitchell McCaffrey
9f5d0b8283 Add support for group visual with sortable tiles 2021-05-21 15:12:25 +10:00
Mitchell McCaffrey
d34cd98fa9 Added support for recursive groups in helper function 2021-05-20 14:01:17 +10:00
Mitchell McCaffrey
19a2668644 Even up group tile padding and fix light theme badge colour 2021-05-20 13:50:19 +10:00
Mitchell McCaffrey
3a68c47de6 Remove blank rect from map fog 2021-05-20 12:22:22 +10:00
Mitchell McCaffrey
ef73ca0179 Make tile groups selectable 2021-05-20 12:22:07 +10:00
Mitchell McCaffrey
05968c1964 Add sub groups to group table 2021-05-14 18:02:50 +10:00
Mitchell McCaffrey
ab800150ec Remove group from default tokens 2021-05-14 18:01:00 +10:00
Nicola Thouliss
e0e90ff0e5 Added dedupe integration to sentry in index.js 2021-05-14 14:16:26 +10:00
Mitchell McCaffrey
2b8bc11b5c Update useAssetURL to avoid database access when not needed 2021-05-13 16:28:02 +10:00
Mitchell McCaffrey
2ac3fcf5fb Added groups to database populate 2021-05-13 16:27:21 +10:00
Mitchell McCaffrey
954089fbe5 Remove droppable from map 2021-05-13 16:27:07 +10:00
Mitchell McCaffrey
aece31f89a Refactored to shared sortable tiles 2021-05-13 16:26:59 +10:00
Mitchell McCaffrey
ac50b91d2b Update token background 2021-05-09 19:18:03 +10:00
Mitchell McCaffrey
31ef21a588 Move sortable to drag overlay 2021-05-09 19:17:55 +10:00
Mitchell McCaffrey
5a6bfd8a60 Remove unknown source from token preview 2021-05-09 19:17:37 +10:00
Mitchell McCaffrey
d0531e3f10 Remove unused file 2021-05-09 12:04:41 +10:00
Mitchell McCaffrey
140ac7d61c Add sort to token and map tiles and refactor 2021-05-09 12:04:31 +10:00
Mitchell McCaffrey
e1f5cb3014 Remove unused number input component 2021-05-06 15:08:12 +10:00
Mitchell McCaffrey
8aa3bda90d Move drag and drop to dnd-kit 2021-05-06 15:04:53 +10:00
Mitchell McCaffrey
bd522017a7 Rename token bar 2021-05-01 14:32:02 +10:00
Mitchell McCaffrey
f419029d56 Add default maps and tokens to db and split db upgrade into new file 2021-05-01 12:54:00 +10:00
Mitchell McCaffrey
2b342480a8 Migrate import/export to asset model 2021-04-30 14:05:12 +10:00
Mitchell McCaffrey
a3d22ba323 Fix token state upgrade for v1.9.0 2021-04-30 14:04:45 +10:00
Mitchell McCaffrey
a91d559ba6 Remove cache functions from map and tokens and add to assets 2021-04-30 11:56:37 +10:00
Mitchell McCaffrey
fa94275ac8 Remove unknown source from map and token tiles 2021-04-30 11:55:21 +10:00
Mitchell McCaffrey
f844199172 Implement asset clear cache and remove cache when upgrading to 1.9 2021-04-30 09:55:05 +10:00
Mitchell McCaffrey
04cf5687dd Delete assets with maps and token 2021-04-30 09:54:35 +10:00
Mitchell McCaffrey
acbb00dc5b Fix map size label in map settings 2021-04-29 16:38:33 +10:00
Mitchell McCaffrey
71edf5c5c5 Add thumbnail sending to assets for map grid 2021-04-29 15:44:57 +10:00
Mitchell McCaffrey
0ccee84cbf Changed asset loading bar to show progress as a group of assets 2021-04-29 13:49:39 +10:00