Skip to content

IDisplayObject

Type interface

Sources

IDisplayObject is an interface: it describes a shape of data and is not imported on its own.

Inheritance

IDisplayObject extends any.

IDisplayObject is extended by IContainer, IGraphics, IPicture.

Properties

alpha

Type number

angle

Type number

buttonMode

Type boolean

cancelTouch

Type boolean

crisp

Type boolean

cursorOverStyle

Type undefined | string

exportable

Type undefined | false | true

filter

Type undefined | string

inactive

Type boolean | null

interactive

Type boolean

isMeasured

Type boolean

mask

Type IGraphics | null

pivot

Type IPoint

scale

Type number

visible

Type boolean

wheelable

Type boolean

x

Type number

y

Type number

Methods

clear()

Returns void

getAdjustedBounds(bounds?: IBounds)

Returns IBounds

getCanvas()

Returns HTMLCanvasElement

getLayer()

Returns ILayer

getLocalBounds()

Returns IBounds

hovering()

Returns boolean

invalidateBounds()

Returns void

markDirtyLayer(deep?: undefined | false | true)

Returns void

on(key: Key,
callback: (this: C, event: IRendererEvents[""]) => void,
context?: C
)

Returns IDisposer

setLayer(order: number | undefined,
margin: IMargin | undefined
)

Returns void

toGlobal(point: IPoint)

Returns IPoint

toLocal(point: IPoint)

Returns IPoint