felina / image-annotator

JavaScript component for drawing arbitrary polygons over images and exporting them as JSON
MIT License
9 stars 3 forks source link

Last point on polygons is duplicated #21

Closed AliShug closed 10 years ago

AliShug commented 10 years ago

This is probably to do with the double-click logic

ks07 commented 10 years ago

Oddly enough, WKT representation actually requires polygons to duplicate the final point (i.e. the first point). So, if I understand this right, then this might actually be desirable...

AliShug commented 10 years ago

I think I know what you mean - a duplicate of the first point? That's not what was happening, the last clicked point on the shape got stored twice. I've fixed it in experimental... should I change it to behave like you're thinking? On 9 Mar 2014 16:42, "George Field" notifications@github.com wrote:

Oddly enough, WKT representation actually requires polygons to duplicate the final point (i.e. the first point). So, if I understand this right, then this might actually be desirable...

Reply to this email directly or view it on GitHubhttps://github.com/felina/image-annotator/issues/21#issuecomment-37131363 .