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

@ -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)
<Example part="utils_beamintersectscircle" caption="A Utils.beamIntersectsCircle() example" />
<Example part="utils_beamintersectscircle">
A Utils.beamIntersectsCircle() example
</Example>
```js
let {

View file

@ -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.
<Example part="utils_beamintersectsx" caption="A Utils.beamIntersectsX() example" />
<Example part="utils_beamintersectsx">
A Utils.beamIntersectsX() example
</Example>
```js
let {

View file

@ -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.
<Example part="utils_beamintersectsy" caption="A Utils.beamIntersectsY() example" />
<Example part="utils_beamintersectsy">
A Utils.beamIntersectsY() example
</Example>
```js
let {

View file

@ -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.
<Example part="utils_beamsintersect" caption="A Utils.beamIntersect() example" />
<Example part="utils_beamsintersect">
A Utils.beamIntersect() example
</Example>
```js
let {

View file

@ -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)
<Example part="utils_circlesintersect" caption="A Utils.circlesIntersect() example" />
<Example part="utils_circlesintersect">
A Utils.circlesIntersect() example
</Example>
```js
let { Point, points, Snippet, snippets, utils } = part.shorthand();

View file

@ -16,7 +16,9 @@ array | false utils.curvesIntersect(
Finds the intersections between two curves described by 4 points each.
<Example part="utils_curvesintersect" caption="A Utils.curvesIntersect() example" />
<Example part="utils_curvesintersect">
A Utils.curvesIntersect() example
</Example>
```js
let {

View file

@ -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)
<Example part="utils_lineintersectscircle" caption="A Utils.lineIntersectsCircle() example" />
<Example part="utils_lineintersectscircle">
A Utils.lineIntersectsCircle() example
</Example>
```js
let {

View file

@ -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`.
<Example part="utils_lineintersectscurve" caption="A Utils.lineIntersectsCurve() example" />
<Example part="utils_lineintersectscurve">
A Utils.lineIntersectsCurve() example
</Example>
```js
let {

View file

@ -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.
<Example part="utils_linesintersect" caption="A Utils.linesIntersect() example" />
<Example part="utils_linesintersect">
A Utils.linesIntersect() example
</Example>
```js
let {

View file

@ -26,7 +26,9 @@ When that happens, you can lower the precision so you get what you expect.
</Note>
<Example part="utils_pointonbeam" caption="A Utils.pointOnBeam() example" />
<Example part="utils_pointonbeam">
A Utils.pointOnBeam() example
</Example>
```js
let {

View file

@ -20,7 +20,9 @@ Keep in mind that calculations with Bezier curves are often aproximations.
</Note>
<Example part="utils_pointoncurve" caption="A Utils.pointOnCurve() example" />
<Example part="utils_pointoncurve">
A Utils.pointOnCurve() example
</Example>
```js
let {

View file

@ -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).
<Example part="utils_pointonline" caption="A Utils.pointOnLine() example" />
<Example part="utils_pointonline">
A Utils.pointOnLine() example
</Example>
```js
let {