org.atsui.Clip

atsui.org

Documentation

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.

main procedure

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

Encodingapplication/json
children unknown Required

No description available.

max ref#aspectRatio Optional

Maximum box proportions (tallest allowed shape). E.g. {width:1, height:2} means at most twice as tall as wide.

min ref#aspectRatio Optional

Minimum box proportions (shortest allowed shape). E.g. {width:1, height:1} means at least as tall as wide.

Output

Encodingapplication/json
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "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 object

No description available.

Properties

height integer Required

No description available.

minimum: 1
width integer Required

No description available.

minimum: 1
View raw schema
{
  "type": "object",
  "required": [
    "width",
    "height"
  ],
  "properties": {
    "width": {
      "type": "integer",
      "minimum": 1
    },
    "height": {
      "type": "integer",
      "minimum": 1
    }
  }
}

Lexicon Garden

@