Skip to content

Class: ResizeEvent

Hierarchy

Implements

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new ResizeEvent(size, oldSize?): ResizeEvent

Parameters

NameType
sizestring | IScreenSizeData
oldSize?IScreenSizeData

Returns

ResizeEvent

Overrides

Event.constructor

Defined in

leafer/packages/event/src/ResizeEvent.ts:31

Properties

origin

Readonly origin: IObject

Implementation of

IResizeEvent.origin

Inherited from

Event.origin

Defined in

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


type

Readonly type: string

Implementation of

IResizeEvent.type

Inherited from

Event.type

Defined in

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


target

Readonly target: IEventTarget

Implementation of

IResizeEvent.target

Inherited from

Event.target

Defined in

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


current

Readonly current: IEventTarget

Implementation of

IResizeEvent.current

Inherited from

Event.current

Defined in

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


bubbles

Readonly bubbles: boolean = false

Implementation of

IResizeEvent.bubbles

Inherited from

Event.bubbles

Defined in

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


phase

Readonly phase: number

Implementation of

IResizeEvent.phase

Inherited from

Event.phase

Defined in

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


isStopDefault

isStopDefault: boolean

Implementation of

IResizeEvent.isStopDefault

Inherited from

Event.isStopDefault

Defined in

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


isStop

isStop: boolean

Implementation of

IResizeEvent.isStop

Inherited from

Event.isStop

Defined in

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


isStopNow

isStopNow: boolean

Implementation of

IResizeEvent.isStopNow

Inherited from

Event.isStopNow

Defined in

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


RESIZE

Static RESIZE: string = 'resize'

Defined in

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


width

Readonly width: number

Implementation of

IResizeEvent.width

Defined in

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


height

Readonly height: number

Implementation of

IResizeEvent.height

Defined in

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


pixelRatio

Readonly pixelRatio: number

Implementation of

IResizeEvent.pixelRatio

Defined in

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


old

Readonly old: IScreenSizeData

Implementation of

IResizeEvent.old

Defined in

leafer/packages/event/src/ResizeEvent.ts:29

Accessors

bigger

get bigger(): boolean

Returns

boolean

Implementation of

IResizeEvent.bigger

Defined in

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


smaller

get smaller(): boolean

Returns

boolean

Implementation of

IResizeEvent.smaller

Defined in

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


samePixelRatio

get samePixelRatio(): boolean

Returns

boolean

Implementation of

IResizeEvent.samePixelRatio

Defined in

leafer/packages/event/src/ResizeEvent.ts:24

Methods

stopDefault

stopDefault(): void

Returns

void

Implementation of

IResizeEvent.stopDefault

Inherited from

Event.stopDefault

Defined in

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


stopNow

stopNow(): void

Returns

void

Implementation of

IResizeEvent.stopNow

Inherited from

Event.stopNow

Defined in

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


stop

stop(): void

Returns

void

Implementation of

IResizeEvent.stop

Inherited from

Event.stop

Defined in

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

Released under the MIT License.