Board kit command

connector.setWaypoints

Connector bends

Replaces a connector's bend points; an empty list returns it to an automatic route.

Kit
Board 0.1.0 (.kboard)
Changes the document
yes
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of connector.setWaypoints
NameTypeRequiredDescription
idstringyesThe connector
waypointsnumber[][]yesBends in path order; empty for an automatic route

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "connector.setWaypoints", "params": { "id": <string>, "waypoints": <number[][]> } }]
}

The required parameters, with placeholders for their types: not a tested example. board_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": {
    "id": {
      "description": "The connector",
      "type": "string",
      "x-khp-types": [
        "Element"
      ]
    },
    "waypoints": {
      "description": "Bends in path order; empty for an automatic route",
      "items": {
        "items": {
          "description": "Coordinate",
          "maximum": 1000000,
          "minimum": -1000000,
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    }
  },
  "required": [
    "id",
    "waypoints"
  ],
  "type": "object"
}

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