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
Rename G2RoundedCornerShape with ContinuousRoundedRectangle, replace smoothness parameter with continuity.
Support G0 (cut corner), G1 (normal corner) and G2 (smooth corner) by GXContinuity.
In the G2Continuity class, the profile of normal rounded rectangle can be specified by profile parameter, and the profile of capsule can be specified by capsuleProfile parameter. It has a smooth transition through the rounded rectangle and the capsule-like.
The following parameters are supported by G2ContinuityProfile:
extended fraction: the transition length between original corner and line, relative to the corner radius
arc fraction: the ratio of the arc to the corner
Bezier curvature scale: the multiplier of the end curvature of the Bezier curve
arc curvature scale: the multiplier of the arc curvature Note: It guarantees G1 continuity at least. Only if the Bezier curvature scale equals the arc curvature scale, it will have exact G2 continuity.