Design kit command

vector.edit.select

Select points

Selects points, segments, handles or regions in vector edit mode.

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

Parameters

Parameters of vector.edit.select
NameTypeRequiredDescription
addbooleanno
handlesnumber[][]no
idinteger | stringnoan id; an edited layer, made active
regionsnumber[]no[i]; filled regions, with their points
segmentsnumber[]no[i]
verticesnumber[]no[i]

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "vector.edit.select" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: add, handles, id, regions, segments, vertices. design_run answers the step’s result in completed[i].result.

Result

Result JSON Schema
json
{}

Parameter schema

json
{
  "additionalProperties": false,
  "properties": {
    "add": {
      "type": "boolean"
    },
    "handles": {
      "items": {
        "description": "[segment, start]",
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "id": {
      "description": "an id; an edited layer, made active",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Node"
      ]
    },
    "regions": {
      "description": "[i]; filled regions, with their points",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "segments": {
      "description": "[i]",
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "vertices": {
      "description": "[i]",
      "items": {
        "type": "number"
      },
      "type": "array"
    }
  },
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (design_commands through @kition/[email protected], built from KitionAI/kition-design@abc7e16). As data: commands.jsonl.