Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update api spec #259

Merged
merged 3 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kittycad/lib",
"version": "0.0.75",
"version": "0.0.76",
"description": "Javascript library for KittyCAD API",
"type": "module",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -21706,7 +21706,7 @@
}
},
"padding": {
"description": "How much to pad the view frame by.",
"description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box.",
"type": "number",
"format": "float"
},
Expand Down
5 changes: 4 additions & 1 deletion src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2813,7 +2813,10 @@ export type ModelingCmd_type =
"format": "uuid"
}*/
object_ids: string[];
/* format:float, description:How much to pad the view frame by. */
/*{
"format": "float",
"description": "How much to pad the view frame by, as a fraction of the object(s) bounding box size. Negative padding will crop the view of the object proportionally. e.g. padding = 0.2 means the view will span 120% of the object(s) bounding box, and padding = -0.2 means the view will span 80% of the object(s) bounding box."
}*/
padding: number;
type: 'zoom_to_fit';
}
Expand Down