With a list it contains all the data save by dictionary.Build left question and dot to put into left array and the right is so.
Click the mouse,the state changed,the color is also changed.Put the selected points into a list,If not judging the near point is left-left or right-right,the bug comes for connecting the points that they are both left.
To solve it,just with the condition that the length of the selected list is more than 1,then to judge if the tail and it’s befor is both locate left.if so,just remove the pre point from the list.
03-09
146
10-17
8万+
10-08
100