add new vertex exactly on edge, not nearby; refactor _distanceToEdgeSquared
add new vertex exactly on edge, not nearby; refactor _distanceToEdgeSquared

adobe-webplatform/css-shapes-editor,josephtan/css-shapes-editor,josephtan/css-shapes-editor,adobe-webplatform/css-shapes-editor