Shapes refactor (#9079)
* Consistent getPoints and getSpacedPoints on ellipse They work as getSpacedPoints used to (but with the final point) The arc between aStartAngle and aEndAngle is always forced in the 0, 2 PI area, as getSpacedPoints did (but not getPoints) * Refactor Path class - got rid of .actions - getPoints() moved to CurvePath - toShapes() moved to new class ShapePath * Path: simplify usage of this.currentPoint * Optimize LineCurve.getPoint(1) as suggested by @rfm1201 in #8952 - this minimizes some floating point errors when t = 1 * Fix up missing changes to CurvePath and EllipseCurve - as commented by @rfm1201 - using f040453 as reference * Path: update currentPoint for .splineThru(), add automatic lineTo() - for ellipse * CurvePath: address some removeDuplicatesInAPath() concerns - also cleanup some old reference to .actions * Path/CurvePath getPoints() shouldn't return sequence of duplicate points * In path.absellipse, lineTo is drawn only to connect existing path - when necessary
Showing
想要评论请 注册 或 登录