Interface: ResizeOptions
Defined in: src/interaction/manipulation/ManipulationTypes.ts:71
Options for resizing a UICard by dragging one of its corners.
Properties
anchor?
optionalanchor:"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?
optionalmaxSize:ResizeSize
Defined in: src/interaction/manipulation/ManipulationTypes.ts:87
Maximum card size in meters. Unbounded by default.
minSize?
optionalminSize: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?
optionalpreserveAspectRatio:boolean
Defined in: src/interaction/manipulation/ManipulationTypes.ts:89
Keeps the card's width-to-height ratio while resizing. Defaults to false.