Layout kit command
preflight.run
Preflight Document
Checks the document for output problems (missing fonts and links, low-resolution images, overset text…) and answers the issues.
- Kit
- Layout 0.1.0 (.klayout)
- Changes the document
- no
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
minPpi | integer | no |
Call through layout_run
text
layout_run {
"path": "<file>.klayout",
"steps": [{ "command": "preflight.run" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: minPpi. layout_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
errors | number | no | |
issues | any[] | no | |
warnings | number | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"errors": {
"type": "number"
},
"issues": {
"type": "array"
},
"warnings": {
"type": "number"
}
},
"type": "object"
}Parameter schema
json
{
"additionalProperties": false,
"properties": {
"minPpi": {
"default": 150,
"type": "integer"
}
},
"returns": "issues [{severity, kind, message, item?, page? (0-based), details (what the message names, by kind)}]",
"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.