From 7bebd8cf0793cedfc95f12e2cb4853a0e5be72bd Mon Sep 17 00:00:00 2001 From: Joost De Cock Date: Wed, 19 Jan 2022 11:31:39 +0100 Subject: [PATCH] fix(markdown): Move caption to children --- markdown/dev/guides/patterns/en.md | 9 ++++----- markdown/dev/guides/patterns/parts/en.md | 8 +++----- markdown/dev/guides/patterns/paths/en.md | 8 +++----- markdown/dev/guides/patterns/pattern/en.md | 8 +++----- markdown/dev/guides/patterns/points/en.md | 8 +++----- markdown/dev/guides/patterns/snippets/en.md | 15 ++++++--------- markdown/dev/guides/patterns/store/en.md | 8 +++----- .../guides/prerequisites/coordinate-system/en.md | 4 +++- markdown/dev/howtos/code/adding-snippets/en.md | 5 ++++- markdown/dev/howtos/code/adding-text/en.md | 15 +++++++-------- markdown/dev/howtos/code/drawing-circles/en.md | 4 +++- markdown/dev/reference/api/macros/bartack/en.md | 4 +++- .../dev/reference/api/macros/bartackalong/en.md | 4 +++- .../api/macros/bartackfractionalong/en.md | 4 +++- markdown/dev/reference/api/macros/cutonfold/en.md | 4 +++- markdown/dev/reference/api/macros/grainline/en.md | 4 +++- markdown/dev/reference/api/macros/hd/en.md | 7 +++---- markdown/dev/reference/api/macros/ld/en.md | 7 +++---- markdown/dev/reference/api/macros/miniscale/en.md | 4 +++- markdown/dev/reference/api/macros/mirror/en.md | 4 +++- markdown/dev/reference/api/macros/pd/en.md | 4 +++- markdown/dev/reference/api/macros/round/en.md | 4 +++- markdown/dev/reference/api/macros/scalebox/en.md | 4 +++- markdown/dev/reference/api/path/_curve/en.md | 4 +++- markdown/dev/reference/api/path/attr/en.md | 4 +++- markdown/dev/reference/api/path/clone/en.md | 4 +++- markdown/dev/reference/api/path/close/en.md | 4 +++- markdown/dev/reference/api/path/curve/en.md | 4 +++- markdown/dev/reference/api/path/curve_/en.md | 4 +++- markdown/dev/reference/api/path/divide/en.md | 4 +++- markdown/dev/reference/api/path/edge/en.md | 4 +++- markdown/dev/reference/api/path/end/en.md | 4 +++- markdown/dev/reference/api/path/intersects/en.md | 4 +++- markdown/dev/reference/api/path/intersectsx/en.md | 4 +++- markdown/dev/reference/api/path/intersectsy/en.md | 4 +++- markdown/dev/reference/api/path/join/en.md | 4 +++- markdown/dev/reference/api/path/length/en.md | 4 +++- markdown/dev/reference/api/path/line/en.md | 4 +++- markdown/dev/reference/api/path/move/en.md | 4 +++- markdown/dev/reference/api/path/offset/en.md | 4 +++- markdown/dev/reference/api/path/reverse/en.md | 4 +++- markdown/dev/reference/api/path/shiftalong/en.md | 4 +++- .../reference/api/path/shiftfractionalong/en.md | 7 +++---- markdown/dev/reference/api/path/split/en.md | 7 +++---- markdown/dev/reference/api/path/start/en.md | 7 +++---- markdown/dev/reference/api/path/translate/en.md | 7 +++---- markdown/dev/reference/api/path/trim/en.md | 7 +++---- markdown/dev/reference/api/point/angle/en.md | 7 +++---- markdown/dev/reference/api/point/attr/en.md | 7 +++---- markdown/dev/reference/api/point/clone/en.md | 7 +++---- markdown/dev/reference/api/point/copy/en.md | 7 +++---- markdown/dev/reference/api/point/dist/en.md | 7 +++---- markdown/dev/reference/api/point/dx/en.md | 7 +++---- markdown/dev/reference/api/point/dy/en.md | 7 +++---- markdown/dev/reference/api/point/flipx/en.md | 7 +++---- markdown/dev/reference/api/point/flipy/en.md | 7 +++---- markdown/dev/reference/api/point/rotate/en.md | 7 +++---- markdown/dev/reference/api/point/shift/en.md | 7 +++---- .../api/point/shiftfractiontowards/en.md | 7 +++---- .../dev/reference/api/point/shiftoutwards/en.md | 7 +++---- .../dev/reference/api/point/shifttowards/en.md | 7 +++---- markdown/dev/reference/api/point/sitson/en.md | 7 +++---- .../dev/reference/api/point/sitsroughlyon/en.md | 7 +++---- markdown/dev/reference/api/point/translate/en.md | 7 +++---- markdown/dev/reference/api/snippet/attr/en.md | 7 +++---- markdown/dev/reference/api/snippet/clone/en.md | 8 ++++---- markdown/dev/reference/api/snippets/button/en.md | 4 +++- .../reference/api/snippets/buttonhole-end/en.md | 4 +++- .../reference/api/snippets/buttonhole-start/en.md | 5 ++++- .../dev/reference/api/snippets/buttonhole/en.md | 4 +++- markdown/dev/reference/api/snippets/logo/en.md | 4 +++- markdown/dev/reference/api/snippets/notch/en.md | 4 +++- .../dev/reference/api/snippets/snap-socket/en.md | 4 +++- .../dev/reference/api/snippets/snap-stud/en.md | 4 +++- .../api/utils/beamintersectscircle/en.md | 4 +++- .../dev/reference/api/utils/beamintersectsx/en.md | 4 +++- .../dev/reference/api/utils/beamintersectsy/en.md | 4 +++- .../dev/reference/api/utils/beamsintersect/en.md | 4 +++- .../reference/api/utils/circlesintersect/en.md | 4 +++- .../dev/reference/api/utils/curvesintersect/en.md | 4 +++- .../api/utils/lineintersectscircle/en.md | 4 +++- .../reference/api/utils/lineintersectscurve/en.md | 4 +++- .../dev/reference/api/utils/linesintersect/en.md | 4 +++- .../dev/reference/api/utils/pointonbeam/en.md | 4 +++- .../dev/reference/api/utils/pointoncurve/en.md | 4 +++- .../dev/reference/api/utils/pointonline/en.md | 4 +++- .../pattern-design/avoiding-overlap/en.md | 5 ++++- .../completing-the-neck-opening/en.md | 4 +++- .../pattern-design/completing-your-pattern/en.md | 5 ++++- .../pattern-design/creating-the-closure/en.md | 4 +++- .../pattern-design/drawing-the-bib-outline/en.md | 5 ++++- .../pattern-design/drawing-the-straps/en.md | 5 ++++- .../tutorials/pattern-design/paperless-bib/en.md | 4 +++- .../pattern-design/rounding-the-corners/en.md | 4 +++- .../pattern-design/shaping-the-straps/en.md | 4 +++- .../pattern-design/your-first-part/en.md | 5 ++++- 96 files changed, 304 insertions(+), 213 deletions(-) diff --git a/markdown/dev/guides/patterns/en.md b/markdown/dev/guides/patterns/en.md index 01a962b820e..1a40a5dfae8 100644 --- a/markdown/dev/guides/patterns/en.md +++ b/markdown/dev/guides/patterns/en.md @@ -11,10 +11,9 @@ pattern is generated by FreeSewing. This illustration is a good starting point to gain a better understanding of the structure of a FreeSewing pattern: - + +A schematic overview of FreeSewing + If we look at our image, it can be divided into three areas: @@ -24,7 +23,7 @@ If we look at our image, it can be divided into three areas: Let's take a closer look at everything that is contained within our central **Pattern** box: - + diff --git a/markdown/dev/guides/patterns/parts/en.md b/markdown/dev/guides/patterns/parts/en.md index fd99e22e27e..4f0950b5b1f 100644 --- a/markdown/dev/guides/patterns/parts/en.md +++ b/markdown/dev/guides/patterns/parts/en.md @@ -3,11 +3,9 @@ title: Parts order: 20 --- - + +Parts divide your pattern into re-usable components + Parts are a container for the points, paths, and snippets of (a part of) your pattern. They are also re-usable by other patterns, which makes them a powerful tool to build diff --git a/markdown/dev/guides/patterns/paths/en.md b/markdown/dev/guides/patterns/paths/en.md index 8f0de5033bb..c971ce8906c 100644 --- a/markdown/dev/guides/patterns/paths/en.md +++ b/markdown/dev/guides/patterns/paths/en.md @@ -3,11 +3,9 @@ title: Paths order: 40 --- - + +Paths are the lines and curves of your pattern + Paths are the lines and curves that make up your pattern. diff --git a/markdown/dev/guides/patterns/pattern/en.md b/markdown/dev/guides/patterns/pattern/en.md index 65332c84f7c..3d42d39df26 100644 --- a/markdown/dev/guides/patterns/pattern/en.md +++ b/markdown/dev/guides/patterns/pattern/en.md @@ -3,11 +3,9 @@ title: Pattern order: 80 --- - + +The pattern you create will be a constructor for instances of your pattern + Last but not least, we've arrived at the level of the pattern itself. The pattern is a container that holds all your parts, along with the configuration diff --git a/markdown/dev/guides/patterns/points/en.md b/markdown/dev/guides/patterns/points/en.md index e51704fa2a5..0ee46430bc7 100644 --- a/markdown/dev/guides/patterns/points/en.md +++ b/markdown/dev/guides/patterns/points/en.md @@ -3,11 +3,9 @@ title: Points order: 30 --- - + +Points store coordinates + Developing a pattern with FreeSewing is similar to doing it on paper. But instead of using a pencil and paper, you'll be writing code. diff --git a/markdown/dev/guides/patterns/snippets/en.md b/markdown/dev/guides/patterns/snippets/en.md index bdd482c57d6..a803c3a3478 100644 --- a/markdown/dev/guides/patterns/snippets/en.md +++ b/markdown/dev/guides/patterns/snippets/en.md @@ -3,11 +3,9 @@ title: Snippets order: 50 --- - + +Snippets are little embelishments that go on your pattern + Snippets are little embellishments you can use and re-use on your pattern. They are typically used for things like logos or buttons. @@ -20,8 +18,7 @@ Each snippet must have: Since our example image does not have any snippets in it, here's another example of a `button`, `buttonhole`, and `logo` snippet added to a FreeSewing pattern: - + +An example of the use of snippets + diff --git a/markdown/dev/guides/patterns/store/en.md b/markdown/dev/guides/patterns/store/en.md index d8d399044c9..9d4420f2e9a 100644 --- a/markdown/dev/guides/patterns/store/en.md +++ b/markdown/dev/guides/patterns/store/en.md @@ -3,11 +3,9 @@ title: Store order: 60 --- - + +The store provides pattern-wide key/value storage + The store provides key-value storage that is shared across your pattern. diff --git a/markdown/dev/guides/prerequisites/coordinate-system/en.md b/markdown/dev/guides/prerequisites/coordinate-system/en.md index 2ce0489ec87..211cff34b29 100644 --- a/markdown/dev/guides/prerequisites/coordinate-system/en.md +++ b/markdown/dev/guides/prerequisites/coordinate-system/en.md @@ -7,7 +7,9 @@ The coordinate system in FreeSewing -- and in SVG -- follows the same rules as t You start at the top-left, and as you go to the right, the X-coordinate will increase. As you go down the Y-coordinate will increase. - + +The SVG coordinate system + The image above illustrates both the X-axis and Y-axis. On the X-axis, `20` is further to the right than `10`. diff --git a/markdown/dev/howtos/code/adding-snippets/en.md b/markdown/dev/howtos/code/adding-snippets/en.md index 6c66a3e8b89..3c9c25d345e 100644 --- a/markdown/dev/howtos/code/adding-snippets/en.md +++ b/markdown/dev/howtos/code/adding-snippets/en.md @@ -27,4 +27,7 @@ See [Using attributes](/howtos/code/attributes/) for details on how to set attri Below is an example of the available snippets, and the use of the `data-scale` and `data-rotate` attributes: - + +Overview of available snippets + + diff --git a/markdown/dev/howtos/code/adding-text/en.md b/markdown/dev/howtos/code/adding-text/en.md index 0f48bf507ec..b21ba085f96 100644 --- a/markdown/dev/howtos/code/adding-text/en.md +++ b/markdown/dev/howtos/code/adding-text/en.md @@ -16,10 +16,9 @@ points.anchor = new Point(100, 25) .attr("data-text-class", "center"); ``` - + +Text inserted in a FreeSewing pattern + @@ -46,7 +45,7 @@ paths.example = new Path() .attr("data-text-class", "text-xs center"); ``` - + +Text on a path + + diff --git a/markdown/dev/howtos/code/drawing-circles/en.md b/markdown/dev/howtos/code/drawing-circles/en.md index 59c04d56efb..d77b80db574 100644 --- a/markdown/dev/howtos/code/drawing-circles/en.md +++ b/markdown/dev/howtos/code/drawing-circles/en.md @@ -12,5 +12,7 @@ to the radius of the circle you want to draw. In addition, all attributes that have a `data-circle-` prefix will apply to the circle, rather than the point. - + +Circles + diff --git a/markdown/dev/reference/api/macros/bartack/en.md b/markdown/dev/reference/api/macros/bartack/en.md index 8c26f9eb8d0..18ca2191ee2 100644 --- a/markdown/dev/reference/api/macros/bartack/en.md +++ b/markdown/dev/reference/api/macros/bartack/en.md @@ -5,7 +5,9 @@ title: bartack The `bartack` macro allows you to add a *bartack* marker to your sewing pattern. It is provided by the [bartack plugin](/reference/plugins/bartack/). - + +Example of the bartack macro + ```js points.a = new Point(15, 15) diff --git a/markdown/dev/reference/api/macros/bartackalong/en.md b/markdown/dev/reference/api/macros/bartackalong/en.md index 409d7861efe..0c900b71527 100644 --- a/markdown/dev/reference/api/macros/bartackalong/en.md +++ b/markdown/dev/reference/api/macros/bartackalong/en.md @@ -6,7 +6,9 @@ The `bartackAlong` macro allows you to add a *bartack* marker to your sewing pat More specifically, a bartack along a path. It is provided by the [bartack plugin](/reference/plugins/bartack/). - + +Example of the bartackAlong macro + ```js points.a = new Point(15, 15) diff --git a/markdown/dev/reference/api/macros/bartackfractionalong/en.md b/markdown/dev/reference/api/macros/bartackfractionalong/en.md index b4c4552a5e7..c26e17380b9 100644 --- a/markdown/dev/reference/api/macros/bartackfractionalong/en.md +++ b/markdown/dev/reference/api/macros/bartackfractionalong/en.md @@ -6,7 +6,9 @@ The `bartackFractionAlong` macro allows you to add a *bartack* marker to your se More specifically, a bartack along a fraction of a path. It is provided by the [bartack plugin](/reference/plugins/bartack/). - + +Example of the bartackFractionAlong macro + ```js points.a = new Point(15, 15) diff --git a/markdown/dev/reference/api/macros/cutonfold/en.md b/markdown/dev/reference/api/macros/cutonfold/en.md index ccb545e1b35..2876b988e39 100644 --- a/markdown/dev/reference/api/macros/cutonfold/en.md +++ b/markdown/dev/reference/api/macros/cutonfold/en.md @@ -5,7 +5,9 @@ title: cutonfold The `cutonfold` macro adds a *cut on fold* indicator to your pattern. It is provided by the [cutonfold plugin](/reference/plugins/cutonfold). - + +Example of the cut on fold indicator added by this macro + ```js macro('cutonfold', { diff --git a/markdown/dev/reference/api/macros/grainline/en.md b/markdown/dev/reference/api/macros/grainline/en.md index 65c92a5a23a..9d82cb4ed9f 100644 --- a/markdown/dev/reference/api/macros/grainline/en.md +++ b/markdown/dev/reference/api/macros/grainline/en.md @@ -5,7 +5,9 @@ title: grainline The `grainline` macro adds a *grainline* indicator to your pattern. It is provided by the [grainline plugin](/reference/plugins/grainline/). - + +Example of the grainline indicator added by this macro + ```js macro("grainline", { diff --git a/markdown/dev/reference/api/macros/hd/en.md b/markdown/dev/reference/api/macros/hd/en.md index a61f91a3b98..9be2625e774 100644 --- a/markdown/dev/reference/api/macros/hd/en.md +++ b/markdown/dev/reference/api/macros/hd/en.md @@ -5,10 +5,9 @@ title: hd The `hd` macro adds a *horizontal dimension* to your pattern. It is provided by the [dimension plugin](/reference/plugins/dimension/). - + +An example of a horizontal dimension + ```js macro('hd', { diff --git a/markdown/dev/reference/api/macros/ld/en.md b/markdown/dev/reference/api/macros/ld/en.md index 879c55b745b..3bc2cc6642b 100644 --- a/markdown/dev/reference/api/macros/ld/en.md +++ b/markdown/dev/reference/api/macros/ld/en.md @@ -5,10 +5,9 @@ title: ld The `ld` macro adds a *linear dimension* to your pattern. It is provided by the [dimension plugin](/reference/plugins/dimension/). - + +An example of a linear dimension + ```js macro('ld', { diff --git a/markdown/dev/reference/api/macros/miniscale/en.md b/markdown/dev/reference/api/macros/miniscale/en.md index e727dadebac..82545e3865c 100644 --- a/markdown/dev/reference/api/macros/miniscale/en.md +++ b/markdown/dev/reference/api/macros/miniscale/en.md @@ -8,7 +8,9 @@ users to verify their pattern is printed to scale. The `miniscale` macro is provided by the [scalebox plugin](/reference/plugins/scalebox). It is the mini version of [the scalebox macro](/reference/macros/scalebox/). - + +Example of a scalebox (left) and miniscale (right) + ```js macro('miniscale', { diff --git a/markdown/dev/reference/api/macros/mirror/en.md b/markdown/dev/reference/api/macros/mirror/en.md index 37b429946dd..e7973ddf464 100644 --- a/markdown/dev/reference/api/macros/mirror/en.md +++ b/markdown/dev/reference/api/macros/mirror/en.md @@ -5,7 +5,9 @@ title: mirror The `mirror` macro allows you to mirror points and/or paths around a mirror line. It is provided by the [mirror plugin](/reference/plugins/mirror/). - + +Example of the mirror plugin + ```js points.a = new Point(5,5) diff --git a/markdown/dev/reference/api/macros/pd/en.md b/markdown/dev/reference/api/macros/pd/en.md index 03d8de25ecd..de51b983146 100644 --- a/markdown/dev/reference/api/macros/pd/en.md +++ b/markdown/dev/reference/api/macros/pd/en.md @@ -5,7 +5,9 @@ title: pd The `pd` macro adds a *path dimension* to your pattern, indicating the length of a path. It is provided by the [dimension plugin](/reference/plugins/dimension/). - +< +Example of a multiple path dimensions + ```js macro('pd', { diff --git a/markdown/dev/reference/api/macros/round/en.md b/markdown/dev/reference/api/macros/round/en.md index faac877de6b..81d085c4c7b 100644 --- a/markdown/dev/reference/api/macros/round/en.md +++ b/markdown/dev/reference/api/macros/round/en.md @@ -6,7 +6,9 @@ The `round` macro rounds a corner. It is provided by the [round plugin](/referen Note that this is only intended for 90 degree corners. - + +Example of corners rounded with the round plugin + ```js macro('round', { diff --git a/markdown/dev/reference/api/macros/scalebox/en.md b/markdown/dev/reference/api/macros/scalebox/en.md index eb33cd0f0fb..6baa4e5a554 100644 --- a/markdown/dev/reference/api/macros/scalebox/en.md +++ b/markdown/dev/reference/api/macros/scalebox/en.md @@ -7,7 +7,9 @@ users to verify their pattern is printed to scale. The `scalebox` macro is provided by the [scalebox plugin](/reference/plugins/scalebox). - + +Example of the scalebox added by this macro + ```js macro('scalebox', { diff --git a/markdown/dev/reference/api/path/_curve/en.md b/markdown/dev/reference/api/path/_curve/en.md index 2a8de7d3104..fc643c45573 100644 --- a/markdown/dev/reference/api/path/_curve/en.md +++ b/markdown/dev/reference/api/path/_curve/en.md @@ -24,7 +24,9 @@ So the only purpose of this method is to save your some typing. - + +Example of the Path.\_curve() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/attr/en.md b/markdown/dev/reference/api/path/attr/en.md index d2234018017..d61a1b5cb87 100644 --- a/markdown/dev/reference/api/path/attr/en.md +++ b/markdown/dev/reference/api/path/attr/en.md @@ -16,7 +16,9 @@ This allows you to chain different calls together as in the example below. If the third parameter is set to `true` it will call `this.attributes.set()` instead, thereby overwriting the value of the attribute. - + +Example of the Path.attr() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/clone/en.md b/markdown/dev/reference/api/path/clone/en.md index cee6019b276..266fdf7d111 100644 --- a/markdown/dev/reference/api/path/clone/en.md +++ b/markdown/dev/reference/api/path/clone/en.md @@ -9,7 +9,9 @@ Path path.clone() Returns a new Path that is a deep copy of this path. - + +Example of the Path.clone() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/close/en.md b/markdown/dev/reference/api/path/close/en.md index 64a569a3efa..8b1acc4f888 100644 --- a/markdown/dev/reference/api/path/close/en.md +++ b/markdown/dev/reference/api/path/close/en.md @@ -8,7 +8,9 @@ Path path.close() Closes a path by drawing a straight line from the current position to the path's start. - + +Example of the Path.close() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/curve/en.md b/markdown/dev/reference/api/path/curve/en.md index 7f806890a7d..22ce7ba5485 100644 --- a/markdown/dev/reference/api/path/curve/en.md +++ b/markdown/dev/reference/api/path/curve/en.md @@ -8,7 +8,9 @@ Path path.curve(Point cp1, Point cp2, Point to) Draws a cubic Bezier curve from the current position via two control points to a given endpoint. - + +Example of the Path.curve() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/curve_/en.md b/markdown/dev/reference/api/path/curve_/en.md index 53fb0eb1d45..5499d61726a 100644 --- a/markdown/dev/reference/api/path/curve_/en.md +++ b/markdown/dev/reference/api/path/curve_/en.md @@ -24,7 +24,9 @@ So the only purpose of this method is to save your some typing; - + +Example of the Path.curve\_() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/divide/en.md b/markdown/dev/reference/api/path/divide/en.md index fe11df62d00..522d7b4bd2c 100644 --- a/markdown/dev/reference/api/path/divide/en.md +++ b/markdown/dev/reference/api/path/divide/en.md @@ -9,7 +9,9 @@ array path.divide() Breaks a path apart in an array of atomic paths. An atomic path is a path that can't be divided further and is always made up of one move + one drawing operation. - + +Example of the Path.divide() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/edge/en.md b/markdown/dev/reference/api/path/edge/en.md index 95d52735c13..0d2a102cf98 100644 --- a/markdown/dev/reference/api/path/edge/en.md +++ b/markdown/dev/reference/api/path/edge/en.md @@ -17,7 +17,9 @@ Returns the Point object at the edge of the path you specify. Edge must be one o - `bottomLeft` - `bottomRight` - + +Example of the Path.edge() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/end/en.md b/markdown/dev/reference/api/path/end/en.md index 1fea77273fb..278791d8373 100644 --- a/markdown/dev/reference/api/path/end/en.md +++ b/markdown/dev/reference/api/path/end/en.md @@ -8,7 +8,9 @@ Point path.end() Returns the Point object at the end of the path. - + +Example of the Path.end() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/intersects/en.md b/markdown/dev/reference/api/path/intersects/en.md index 735615b310c..c3ff2976c7a 100644 --- a/markdown/dev/reference/api/path/intersects/en.md +++ b/markdown/dev/reference/api/path/intersects/en.md @@ -19,7 +19,9 @@ If you do know, use one of the intersection methods in [Utils](/reference/api/ut - + +Example of the Path.intersects() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/intersectsx/en.md b/markdown/dev/reference/api/path/intersectsx/en.md index 37493bf2652..858b6edab96 100644 --- a/markdown/dev/reference/api/path/intersectsx/en.md +++ b/markdown/dev/reference/api/path/intersectsx/en.md @@ -8,7 +8,9 @@ array|false path.intersectsX(float x) Returns the Point object(s) where the path intersects with a given X-value. - + +Example of the Path.intersectsX() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/intersectsy/en.md b/markdown/dev/reference/api/path/intersectsy/en.md index e34cc0be046..df06a59385b 100644 --- a/markdown/dev/reference/api/path/intersectsy/en.md +++ b/markdown/dev/reference/api/path/intersectsy/en.md @@ -8,7 +8,9 @@ array|false path.intersectsY(float y) Returns the Point object(s) where the path intersects with a given Y-value. - + +Example of the Path.intersectsY() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/join/en.md b/markdown/dev/reference/api/path/join/en.md index 19d17471201..81d6e66be88 100644 --- a/markdown/dev/reference/api/path/join/en.md +++ b/markdown/dev/reference/api/path/join/en.md @@ -14,7 +14,9 @@ You cannot join a closed path to another path - + +Example of the Path.join() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/length/en.md b/markdown/dev/reference/api/path/length/en.md index 662cb6ae03e..ca15197e6f7 100644 --- a/markdown/dev/reference/api/path/length/en.md +++ b/markdown/dev/reference/api/path/length/en.md @@ -8,7 +8,9 @@ float path.length() Returns the length of the path. - + +Example of the Path.length() method + ```js let { Point, points, Path, paths, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/line/en.md b/markdown/dev/reference/api/path/line/en.md index c0ee2bd1114..2cf569eb77e 100644 --- a/markdown/dev/reference/api/path/line/en.md +++ b/markdown/dev/reference/api/path/line/en.md @@ -8,7 +8,9 @@ Path path.line(Point to) Draws a straight line from the current position to a given point. - + +Example of the Path.line() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/move/en.md b/markdown/dev/reference/api/path/move/en.md index bf08423ba6c..71e21d911ed 100644 --- a/markdown/dev/reference/api/path/move/en.md +++ b/markdown/dev/reference/api/path/move/en.md @@ -30,7 +30,9 @@ paths.example = new Path() - + +Example of the Path.move() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/offset/en.md b/markdown/dev/reference/api/path/offset/en.md index 41a62c02c4c..0f6ade6a88e 100644 --- a/markdown/dev/reference/api/path/offset/en.md +++ b/markdown/dev/reference/api/path/offset/en.md @@ -8,7 +8,9 @@ Path path.offset(float distance) Returns a new Path that is offset by distance from the original path. - + +Example of the Path.offset() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/reverse/en.md b/markdown/dev/reference/api/path/reverse/en.md index 471390866d7..74193b3ca11 100644 --- a/markdown/dev/reference/api/path/reverse/en.md +++ b/markdown/dev/reference/api/path/reverse/en.md @@ -17,7 +17,9 @@ If you want a deep copy, including the attributes, use `Path.clone().reverse()`. - + +Example of the Path.reverse() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/shiftalong/en.md b/markdown/dev/reference/api/path/shiftalong/en.md index b0fc4b2fcc9..249a9ce1802 100644 --- a/markdown/dev/reference/api/path/shiftalong/en.md +++ b/markdown/dev/reference/api/path/shiftalong/en.md @@ -8,7 +8,9 @@ Point path.shiftAlong(float distance[, int stepsPerMm=25]) Returns a point that lies at distance travelled along the path. - + +Example of the Path.shiftAlong() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/shiftfractionalong/en.md b/markdown/dev/reference/api/path/shiftfractionalong/en.md index 97046a54478..594a5fcf541 100644 --- a/markdown/dev/reference/api/path/shiftfractionalong/en.md +++ b/markdown/dev/reference/api/path/shiftfractionalong/en.md @@ -8,10 +8,9 @@ Point path.shiftFractionAlong(float fraction[, int stepsPerMm=25]) Returns a point that lies at fraction of the length of the path travelled along the path. - + +Example of the Path.shiftFractionAlong() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/split/en.md b/markdown/dev/reference/api/path/split/en.md index 48c41a1d9e1..eab87b5749b 100644 --- a/markdown/dev/reference/api/path/split/en.md +++ b/markdown/dev/reference/api/path/split/en.md @@ -8,10 +8,9 @@ array path.split(Point splitPoint) Splits a path in two halves, on a point along that path that you pass it. - + +Example of the Path.split() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/start/en.md b/markdown/dev/reference/api/path/start/en.md index 1383b2ab65f..5c07bbce771 100644 --- a/markdown/dev/reference/api/path/start/en.md +++ b/markdown/dev/reference/api/path/start/en.md @@ -8,10 +8,9 @@ Point path.start() Returns the Point object at the start of the path. - + +Example of the Path.start() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/translate/en.md b/markdown/dev/reference/api/path/translate/en.md index c0dedad7392..fbff05e7456 100644 --- a/markdown/dev/reference/api/path/translate/en.md +++ b/markdown/dev/reference/api/path/translate/en.md @@ -10,10 +10,9 @@ Returns a path with [a translate transform](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/transform#Translate) applied. - + +Example of the Path.translate() method + ```js let { Point, points, Path, paths, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/path/trim/en.md b/markdown/dev/reference/api/path/trim/en.md index d8b58748ce4..166a2fb4341 100644 --- a/markdown/dev/reference/api/path/trim/en.md +++ b/markdown/dev/reference/api/path/trim/en.md @@ -28,10 +28,9 @@ You can see an example of this - + +Example of the Path.trim() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/angle/en.md b/markdown/dev/reference/api/point/angle/en.md index d0d1f36d095..493432026e9 100644 --- a/markdown/dev/reference/api/point/angle/en.md +++ b/markdown/dev/reference/api/point/angle/en.md @@ -13,10 +13,9 @@ float point.angle(Point pointB) ## Point.angle() Example - + +An example of the Point.angle() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/attr/en.md b/markdown/dev/reference/api/point/attr/en.md index 2a09a351b9f..1f0de570cd2 100644 --- a/markdown/dev/reference/api/point/attr/en.md +++ b/markdown/dev/reference/api/point/attr/en.md @@ -22,10 +22,9 @@ If the third parameter is set to `true` it will call [`this.attributes.set()`](/ ## Point.attr() example - + +An example of the Point.attr() method + ```js let { Point, points } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/clone/en.md b/markdown/dev/reference/api/point/clone/en.md index d441fbedec2..07a68e362f6 100644 --- a/markdown/dev/reference/api/point/clone/en.md +++ b/markdown/dev/reference/api/point/clone/en.md @@ -21,10 +21,9 @@ The [`Point.copy()`](reference/api/point/copy/) method will only copy the point' ## Point.clone() example - + +An example of the Point.clone() method + ```js let { Point, points, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/copy/en.md b/markdown/dev/reference/api/point/copy/en.md index 148959aa682..87b5407682a 100644 --- a/markdown/dev/reference/api/point/copy/en.md +++ b/markdown/dev/reference/api/point/copy/en.md @@ -21,10 +21,9 @@ To also copy the attributes, use [`Point.clone()`](reference/api/point/clone/) i ## Point.copy() example - + +An example of the Point.copy() method + ```js let { Point, points, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/dist/en.md b/markdown/dev/reference/api/point/dist/en.md index 5f6d808497d..aeee3e00553 100644 --- a/markdown/dev/reference/api/point/dist/en.md +++ b/markdown/dev/reference/api/point/dist/en.md @@ -12,10 +12,9 @@ float point.dist(Point point) ## Point.dist() example - + +An example of the Point.dist() method + ```js let { Point, points, Path, paths } = part.shorthand() diff --git a/markdown/dev/reference/api/point/dx/en.md b/markdown/dev/reference/api/point/dx/en.md index 73ef41b5095..a99fe5a02c7 100644 --- a/markdown/dev/reference/api/point/dx/en.md +++ b/markdown/dev/reference/api/point/dx/en.md @@ -12,10 +12,9 @@ float point.dx(Point point) ## Point.dx() example - + +An example of the Point.dx() method + ```js let { Point, points, Path, paths } = part.shorthand() diff --git a/markdown/dev/reference/api/point/dy/en.md b/markdown/dev/reference/api/point/dy/en.md index d73049e070b..194c3eece54 100644 --- a/markdown/dev/reference/api/point/dy/en.md +++ b/markdown/dev/reference/api/point/dy/en.md @@ -12,10 +12,9 @@ float point.dy(Point point) ## Point.dy() example - + +An example of the Point.dy() method + ```js let { Point, points, Path, paths } = part.shorthand() diff --git a/markdown/dev/reference/api/point/flipx/en.md b/markdown/dev/reference/api/point/flipx/en.md index ec4c0dc2320..d13043c85ff 100644 --- a/markdown/dev/reference/api/point/flipx/en.md +++ b/markdown/dev/reference/api/point/flipx/en.md @@ -13,10 +13,9 @@ Point point.flipX(Point mirror = false) ## Point.flipX() example - + +An example of the Point.flipX() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/flipy/en.md b/markdown/dev/reference/api/point/flipy/en.md index cbed58ab24d..ff1208324fd 100644 --- a/markdown/dev/reference/api/point/flipy/en.md +++ b/markdown/dev/reference/api/point/flipy/en.md @@ -13,10 +13,9 @@ Point point.flipY(Point mirror = false) ## Point.flipY() example - + +An example of the Point.flipY() method + ```js let { Point, points, Path, paths } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/rotate/en.md b/markdown/dev/reference/api/point/rotate/en.md index 0e47029c5cb..74e3632275a 100644 --- a/markdown/dev/reference/api/point/rotate/en.md +++ b/markdown/dev/reference/api/point/rotate/en.md @@ -15,10 +15,9 @@ Point point.rotate(float angle, Point center) ## Point.rotate() example - + +An example of the4Point.rotate() method + ```js let { Point, points, Path, paths, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/shift/en.md b/markdown/dev/reference/api/point/shift/en.md index 32012619e4f..833f11839d7 100644 --- a/markdown/dev/reference/api/point/shift/en.md +++ b/markdown/dev/reference/api/point/shift/en.md @@ -13,10 +13,9 @@ Point point.shift(float angle, float distance) ## Point.shift() example - + +An example of the Point.shift() method + ```js let { Point, points, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/shiftfractiontowards/en.md b/markdown/dev/reference/api/point/shiftfractiontowards/en.md index eeacc778657..652c80dde03 100644 --- a/markdown/dev/reference/api/point/shiftfractiontowards/en.md +++ b/markdown/dev/reference/api/point/shiftfractiontowards/en.md @@ -18,10 +18,9 @@ Point point.shiftFractionTowards(Point target, float fraction) ## Point.shiftFractionTowards() example - + +An example of the Point.shiftFractionTowards() method + ```js let { Point, points, Path, paths, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/shiftoutwards/en.md b/markdown/dev/reference/api/point/shiftoutwards/en.md index 55453e40842..e08d536d835 100644 --- a/markdown/dev/reference/api/point/shiftoutwards/en.md +++ b/markdown/dev/reference/api/point/shiftoutwards/en.md @@ -12,10 +12,9 @@ Point point.shiftOutwards(Point target, float distance) ## Point.shiftOutwards() example - + +An example of the Point.shiftOutwards() method + ```js let { Point, points, Path, paths, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/shifttowards/en.md b/markdown/dev/reference/api/point/shifttowards/en.md index 012cd8f6f2d..45f8918968f 100644 --- a/markdown/dev/reference/api/point/shifttowards/en.md +++ b/markdown/dev/reference/api/point/shifttowards/en.md @@ -14,10 +14,9 @@ Point point.shiftTowards(Point target, float distance) ## Point.shiftTowards() example - + +An example of the Point.shiftTowards() method + ```js let { Point, points, Path, paths, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/sitson/en.md b/markdown/dev/reference/api/point/sitson/en.md index cfe49d98a22..9552f016b04 100644 --- a/markdown/dev/reference/api/point/sitson/en.md +++ b/markdown/dev/reference/api/point/sitson/en.md @@ -24,10 +24,9 @@ bool point.sitsOn(Point check) ## Point.sitsOn() example - + +An example of the Point.sitsOn() method + ```js let { Point, points, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/sitsroughlyon/en.md b/markdown/dev/reference/api/point/sitsroughlyon/en.md index af3e45a61b1..170ba9310cb 100644 --- a/markdown/dev/reference/api/point/sitsroughlyon/en.md +++ b/markdown/dev/reference/api/point/sitsroughlyon/en.md @@ -21,10 +21,9 @@ that this one rounds things down to the nearest integer (thus mm) before checkin ## Point.sitsRoughlyOn() example - + +An example of the Point.sitsRoughlyOn() method + ```js let { Point, points, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/point/translate/en.md b/markdown/dev/reference/api/point/translate/en.md index 521f51159b8..23c51c8f0fb 100644 --- a/markdown/dev/reference/api/point/translate/en.md +++ b/markdown/dev/reference/api/point/translate/en.md @@ -19,10 +19,9 @@ Positive values for `deltaX` will move the point to the right. Positive values f ## Point.translate() example - + +An example of the Point.translate() method + ```js let { Point, points, Snippet, snippets, macro } = part.shorthand(); diff --git a/markdown/dev/reference/api/snippet/attr/en.md b/markdown/dev/reference/api/snippet/attr/en.md index d25b969ffac..72e0412eab8 100644 --- a/markdown/dev/reference/api/snippet/attr/en.md +++ b/markdown/dev/reference/api/snippet/attr/en.md @@ -16,10 +16,9 @@ but returns the Snippet object. This allows you to chain different calls togeth If the third parameter is set to `true` it will call [`Attributes.set()`](./attributes#set) instead, thereby overwriting the value of the attribute. - + +An example of the Snippet.attr() method + ```js let { Point, points, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/snippet/clone/en.md b/markdown/dev/reference/api/snippet/clone/en.md index e6a761522e0..520fb1c6890 100644 --- a/markdown/dev/reference/api/snippet/clone/en.md +++ b/markdown/dev/reference/api/snippet/clone/en.md @@ -8,10 +8,10 @@ Snippet snippet.clone() Returns a new Snippets object that is a deep copy of this one. - + +An example of the Snippet.clone() method + + ```js let { Point, points, Snippet, snippets } = part.shorthand(); diff --git a/markdown/dev/reference/api/snippets/button/en.md b/markdown/dev/reference/api/snippets/button/en.md index c48369c5e68..f9396e65768 100644 --- a/markdown/dev/reference/api/snippets/button/en.md +++ b/markdown/dev/reference/api/snippets/button/en.md @@ -9,5 +9,7 @@ provided by [plugin-buttons](/reference/plugins/buttons/). snippets.demo = new Snippet('button', points.anchor) ``` - + +An example of the button snippet + diff --git a/markdown/dev/reference/api/snippets/buttonhole-end/en.md b/markdown/dev/reference/api/snippets/buttonhole-end/en.md index 6cea7359607..2ad50665e6a 100644 --- a/markdown/dev/reference/api/snippets/buttonhole-end/en.md +++ b/markdown/dev/reference/api/snippets/buttonhole-end/en.md @@ -9,7 +9,9 @@ provided by [plugin-buttons](/reference/plugins/buttons/). snippets.demo = new Snippet('buttonhole-end', points.anchor) ``` - + +An example of the buttonhole-end snippet + diff --git a/markdown/dev/reference/api/snippets/buttonhole-start/en.md b/markdown/dev/reference/api/snippets/buttonhole-start/en.md index a2638f69dec..e08a75d2ef6 100644 --- a/markdown/dev/reference/api/snippets/buttonhole-start/en.md +++ b/markdown/dev/reference/api/snippets/buttonhole-start/en.md @@ -9,7 +9,10 @@ provided by [plugin-buttons](/reference/plugins/buttons/). snippets.demo = new Snippet('buttonhole-start', points.anchor) ``` - + +An example of the buttonhole-start snippet + + diff --git a/markdown/dev/reference/api/snippets/buttonhole/en.md b/markdown/dev/reference/api/snippets/buttonhole/en.md index 847bab92e79..df36625a4d0 100644 --- a/markdown/dev/reference/api/snippets/buttonhole/en.md +++ b/markdown/dev/reference/api/snippets/buttonhole/en.md @@ -9,7 +9,9 @@ provided by [plugin-buttons](/reference/plugins/buttons/). snippets.demo = new Snippet('buttonhole', points.anchor) ``` - + +An example of the buttonhole snippet + diff --git a/markdown/dev/reference/api/snippets/logo/en.md b/markdown/dev/reference/api/snippets/logo/en.md index b02e6d828b5..bf8a0f55950 100644 --- a/markdown/dev/reference/api/snippets/logo/en.md +++ b/markdown/dev/reference/api/snippets/logo/en.md @@ -9,5 +9,7 @@ provided by [plugin-logo](/reference/plugins/logo/). snippets.demo = new Snippet('logo', points.anchor) ``` - + +An example of the logo snippet + diff --git a/markdown/dev/reference/api/snippets/notch/en.md b/markdown/dev/reference/api/snippets/notch/en.md index 87fe03cee84..8b25d3f01c5 100644 --- a/markdown/dev/reference/api/snippets/notch/en.md +++ b/markdown/dev/reference/api/snippets/notch/en.md @@ -8,5 +8,7 @@ provided by [plugin-theme](/reference/plugins/theme/). ```js snippets.demo = new Snippet('bnotch', points.anchor) ``` - + +An example of the notch snippet + diff --git a/markdown/dev/reference/api/snippets/snap-socket/en.md b/markdown/dev/reference/api/snippets/snap-socket/en.md index 3b958efcc4c..91abf00e4dc 100644 --- a/markdown/dev/reference/api/snippets/snap-socket/en.md +++ b/markdown/dev/reference/api/snippets/snap-socket/en.md @@ -10,5 +10,7 @@ It is provided by [plugin-buttons](/reference/plugins/buttons/). snippets.demo = new Snippet('snap-socket', points.anchor) ``` - + +An example of the snap-socket snippet + diff --git a/markdown/dev/reference/api/snippets/snap-stud/en.md b/markdown/dev/reference/api/snippets/snap-stud/en.md index 9cb68f5f73b..b1b83c45103 100644 --- a/markdown/dev/reference/api/snippets/snap-stud/en.md +++ b/markdown/dev/reference/api/snippets/snap-stud/en.md @@ -10,5 +10,7 @@ It is provided by [plugin-buttons](/reference/plugins/buttons/). snippets.demo = new Snippet('snap-stud', points.anchor) ``` - + +An example of the snap-stud snippet + diff --git a/markdown/dev/reference/api/utils/beamintersectscircle/en.md b/markdown/dev/reference/api/utils/beamintersectscircle/en.md index 9a52b4ca7a0..bbdc0b9b070 100644 --- a/markdown/dev/reference/api/utils/beamintersectscircle/en.md +++ b/markdown/dev/reference/api/utils/beamintersectscircle/en.md @@ -24,7 +24,9 @@ Set sort to: - `x` : The point with the lowest X-coordinate will go first (left to right) - `y` : The point with the lowest Y-coordinate will go first (top to bottom) - + +A Utils.beamIntersectsCircle() example + ```js let { diff --git a/markdown/dev/reference/api/utils/beamintersectsx/en.md b/markdown/dev/reference/api/utils/beamintersectsx/en.md index ebdd472b0e4..b3d854bf790 100644 --- a/markdown/dev/reference/api/utils/beamintersectsx/en.md +++ b/markdown/dev/reference/api/utils/beamintersectsx/en.md @@ -9,7 +9,9 @@ Point | false utils.beamIntersectsX(Point A, Point B, float X) Finds the intersection between an endless line and a given X-value. Returns a [Point](#point) object for the intersection, or `false` there is no intersection. - + +A Utils.beamIntersectsX() example + ```js let { diff --git a/markdown/dev/reference/api/utils/beamintersectsy/en.md b/markdown/dev/reference/api/utils/beamintersectsy/en.md index f7e36909d83..f043898d58f 100644 --- a/markdown/dev/reference/api/utils/beamintersectsy/en.md +++ b/markdown/dev/reference/api/utils/beamintersectsy/en.md @@ -9,7 +9,9 @@ Point | false utils.beamIntersectsY(Point A, Point B, float Y) Finds the intersection between an endless line and a given Y-value. Returns a [Point](#point) object for the intersection, or `false` there is no intersection. - + +A Utils.beamIntersectsY() example + ```js let { diff --git a/markdown/dev/reference/api/utils/beamsintersect/en.md b/markdown/dev/reference/api/utils/beamsintersect/en.md index 062c535a030..fc5ae94e26f 100644 --- a/markdown/dev/reference/api/utils/beamsintersect/en.md +++ b/markdown/dev/reference/api/utils/beamsintersect/en.md @@ -14,7 +14,9 @@ Point | false utils.beamsIntersect( Finds the intersection between two endless lines (beams). Returns a [Point](#point) object for the intersection, or `false` if the lines don't intersect. - + +A Utils.beamIntersect() example + ```js let { diff --git a/markdown/dev/reference/api/utils/circlesintersect/en.md b/markdown/dev/reference/api/utils/circlesintersect/en.md index c95c70c67f1..77ee1a139b7 100644 --- a/markdown/dev/reference/api/utils/circlesintersect/en.md +++ b/markdown/dev/reference/api/utils/circlesintersect/en.md @@ -22,7 +22,9 @@ Set sort to: - `x` : The point with the lowest X-coordinate will go first (left to right) - `y` : The point with the lowest Y-coordinate will go first (top to bottom) - + +A Utils.circlesIntersect() example + ```js let { Point, points, Snippet, snippets, utils } = part.shorthand(); diff --git a/markdown/dev/reference/api/utils/curvesintersect/en.md b/markdown/dev/reference/api/utils/curvesintersect/en.md index ff17cf7706b..4a5519f5e05 100644 --- a/markdown/dev/reference/api/utils/curvesintersect/en.md +++ b/markdown/dev/reference/api/utils/curvesintersect/en.md @@ -16,7 +16,9 @@ array | false utils.curvesIntersect( Finds the intersections between two curves described by 4 points each. - + +A Utils.curvesIntersect() example + ```js let { diff --git a/markdown/dev/reference/api/utils/lineintersectscircle/en.md b/markdown/dev/reference/api/utils/lineintersectscircle/en.md index 70b7b64ffda..f349ba976aa 100644 --- a/markdown/dev/reference/api/utils/lineintersectscircle/en.md +++ b/markdown/dev/reference/api/utils/lineintersectscircle/en.md @@ -23,7 +23,9 @@ Set sort to: - `x` : The point with the lowest X-coordinate will go first (left to right) - `y` : The point with the lowest Y-coordinate will go first (top to bottom) - + +A Utils.lineIntersectsCircle() example + ```js let { diff --git a/markdown/dev/reference/api/utils/lineintersectscurve/en.md b/markdown/dev/reference/api/utils/lineintersectscurve/en.md index 383e212b0ec..d53fa94dc3e 100644 --- a/markdown/dev/reference/api/utils/lineintersectscurve/en.md +++ b/markdown/dev/reference/api/utils/lineintersectscurve/en.md @@ -16,7 +16,9 @@ array | false utils.lineIntersectsCurve( Finds the intersection between a line segment from point `from` to point `to` and a curve described by points `start`, `cp1`, `cp2, and `end`. - + +A Utils.lineIntersectsCurve() example + ```js let { diff --git a/markdown/dev/reference/api/utils/linesintersect/en.md b/markdown/dev/reference/api/utils/linesintersect/en.md index 314ad94b68a..a97fe0743c6 100644 --- a/markdown/dev/reference/api/utils/linesintersect/en.md +++ b/markdown/dev/reference/api/utils/linesintersect/en.md @@ -14,7 +14,9 @@ Point | false utils.linesIntersect( Finds the intersection between two line segments. Returns a [Point](#point) object for the intersection, or `false` if the lines don't intersect. - + +A Utils.linesIntersect() example + ```js let { diff --git a/markdown/dev/reference/api/utils/pointonbeam/en.md b/markdown/dev/reference/api/utils/pointonbeam/en.md index 9569a2a9838..14d8899c217 100644 --- a/markdown/dev/reference/api/utils/pointonbeam/en.md +++ b/markdown/dev/reference/api/utils/pointonbeam/en.md @@ -26,7 +26,9 @@ When that happens, you can lower the precision so you get what you expect. - + +A Utils.pointOnBeam() example + ```js let { diff --git a/markdown/dev/reference/api/utils/pointoncurve/en.md b/markdown/dev/reference/api/utils/pointoncurve/en.md index a663885dbac..953a3fd2e76 100644 --- a/markdown/dev/reference/api/utils/pointoncurve/en.md +++ b/markdown/dev/reference/api/utils/pointoncurve/en.md @@ -20,7 +20,9 @@ Keep in mind that calculations with Bezier curves are often aproximations. - + +A Utils.pointOnCurve() example + ```js let { diff --git a/markdown/dev/reference/api/utils/pointonline/en.md b/markdown/dev/reference/api/utils/pointonline/en.md index 468090b6175..65fe13547ff 100644 --- a/markdown/dev/reference/api/utils/pointonline/en.md +++ b/markdown/dev/reference/api/utils/pointonline/en.md @@ -15,7 +15,9 @@ Returns `true` if the point `check` lies on a line segment from point `from` to The fourth parameter controls the precision. See [pointOnBeam](#utilspointonbeam). - + +A Utils.pointOnLine() example + ```js let { diff --git a/markdown/dev/tutorials/pattern-design/avoiding-overlap/en.md b/markdown/dev/tutorials/pattern-design/avoiding-overlap/en.md index 41e95c190b2..32703439581 100644 --- a/markdown/dev/tutorials/pattern-design/avoiding-overlap/en.md +++ b/markdown/dev/tutorials/pattern-design/avoiding-overlap/en.md @@ -47,7 +47,10 @@ While we're at it, let's add a point where the closure's snap should go: points.snapLeft = points.top.shiftFractionTowards(points.edgeTop, 0.5) ``` - + +The right part looks a bit wonky now, but we'll get to that + + Now let's mirror this on the other side, and replace our `neck` and `rect` paths with a new path. diff --git a/markdown/dev/tutorials/pattern-design/completing-the-neck-opening/en.md b/markdown/dev/tutorials/pattern-design/completing-the-neck-opening/en.md index ca2bb88259e..701afd7574d 100644 --- a/markdown/dev/tutorials/pattern-design/completing-the-neck-opening/en.md +++ b/markdown/dev/tutorials/pattern-design/completing-the-neck-opening/en.md @@ -64,5 +64,7 @@ paths.neck = new Path() .close() ``` - + +And now you have a complete neck opening + diff --git a/markdown/dev/tutorials/pattern-design/completing-your-pattern/en.md b/markdown/dev/tutorials/pattern-design/completing-your-pattern/en.md index 076d3466644..ce19b65c30b 100644 --- a/markdown/dev/tutorials/pattern-design/completing-your-pattern/en.md +++ b/markdown/dev/tutorials/pattern-design/completing-your-pattern/en.md @@ -172,7 +172,10 @@ macro("scalebox", { at: points.scalebox }) And with that, our pattern is now *complete*: - + +We used attributes to add color, dashes, text on a path and even opacity + + We're not done yet though. There's one more thing the user can ask for: a *paperless* pattern. diff --git a/markdown/dev/tutorials/pattern-design/creating-the-closure/en.md b/markdown/dev/tutorials/pattern-design/creating-the-closure/en.md index bd4b741eb2b..d343a54f173 100644 --- a/markdown/dev/tutorials/pattern-design/creating-the-closure/en.md +++ b/markdown/dev/tutorials/pattern-design/creating-the-closure/en.md @@ -59,7 +59,9 @@ macro("round", { You can find more information on the `round` macro in [the macros docs](/reference/api/macros/round/). - + +Pretty good, but how are we going to fit it over the baby's head? + Like our neck opening, we've only drawn half since we can simply copy the points to the other side. diff --git a/markdown/dev/tutorials/pattern-design/drawing-the-bib-outline/en.md b/markdown/dev/tutorials/pattern-design/drawing-the-bib-outline/en.md index d5e5e94fb99..6350deafc32 100644 --- a/markdown/dev/tutorials/pattern-design/drawing-the-bib-outline/en.md +++ b/markdown/dev/tutorials/pattern-design/drawing-the-bib-outline/en.md @@ -63,5 +63,8 @@ and the sides are equidistant from the neck neck opening. You didn't have to do that. But it looks nicely balanced this way: - + +Note how the neck opening is the same distance from the left, right, and top edge + + diff --git a/markdown/dev/tutorials/pattern-design/drawing-the-straps/en.md b/markdown/dev/tutorials/pattern-design/drawing-the-straps/en.md index b58ccb60dea..532e6dcd97b 100644 --- a/markdown/dev/tutorials/pattern-design/drawing-the-straps/en.md +++ b/markdown/dev/tutorials/pattern-design/drawing-the-straps/en.md @@ -113,7 +113,10 @@ macro("round", { With that out of the way, our bib now looks like this: - + +That is looking a lot like a bib + + diff --git a/markdown/dev/tutorials/pattern-design/paperless-bib/en.md b/markdown/dev/tutorials/pattern-design/paperless-bib/en.md index 71afb4dfd76..f2a6defe053 100644 --- a/markdown/dev/tutorials/pattern-design/paperless-bib/en.md +++ b/markdown/dev/tutorials/pattern-design/paperless-bib/en.md @@ -83,7 +83,9 @@ if (paperless) { There's a lot going on, but it's mostly repetition. To see what that did to your pattern, you have to enable *paperless mode* in your developing environment; you can find the option under *Pattern options* on the right. Let's look at the end result, and discuss: - + +Your paperless bib + We used the `hd` macro to add two horizontal dimensions: diff --git a/markdown/dev/tutorials/pattern-design/rounding-the-corners/en.md b/markdown/dev/tutorials/pattern-design/rounding-the-corners/en.md index 3975be88fce..d5aa904582d 100644 --- a/markdown/dev/tutorials/pattern-design/rounding-the-corners/en.md +++ b/markdown/dev/tutorials/pattern-design/rounding-the-corners/en.md @@ -72,7 +72,9 @@ and keep the rest of the path as it was. The shape our bib is now completed: - + +That is looking a lot like a bib + diff --git a/markdown/dev/tutorials/pattern-design/shaping-the-straps/en.md b/markdown/dev/tutorials/pattern-design/shaping-the-straps/en.md index 54829f8099c..9eab40fc3c1 100644 --- a/markdown/dev/tutorials/pattern-design/shaping-the-straps/en.md +++ b/markdown/dev/tutorials/pattern-design/shaping-the-straps/en.md @@ -44,5 +44,7 @@ paths.rect = new Path() All of a sudden, things are starting to look like a bib: - + +Pretty good, but how are we going to fit it over the baby's head? + diff --git a/markdown/dev/tutorials/pattern-design/your-first-part/en.md b/markdown/dev/tutorials/pattern-design/your-first-part/en.md index 3924537d4b0..2e04367c63a 100644 --- a/markdown/dev/tutorials/pattern-design/your-first-part/en.md +++ b/markdown/dev/tutorials/pattern-design/your-first-part/en.md @@ -70,6 +70,9 @@ In our case, we have a part named `bib` so we're using `draftBib()` as the metho Congratulations, your pattern now has a `bib` part, rather than a `box` part. It still looks the same though: - + +Our bib part, which is the renamed box part + + This `bib` part is where we'll do some real work. But first, we have some more configuration to do.