fuse-open / fuselibs

Fuselibs is the Uno-libraries that provide the UI framework used in Fuse apps
https://npmjs.com/package/@fuse-open/fuselibs
MIT License
176 stars 72 forks source link

Fix path 's' command use relative bezier curve #1422

Closed ichan-mb closed 3 years ago

ichan-mb commented 3 years ago

Fixed bugs when drawing SVG path that contains smooth curve (lower letter s command) instead of using absolute position, it should use relative position.

Test Case:

<Path Size="100" StrokeColor="Blue" StrokeWidth="2" Data="M560.249,690.146v-61.737 c0-16.887,13.619-30.505,30.506-30.505c16.887,0,30.506,13.618,30.506,30.505v61.737c0,16.887-13.619,30.506-30.506,30.506 S560.249,707.032,560.249,690.146z M577.68 628.408 v61.737 c0 7.264 5.811 13.074 13.074 13.074 s13.074-5.811 13.074-13.074 v-61.737 c0-7.263-5.811-13.073-13.074-13.073 S577.68 621.146 577.68 628.408z" />

This PR contains: