Make the function signature less prominent, add an early example to docs

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-06-19 17:08:46 +12:00
parent 6358eed7e4
commit ff1be99351
99 changed files with 2137 additions and 686 deletions

View File

@ -8,11 +8,16 @@ layout: manual
Extract the provided 2-dimensional sketch's profile's origin value.
```kcl
profileStart(@profile: Sketch): Point2d
sketch001 = startSketchOn(XY)
|> startProfile(at = [5, 2])
|> angledLine(angle = 120, length = 50, tag = $seg01)
|> angledLine(angle = segAng(seg01) + 120deg, length = 50)
|> line(end = profileStart(%))
|> close()
|> extrude(length = 20)
```
### Arguments
| Name | Type | Description | Required |
@ -24,6 +29,12 @@ profileStart(@profile: Sketch): Point2d
[`Point2d`](/docs/kcl-std/types/std-types-Point2d) - A point in two dimensional space.
### Function signature
```kcl
profileStart(@profile: Sketch): Point2d
```
### Examples
```kcl