Skip to content

Class: Layouter

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Layouter(target, userConfig?): Layouter

Parameters

NameType
targetILeaf
userConfig?ILayouterConfig

Returns

Layouter

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:33

Properties

target

target: ILeaf

Implementation of

ILayouter.target

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:14


layoutedBlocks

layoutedBlocks: ILayoutBlockData[]

Implementation of

ILayouter.layoutedBlocks

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:15


extraBlock

extraBlock: ILayoutBlockData

Implementation of

ILayouter.extraBlock

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:16


totalTimes

totalTimes: number = 0

Implementation of

ILayouter.totalTimes

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:18


times

times: number

Implementation of

ILayouter.times

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:19


disabled

disabled: boolean

Implementation of

ILayouter.disabled

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:21


running

running: boolean

Implementation of

ILayouter.running

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:22


layouting

layouting: boolean

Implementation of

ILayouter.layouting

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:23


waitAgain

waitAgain: boolean

Implementation of

ILayouter.waitAgain

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:25


config

config: ILayouterConfig = {}

Implementation of

ILayouter.config

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:27


__updatedList

Protected __updatedList: ILeafList

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:29


__levelList

Protected __levelList: LeafLevelList

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:30


__eventIds

Protected __eventIds: IEventListenerId[]

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:31

Methods

start

start(): void

Returns

void

Implementation of

ILayouter.start

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:39


stop

stop(): void

Returns

void

Implementation of

ILayouter.stop

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:44


disable

disable(): void

Returns

void

Implementation of

ILayouter.disable

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:48


layout

layout(): void

Returns

void

Implementation of

ILayouter.layout

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:54


layoutAgain

layoutAgain(): void

Returns

void

Implementation of

ILayouter.layoutAgain

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:70


layoutOnce

layoutOnce(): void

Returns

void

Implementation of

ILayouter.layoutOnce

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:78


partLayout

partLayout(): void

Returns

void

Implementation of

ILayouter.partLayout

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:103


fullLayout

fullLayout(): void

Returns

void

Implementation of

ILayouter.fullLayout

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:133


fullLayout

fullLayout(target): void

Parameters

NameType
targetILeaf

Returns

void

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:153


addExtra

addExtra(leaf): void

Parameters

NameType
leafILeaf

Returns

void

Implementation of

ILayouter.addExtra

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:165


createBlock

createBlock(data): ILayoutBlockData

Parameters

NameType
dataILeaf[] | ILeafList

Returns

ILayoutBlockData

Implementation of

ILayouter.createBlock

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:173


getBlocks

getBlocks(list): ILayoutBlockData[]

Parameters

NameType
listILeafList

Returns

ILayoutBlockData[]

Implementation of

ILayouter.getBlocks

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:177


addBlocks

addBlocks(current): void

Parameters

NameType
currentILayoutBlockData[]

Returns

void

Implementation of

ILayouter.addBlocks

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:181


__onReceiveWatchData

__onReceiveWatchData(event): void

Parameters

NameType
eventWatchEvent

Returns

void

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:185


__listenEvents

__listenEvents(): void

Returns

void

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:189


__removeListenEvents

__removeListenEvents(): void

Returns

void

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:198


destroy

destroy(): void

Returns

void

Implementation of

ILayouter.destroy

Defined in

leafer/packages/partner/layouter/src/Layouter.ts:202

Released under the MIT License.