Layout kit command

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)
Changes the document
yes
Acts on
id (one id), which a run step’s on fills

Parameters

Parameters of text.pathOptions
NameTypeRequiredDescription
align"baseline" | "ascender" | "descender" | "center"no
deletebooleannoDelete Type from Path
edgestringnoread by the command beside its listed parameters
flipbooleanno
idinteger | stringno
startnumberno
tostringnoread 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/[email protected] and the kit itself (layout_commands through @kition/[email protected], built from KitionAI/kition-layout@8767a18). As data: commands.jsonl.