1
0
Fork 0

fix(markdown): Move caption to children

This commit is contained in:
Joost De Cock 2022-01-19 11:31:39 +01:00
parent 76d13e3fa3
commit 7bebd8cf07
96 changed files with 304 additions and 213 deletions

View file

@ -13,10 +13,9 @@ float point.angle(Point pointB)
## Point.angle() Example
<Example
part="point_angle"
caption="An example of the Point.angle() method"
/>
<Example part="point_angle">
An example of the Point.angle() method
</Example>
```js
let { Point, points, Path, paths } = part.shorthand();

View file

@ -22,10 +22,9 @@ If the third parameter is set to `true` it will call [`this.attributes.set()`](/
## Point.attr() example
<Example
part="point_attr"
caption="An example of the Point.attr() method"
/>
<Example part="point_attr">
An example of the Point.attr() method
</Example>
```js
let { Point, points } = part.shorthand();

View file

@ -21,10 +21,9 @@ The [`Point.copy()`](reference/api/point/copy/) method will only copy the point'
## Point.clone() example
<Example
part="point_clone"
caption="An example of the Point.clone() method"
/>
<Example part="point_clone">
An example of the Point.clone() method
</Example>
```js
let { Point, points, Snippet, snippets } = part.shorthand();

View file

@ -21,10 +21,9 @@ To also copy the attributes, use [`Point.clone()`](reference/api/point/clone/) i
## Point.copy() example
<Example
part="point_copy"
caption="An example of the Point.copy() method"
/>
<Example part="point_copy">
An example of the Point.copy() method
</Example>
```js
let { Point, points, Snippet, snippets } = part.shorthand();

View file

@ -12,10 +12,9 @@ float point.dist(Point point)
## Point.dist() example
<Example
part="point_dist"
caption="An example of the Point.dist() method"
/>
<Example part="point_dist">
An example of the Point.dist() method
</Example>
```js
let { Point, points, Path, paths } = part.shorthand()

View file

@ -12,10 +12,9 @@ float point.dx(Point point)
## Point.dx() example
<Example
part="point_dx"
caption="An example of the Point.dx() method"
/>
<Example part="point_dx">
An example of the Point.dx() method
</Example>
```js
let { Point, points, Path, paths } = part.shorthand()

View file

@ -12,10 +12,9 @@ float point.dy(Point point)
## Point.dy() example
<Example
part="point_dy"
caption="An example of the Point.dy() method"
/>
<Example part="point_dy">
An example of the Point.dy() method
</Example>
```js
let { Point, points, Path, paths } = part.shorthand()

View file

@ -13,10 +13,9 @@ Point point.flipX(Point mirror = false)
## Point.flipX() example
<Example
part="point_flipx"
caption="An example of the Point.flipX() method"
/>
<Example part="point_flipx">
An example of the Point.flipX() method
</Example>
```js
let { Point, points, Path, paths } = part.shorthand();

View file

@ -13,10 +13,9 @@ Point point.flipY(Point mirror = false)
## Point.flipY() example
<Example
part="point_flipy"
caption="An example of the Point.flipY() method"
/>
<Example part="point_flipy">
An example of the Point.flipY() method
</Example>
```js
let { Point, points, Path, paths } = part.shorthand();

View file

@ -15,10 +15,9 @@ Point point.rotate(float angle, Point center)
## Point.rotate() example
<Example
part="point_rotate"
caption="An example of the Point.rotate() method"
/>
<Example part="point_rotate">
An example of the4Point.rotate() method
</Example>
```js
let { Point, points, Path, paths, Snippet, snippets } = part.shorthand();

View file

@ -13,10 +13,9 @@ Point point.shift(float angle, float distance)
## Point.shift() example
<Example
part="point_shift"
caption="An example of the Point.shift() method"
/>
<Example part="point_shift">
An example of the Point.shift() method
</Example>
```js
let { Point, points, macro } = part.shorthand();

View file

@ -18,10 +18,9 @@ Point point.shiftFractionTowards(Point target, float fraction)
## Point.shiftFractionTowards() example
<Example
part="point_shiftfractiontowards"
caption="An example of the Point.shiftFractionTowards() method"
/>
<Example part="point_shiftfractiontowards">
An example of the Point.shiftFractionTowards() method
</Example>
```js
let { Point, points, Path, paths, macro } = part.shorthand();

View file

@ -12,10 +12,9 @@ Point point.shiftOutwards(Point target, float distance)
## Point.shiftOutwards() example
<Example
part="point_shiftoutwards"
caption="An example of the Point.shiftOutwards() method"
/>
<Example part="point_shiftoutwards">
An example of the Point.shiftOutwards() method
</Example>
```js
let { Point, points, Path, paths, macro } = part.shorthand();

View file

@ -14,10 +14,9 @@ Point point.shiftTowards(Point target, float distance)
## Point.shiftTowards() example
<Example
part="point_shifttowards"
caption="An example of the Point.shiftTowards() method"
/>
<Example part="point_shifttowards">
An example of the Point.shiftTowards() method
</Example>
```js
let { Point, points, Path, paths, macro } = part.shorthand();

View file

@ -24,10 +24,9 @@ bool point.sitsOn(Point check)
## Point.sitsOn() example
<Example
part="point_sitson"
caption="An example of the Point.sitsOn() method"
/>
<Example part="point_sitson">
An example of the Point.sitsOn() method
</Example>
```js
let { Point, points, Snippet, snippets } = part.shorthand();

View file

@ -21,10 +21,9 @@ that this one rounds things down to the nearest integer (thus mm) before checkin
## Point.sitsRoughlyOn() example
<Example
part="point_sitsroughlyon"
caption="An example of the Point.sitsRoughlyOn() method"
/>
<Example part="point_sitsroughlyon">
An example of the Point.sitsRoughlyOn() method
</Example>
```js
let { Point, points, Snippet, snippets } = part.shorthand();

View file

@ -19,10 +19,9 @@ Positive values for `deltaX` will move the point to the right. Positive values f
## Point.translate() example
<Example
part="point_translate"
caption="An example of the Point.translate() method"
/>
<Example part="point_translate">
An example of the Point.translate() method
</Example>
```js
let { Point, points, Snippet, snippets, macro } = part.shorthand();