Vector kit command
path.mirrorCut
Mirror & Cut
Cuts the selected art along an axis and mirrors the kept side onto the other, as one undo step.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
axis | "vertical" | "horizontal" | "free" | no | vertical |
from | number[] | no | |
keep | "left" | "right" | "top" | "bottom" | no | the side kept; default left, or top for a horizontal-ish axis |
to | number[] | no | free: the axis through both; vertical/horizontal: the axis through `from`, default the selection's centre |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "path.mirrorCut" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: axis, from, keep, to. 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": {
"axis": {
"description": "vertical",
"enum": [
"vertical",
"horizontal",
"free"
],
"type": "string"
},
"from": {
"items": {
"type": "number"
},
"type": "array"
},
"keep": {
"description": "the side kept; default left, or top for a horizontal-ish axis",
"enum": [
"left",
"right",
"top",
"bottom"
],
"type": "string"
},
"to": {
"description": "free: the axis through both; vertical/horizontal: the axis through `from`, default the selection's centre",
"items": {
"type": "number"
},
"type": "array"
}
},
"returns": "{ids, removed}",
"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.