Vector kit command

text.pathOptions

Type on a Path Options…

Sets type-on-a-path options: start and end brackets, flip, effect (rainbow, skew, ribbon, stair step, gravity), alignment and spacing.

Kit
Vector 0.1.0 (.kvector)
Changes the document
yes
Acts on
ids (a list of ids), which a run step’s on fills

Parameters

Parameters of text.pathOptions
NameTypeRequiredDescription
alignToPath"ascender" | "descender" | "center" | "baseline"no
effect"rainbow" | "skew" | "3dRibbon" | "stairStep" | "gravity"no
endnumber | nullno
flipbooleanno
idintegernoobject ID
idsinteger[]noobject IDs
spacingnumbernopoints
startnumberno0 to 1

Call through vector_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: alignToPath, effect, end, flip, id, ids, spacing, start. 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": {
    "alignToPath": {
      "enum": [
        "ascender",
        "descender",
        "center",
        "baseline"
      ],
      "type": "string"
    },
    "effect": {
      "enum": [
        "rainbow",
        "skew",
        "3dRibbon",
        "stairStep",
        "gravity"
      ],
      "type": "string"
    },
    "end": {
      "oneOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "flip": {
      "type": "boolean"
    },
    "id": {
      "description": "object ID",
      "type": "integer",
      "x-khp-types": [
        "Node"
      ]
    },
    "ids": {
      "description": "object IDs",
      "items": {
        "type": "integer"
      },
      "type": "array",
      "x-khp-types": [
        "Node"
      ]
    },
    "spacing": {
      "description": "points",
      "type": "number"
    },
    "start": {
      "description": "0 to 1",
      "type": "number"
    }
  },
  "returns": "the first object's {start, end, flip: false, effect, alignToPath, spacing}",
  "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.