---
title: "text.pathOptions: Type on a Path Options… — Vector kit command — Kition"
description: "Sets type-on-a-path options: start and end brackets, flip, effect (rainbow, skew, ribbon, stair step, gravity), alignment and spacing."
canonical: "https://developer.kition.ai/docs/kits/vector/commands/text.pathOptions"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/vector/commands/text.pathOptions](https://developer.kition.ai/docs/kits/vector/commands/text.pathOptions)

# 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); reference: [Vector kit commands](https://developer.kition.ai/docs/kits/vector.md)
- Changes the document: yes
- Acts on: `ids` (a list of ids), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `alignToPath` | `"ascender" \| "descender" \| "center" \| "baseline"` | no |  |
| `effect` | `"rainbow" \| "skew" \| "3dRibbon" \| "stairStep" \| "gravity"` | no |  |
| `end` | `number \| null` | no |  |
| `flip` | `boolean` | no |  |
| `id` | `integer` | no | object ID |
| `ids` | `integer[]` | no | object IDs |
| `spacing` | `number` | no | points |
| `start` | `number` | no | 0 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/vector-darwin-arm64@0.1.0 and the kit itself (vector_commands through @kition/cli@0.1.1, built from KitionAI/kition-vector@7cf908f).
