org.atsui.Clip
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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | atsui.org |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"aspectRatio": {
"properties": {
"height": {
"minimum": 1,
"type": "integer"
},
"width": {
"minimum": 1,
"type": "integer"
}
},
"required": [
"width",
"height"
],
"type": "object"
},
"main": {
"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.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"children": {
"type": "unknown"
},
"max": {
"description": "Maximum box proportions (tallest allowed shape). E.g. {width:1, height:2} means at most twice as tall as wide.",
"ref": "#aspectRatio",
"type": "ref"
},
"min": {
"description": "Minimum box proportions (shortest allowed shape). E.g. {width:1, height:1} means at least as tall as wide.",
"ref": "#aspectRatio",
"type": "ref"
}
},
"required": [
"children"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"ref": "at.inlay.defs#response",
"type": "ref"
}
},
"type": "procedure"
}
},
"id": "org.atsui.Clip",
"lexicon": 1
}