Layout kit command
anchored.options
Anchored Object Options
Changes an anchored object's position and offsets.
- Kit
- Layout 0.1.0 (.klayout)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
align | "left" | "center" | "right" | no | |
edge | string | no | read by the command beside its listed parameters |
index | integer | no | a position counted from 0 (the first is 0); default: the object at the insertion point |
keepWithinColumn | boolean | no | |
objectPoint | integer | no | 0 to 8 |
position | "inline" | "aboveLine" | "custom" | no | |
refPoint | integer | no | 0 to 8 |
spaceAfter | number | no | |
spaceBefore | number | no | |
story | integer | no | a story id from file.inspect |
to | string | no | read by the command beside its listed parameters |
xOffset | number | no | points |
xRelative | "anchor" | "textFrame" | "columnEdge" | "pageMargin" | "pageEdge" | no | |
yOffset | number | no | points |
yRelative | "anchor" | "textFrame" | "columnEdge" | "pageMargin" | "pageEdge" | no |
Call through layout_run
text
layout_run {
"path": "<file>.klayout",
"steps": [{ "command": "anchored.options" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: align, edge, index, keepWithinColumn, objectPoint, position, refPoint, spaceAfter, spaceBefore, story, to, xOffset, xRelative, yOffset, yRelative. 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": [
"left",
"center",
"right"
],
"type": "string"
},
"edge": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"index": {
"description": "a position counted from 0 (the first is 0); default: the object at the insertion point",
"type": "integer"
},
"keepWithinColumn": {
"type": "boolean"
},
"objectPoint": {
"description": "0 to 8",
"type": "integer"
},
"position": {
"enum": [
"inline",
"aboveLine",
"custom"
],
"type": "string"
},
"refPoint": {
"description": "0 to 8",
"type": "integer"
},
"spaceAfter": {
"type": "number"
},
"spaceBefore": {
"type": "number"
},
"story": {
"description": "a story id from file.inspect",
"type": "integer",
"x-khp-types": [
"Story"
]
},
"to": {
"description": "read by the command beside its listed parameters",
"type": "string"
},
"xOffset": {
"description": "points",
"type": "number"
},
"xRelative": {
"enum": [
"anchor",
"textFrame",
"columnEdge",
"pageMargin",
"pageEdge"
],
"type": "string"
},
"yOffset": {
"description": "points",
"type": "number"
},
"yRelative": {
"enum": [
"anchor",
"textFrame",
"columnEdge",
"pageMargin",
"pageEdge"
],
"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.