Adjust the code of meclib.js to JS coding standards.
replace var by let
class names starting with capital letters
strict comparisons with ===
make findConnectingLines() a method of class polygon (instead of a global function)
Change Maxima comments in functions from block comments // to line comments. This is because nesting of block comments doesn*t work. Local copies of functions with block comments can't be switched on/off with block comments in the question variables.
Adjust the code of meclib.js to JS coding standards.
Change Maxima comments in functions from block comments / / to line comments. This is because nesting of block comments doesn*t work. Local copies of functions with block comments can't be switched on/off with block comments in the question variables.