1
0
Fork 0

Add a few more fixes that I hadn't saved

This commit is contained in:
nikhil 2022-08-20 18:33:05 -04:00
parent b87f19022d
commit 48bff82681
7 changed files with 11 additions and 11 deletions

View file

@ -7,9 +7,9 @@ Your plugin will receive the Pattern object.
It is triggered just before the end of either: It is triggered just before the end of either:
- the [Pattern.sampleOption()](/reference/api/pattern/#sampleoption) method - the [Pattern.sampleOption()](/reference/api/pattern/sampleoption) method
- the [Pattern.sampleMeasurement()](/reference/api/pattern/#samplemeasurement) method - the [Pattern.sampleMeasurement()](/reference/api/pattern/samplemeasurement) method
- the [Pattern.sampleModels()](/reference/api/pattern/#samplemodels) method - the [Pattern.sampleModels()](/reference/api/pattern/samplemodels) method
<Note> <Note>

View file

@ -9,7 +9,7 @@ SVG `defs` section, and rendered with the SVG `use` tag.
The snippet constructor takes two arguments: The snippet constructor takes two arguments:
- `def` : The `xlink:href` id that links to the relevant entry in the SVG `defs` section - `def` : The `xlink:href` id that links to the relevant entry in the SVG `defs` section
- `anchor` : A [`Point`](./point) on which to anchor the snippet - `anchor` : A [`Point`](/reference/api/point) on which to anchor the snippet
```js ```js
Snippet new Snippet(def, Point); Snippet new Snippet(def, Point);
@ -18,8 +18,8 @@ Snippet new Snippet(def, Point);
A Snippet object comes with the following properties: A Snippet object comes with the following properties:
- `def` : The `xlink:href` id that links to the relevant entry in the SVG `defs` section - `def` : The `xlink:href` id that links to the relevant entry in the SVG `defs` section
- `anchor` : A [`Point`](./point) on which to anchor the snippet - `anchor` : A [`Point`](/reference/api/point) on which to anchor the snippet
- `attributes` : An [`Attributes`](./attributes) instance holding the snippet's attributes - `attributes` : An [`Attributes`](/reference/api/attributes) instance holding the snippet's attributes
In addition, a Snippet object exposes the following methods: In addition, a Snippet object exposes the following methods:

View file

@ -6,7 +6,7 @@ title: beamIntersectsX()
Point | false utils.beamIntersectsX(Point A, Point B, float X) 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 Finds the intersection between an endless line and a given X-value. Returns a [Point](/reference/api/point) object
for the intersection, or `false` there is no intersection. for the intersection, or `false` there is no intersection.
<Example part="utils_beamintersectsx"> <Example part="utils_beamintersectsx">

View file

@ -6,7 +6,7 @@ title: beamIntersectsY()
Point | false utils.beamIntersectsY(Point A, Point B, float Y) 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 Finds the intersection between an endless line and a given Y-value. Returns a [Point](/reference/api/point) object
for the intersection, or `false` there is no intersection. for the intersection, or `false` there is no intersection.
<Example part="utils_beamintersectsy"> <Example part="utils_beamintersectsy">

View file

@ -11,7 +11,7 @@ Point | false utils.beamsIntersect(
) )
``` ```
Finds the intersection between two endless lines (beams). Returns a [Point](../point) object Finds the intersection between two endless lines (beams). Returns a [Point](/reference/api/point) object
for the intersection, or `false` if the lines don't intersect. for the intersection, or `false` if the lines don't intersect.
<Example part="utils_beamsintersect"> <Example part="utils_beamsintersect">

View file

@ -14,7 +14,7 @@ array | Point | false utils.curveIntersectsX(
Finds the point(s) where a curve intersects a given X-value. Finds the point(s) where a curve intersects a given X-value.
This is a low-level variant This is a low-level variant
of [`Path.intersectsX()`](/reference/api/path#intersectsx). of [`Path.intersectsX()`](/reference/api/path/intersectsx).
Instead of a path, you describe a single curve by passing the four Instead of a path, you describe a single curve by passing the four
points that describes it. points that describes it.

View file

@ -14,7 +14,7 @@ array | Point | false utils.curveIntersectsY(
Finds the point(s) where a curve intersects a given Y-value. Finds the point(s) where a curve intersects a given Y-value.
This is a low-level variant This is a low-level variant
of [`Path.intersectsY()`](/reference/api/path#intersectsy). of [`Path.intersectsY()`](/reference/api/path/intersectsy).
Instead of a path, you describe a single curve by passing the four Instead of a path, you describe a single curve by passing the four
points that describes it. points that describes it.