This is a port to JavaScript of some of Mike Chmutov's Java code for the Affine Matrix Ball Construction algorithm. The original code can be found here: https://github.com/mchmutov/AMBC. The drawing code and the code to run the webpages are borrowed from the pages on my site: https://devragj.github.io/. Two papers describing the Affine Matrix Ball Construction can be found at these links: Matrix-Ball Construction of affine Robinson-Schensted correspondence, Monodromy in Kazhdan-Lusztig cells in affine type A. The second paper has a more condensed description of the algorithm.
The first page linked to below runs the AMBC algorithm. The second page runs the algorithm in reverse.
Please contact me at devra.johnson at verizon.net.