You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ellipses are one of the most common shape and it's easy to draw in canvas.
However, I don't know how it should integrate in the current dependency tree.
Current tree:
Component
Arc
Circle
Possible solutions:
Split arcs and full ellipses
Component
EllipseArc
CircleArc
Ellipse
Circle
Add another branch
Component
EllipseArc
Ellipse
Arc
Circle
(1) IMO, arcs (ellipse or circle) should be treated by default as stroke (like lines and paths). Which mean that they could even inherit from Line.
(2) In the other hand, circle is just a specific arc (just as square is a specific rectangle) as much as a specific ellipse. Since double inheritance is impossible in JS, it's not an option.
The text was updated successfully, but these errors were encountered:
Ellipses are one of the most common shape and it's easy to draw in canvas.
However, I don't know how it should integrate in the current dependency tree.
Current tree:
Possible solutions:
(1) IMO, arcs (ellipse or circle) should be treated by default as stroke (like lines and paths). Which mean that they could even inherit from Line.
(2) In the other hand, circle is just a specific arc (just as square is a specific rectangle) as much as a specific ellipse. Since double inheritance is impossible in JS, it's not an option.
The text was updated successfully, but these errors were encountered: