Board kit command

layout.align

Align

Lines up the elements' left, centre, right, top, middle or bottom edges.

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

Parameters

Parameters of layout.align
NameTypeRequiredDescription
edge"left" | "center" | "right" | "top" | "middle" | "bottom"yesWhat to line up
idsstring[]yesThe elements

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "layout.align", "params": { "edge": <"left" | "center" | "right" | "top" | "middle" | "bottom">, "ids": <string[]> } }]
}

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": {
    "edge": {
      "description": "What to line up",
      "enum": [
        "left",
        "center",
        "right",
        "top",
        "middle",
        "bottom"
      ],
      "type": "string"
    },
    "ids": {
      "description": "The elements",
      "items": {
        "type": "string"
      },
      "type": "array",
      "x-khp-types": [
        "Element"
      ]
    }
  },
  "required": [
    "edge",
    "ids"
  ],
  "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.