Vector kit command

select.anchors

Select Anchors

Sets, adds or toggles the direct selection of anchors (subpath and anchor indices) on path id.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of select.anchors
NameTypeRequiredDescription
anchorsany[]no
idintegernoobject ID
idsany[]noread by the command beside its listed parameters
mode"set" | "add" | "toggle"no

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "select.anchors" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: anchors, id, ids, mode. vector_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "anchors": {
      "type": "array"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "read by the command beside its listed parameters",
      "type": "array"
    },
    "mode": {
      "enum": [
        "set",
        "add",
        "toggle"
      ],
      "type": "string"
    }
  },
  "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.