Fix polygon.js remove middle point if 3 points are on the same line