1
0
Fork 0

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 <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/368
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
This commit is contained in:
Benjamin Fan 2025-05-19 08:04:38 +02:00 committed by Joost De Cock
parent ed8a166ea9
commit d6a1ea81db
5 changed files with 6 additions and 6 deletions

View file

@ -23,7 +23,7 @@ array path.intersectsBeam(Point a, Point b)
<Example caption="Example of the Path.intersectsBeam() method">
```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)

View file

@ -25,7 +25,7 @@ Path macro('hem', {
<Example caption="An example of the hem macro">
```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
<Example caption="Embedding the hem macro in the seam allowance path">
```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()

View file

@ -44,7 +44,7 @@ Path macro('join', {
<Example caption="An example of the join macro">
```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))

View file

@ -41,7 +41,7 @@ Path macro('offset', {
<Example caption="An example of the offset macro">
```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))

View file

@ -39,7 +39,7 @@ macro('sa', {
<Example caption="An example of the sa macro">
```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))