edemaine / cocreate

Cocreate Shared Whiteboard/Drawing
MIT License
209 stars 27 forks source link

Zero-width objects select weird #198

Closed edemaine closed 2 years ago

edemaine commented 2 years ago

Rectangles and ellipses of zero (or 10^-16) width/height select funny. Object X6XJvbwMCppnxFjLP is an example. The bounding box computation seems to get an Infinity and then set it to (0,0)-(0,0).

We should disable them or render them as line segments.

edemaine commented 2 years ago

Follow-up: rectangles and ellipses that have both width and height zero are now invisible (though at least they select fine). Expect them to look like a point.