Skip to content

Commit a7a6614

Browse files
Update api spec (#228)
* YOYO NEW API SPEC! * Generated new lib --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 810cf48 commit a7a6614

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

spec.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21333,6 +21333,36 @@
2133321333
"type"
2133421334
]
2133521335
},
21336+
{
21337+
"description": "Fit the view to the specified object(s).",
21338+
"type": "object",
21339+
"properties": {
21340+
"object_ids": {
21341+
"nullable": true,
21342+
"description": "Which objects to fit to",
21343+
"type": "array",
21344+
"items": {
21345+
"type": "string",
21346+
"format": "uuid"
21347+
}
21348+
},
21349+
"padding": {
21350+
"description": "How much to pad the view frame by.",
21351+
"type": "number",
21352+
"format": "float"
21353+
},
21354+
"type": {
21355+
"type": "string",
21356+
"enum": [
21357+
"zoom_to_fit"
21358+
]
21359+
}
21360+
},
21361+
"required": [
21362+
"padding",
21363+
"type"
21364+
]
21365+
},
2133621366
{
2133721367
"description": "Get a concise description of all of an extrusion's faces.",
2133821368
"type": "object",

src/models.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2673,6 +2673,15 @@ export type ModelingCmd_type =
26732673
parameters?: PerspectiveCameraParameters_type;
26742674
type: 'default_camera_set_perspective';
26752675
}
2676+
| {
2677+
/*{
2678+
"format": "uuid"
2679+
}*/
2680+
object_ids: string[];
2681+
/* format:float, description:How much to pad the view frame by. */
2682+
padding: number;
2683+
type: 'zoom_to_fit';
2684+
}
26762685
| {
26772686
/* format:uuid, description:Any edge that lies on the extrusion base path. */
26782687
edge_id: string;

0 commit comments

Comments
 (0)