Vector kit command
object.transform
Transform
Applies an affine matrix to the selection or ids, optionally as a copy and with strokes, corners, type areas and patterns scaling or not.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
- Acts on
ids(a list of ids), which a run step’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
copy | boolean | no | |
corners | boolean | no | |
ids | integer[] | no | object IDs |
matrix | number[] | no | [a, b, c, d, e, f] |
patterns | boolean | no | Transform Patterns: pattern fills and strokes transform with the art; default: prefs transformPatternTiles |
strokes | boolean | no | |
typeAreas | boolean | no |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "object.transform" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: copy, corners, ids, matrix, patterns, strokes, 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": {
"type": "boolean"
},
"ids": {
"description": "object IDs",
"items": {
"type": "integer"
},
"type": "array",
"x-khp-types": [
"Node"
]
},
"matrix": {
"description": "[a, b, c, d, e, f]",
"items": {
"type": "number"
},
"type": "array"
},
"patterns": {
"description": "Transform Patterns: pattern fills and strokes transform with the art; default: prefs transformPatternTiles",
"type": "boolean"
},
"strokes": {
"type": "boolean"
},
"typeAreas": {
"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.