{
"id": "org.atsui.Clip",
"defs": {
"main": {
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"children"
],
"properties": {
"max": {
"ref": "#aspectRatio",
"type": "ref",
"description": "Maximum box proportions (tallest allowed shape). E.g. {width:1, height:2} means at most twice as tall as wide."
},
"min": {
"ref": "#aspectRatio",
"type": "ref",
"description": "Minimum box proportions (shortest allowed shape). E.g. {width:1, height:1} means at least as tall as wide."
},
"children": {
"type": "unknown"
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"ref": "at.inlay.defs#response",
"type": "ref"
},
"encoding": "application/json"
},
"description": "Clips child content to a height range relative to its own width. Use min and max to bound the box proportions. Set both to the same value to force an exact aspect ratio."
},
"aspectRatio": {
"type": "object",
"required": [
"width",
"height"
],
"properties": {
"width": {
"type": "integer",
"minimum": 1
},
"height": {
"type": "integer",
"minimum": 1
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}