---
title: "text.pathOptions: Type on a Path Options — Layout kit command — Kition"
description: "Changes type on a path's start, flip and alignment, or removes it."
canonical: "https://developer.kition.ai/docs/kits/layout/commands/text.pathOptions"
---

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

# text.pathOptions

**Type on a Path Options.** Changes type on a path's start, flip and alignment, or removes it.

- Kit: Layout 0.1.0 (.klayout); reference: [Layout kit commands](https://developer.kition.ai/docs/kits/layout.md)
- Changes the document: yes
- Acts on: `id` (one id), which a run step’s `on` fills

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `align` | `"baseline" \| "ascender" \| "descender" \| "center"` | no |  |
| `delete` | `boolean` | no | Delete Type from Path |
| `edge` | `string` | no | read by the command beside its listed parameters |
| `flip` | `boolean` | no |  |
| `id` | `integer \| string` | no |  |
| `start` | `number` | no |  |
| `to` | `string` | no | read by the command beside its listed parameters |

## Call through layout_run

```text
layout_run {
  "path": "<file>.klayout",
  "steps": [{ "command": "text.pathOptions" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `align`, `delete`, `edge`, `flip`, `id`, `start`, `to`. layout_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": {
    "align": {
      "enum": [
        "baseline",
        "ascender",
        "descender",
        "center"
      ],
      "type": "string"
    },
    "delete": {
      "default": true,
      "description": "Delete Type from Path",
      "type": "boolean"
    },
    "edge": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "flip": {
      "type": "boolean"
    },
    "id": {
      "oneOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "x-khp-types": [
        "Item"
      ]
    },
    "start": {
      "type": "number"
    },
    "to": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/layout-darwin-arm64@0.1.0 and the kit itself (layout_commands through @kition/cli@0.1.1, built from KitionAI/kition-layout@8767a18).
