Class: Layouter โ
Implements โ
Table of contents โ
Constructors โ
Properties โ
- target
- layoutedBlocks
- extraBlock
- totalTimes
- times
- disabled
- running
- layouting
- waitAgain
- config
- __updatedList
- __levelList
- __eventIds
Methods โ
- start
- stop
- disable
- layout
- layoutAgain
- layoutOnce
- partLayout
- fullLayout
- fullLayout
- addExtra
- createBlock
- getBlocks
- addBlocks
- __onReceiveWatchData
- __listenEvents
- __removeListenEvents
- destroy
Constructors โ
constructor โ
โข new Layouter(target
, userConfig?
)
Parameters โ
Name | Type |
---|---|
target | ILeaf |
userConfig? | ILayouterConfig |
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:33
Properties โ
target โ
โข target: ILeaf
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:14
layoutedBlocks โ
โข layoutedBlocks: ILayoutBlockData
[]
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:15
extraBlock โ
โข extraBlock: ILayoutBlockData
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:16
totalTimes โ
โข totalTimes: number
= 0
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:18
times โ
โข times: number
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:19
disabled โ
โข disabled: boolean
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:21
running โ
โข running: boolean
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:22
layouting โ
โข layouting: boolean
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:23
waitAgain โ
โข waitAgain: boolean
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:25
config โ
โข config: ILayouterConfig
= {}
Implementation of โ
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 โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:39
stop โ
โธ stop(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:44
disable โ
โธ disable(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:48
layout โ
โธ layout(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:54
layoutAgain โ
โธ layoutAgain(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:70
layoutOnce โ
โธ layoutOnce(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:78
partLayout โ
โธ partLayout(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:103
fullLayout โ
โธ fullLayout(): void
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:133
fullLayout โ
โธ Static
fullLayout(target
): void
Parameters โ
Name | Type |
---|---|
target | ILeaf |
Returns โ
void
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:153
addExtra โ
โธ addExtra(leaf
): void
Parameters โ
Name | Type |
---|---|
leaf | ILeaf |
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:165
createBlock โ
โธ createBlock(data
): ILayoutBlockData
Parameters โ
Name | Type |
---|---|
data | ILeaf [] | ILeafList |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:173
getBlocks โ
โธ getBlocks(list
): ILayoutBlockData
[]
Parameters โ
Name | Type |
---|---|
list | ILeafList |
Returns โ
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:177
addBlocks โ
โธ addBlocks(current
): void
Parameters โ
Name | Type |
---|---|
current | ILayoutBlockData [] |
Returns โ
void
Implementation of โ
Defined in โ
leafer/packages/partner/layouter/src/Layouter.ts:181
__onReceiveWatchData โ
โธ Protected
__onReceiveWatchData(event
): void
Parameters โ
Name | Type |
---|---|
event | WatchEvent |
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