Interface: ILeaferAttrData
Hierarchy
ILeaferAttrData
↳
ILeafer
Table of contents
Properties
- running
- created
- ready
- viewReady
- imageReady
- viewCompleted
- layoutLocked
- transforming
- view
- canvas
- renderer
- watcher
- layouter
- selector
- interaction
- canvasManager
- hitCanvasManager
- autoLayout
- lazyBounds
- config
- cursorPoint
- clientBounds
- leafs
- __eventIds
- __nextRenderWait
Methods
- init
- start
- stop
- unlockLayout
- lockLayout
- updateCursor
- resize
- waitReady
- waitViewReady
- waitViewCompleted
- zoom
- getValidMove
- getValidScale
- getWorldPointByClient
- getPagePointByClient
- updateClientBounds
- receiveEvent
Properties
running
• running: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:30
created
• created: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:31
ready
• ready: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:32
viewReady
• viewReady: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:33
imageReady
• imageReady: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:34
viewCompleted
• viewCompleted: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:35
layoutLocked
• layoutLocked: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:36
transforming
• transforming: boolean
Defined in
leafer/packages/interface/src/app/ILeafer.ts:38
view
• view: unknown
Defined in
leafer/packages/interface/src/app/ILeafer.ts:40
canvas
• canvas: ILeaferCanvas
Defined in
leafer/packages/interface/src/app/ILeafer.ts:42
renderer
• renderer: IRenderer
Defined in
leafer/packages/interface/src/app/ILeafer.ts:43
watcher
• watcher: IWatcher
Defined in
leafer/packages/interface/src/app/ILeafer.ts:45
layouter
• layouter: ILayouter
Defined in
leafer/packages/interface/src/app/ILeafer.ts:46
selector
• Optional
selector: ISelector
Defined in
leafer/packages/interface/src/app/ILeafer.ts:48
interaction
• Optional
interaction: IInteraction
Defined in
leafer/packages/interface/src/app/ILeafer.ts:49
canvasManager
• canvasManager: ICanvasManager
Defined in
leafer/packages/interface/src/app/ILeafer.ts:51
hitCanvasManager
• Optional
hitCanvasManager: IHitCanvasManager
Defined in
leafer/packages/interface/src/app/ILeafer.ts:52
autoLayout
• Optional
autoLayout: IAutoBounds
Defined in
leafer/packages/interface/src/app/ILeafer.ts:54
lazyBounds
• lazyBounds: IBounds
Defined in
leafer/packages/interface/src/app/ILeafer.ts:55
config
• config: ILeaferConfig
Defined in
leafer/packages/interface/src/app/ILeafer.ts:57
cursorPoint
• Readonly
cursorPoint: IPointData
Defined in
leafer/packages/interface/src/app/ILeafer.ts:59
clientBounds
• Readonly
clientBounds: IBoundsData
Defined in
leafer/packages/interface/src/app/ILeafer.ts:60
leafs
• leafs: number
Defined in
leafer/packages/interface/src/app/ILeafer.ts:61
__eventIds
• __eventIds: IEventListenerId
[]
Defined in
leafer/packages/interface/src/app/ILeafer.ts:63
__nextRenderWait
• __nextRenderWait: IFunction
[]
Defined in
leafer/packages/interface/src/app/ILeafer.ts:64
Methods
init
▸ init(userConfig?
, parentApp?
): void
Parameters
Name | Type |
---|---|
userConfig? | ILeaferConfig |
parentApp? | IAppBase |
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:66
start
▸ start(): void
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:68
stop
▸ stop(): void
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:69
unlockLayout
▸ unlockLayout(): void
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:71
lockLayout
▸ lockLayout(): void
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:72
updateCursor
▸ updateCursor(cursor?
): void
Parameters
Name | Type |
---|---|
cursor? | ICursorType |
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:74
resize
▸ resize(size
): void
Parameters
Name | Type |
---|---|
size | IScreenSizeData |
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:75
waitReady
▸ waitReady(item
, bind?
): void
Parameters
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:77
waitViewReady
▸ waitViewReady(item
, bind?
): void
Parameters
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:78
waitViewCompleted
▸ waitViewCompleted(item
, bind?
): void
Parameters
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:79
zoom
▸ zoom(zoomType
, padding?
, fixedScale?
): IBoundsData
Parameters
Name | Type |
---|---|
zoomType | IZoomType |
padding? | IFourNumber |
fixedScale? | boolean |
Returns
Defined in
leafer/packages/interface/src/app/ILeafer.ts:81
getValidMove
▸ getValidMove(moveX
, moveY
): IPointData
Parameters
Name | Type |
---|---|
moveX | number |
moveY | number |
Returns
Defined in
leafer/packages/interface/src/app/ILeafer.ts:82
getValidScale
▸ getValidScale(changeScale
): number
Parameters
Name | Type |
---|---|
changeScale | number |
Returns
number
Defined in
leafer/packages/interface/src/app/ILeafer.ts:83
getWorldPointByClient
▸ getWorldPointByClient(clientPoint
, updateClient?
): IPointData
Parameters
Name | Type |
---|---|
clientPoint | IClientPointData |
updateClient? | boolean |
Returns
Defined in
leafer/packages/interface/src/app/ILeafer.ts:85
getPagePointByClient
▸ getPagePointByClient(clientPoint
, updateClient?
): IPointData
Parameters
Name | Type |
---|---|
clientPoint | IClientPointData |
updateClient? | boolean |
Returns
Defined in
leafer/packages/interface/src/app/ILeafer.ts:86
updateClientBounds
▸ updateClientBounds(): void
Returns
void
Defined in
leafer/packages/interface/src/app/ILeafer.ts:87
receiveEvent
▸ receiveEvent(event
): void
Parameters
Name | Type |
---|---|
event | any |
Returns
void