noncomputable / AgentMaps

Make social simulations on real maps! Agent-based modeling for the web.
https://noncomputable.github.io/AgentMaps/
BSD 2-Clause "Simplified" License
914 stars 40 forks source link

agentmaps.js un-minifying #8

Open omi-akif opened 4 years ago

omi-akif commented 4 years ago

I wanted to see the code of agentmaps.js un-minified to work on path finding algorithms. I am very new to javascript. Please overlook my ignorance. While I was working on unminifying, the beautifiers do not un-minify the strings of eval functions.

The minified file is very hard to read and understand. Can I know what tool did you use to minify the agentmaps.js file. And, is there any way I can unminify the agentmaps.js file?

I tried very hard to unminify it, but I cannot find any tool that properly beautifies the code with proper indentation.

noncomputable commented 4 years ago

Hi Omi,

I used Webpack to bundle and minify AgentMaps. You might be able to debundle it, but I suggest editing the original source and then bundling your modified version, instead of trying to edit the published bundle directly.

omi-akif commented 4 years ago

Thank you so much. I was able to generate the same agentmaps.js from the source using Webpack. It was really a great help. I can now work on the path-finding algorithms.