Class: Renderer
Implements
Table of contents
Constructors
Properties
- target
- canvas
- updateBlocks
- FPS
- totalTimes
- times
- running
- rendering
- waitAgain
- changed
- ignore
- config
- renderBounds
- renderOptions
- totalBounds
- __eventIds
Accessors
Methods
- start
- stop
- update
- requestLayout
- render
- renderAgain
- renderOnce
- partRender
- clipRender
- fullRender
- __render
- renderHitView
- renderBoundsView
- addBlock
- mergeBlocks
- __requestRender
- __onResize
- __onLayoutEnd
- emitRender
- __listenEvents
- __removeListenEvents
- destroy
Constructors
constructor
• new Renderer(target
, canvas
, userConfig?
): Renderer
Parameters
Name | Type |
---|---|
target | ILeaf |
canvas | ILeaferCanvas |
userConfig? | IRendererConfig |
Returns
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:37
Properties
target
• target: ILeaf
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:9
canvas
• canvas: ILeaferCanvas
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:10
updateBlocks
• updateBlocks: IBounds
[]
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:11
FPS
• FPS: number
= 60
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:13
totalTimes
• totalTimes: number
= 0
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:14
times
• times: number
= 0
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:15
running
• running: boolean
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:17
rendering
• rendering: boolean
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:18
waitAgain
• waitAgain: boolean
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:20
changed
• changed: boolean
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:21
ignore
• ignore: boolean
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:22
config
• config: IRendererConfig
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:24
renderBounds
• Protected
renderBounds: IBounds
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:29
renderOptions
• Protected
renderOptions: IRenderOptions
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:30
totalBounds
• Protected
totalBounds: IBounds
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:31
__eventIds
• Protected
__eventIds: IEventListenerId
[]
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:33
Accessors
needFill
• get
needFill(): boolean
Returns
boolean
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:35
Methods
start
▸ start(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:45
stop
▸ stop(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:49
update
▸ update(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:53
requestLayout
▸ requestLayout(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:57
render
▸ render(callback?
): void
Parameters
Name | Type |
---|---|
callback? | IFunction |
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:61
renderAgain
▸ renderAgain(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:88
renderOnce
▸ renderOnce(callback?
): void
Parameters
Name | Type |
---|---|
callback? | IFunction |
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:96
partRender
▸ partRender(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:140
clipRender
▸ clipRender(block
): void
Parameters
Name | Type |
---|---|
block | IBounds |
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:148
fullRender
▸ fullRender(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:172
__render
▸ __render(bounds
, includes?
, realBounds?
): void
Parameters
Name | Type |
---|---|
bounds | IBounds |
includes? | boolean |
realBounds? | IBounds |
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:184
renderHitView
▸ renderHitView(_options
): void
Parameters
Name | Type |
---|---|
_options | IRenderOptions |
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:201
renderBoundsView
▸ renderBoundsView(_options
): void
Parameters
Name | Type |
---|---|
_options | IRenderOptions |
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:203
addBlock
▸ addBlock(block
): void
Parameters
Name | Type |
---|---|
block | IBounds |
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:205
mergeBlocks
▸ mergeBlocks(): void
Returns
void
Implementation of
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:210
__requestRender
▸ __requestRender(): void
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:220
__onResize
▸ __onResize(e
): void
Parameters
Name | Type |
---|---|
e | ResizeEvent |
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:234
__onLayoutEnd
▸ __onLayoutEnd(event
): void
Parameters
Name | Type |
---|---|
event | LayoutEvent |
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:251
emitRender
▸ emitRender(type
, bounds?
, options?
): void
Parameters
Name | Type |
---|---|
type | string |
bounds? | IBounds |
options? | IRenderOptions |
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:266
__listenEvents
▸ __listenEvents(): void
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:270
__removeListenEvents
▸ __removeListenEvents(): void
Returns
void
Defined in
leafer/packages/partner/renderer/src/Renderer.ts:280
destroy
▸ destroy(): void
Returns
void