Layout kit command
transform.set
Transform Panel
Sets objects' position, size, scale, rotation and shear exactly, as the Transform panel does.
- 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 |
|---|---|---|---|
bounds | number[] | no | with content: the graphic's box [x0, y0, x1, y1] on the spread |
content | boolean | no | size and place each frame's placed graphic, not the frame |
height | number | no | |
ids | (integer | string)[] | no | |
ref | integer | no | 0 to 8 |
rotation | number | no | ° |
scaleX | number | no | percent |
scaleY | number | no | percent |
shear | number | no | degrees |
width | number | no | |
x | number | no | |
y | number | no |
Call through layout_run
text
layout_run {
"path": "<file>.klayout",
"steps": [{ "command": "transform.set" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: bounds, content, height, ids, ref, rotation, scaleX, scaleY, shear, width, x, y. 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": {
"bounds": {
"description": "with content: the graphic's box [x0, y0, x1, y1] on the spread",
"items": {
"type": "number"
},
"type": "array"
},
"content": {
"description": "size and place each frame's placed graphic, not the frame",
"type": "boolean"
},
"height": {
"type": "number"
},
"ids": {
"items": {
"description": "an id",
"oneOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"type": "array",
"x-khp-types": [
"Item"
]
},
"ref": {
"description": "0 to 8",
"type": "integer"
},
"rotation": {
"description": "°",
"type": "number"
},
"scaleX": {
"description": "percent",
"type": "number"
},
"scaleY": {
"description": "percent",
"type": "number"
},
"shear": {
"description": "degrees",
"type": "number"
},
"width": {
"type": "number"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"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.