Design kit command

vector.edit.paint

Paint bucket

Fills or unfills the closed areas under page points, as the paint bucket does.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of vector.edit.paint
NameTypeRequiredDescription
pointsnumber[][]noin one of several forms of the parameters
xnumbernoin one of several forms of the parameters
ynumbernoin one of several forms of the parameters

Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: points, 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": {
    "points": {
      "description": "in one of several forms of the parameters",
      "items": {
        "items": {
          "type": "number"
        },
        "type": "array"
      },
      "type": "array"
    },
    "x": {
      "description": "in one of several forms of the parameters",
      "type": "number"
    },
    "y": {
      "description": "in one of several forms of the parameters",
      "type": "number"
    }
  },
  "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.