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’sonfills
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
autoSize | boolean | no | |
balanceColumns | boolean | no | |
columnRule | boolean | no | |
columnRuleBottomInset | number | no | points |
columnRuleColor | string | no | #rrggbb or a swatch name |
columnRuleOffset | number | no | points |
columnRuleTint | number | no | 0..1 |
columnRuleTopInset | number | no | points |
columnRuleWeight | number | no | points |
columns | integer | no | |
firstBaseline | string | no | |
gutter | number | no | points |
ids | (integer | string)[] | no | |
ignoreWrap | boolean | no | |
inset | number | number[] | no | |
vertical | boolean | no | sets the story direction of the frames' stories, as Type ▸ Story Direction |
verticalJustification | "top" | "center" | "bottom" | "justify" | no |
Call through layout_run
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
{
"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.