ITransformerOptions

interface ITransformerOptions

Summary


Properties from ITransformerOptions

"all" | "groupOnly" | "none"
boundingBoxes

"all" or "groupOnly". "groupOnly" won't show individual bounding boxes.

boolean
boxRotationEnabled

Enable box rotation by dragging outside of corners

number
boxRotationTolerance

The radial tolerance for box rotation

boolean
boxScalingEnabled

Enable box scaling by dragging at the edges

number
boxScalingTolerance

The tolerance for scaling at the edges

boolean
centeredScaling

Whether scaling should always be centered

Array<Handle>
enabledHandles

Specifically define which handles are to be enabled

PIXI.DisplayObject[]
group

The group of display-objects being transformed

typeof TransformerHandle
handleConstructor

A custom transformer-handle class

Partial<ITransformerHandleStyle>
handleStyle

Styling options for the handle. These cannot be modified afterwards!

boolean
lockAspectRatio

Lock aspect ratio when scaling using one of the corner handles.

boolean
rotateEnabled

Whether rotate handles are enabled

number[]
rotationSnaps
number
rotationSnapTolerance

The snap tolerance for rotation in radians

boolean
scaleEnabled

Whether scale handles are enabled

boolean
skewEnabled

Whether skew handles are enabled

number
skewRadius
number[]
skewSnaps

The skew snap angles, in radians.

number
skewSnapTolerance

The skew snap tolerance angle.

PIXI.Container
stage

The root object in your scene in which the transformed objects exist.

boolean
transientGroupTilt
boolean
translateEnabled

Whether dragging the transformer should move the group

Partial<ITransformerStyle>
wireframeStyle

Styling options for the wireframe.

Public Properties


boundingBoxes Transformer.ts:232
boundingBoxes: "all" | "groupOnly" | "none"

"all" or "groupOnly". "groupOnly" won't show individual bounding boxes.

boxRotationEnabled Transformer.ts:235
boxRotationEnabled: boolean

Enable box rotation by dragging outside of corners

boxRotationTolerance Transformer.ts:238
boxRotationTolerance: number

The radial tolerance for box rotation

boxScalingEnabled Transformer.ts:241
boxScalingEnabled: boolean

Enable box scaling by dragging at the edges

boxScalingTolerance Transformer.ts:244
boxScalingTolerance: number

The tolerance for scaling at the edges

centeredScaling Transformer.ts:247
centeredScaling: boolean

Whether scaling should always be centered

enabledHandles Transformer.ts:253
enabledHandles: Array<Handle>

Specifically define which handles are to be enabled

group Transformer.ts:256
group: PIXI.DisplayObject[]

The group of display-objects being transformed

handleConstructor Transformer.ts:259
handleConstructor: typeof TransformerHandle

A custom transformer-handle class

handleStyle Transformer.ts:262
handleStyle: Partial<ITransformerHandleStyle>

Styling options for the handle. These cannot be modified afterwards!

lockAspectRatio Transformer.ts:265
lockAspectRatio: boolean

Lock aspect ratio when scaling using one of the corner handles.

rotateEnabled Transformer.ts:268
rotateEnabled: boolean

Whether rotate handles are enabled

rotationSnaps Transformer.ts:271
rotationSnaps: number[]

The rotation snap angles, in radians. By default, transformer will snap for each 1/8th of a revolution.

rotationSnapTolerance Transformer.ts:277
rotationSnapTolerance: number

The snap tolerance for rotation in radians

scaleEnabled Transformer.ts:280
scaleEnabled: boolean

Whether scale handles are enabled

skewEnabled Transformer.ts:283
skewEnabled: boolean

Whether skew handles are enabled

skewRadius Transformer.ts:286
skewRadius: number

Distance of skew handles from center of transformer box (skewTransform should be enabled)

skewSnaps Transformer.ts:292
skewSnaps: number[]

The skew snap angles, in radians.

skewSnapTolerance Transformer.ts:295
skewSnapTolerance: number

The skew snap tolerance angle.

stage Transformer.ts:298
stage: PIXI.Container

The root object in your scene in which the transformed objects exist.

transientGroupTilt Transformer.ts:304
transientGroupTilt: boolean

Whether the transformer should reset the wireframe's rotation after a rotator handle is "defocused".

translateEnabled Transformer.ts:301
translateEnabled: boolean

Whether dragging the transformer should move the group

wireframeStyle Transformer.ts:310
wireframeStyle: Partial<ITransformerStyle>

Styling options for the wireframe.


Powered by webdoc!