Skip to main content

Interface: ResizeOptions

Defined in: src/interaction/manipulation/ManipulationTypes.ts:71

Options for resizing a UICard by dragging one of its corners.

Properties​

anchor?​

optional anchor: "center" | "opposite"

Defined in: src/interaction/manipulation/ManipulationTypes.ts:77

Point kept fixed while a corner is dragged. center grows the card around its center, matching Android XR and Quest panels. opposite keeps the corner opposite the dragged one in place. Defaults to center.


maxSize?​

optional maxSize: ResizeSize

Defined in: src/interaction/manipulation/ManipulationTypes.ts:87

Maximum card size in meters. Unbounded by default.


minSize?​

optional minSize: ResizeSize

Defined in: src/interaction/manipulation/ManipulationTypes.ts:85

Minimum card size in meters. Defaults to 0.1 meters per axis. Without an explicit width, the card never gets narrower than its content allows, and without an explicit height it never gets shorter than its content needs at the current width. Set height when the card scrolls its own content.


preserveAspectRatio?​

optional preserveAspectRatio: boolean

Defined in: src/interaction/manipulation/ManipulationTypes.ts:89

Keeps the card's width-to-height ratio while resizing. Defaults to false.