finishDrawing
Turns what is being drawn into a shape with the id id (a new one by default) and returns the id; null, and nothing happens, if nothing is being drawn. Whether the points make a shape (a polygon needs 3) is for the engine to say: if they do not, it stays as it was.