Skip to content

Class: ImageEvent

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new ImageEvent(type, data): ImageEvent

Parameters

NameType
typestring
dataIImageEvent

Returns

ImageEvent

Overrides

Event.constructor

Defined in

leafer/packages/event/src/ImageEvent.ts:17

Properties

origin

Readonly origin: IObject

Implementation of

IImageEvent.origin

Inherited from

Event.origin

Defined in

leafer/packages/event/src/Event.ts:7


type

Readonly type: string

Implementation of

IImageEvent.type

Inherited from

Event.type

Defined in

leafer/packages/event/src/Event.ts:9


target

Readonly target: IEventTarget

Implementation of

IImageEvent.target

Inherited from

Event.target

Defined in

leafer/packages/event/src/Event.ts:10


current

Readonly current: IEventTarget

Implementation of

IImageEvent.current

Inherited from

Event.current

Defined in

leafer/packages/event/src/Event.ts:11


bubbles

Readonly bubbles: boolean = false

Implementation of

IImageEvent.bubbles

Inherited from

Event.bubbles

Defined in

leafer/packages/event/src/Event.ts:13


phase

Readonly phase: number

Implementation of

IImageEvent.phase

Inherited from

Event.phase

Defined in

leafer/packages/event/src/Event.ts:14


isStopDefault

isStopDefault: boolean

Implementation of

IImageEvent.isStopDefault

Inherited from

Event.isStopDefault

Defined in

leafer/packages/event/src/Event.ts:16


isStop

isStop: boolean

Implementation of

IImageEvent.isStop

Inherited from

Event.isStop

Defined in

leafer/packages/event/src/Event.ts:17


isStopNow

isStopNow: boolean

Implementation of

IImageEvent.isStopNow

Inherited from

Event.isStopNow

Defined in

leafer/packages/event/src/Event.ts:18


LOAD

Static LOAD: string = 'image.load'

Defined in

leafer/packages/event/src/ImageEvent.ts:7


LOADED

Static LOADED: string = 'image.loaded'

Defined in

leafer/packages/event/src/ImageEvent.ts:8


ERROR

Static ERROR: string = 'image.error'

Defined in

leafer/packages/event/src/ImageEvent.ts:9


image

Readonly image: ILeaferImage

Implementation of

IImageEvent.image

Defined in

leafer/packages/event/src/ImageEvent.ts:11


error

Readonly error: string | IObject

Implementation of

IImageEvent.error

Defined in

leafer/packages/event/src/ImageEvent.ts:12


attrName

Readonly attrName: string

Implementation of

IImageEvent.attrName

Defined in

leafer/packages/event/src/ImageEvent.ts:14


attrValue

Readonly attrValue: IObject

Implementation of

IImageEvent.attrValue

Defined in

leafer/packages/event/src/ImageEvent.ts:15

Methods

stopDefault

stopDefault(): void

Returns

void

Implementation of

IImageEvent.stopDefault

Inherited from

Event.stopDefault

Defined in

leafer/packages/event/src/Event.ts:25


stopNow

stopNow(): void

Returns

void

Implementation of

IImageEvent.stopNow

Inherited from

Event.stopNow

Defined in

leafer/packages/event/src/Event.ts:30


stop

stop(): void

Returns

void

Implementation of

IImageEvent.stop

Inherited from

Event.stop

Defined in

leafer/packages/event/src/Event.ts:36

Released under the MIT License.