Tags: Shopify/react-native-skia
Tags
fix(🐛): trim a path before stroking it (#4018) * fix(🐛): trim a path before stroking it drawPath applied the stroke prop before start/end, so trimming walked the perimeter of the generated outline rather than the path the caller drew. <Path path="M 20 128 L 236 128" stroke={{ width: 20 }} end={0.5} /> painted the right half of the line instead of the left. The native recorder already trims first (PathCmd in cpp/api/recorder/Drawings.h), so this only affected the JS player - Web and the static container. * test(🧪): compare rendered images for the path trim spec Move it to renderer/__tests__/e2e so it also runs against native, draw through surface.draw and compare with checkImage instead of sampling alpha by hand. An untrimmed baseline sits next to the trimmed one so the two halves are easy to tell apart. --------- Co-authored-by: William Candillon <wcandillon@gmail.com>
chore(deps): bump fast-uri from 3.1.4 to 3.1.5 (#3990) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.4...v3.1.5) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Candillon <wcandillon@gmail.com>
chore(deps): bump fast-uri from 3.1.4 to 3.1.5 (#3990) Bumps [fast-uri](https://github.com/fastify/fast-uri) from 3.1.4 to 3.1.5. - [Release notes](https://github.com/fastify/fast-uri/releases) - [Commits](fastify/fast-uri@v3.1.4...v3.1.5) --- updated-dependencies: - dependency-name: fast-uri dependency-version: 3.1.5 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Candillon <wcandillon@gmail.com>
PreviousNext