From d6a1ea81db3afcda5bf03111a35b73809186654e Mon Sep 17 00:00:00 2001 From: Benjamin Fan Date: Mon, 19 May 2025 08:04:38 +0200 Subject: [PATCH] fix(reference:macros): Fix typo in Examples (#368) (A few similar typo fixes to Core API docs were made in #367.) Co-authored-by: Benjamin Fan Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/368 Reviewed-by: Joost De Cock Co-authored-by: Benjamin Fan Co-committed-by: Benjamin Fan --- sites/dev/docs/reference/api/path/intersectsbeam/readme.mdx | 2 +- sites/dev/docs/reference/macros/hem/readme.mdx | 4 ++-- sites/dev/docs/reference/macros/join/readme.mdx | 2 +- sites/dev/docs/reference/macros/offset/readme.mdx | 2 +- sites/dev/docs/reference/macros/sa/readme.mdx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sites/dev/docs/reference/api/path/intersectsbeam/readme.mdx b/sites/dev/docs/reference/api/path/intersectsbeam/readme.mdx index 3f232e6ecbd..a9bef72769b 100644 --- a/sites/dev/docs/reference/api/path/intersectsbeam/readme.mdx +++ b/sites/dev/docs/reference/api/path/intersectsbeam/readme.mdx @@ -23,7 +23,7 @@ array path.intersectsBeam(Point a, Point b) ```js -;({ Point, points, Path, paths, snippets, Snippet, getId, part }) => { +({ Point, points, Path, paths, snippets, Snippet, getId, part }) => { points.A = new Point(45, 60) points.B = new Point(10, 30) points.BCp2 = new Point(40, 20) diff --git a/sites/dev/docs/reference/macros/hem/readme.mdx b/sites/dev/docs/reference/macros/hem/readme.mdx index 6c1c769fd54..ba2d52dc4d8 100644 --- a/sites/dev/docs/reference/macros/hem/readme.mdx +++ b/sites/dev/docs/reference/macros/hem/readme.mdx @@ -25,7 +25,7 @@ Path macro('hem', { ```js -;({ Point, points, Path, paths, macro, part }) => { +({ Point, points, Path, paths, macro, part }) => { paths.inseam = new Path().move(new Point(150, 0)).line(new Point(200, 200)).hide() paths.outseam = new Path() @@ -95,7 +95,7 @@ The hem path already includes the seam allowance, so it doesn't need any additio ```js -;({ Point, points, Path, paths, macro, part }) => { +({ Point, points, Path, paths, macro, part }) => { paths.inseam = new Path().move(new Point(150, 0)).line(new Point(200, 200)).hide() paths.outseam = new Path() diff --git a/sites/dev/docs/reference/macros/join/readme.mdx b/sites/dev/docs/reference/macros/join/readme.mdx index 495a66c5e44..f9024f7866d 100644 --- a/sites/dev/docs/reference/macros/join/readme.mdx +++ b/sites/dev/docs/reference/macros/join/readme.mdx @@ -44,7 +44,7 @@ Path macro('join', { ```js -;({ Point, points, Path, paths, macro, part }) => { +({ Point, points, Path, paths, macro, part }) => { paths.a = new Path().move(new Point(10, 10)).line(new Point(10, 20)) paths.b = new Path().move(new Point(25, 30)).line(new Point(55, 30)) diff --git a/sites/dev/docs/reference/macros/offset/readme.mdx b/sites/dev/docs/reference/macros/offset/readme.mdx index 02972388918..22e60f4fac5 100644 --- a/sites/dev/docs/reference/macros/offset/readme.mdx +++ b/sites/dev/docs/reference/macros/offset/readme.mdx @@ -41,7 +41,7 @@ Path macro('offset', { ```js -;({ Point, points, Path, paths, macro, part }) => { +({ Point, points, Path, paths, macro, part }) => { paths.outline = new Path() .move(new Point(10, 30)) .line(new Point(30, 30)) diff --git a/sites/dev/docs/reference/macros/sa/readme.mdx b/sites/dev/docs/reference/macros/sa/readme.mdx index 6a22dceb166..5ba5b434a67 100644 --- a/sites/dev/docs/reference/macros/sa/readme.mdx +++ b/sites/dev/docs/reference/macros/sa/readme.mdx @@ -39,7 +39,7 @@ macro('sa', { ```js -;({ Point, points, Path, paths, macro, part }) => { +({ Point, points, Path, paths, macro, part }) => { paths.outline = new Path() .move(new Point(10, 30)) .line(new Point(30, 30))