Skip to content

2.0.0

Choose a tag to compare

@Kyant0 Kyant0 released this 04 Sep 02:13
· 19 commits to master since this release
  • 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.