Layout kit command

object.textFrameOptions

Text Frame Options

Sets text frames' columns, gutter, insets, vertical justification, first baseline, auto-size and column rules.

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

Parameters

Parameters of object.textFrameOptions
NameTypeRequiredDescription
autoSizebooleanno
balanceColumnsbooleanno
columnRulebooleanno
columnRuleBottomInsetnumbernopoints
columnRuleColorstringno#rrggbb or a swatch name
columnRuleOffsetnumbernopoints
columnRuleTintnumberno0..1
columnRuleTopInsetnumbernopoints
columnRuleWeightnumbernopoints
columnsintegerno
firstBaselinestringno
gutternumbernopoints
ids(integer | string)[]no
ignoreWrapbooleanno
insetnumber | number[]no
verticalbooleannosets the story direction of the frames' stories, as Type ▸ Story Direction
verticalJustification"top" | "center" | "bottom" | "justify"no

Call through layout_run

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

The required parameters, with placeholders for their types: not a tested example. Optional: autoSize, balanceColumns, columnRule, columnRuleBottomInset, columnRuleColor, columnRuleOffset, columnRuleTint, columnRuleTopInset, columnRuleWeight, columns, firstBaseline, gutter, ids, ignoreWrap, inset, vertical, verticalJustification. 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": {
    "autoSize": {
      "type": "boolean"
    },
    "balanceColumns": {
      "type": "boolean"
    },
    "columnRule": {
      "type": "boolean"
    },
    "columnRuleBottomInset": {
      "description": "points",
      "type": "number"
    },
    "columnRuleColor": {
      "description": "#rrggbb or a swatch name",
      "type": "string",
      "x-khp-name": "name",
      "x-khp-types": [
        "Swatch"
      ]
    },
    "columnRuleOffset": {
      "description": "points",
      "type": "number"
    },
    "columnRuleTint": {
      "description": "0..1",
      "type": "number"
    },
    "columnRuleTopInset": {
      "description": "points",
      "type": "number"
    },
    "columnRuleWeight": {
      "description": "points",
      "type": "number"
    },
    "columns": {
      "type": "integer"
    },
    "firstBaseline": {
      "type": "string"
    },
    "gutter": {
      "description": "points",
      "type": "number"
    },
    "ids": {
      "items": {
        "description": "an id",
        "oneOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      },
      "type": "array",
      "x-khp-types": [
        "Item"
      ]
    },
    "ignoreWrap": {
      "type": "boolean"
    },
    "inset": {
      "oneOf": [
        {
          "description": "points on every side",
          "type": "number"
        },
        {
          "description": "[top, left, bottom, right] points",
          "items": {
            "type": "number"
          },
          "type": "array"
        }
      ]
    },
    "vertical": {
      "description": "sets the story direction of the frames' stories, as Type ▸ Story Direction",
      "type": "boolean"
    },
    "verticalJustification": {
      "enum": [
        "top",
        "center",
        "bottom",
        "justify"
      ],
      "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.