ITransformerOptions
interface ITransformerOptions
Summary
Properties from ITransformerOptions
"all" | "groupOnly" | "none" |
"all" or "groupOnly". "groupOnly" won't show individual bounding boxes. |
boolean |
Enable box rotation by dragging outside of corners |
number |
The radial tolerance for box rotation |
boolean |
Enable box scaling by dragging at the edges |
number |
The tolerance for scaling at the edges |
boolean |
Whether scaling should always be centered |
Array<Handle> |
Specifically define which handles are to be enabled |
PIXI.DisplayObject[] |
The group of display-objects being transformed |
typeof TransformerHandle |
A custom transformer-handle class |
Partial<ITransformerHandleStyle> |
Styling options for the handle. These cannot be modified afterwards! |
boolean |
Lock aspect ratio when scaling using one of the corner handles. |
boolean |
Whether rotate handles are enabled |
number[] |
|
number |
The snap tolerance for rotation in radians |
boolean |
Whether scale handles are enabled |
boolean |
Whether skew handles are enabled |
number |
|
number[] |
The skew snap angles, in radians. |
number |
The skew snap tolerance angle. |
PIXI.Container |
The root object in your scene in which the transformed objects exist. |
boolean |
|
boolean |
Whether dragging the transformer should move the group |
Partial<ITransformerStyle> |
Styling options for the wireframe. |
Public Properties
boundingBoxes: "all" | "groupOnly" | "none"
"all" or "groupOnly". "groupOnly" won't show individual bounding boxes.
boxRotationEnabled: boolean
Enable box rotation by dragging outside of corners
boxRotationTolerance: number
The radial tolerance for box rotation
boxScalingEnabled: boolean
Enable box scaling by dragging at the edges
boxScalingTolerance: number
The tolerance for scaling at the edges
centeredScaling: boolean
Whether scaling should always be centered
enabledHandles: Array<Handle>
Specifically define which handles are to be enabled
handleConstructor: typeof TransformerHandle
A custom transformer-handle class
handleStyle: Partial<ITransformerHandleStyle>
Styling options for the handle. These cannot be modified afterwards!
lockAspectRatio: boolean
Lock aspect ratio when scaling using one of the corner handles.
rotationSnaps: number[]
The rotation snap angles, in radians. By default, transformer will snap for each 1/8th of a revolution.
rotationSnapTolerance: number
The snap tolerance for rotation in radians
skewRadius: number
Distance of skew handles from center of transformer box
(skewTransform
should be enabled)
stage: PIXI.Container
The root object in your scene in which the transformed objects exist.
transientGroupTilt: boolean
Whether the transformer should reset the wireframe's rotation after a rotator handle is "defocused".
translateEnabled: boolean
Whether dragging the transformer should move the group
wireframeStyle: Partial<ITransformerStyle>
Styling options for the wireframe.