We decided to port this algorithm to javascript to be able to use it in different components.
This PR also contains a general cleanup: I added karma tests, wrote some unit tests that helped refactoring, fixed whitespaces here and there.
Please note the lack of typings in most of the new functionality: The reasons I decided to leave that out is that the actual algorithm will be ported to Escher, which has no TS set up (although I find it a brilliant idea to add it there). And also the project lacks types in general, and it seemed like a lot of effort.
what changes and why?
We decided to port this algorithm to javascript to be able to use it in different components.
This PR also contains a general cleanup: I added karma tests, wrote some unit tests that helped refactoring, fixed whitespaces here and there.
Please note the lack of typings in most of the new functionality: The reasons I decided to leave that out is that the actual algorithm will be ported to Escher, which has no TS set up (although I find it a brilliant idea to add it there). And also the project lacks types in general, and it seemed like a lot of effort.