Interface: ResizeOptions
Defined in: src/interaction/manipulation/ManipulationTypes.ts:78
Options for resizing a UICard by dragging one of its corners.
Properties
anchor?
optionalanchor:"center"|"opposite"
Defined in: src/interaction/manipulation/ManipulationTypes.ts:84
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:94
Maximum card size in meters. Defaults to 10 meters per axis.
minSize?
optionalminSize:ResizeSize
Defined in: src/interaction/manipulation/ManipulationTypes.ts:92
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.
overshoot?
optionalovershoot:boolean
Defined in: src/interaction/manipulation/ManipulationTypes.ts:110
Lets a corner dragged past minSize or maxSize push the card's edge
slightly past the limit, and the size snaps back to the limit on release.
The release's update and end events report the snapped size. Width and
height overshoot independently. Content floors and aspect-locked
resizes stay hard limits. Defaults to true on a UICard.
preserveAspectRatio?
optionalpreserveAspectRatio:boolean
Defined in: src/interaction/manipulation/ManipulationTypes.ts:96
Keeps the card's width-to-height ratio while resizing. Defaults to false.
smoothing?
optionalsmoothing:boolean
Defined in: src/interaction/manipulation/ManipulationTypes.ts:102
Eases the card toward the dragged size instead of following the pointer
exactly, with the same ease as raySmoothing. Defaults to true on a
UICard.