Vector kit command
object.scale
Scale…
Scales the selection by sx and sy percent about an origin, optionally as a copy and scaling strokes, corners and patterns.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
copy | boolean | no | |
corners | boolean | no | Scale Corners: corner radii scale |
ids | any[] | no | read by the command beside its listed parameters |
matrix | any[] | no | read by the command beside its listed parameters |
origin | number[] | no | |
patterns | boolean | no | Transform Patterns: pattern fills and strokes transform with the art; default: prefs transformPatternTiles |
strokes | boolean | no | Scale Strokes & Effects: stroke weights, dashes and effect distances scale; off keeps them, type strokes included |
sx | number | no | percent |
sy | number | no | percent |
typeAreas | boolean | no | read by the command beside its listed parameters |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.scale" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: copy, corners, ids, matrix, origin, patterns, strokes, sx, sy, typeAreas. vector_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
json
{
"additionalProperties": false,
"properties": {
"copy": {
"type": "boolean"
},
"corners": {
"description": "Scale Corners: corner radii scale",
"type": "boolean"
},
"ids": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"matrix": {
"description": "read by the command beside its listed parameters",
"type": "array"
},
"origin": {
"items": {
"type": "number"
},
"type": "array"
},
"patterns": {
"description": "Transform Patterns: pattern fills and strokes transform with the art; default: prefs transformPatternTiles",
"type": "boolean"
},
"strokes": {
"description": "Scale Strokes & Effects: stroke weights, dashes and effect distances scale; off keeps them, type strokes included",
"type": "boolean"
},
"sx": {
"description": "percent",
"type": "number"
},
"sy": {
"description": "percent",
"type": "number"
},
"typeAreas": {
"description": "read by the command beside its listed parameters",
"type": "boolean"
}
},
"type": "object"
}Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.