Board kit command

edit.paste

Paste

Places copies of a edit.copy payload on a page, at `at` or offset from the originals; answers the new elements' ids, and in `skipped` the pictures left out because this board does not store their bytes (copied on another board).

Kit
Board 0.1.0 (.kboard)
Changes the document
yes

Parameters

Parameters of edit.paste
NameTypeRequiredDescription
atnumber[] | objectno[x, y] for the copies' top-left corner
pagestringnoThe page's id; the shown page when absent
payloadobjectyesA edit.copy payload (application/x-kition-board+json)

Call through board_run

text
board_run {
  "path": "<file>.kboard",
  "steps": [{ "command": "edit.paste", "params": { "payload": <object> } }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: at, page. 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": {
    "at": {
      "description": "[x, y] for the copies' top-left corner",
      "oneOf": [
        {
          "items": {
            "description": "One component",
            "maximum": 1000000,
            "minimum": -1000000,
            "type": "number"
          },
          "type": "array"
        },
        {
          "additionalProperties": false,
          "properties": {
            "x": {
              "description": "One component",
              "maximum": 1000000,
              "minimum": -1000000,
              "type": "number"
            },
            "y": {
              "description": "One component",
              "maximum": 1000000,
              "minimum": -1000000,
              "type": "number"
            }
          },
          "required": [
            "x",
            "y"
          ],
          "type": "object"
        }
      ]
    },
    "page": {
      "description": "The page's id; the shown page when absent",
      "type": "string",
      "x-khp-types": [
        "Page"
      ]
    },
    "payload": {
      "additionalProperties": true,
      "description": "A edit.copy payload (application/x-kition-board+json)",
      "properties": {
        "elements": {
          "description": "The copied elements",
          "items": {
            "additionalProperties": true,
            "properties": {
              "end": {
                "additionalProperties": true,
                "properties": {
                  "binding": {
                    "additionalProperties": true,
                    "properties": {
                      "target": {
                        "description": "The element the end is bound to",
                        "type": "string",
                        "x-khp-role": "object",
                        "x-khp-types": [
                          "Element"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "ref": {
                "description": "The copied element's id",
                "type": "string"
              },
              "start": {
                "additionalProperties": true,
                "properties": {
                  "binding": {
                    "additionalProperties": true,
                    "properties": {
                      "target": {
                        "description": "The element the end is bound to",
                        "type": "string",
                        "x-khp-role": "object",
                        "x-khp-types": [
                          "Element"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              }
            },
            "type": "object"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  },
  "required": [
    "payload"
  ],
  "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.