Vector kit command
paint.toggleActive
Toggle Fill/Stroke Focus
Brings the Fill or the Stroke proxy forward (or swaps them), which decides what paint.none and swatch clicks change; answers which is active.
- Kit
- Vector 0.1.0 (.kvector)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
fill | boolean | no | true: bring the Fill proxy forward, false: the Stroke proxy; omitted: swap which is in front |
Call through vector_run
text
vector_run {
"path": "<file>.kvector",
"steps": [{ "command": "paint.toggleActive" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: fill. vector_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
fillActive | boolean | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"fillActive": {
"type": "boolean"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"fill": {
"description": "true: bring the Fill proxy forward, false: the Stroke proxy; omitted: swap which is in front",
"type": "boolean"
}
},
"returns": "{fillActive}",
"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.