AgentMaps icon indicating copy to clipboard operation
AgentMaps copied to clipboard

agentmaps.js un-minifying

Open omi-akif opened this issue 5 years ago • 2 comments
trafficstars

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.

omi-akif avatar Mar 28 '20 07:03 omi-akif

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.

noncomputable avatar Mar 28 '20 07:03 noncomputable

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.

omi-akif avatar Mar 29 '20 14:03 omi-akif