Vector kit command

livePaint.strokeEdge

Region Paint Bucket (Stroke)

Paints the Region Paint edge nearest a point with a stroke colour, swatch or none and a width.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes

Parameters

Parameters of livePaint.strokeEdge
NameTypeRequiredDescription
colorstringnodefault: current stroke; one of several alternative parameters
gradientstringnoread by the command beside its listed parameters
groupintegernoobject ID
keepModelbooleannoread by the command beside its listed parameters
nonebooleanno
paintobjectnoread by the command beside its listed parameters
pointnumber[]no
swatchstringno
tintintegernoread by the command beside its listed parameters
tolerancenumbernopoints; 4
widthnumbernopoints; default: current weight

Call through vector_run

text
vector_run {
  "path": "<file>.kvector",
  "steps": [{ "command": "livePaint.strokeEdge" }]
}

The required parameters, with placeholders for their types: not a tested example. Optional: color, gradient, group, keepModel, none, paint, point, swatch, tint, tolerance, width. vector_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": {
    "color": {
      "description": "default: current stroke; one of several alternative parameters",
      "type": "string"
    },
    "gradient": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "group": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "keepModel": {
      "description": "read by the command beside its listed parameters",
      "type": "boolean"
    },
    "none": {
      "type": "boolean"
    },
    "paint": {
      "additionalProperties": true,
      "description": "read by the command beside its listed parameters",
      "type": "object"
    },
    "point": {
      "items": {
        "type": "number"
      },
      "type": "array"
    },
    "swatch": {
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch",
        "Pattern"
      ]
    },
    "tint": {
      "description": "read by the command beside its listed parameters",
      "type": "integer"
    },
    "tolerance": {
      "description": "points; 4",
      "type": "number"
    },
    "width": {
      "description": "points; default: current weight",
      "type": "number"
    }
  },
  "returns": "{group, edge}",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (vector_commands through @kition/[email protected], built from KitionAI/kition-vector@7cf908f). As data: commands.jsonl.