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?
): Layouter
Parameters
Name | Type |
---|---|
target | ILeaf |
userConfig? | ILayouterConfig |
Returns
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
▸ 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
▸ __onReceiveWatchData(event
): void
Parameters
Name | Type |
---|---|
event | WatchEvent |
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