From 503eabd9d4d51b2abce3cbd14eb4690c334a8ece Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efruz=20Y=C4=B1ld=C4=B1r=C4=B1r?= <30903352+yldrefruz@users.noreply.github.com> Date: Wed, 26 Jan 2022 17:16:54 +0300 Subject: [PATCH] Api-Like map save option (#730) * Added Save Option for Api-like json export. Will be updated and set to a scheme * Save Option for Api-like added * Moved UI of json export to export dialog. Moved json export to another file named export-json.js * Added Seperated json export selections - all JSON : exports all json data. - minimal JSON : exports json data without cells data. - cells JSON : exports json data only with pack.cells data. * More Stable Cell Export... --- .gitignore | 4 +- index.html | 9 +- modules/export-json.js | 362 +++++++++++++++++++++++++++++++++++++++++ modules/save.js | 2 + 4 files changed, 375 insertions(+), 2 deletions(-) create mode 100644 modules/export-json.js diff --git a/.gitignore b/.gitignore index eb169d8d..8cd42a0d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .bat -.vscode \ No newline at end of file +.vscode +.idea +.idea/Fantasy-Map-Generator.iml diff --git a/index.html b/index.html index ebb2b775..871503bf 100644 --- a/index.html +++ b/index.html @@ -978,7 +978,7 @@ - + @@ -3607,6 +3607,12 @@

GeoJSON format is used in GIS tools such as QGIS. Check out wiki-page for guidance.

Generator uses pop-up window to download files. Please ensure your browser does not block popups.

It's also possible to export map to Foundry VTT, see the module.

+
Export To Json
+
+ + + +