Vector kit command

select.anchorsMany

Select Anchors

Sets, adds, toggles or subtracts direct-selected anchors on several paths at once.

Kit
Vector 0.1.0 (.kvector)
Changes the document
no

Parameters

Parameters of select.anchorsMany
NameTypeRequiredDescription
addbooleannoread by the command beside its listed parameters
anchorsany[]noread by the command beside its listed parameters
idsany[]noread by the command beside its listed parameters
itemsobject[]no[{id, anchors}]
mode"set" | "add" | "toggle" | "subtract"noset by default; add: true is mode add

Call through vector_run

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

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

Result

Result JSON Schema
json
{}

Parameter schema

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