Layout kit command

text.onPath

Type on a Path

Puts text on a path, with a start distance, flip and alignment.

Kit
Layout 0.1.0 (.klayout)
Changes the document
yes
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of text.onPath
NameTypeRequiredDescription
align"baseline" | "ascender" | "descender" | "center"no
edgestringnoread by the command beside its listed parameters
flipbooleanno
idstringno
startnumbernodistance along the path in points
textstringno
tostringnoread by the command beside its listed parameters

Call through layout_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: align, edge, flip, id, start, text, 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"
    },
    "edge": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    },
    "flip": {
      "type": "boolean"
    },
    "id": {
      "type": "string",
      "x-khp-types": [
        "Item"
      ]
    },
    "start": {
      "description": "distance along the path in points",
      "type": "number"
    },
    "text": {
      "type": "string"
    },
    "to": {
      "description": "read by the command beside its listed parameters",
      "type": "string"
    }
  },
  "returns": "{story} — the text cursor goes into it",
  "type": "object"
}

Generated from the command list of @kition/[email protected] and the kit itself (layout_commands through @kition/[email protected], built from KitionAI/kition-layout@8767a18). As data: commands.jsonl.