Design kit command

board.sticky

Sticky note

Adds a sticky note with text and colour on a board; answers its id.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of board.sticky
NameTypeRequiredDescription
authorstring | booleanno
colorstringnoyellow|orange|red|pink|violet|blue|green|gray or hex; default the sticky tool's
idinteger | stringnoread by the command beside its listed parameters
parentinteger | stringnoan id (a number, or its digits as text)
textstringno
xnumberno
ynumbernoits top-left, in the parent

Call through design_run

text
design_run {
  "path": "<file>.kdesign",
  "steps": [{ "command": "board.sticky" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: author, color, id, parent, text, x, y. design_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": {
    "author": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "boolean"
        }
      ]
    },
    "color": {
      "description": "yellow|orange|red|pink|violet|blue|green|gray or hex; default the sticky tool's",
      "type": "string"
    },
    "id": {
      "description": "read by the command beside its listed parameters",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ]
    },
    "parent": {
      "description": "an id (a number, or its digits as text)",
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Node"
      ]
    },
    "text": {
      "type": "string"
    },
    "x": {
      "type": "number"
    },
    "y": {
      "description": "its top-left, in the parent",
      "type": "number"
    }
  },
  "returns": "{id, text}",
  "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.