src/layer/Layer.ts
Properties |
Methods |
|
Accessors |
Public
constructor(manager: LayerManager, id: number, options?: literal type)
|
||||||||||||
Defined in src/layer/Layer.ts:31
|
||||||||||||
Parameters :
|
Public canvas |
Type : Canvas
|
Defined in src/layer/Layer.ts:19
|
Public coordinates |
Type : object
|
Default value : {
x: 0,
y: 0
}
|
Defined in src/layer/Layer.ts:26
|
Public ctx |
Type : SKRSContext2D
|
Defined in src/layer/Layer.ts:20
|
Public height |
Type : number
|
Defined in src/layer/Layer.ts:31
|
Public Readonly id |
Type : number
|
Defined in src/layer/Layer.ts:35
|
Public Readonly manager |
Type : LayerManager
|
Defined in src/layer/Layer.ts:34
|
Public tools |
Default value : new LayerTools(this)
|
Defined in src/layer/Layer.ts:25
|
Public utils |
Type : LayerUtils
|
Defined in src/layer/Layer.ts:24
|
Public width |
Type : number
|
Defined in src/layer/Layer.ts:30
|
Public applyTool | ||||||
applyTool(tool: ToolBox)
|
||||||
Defined in src/layer/Layer.ts:129
|
||||||
Parameters :
Returns :
void
|
Public createTransformation | ||||||
createTransformation(data: LayerTransformationData)
|
||||||
Defined in src/layer/Layer.ts:68
|
||||||
Parameters :
Returns :
void
|
Public duplicate | ||||||
duplicate(name)
|
||||||
Defined in src/layer/Layer.ts:118
|
||||||
Parameters :
Returns :
any
|
Public hide |
hide()
|
Defined in src/layer/Layer.ts:100
|
Returns :
this
|
Public isHidden |
isHidden()
|
Defined in src/layer/Layer.ts:92
|
Returns :
boolean
|
Public isLocked |
isLocked()
|
Defined in src/layer/Layer.ts:78
|
Returns :
boolean
|
Public lock |
lock()
|
Defined in src/layer/Layer.ts:82
|
Returns :
this
|
Public Async render |
render()
|
Defined in src/layer/Layer.ts:143
|
Returns :
unknown
|
Public restore |
restore()
|
Defined in src/layer/Layer.ts:114
|
Returns :
void
|
Public save |
save()
|
Defined in src/layer/Layer.ts:110
|
Returns :
void
|
Public setHistory | ||||||
setHistory(history: LayerToolHistory)
|
||||||
Defined in src/layer/Layer.ts:135
|
||||||
Parameters :
Returns :
void
|
Public setPosition | ||||||
setPosition(position: number)
|
||||||
Defined in src/layer/Layer.ts:64
|
||||||
Parameters :
Returns :
any
|
Public show |
show()
|
Defined in src/layer/Layer.ts:105
|
Returns :
this
|
Public unlock |
unlock()
|
Defined in src/layer/Layer.ts:87
|
Returns :
this
|
name |
getname()
|
Defined in src/layer/Layer.ts:48
|
illustrator |
getillustrator()
|
Defined in src/layer/Layer.ts:52
|
context |
getcontext()
|
Defined in src/layer/Layer.ts:56
|
position |
getposition()
|
Defined in src/layer/Layer.ts:60
|
locked |
getlocked()
|
Defined in src/layer/Layer.ts:74
|
hidden |
gethidden()
|
Defined in src/layer/Layer.ts:96
|