Design kit command

vector.edit.widthPoint

Width point

Adds, moves, resizes or removes a variable-width point on the edited path's stroke.

Kit
Design 0.1.0 (.kdesign)
Changes the document
yes

Parameters

Parameters of vector.edit.widthPoint
NameTypeRequiredDescription
action"add" | "set" | "remove"no
indexintegernoa position counted from 0 (the first is 0)
scalenumberno× stroke weight, instead of width
side"left" | "right"noonly that side of the path changes
tnumberno
widthnumberno

Call through design_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: action, index, scale, side, t, width. 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": {
    "action": {
      "enum": [
        "add",
        "set",
        "remove"
      ],
      "type": "string"
    },
    "index": {
      "description": "a position counted from 0 (the first is 0)",
      "type": "integer"
    },
    "scale": {
      "description": "× stroke weight, instead of width",
      "type": "number"
    },
    "side": {
      "description": "only that side of the path changes",
      "enum": [
        "left",
        "right"
      ],
      "type": "string"
    },
    "t": {
      "type": "number"
    },
    "width": {
      "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.