ILayer

interface
Layout & Sizing

Bounding-box record used by the layout system to track occupied space on each side of the main area.

TypeScript

Definition

The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

top
required
number
Space consumed at the top of the layout main area, in pixels.
bottom
required
number
Space consumed at the bottom of the layout main area, in pixels.
left
required
number
Space consumed on the left side of the layout main area, in pixels.
right
required
number
Space consumed on the right side of the layout main area, in pixels.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Reading mainRect from the layout provide

typescript