Skip to content

Class: BoundsEvent

Hierarchy

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BoundsEvent(type, target?)

Parameters

NameType
typestring
target?IEventTarget

Inherited from

Event.constructor

Defined in

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

Properties

RESIZE

Static RESIZE: string = 'bounds.resize'

Defined in

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


INNER

Static INNER: string = 'bounds.inner'

Defined in

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


LOCAL

Static LOCAL: string = 'bounds.local'

Defined in

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


WORLD

Static WORLD: string = 'bounds.world'

Defined in

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


origin

Readonly origin: IObject

Implementation of

IBoundsEvent.origin

Inherited from

Event.origin

Defined in

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


type

Readonly type: string

Implementation of

IBoundsEvent.type

Inherited from

Event.type

Defined in

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


target

Readonly target: IEventTarget

Implementation of

IBoundsEvent.target

Inherited from

Event.target

Defined in

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


current

Readonly current: IEventTarget

Implementation of

IBoundsEvent.current

Inherited from

Event.current

Defined in

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


bubbles

Readonly bubbles: boolean = false

Implementation of

IBoundsEvent.bubbles

Inherited from

Event.bubbles

Defined in

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


phase

Readonly phase: number

Implementation of

IBoundsEvent.phase

Inherited from

Event.phase

Defined in

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


isStopDefault

isStopDefault: boolean

Implementation of

IBoundsEvent.isStopDefault

Inherited from

Event.isStopDefault

Defined in

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


isStop

isStop: boolean

Implementation of

IBoundsEvent.isStop

Inherited from

Event.isStop

Defined in

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


isStopNow

isStopNow: boolean

Implementation of

IBoundsEvent.isStopNow

Inherited from

Event.isStopNow

Defined in

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

Methods

checkHas

Static checkHas(leaf, type, mode): void

Parameters

NameType
leafIEventTarget
typestring
mode"off" | "on"

Returns

void

Defined in

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


emitLocal

Static emitLocal(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Defined in

leafer/packages/event/src/BoundsEvent.ts:26


emitWorld

Static emitWorld(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Defined in

leafer/packages/event/src/BoundsEvent.ts:37


stopDefault

stopDefault(): void

Returns

void

Implementation of

IBoundsEvent.stopDefault

Inherited from

Event.stopDefault

Defined in

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


stopNow

stopNow(): void

Returns

void

Implementation of

IBoundsEvent.stopNow

Inherited from

Event.stopNow

Defined in

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


stop

stop(): void

Returns

void

Implementation of

IBoundsEvent.stop

Inherited from

Event.stop

Defined in

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

Released under the MIT License.