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
| Name | Type | Required | Description |
|---|---|---|---|
action | "add" | "set" | "remove" | no | |
index | integer | no | a position counted from 0 (the first is 0) |
scale | number | no | × stroke weight, instead of width |
side | "left" | "right" | no | only that side of the path changes |
t | number | no | |
width | number | no |
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.