chore: Port FreeSewing.dev to docusaurus
The replaces the NextJS site powering FreeSewing.dev with a Docusaurus setup. It's part of my efforts to simplify FreeSewing's setup so we can focus on our core value proposition.
This commit is contained in:
parent
497633d1d3
commit
ab3204f9f1
692 changed files with 11037 additions and 20674 deletions
38
sites/dev/docs/reference/api/point/angle/readme.mdx
Normal file
38
sites/dev/docs/reference/api/point/angle/readme.mdx
Normal file
|
@ -0,0 +1,38 @@
|
|||
---
|
||||
title: Point.angle()
|
||||
---
|
||||
|
||||
The `Point.angle()` method returns the angle (in degrees) between this point
|
||||
and the point passed into the method. An angle of 0° points to the right, and
|
||||
the angle increases counterclockwise.
|
||||
|
||||
## Signature
|
||||
|
||||
```js
|
||||
float point.angle(Point pointB)
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
<Example caption="An example of the Point.angle() method">
|
||||
```js
|
||||
({ Point, points, Path, paths, part }) => {
|
||||
|
||||
points.sun = new Point(10, 5)
|
||||
points.moon = points.sun.shift(-15, 70)
|
||||
points.text = points.sun
|
||||
.shiftFractionTowards(points.moon, 0.8)
|
||||
.setText(
|
||||
points.sun.angle(points.moon)+"°",
|
||||
"text-sm fill-note center"
|
||||
)
|
||||
|
||||
paths.line = new Path()
|
||||
.move(points.sun)
|
||||
.line(points.moon)
|
||||
.setClass("dashed")
|
||||
|
||||
return part
|
||||
}
|
||||
```
|
||||
</Example>
|
Loading…
Add table
Add a link
Reference in a new issue