Skip to content

Class: Layouter โ€‹

Implements โ€‹

Table of contents โ€‹

Constructors โ€‹

Properties โ€‹

Methods โ€‹

Constructors โ€‹

constructor โ€‹

โ€ข new Layouter(target, userConfig?)

Parameters โ€‹

NameType
targetILeaf
userConfig?ILayouterConfig

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 โ€‹

โ–ธ Static 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 โ€‹

โ–ธ Protected __onReceiveWatchData(event): void

Parameters โ€‹

NameType
eventWatchEvent

Returns โ€‹

void

Defined in โ€‹

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


__listenEvents โ€‹

โ–ธ Protected __listenEvents(): void

Returns โ€‹

void

Defined in โ€‹

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


__removeListenEvents โ€‹

โ–ธ Protected __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.