Start end for sketch on face (#1406)

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add tests

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* clippy

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2024-02-13 10:26:09 -08:00
committed by GitHub
parent 808830d29e
commit cfbc77b62f
10 changed files with 211 additions and 28 deletions

View File

@ -27979,9 +27979,33 @@
},
{
"name": "tag",
"type": "String",
"type": "SketchOnFaceTag",
"schema": {
"type": "string",
"description": "A tag for sketch on face.",
"anyOf": [
{
"oneOf": [
{
"description": "The start face as in before you extruded. This could also be known as the bottom face. But we do not call it bottom because it would be the top face if you extruded it in the opposite direction or flipped the camera.",
"type": "string",
"enum": [
"start"
]
},
{
"description": "The end face after you extruded. This could also be known as the top face. But we do not call it top because it would be the bottom face if you extruded it in the opposite direction or flipped the camera.",
"type": "string",
"enum": [
"end"
]
}
]
},
{
"description": "A string tag for the face you want to sketch on.",
"type": "string"
}
],
"nullable": true
},
"required": true

View File

@ -5149,7 +5149,7 @@ Start a sketch on a specific plane or face.
```
startSketchOn(data: SketchData, tag: String) -> SketchSurface
startSketchOn(data: SketchData, tag: SketchOnFaceTag) -> SketchSurface
```
#### Arguments
@ -5239,7 +5239,11 @@ startSketchOn(data: SketchData, tag: String) -> SketchSurface
},
}
```
* `tag`: `String`
* `tag`: `SketchOnFaceTag` - A tag for sketch on face.
```
"start" | "end" |
string
```
#### Returns