įŽäŊä¸æ
Class: Text â
Hierarchy â
âŗ
Text
Implements â
Table of contents â
Constructors â
Properties â
- innerId
- __layout
- __world
- __local
- __nowWorld
- __cameraWorld
- __worldOpacity
- __level
- __tempNumber
- __hasAutoLayout
- __hasMask
- __hasEraser
- __hitCanvas
- __captureMap
- __bubbleMap
- __parentWait
- __leaferWait
- noBounds
- destroyed
- __
- width
- height
- resizeFontSize
- fill
- strokeAlign
- hitFill
- text
- fontFamily
- fontSize
- fontWeight
- italic
- textCase
- textDecoration
- letterSpacing
- lineHeight
- paraIndent
- paraSpacing
- textAlign
- verticalAlign
- textWrap
- textOverflow
- proxyData
- __proxyData
- leafer
- parent
- zoomLayer
- children
- id
- name
- className
- blendMode
- opacity
- visible
- selected
- disabled
- locked
- zIndex
- mask
- eraser
- x
- y
- scaleX
- scaleY
- rotation
- skewX
- skewY
- offsetX
- offsetY
- scrollX
- scrollY
- origin
- around
- lazy
- pixelRatio
- path
- windingRule
- closed
- flow
- padding
- gap
- flowAlign
- flowWrap
- itemBox
- inFlow
- autoWidth
- autoHeight
- lockRatio
- autoBox
- widthRange
- heightRange
- draggable
- dragBounds
- editable
- hittable
- hitStroke
- hitBox
- hitChildren
- hitSelf
- hitRadius
- cursor
- stroke
- strokeWidth
- strokeWidthFixed
- strokeCap
- strokeJoin
- dashPattern
- dashOffset
- miterLimit
- startArrow
- endArrow
- cornerRadius
- cornerSmoothing
- shadow
- innerShadow
- blur
- backgroundBlur
- grayscale
- normalStyle
- hoverStyle
- pressStyle
- focusStyle
- selectedStyle
- disabledStyle
- data
Accessors â
- tag
- innerName
- __DataProcessor
- __LayoutProcessor
- isLeafer
- isBranch
- isBranchLeaf
- __localMatrix
- __localBoxBounds
- worldTransform
- localTransform
- boxBounds
- renderBounds
- worldBoxBounds
- worldStrokeBounds
- worldRenderBounds
- worldOpacity
- __worldFlipped
- __onlyHitMask
- __ignoreHitWorld
- __inLazyBounds
- pathInputed
- event
- __tag
- editInner
- textDrawData
- app
- isFrame
- scale
- pen
- editConfig
- editOuter
Methods â
- resetCustom
- waitParent
- waitLeafer
- nextRender
- removeNextRender
- __bindLeafer
- setAttr
- getAttr
- getComputedAttr
- toJSON
- toString
- toSVG
- __SVG
- toHTML
- __setAttr
- __getAttr
- setProxyAttr
- getProxyAttr
- focus
- updateLayout
- forceUpdate
- forceRender
- __updateWorldMatrix
- __updateLocalMatrix
- __updateWorldBounds
- __updateLocalBounds
- __updateLocalBoxBounds
- __updateLocalStrokeBounds
- __updateLocalRenderBounds
- __updateContentBounds
- __updateStrokeBounds
- __updateAutoLayout
- __updateFlowLayout
- __updateNaturalSize
- __updateStrokeSpread
- __updateEraser
- __renderEraser
- __updateMask
- __renderMask
- __getNowWorld
- getTransform
- getBounds
- getLayoutBounds
- getLayoutPoints
- getWorldBounds
- worldToLocal
- localToWorld
- worldToInner
- innerToWorld
- getInnerPoint
- getInnerPointByLocal
- getLocalPoint
- getLocalPointByInner
- getWorldPoint
- getWorldPointByLocal
- getPagePoint
- getWorldPointByPage
- setTransform
- transform
- move
- moveInner
- scaleOf
- rotateOf
- skewOf
- transformWorld
- moveWorld
- scaleOfWorld
- rotateOfWorld
- skewOfWorld
- flip
- scaleResize
- __scaleResize
- resizeWidth
- resizeHeight
- __hitWorld
- __hit
- __hitFill
- __hitStroke
- __hitPixel
- __updateHitCanvas
- __render
- __drawFast
- __draw
- __clip
- __renderShape
- __updateWorldOpacity
- __updateChange
- __updatePath
- __updateSortChildren
- add
- remove
- dropTo
- on
- off
- on_
- off_
- once
- emit
- emitEvent
- hasEvent
- changeAttr
- addAttr
- __drawHitPath
- __drawPathByData
- __drawRenderPath
- __updateTextDrawData
- __updateBoxBounds
- __updateRenderSpread
- __updateRenderBounds
- reset
- set
- get
- createProxyData
- find
- findTag
- findOne
- findId
- getPath
- getPathString
- load
- __onUpdateSize
- __updateRenderPath
- __drawPath
- __drawPathByBox
- export
- clone
- one
- registerUI
- registerData
- setEditConfig
- setEditOuter
- setEditInner
- destroy
Constructors â
constructor â
âĸ new Text(data?
): Text
Parameters â
Name | Type |
---|---|
data? | ITextInputData |
Returns â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:94
Properties â
innerId â
âĸ Readonly
innerId: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:29
__layout â
âĸ __layout: ILeafLayout
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:43
__world â
âĸ __world: IMatrixWithBoundsScaleData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:45
__local â
âĸ Optional
__local: IMatrixWithBoundsData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:46
__nowWorld â
âĸ Optional
__nowWorld: IMatrixWithBoundsScaleData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:48
__cameraWorld â
âĸ Optional
__cameraWorld: IMatrixWithBoundsScaleData
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:49
__worldOpacity â
âĸ __worldOpacity: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:54
__level â
âĸ __level: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:70
__tempNumber â
âĸ __tempNumber: number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:71
__hasAutoLayout â
âĸ Optional
__hasAutoLayout: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:75
__hasMask â
âĸ Optional
__hasMask: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:76
__hasEraser â
âĸ Optional
__hasEraser: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:77
__hitCanvas â
âĸ Optional
__hitCanvas: IHitCanvas
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:78
__captureMap â
âĸ Optional
__captureMap: IEventListenerMap
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:89
__bubbleMap â
âĸ Optional
__bubbleMap: IEventListenerMap
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:90
__parentWait â
âĸ Optional
__parentWait: IFunction
[]
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:92
__leaferWait â
âĸ Optional
__leaferWait: IFunction
[]
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:93
noBounds â
âĸ Optional
noBounds: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:99
destroyed â
âĸ destroyed: boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:101
__ â
âĸ __: ITextData
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:20
width â
âĸ Optional
width: number
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:24
height â
âĸ Optional
height: number
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:27
resizeFontSize â
âĸ Optional
resizeFontSize: boolean
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:30
fill â
âĸ Optional
fill: IFill
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:33
strokeAlign â
âĸ Optional
strokeAlign: IStrokeAlign
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:36
hitFill â
âĸ Optional
hitFill: IHitType
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:39
text â
âĸ Optional
text: string
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:42
fontFamily â
âĸ Optional
fontFamily: string
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:45
fontSize â
âĸ Optional
fontSize: number
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:48
fontWeight â
âĸ Optional
fontWeight: IFontWeight
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:51
italic â
âĸ Optional
italic: boolean
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:54
textCase â
âĸ Optional
textCase: ITextCase
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:57
textDecoration â
âĸ Optional
textDecoration: ITextDecoration
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:60
letterSpacing â
âĸ Optional
letterSpacing: number
| IUnitData
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:63
lineHeight â
âĸ Optional
lineHeight: number
| IUnitData
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:66
paraIndent â
âĸ Optional
paraIndent: number
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:69
paraSpacing â
âĸ Optional
paraSpacing: number
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:72
textAlign â
âĸ Optional
textAlign: ITextAlign
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:75
verticalAlign â
âĸ Optional
verticalAlign: IVerticalAlign
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:78
textWrap â
âĸ Optional
textWrap: ITextWrap
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:81
textOverflow â
âĸ Optional
textOverflow: string
Implementation of â
Defined in â
ui/packages/display/src/Text.ts:84
proxyData â
âĸ Optional
proxyData: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:21
__proxyData â
âĸ Optional
__proxyData: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:22
leafer â
âĸ Optional
leafer: ILeafer
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:26
parent â
âĸ Optional
parent: IGroup
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:27
zoomLayer â
âĸ zoomLayer: IGroup
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:30
children â
âĸ Optional
children: IUI
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:34
id â
âĸ Optional
id: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:40
name â
âĸ Optional
name: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:43
className â
âĸ Optional
className: string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:46
blendMode â
âĸ Optional
blendMode: IBlendMode
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:51
opacity â
âĸ Optional
opacity: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:54
visible â
âĸ Optional
visible: boolean
| 0
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:57
selected â
âĸ Optional
selected: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:61
disabled â
âĸ Optional
disabled: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:64
locked â
âĸ Optional
locked: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:67
zIndex â
âĸ Optional
zIndex: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:71
mask â
âĸ Optional
mask: boolean
| IMaskType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:75
eraser â
âĸ Optional
eraser: boolean
| IEraserType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:78
x â
âĸ Optional
x: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:83
y â
âĸ Optional
y: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:86
scaleX â
âĸ Optional
scaleX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:97
scaleY â
âĸ Optional
scaleY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:100
rotation â
âĸ Optional
rotation: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:104
skewX â
âĸ Optional
skewX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:108
skewY â
âĸ Optional
skewY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:111
offsetX â
âĸ Optional
offsetX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:116
offsetY â
âĸ Optional
offsetY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:119
scrollX â
âĸ Optional
scrollX: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:123
scrollY â
âĸ Optional
scrollY: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:126
origin â
âĸ Optional
origin: IUnitPointData
| IDirection
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:131
around â
âĸ Optional
around: IUnitPointData
| IDirection
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:134
lazy â
âĸ Optional
lazy: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:139
pixelRatio â
âĸ Optional
pixelRatio: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:142
path â
âĸ Optional
path: string
| IPathCommandData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:147
windingRule â
âĸ Optional
windingRule: IWindingRule
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:150
closed â
âĸ Optional
closed: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:153
flow â
âĸ Optional
flow: IFlowType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:158
padding â
âĸ Optional
padding: IFourNumber
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:161
gap â
âĸ Optional
gap: IGap
| IPointGap
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:164
flowAlign â
âĸ Optional
flowAlign: IFlowAlign
| IFlowAxisAlign
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:167
flowWrap â
âĸ Optional
flowWrap: IFlowWrap
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:170
itemBox â
âĸ Optional
itemBox: IFlowBoxType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:173
inFlow â
âĸ Optional
inFlow: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:177
autoWidth â
âĸ Optional
autoWidth: IAutoSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:180
autoHeight â
âĸ Optional
autoHeight: IAutoSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:183
lockRatio â
âĸ Optional
lockRatio: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:186
autoBox â
âĸ Optional
autoBox: IAutoBoxData
| IConstraint
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:189
widthRange â
âĸ Optional
widthRange: IRangeSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:193
heightRange â
âĸ Optional
heightRange: IRangeSize
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:196
draggable â
âĸ Optional
draggable: boolean
| IAxis
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:201
dragBounds â
âĸ Optional
dragBounds: "parent"
| IBoundsData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:204
editable â
âĸ Optional
editable: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:208
hittable â
âĸ Optional
hittable: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:213
hitStroke â
âĸ Optional
hitStroke: IHitType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:219
hitBox â
âĸ Optional
hitBox: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:222
hitChildren â
âĸ Optional
hitChildren: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:225
hitSelf â
âĸ Optional
hitSelf: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:228
hitRadius â
âĸ Optional
hitRadius: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:231
cursor â
âĸ Optional
cursor: ICursorType
| ICursorType
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:234
stroke â
âĸ Optional
stroke: IStroke
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:247
strokeWidth â
âĸ Optional
strokeWidth: string
| IFourNumber
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:253
strokeWidthFixed â
âĸ Optional
strokeWidthFixed: boolean
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:256
strokeCap â
âĸ Optional
strokeCap: IStrokeCap
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:259
strokeJoin â
âĸ Optional
strokeJoin: IStrokeJoin
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:262
dashPattern â
âĸ Optional
dashPattern: string
| number
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:265
dashOffset â
âĸ Optional
dashOffset: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:268
miterLimit â
âĸ Optional
miterLimit: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:271
startArrow â
âĸ Optional
startArrow: IArrowType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:277
endArrow â
âĸ Optional
endArrow: IArrowType
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:280
cornerRadius â
âĸ Optional
cornerRadius: string
| IFourNumber
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:285
cornerSmoothing â
âĸ Optional
cornerSmoothing: number
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:288
shadow â
âĸ Optional
shadow: string
| IShadowEffect
| IShadowEffect
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:293
innerShadow â
âĸ Optional
innerShadow: string
| IShadowEffect
| IShadowEffect
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:296
blur â
âĸ Optional
blur: number
| IBlurEffect
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:299
backgroundBlur â
âĸ Optional
backgroundBlur: number
| IBlurEffect
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:302
grayscale â
âĸ Optional
grayscale: number
| IGrayscaleEffect
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:305
normalStyle â
âĸ Optional
normalStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:311
hoverStyle â
âĸ Optional
hoverStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:314
pressStyle â
âĸ Optional
pressStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:317
focusStyle â
âĸ Optional
focusStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:320
selectedStyle â
âĸ Optional
selectedStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:323
disabledStyle â
âĸ Optional
disabledStyle: IUIInputData
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:326
data â
âĸ data: IObject
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:331
Accessors â
tag â
âĸ get
tag(): string
Returns â
string
Implementation of â
Inherited from â
UI.tag
Defined in â
leafer/packages/display/src/Leaf.ts:24
âĸ set
tag(_value
): void
Parameters â
Name | Type |
---|---|
_value | string |
Returns â
void
Implementation of â
Inherited from â
UI.tag
Defined in â
leafer/packages/display/src/Leaf.ts:25
innerName â
âĸ get
innerName(): string
Returns â
string
Implementation of â
Inherited from â
UI.innerName
Defined in â
leafer/packages/display/src/Leaf.ts:30
__DataProcessor â
âĸ get
__DataProcessor(): typeof LeafData
Returns â
typeof LeafData
Implementation of â
Inherited from â
UI.__DataProcessor
Defined in â
leafer/packages/display/src/Leaf.ts:32
__LayoutProcessor â
âĸ get
__LayoutProcessor(): typeof LeafLayout
Returns â
typeof LeafLayout
Implementation of â
Inherited from â
UI.__LayoutProcessor
Defined in â
leafer/packages/display/src/Leaf.ts:33
isLeafer â
âĸ get
isLeafer(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isLeafer
Defined in â
leafer/packages/display/src/Leaf.ts:38
isBranch â
âĸ get
isBranch(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isBranch
Defined in â
leafer/packages/display/src/Leaf.ts:39
isBranchLeaf â
âĸ get
isBranchLeaf(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isBranchLeaf
Defined in â
leafer/packages/display/src/Leaf.ts:40
__localMatrix â
âĸ get
__localMatrix(): IMatrixData
Returns â
Implementation of â
Inherited from â
UI.__localMatrix
Defined in â
leafer/packages/display/src/Leaf.ts:51
__localBoxBounds â
âĸ get
__localBoxBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.__localBoxBounds
Defined in â
leafer/packages/display/src/Leaf.ts:52
worldTransform â
âĸ get
worldTransform(): IMatrixWithScaleData
Returns â
Implementation of â
Inherited from â
UI.worldTransform
Defined in â
leafer/packages/display/src/Leaf.ts:57
localTransform â
âĸ get
localTransform(): IMatrixData
Returns â
Implementation of â
Inherited from â
UI.localTransform
Defined in â
leafer/packages/display/src/Leaf.ts:58
boxBounds â
âĸ get
boxBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.boxBounds
Defined in â
leafer/packages/display/src/Leaf.ts:61
renderBounds â
âĸ get
renderBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.renderBounds
Defined in â
leafer/packages/display/src/Leaf.ts:62
worldBoxBounds â
âĸ get
worldBoxBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.worldBoxBounds
Defined in â
leafer/packages/display/src/Leaf.ts:63
worldStrokeBounds â
âĸ get
worldStrokeBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.worldStrokeBounds
Defined in â
leafer/packages/display/src/Leaf.ts:64
worldRenderBounds â
âĸ get
worldRenderBounds(): IBoundsData
Returns â
Implementation of â
Inherited from â
UI.worldRenderBounds
Defined in â
leafer/packages/display/src/Leaf.ts:65
worldOpacity â
âĸ get
worldOpacity(): number
Returns â
number
Implementation of â
Inherited from â
UI.worldOpacity
Defined in â
leafer/packages/display/src/Leaf.ts:68
__worldFlipped â
âĸ get
__worldFlipped(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__worldFlipped
Defined in â
leafer/packages/display/src/Leaf.ts:73
__onlyHitMask â
âĸ get
__onlyHitMask(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__onlyHitMask
Defined in â
leafer/packages/display/src/Leaf.ts:80
__ignoreHitWorld â
âĸ get
__ignoreHitWorld(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__ignoreHitWorld
Defined in â
leafer/packages/display/src/Leaf.ts:81
__inLazyBounds â
âĸ get
__inLazyBounds(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.__inLazyBounds
Defined in â
leafer/packages/display/src/Leaf.ts:82
pathInputed â
âĸ get
pathInputed(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.pathInputed
Defined in â
leafer/packages/display/src/Leaf.ts:84
event â
âĸ set
event(map
): void
Parameters â
Name | Type |
---|---|
map | IEventMap |
Returns â
void
Implementation of â
Inherited from â
UI.event
Defined in â
leafer/packages/display/src/Leaf.ts:87
__tag â
âĸ get
__tag(): string
Returns â
string
Implementation of â
Overrides â
UI.__tag
Defined in â
ui/packages/display/src/Text.ts:17
editInner â
âĸ get
editInner(): string
Returns â
string
Implementation of â
Overrides â
UI.editInner
Defined in â
ui/packages/display/src/Text.ts:86
textDrawData â
âĸ get
textDrawData(): ITextDrawData
Returns â
Defined in â
ui/packages/display/src/Text.ts:88
app â
âĸ get
app(): ILeafer
Returns â
Implementation of â
Inherited from â
UI.app
Defined in â
ui/packages/display/src/UI.ts:24
isFrame â
âĸ get
isFrame(): boolean
Returns â
boolean
Implementation of â
Inherited from â
UI.isFrame
Defined in â
ui/packages/display/src/UI.ts:32
scale â
âĸ get
scale(): number
| IPointData
Returns â
number
| IPointData
Implementation of â
Inherited from â
UI.scale
Defined in â
ui/packages/display/src/UI.ts:343
âĸ set
scale(value
): void
Parameters â
Name | Type |
---|---|
value | number | IPointData |
Returns â
void
Implementation of â
Inherited from â
UI.scale
Defined in â
ui/packages/display/src/UI.ts:334
pen â
âĸ get
pen(): IPathCreator
Returns â
Implementation of â
Inherited from â
UI.pen
Defined in â
ui/packages/display/src/UI.ts:348
editConfig â
âĸ get
editConfig(): IEditorConfig
Returns â
Implementation of â
Inherited from â
UI.editConfig
Defined in â
ui/packages/display/src/UI.ts:358
editOuter â
âĸ get
editOuter(): string
Returns â
string
Implementation of â
Inherited from â
UI.editOuter
Defined in â
ui/packages/display/src/UI.ts:360
Methods â
resetCustom â
⸠resetCustom(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:127
waitParent â
⸠waitParent(item
, bind?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:133
waitLeafer â
⸠waitLeafer(item
, bind?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:138
nextRender â
⸠nextRender(item
, bind?
, off?
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
bind? | IObject |
off? | "off" |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:143
removeNextRender â
⸠removeNextRender(item
): void
Parameters â
Name | Type |
---|---|
item | IFunction |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:147
__bindLeafer â
⸠__bindLeafer(leafer
): void
Parameters â
Name | Type |
---|---|
leafer | ILeaferBase |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:151
setAttr â
⸠setAttr(name
, value
): void
Parameters â
Name | Type |
---|---|
name | string |
value | any |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:179
getAttr â
⸠getAttr(name
): any
Parameters â
Name | Type |
---|---|
name | string |
Returns â
any
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:180
getComputedAttr â
⸠getComputedAttr(name
): any
Parameters â
Name | Type |
---|---|
name | string |
Returns â
any
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:182
toJSON â
⸠toJSON(options?
): IObject
Parameters â
Name | Type |
---|---|
options? | IJSONOptions |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:184
toString â
⸠toString(options?
): string
Parameters â
Name | Type |
---|---|
options? | IJSONOptions |
Returns â
string
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:189
toSVG â
⸠toSVG(): string
Returns â
string
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:193
__SVG â
⸠__SVG(_data
): void
Parameters â
Name | Type |
---|---|
_data | IObject |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:195
toHTML â
⸠toHTML(): string
Returns â
string
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:197
__setAttr â
⸠__setAttr(_attrName
, _newValue
): boolean
Parameters â
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:201
__getAttr â
⸠__getAttr(_attrName
): IValue
Parameters â
Name | Type |
---|---|
_attrName | string |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:203
setProxyAttr â
⸠setProxyAttr(_attrName
, _newValue
): void
Parameters â
Name | Type |
---|---|
_attrName | string |
_newValue | IValue |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:205
getProxyAttr â
⸠getProxyAttr(_attrName
): IValue
Parameters â
Name | Type |
---|---|
_attrName | string |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:207
focus â
⸠focus(_value?
): void
Parameters â
Name | Type |
---|---|
_value? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:227
updateLayout â
⸠updateLayout(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:231
forceUpdate â
⸠forceUpdate(attrName?
): void
Parameters â
Name | Type |
---|---|
attrName? | string |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:235
forceRender â
⸠forceRender(_bounds?
): void
Parameters â
Name | Type |
---|---|
_bounds? | IBoundsData |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:243
__updateWorldMatrix â
⸠__updateWorldMatrix(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:249
__updateLocalMatrix â
⸠__updateLocalMatrix(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:251
__updateWorldBounds â
⸠__updateWorldBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:257
__updateLocalBounds â
⸠__updateLocalBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:259
__updateLocalBoxBounds â
⸠__updateLocalBoxBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:262
__updateLocalStrokeBounds â
⸠__updateLocalStrokeBounds(): void
Returns â
void
Implementation of â
IText.__updateLocalStrokeBounds
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:264
__updateLocalRenderBounds â
⸠__updateLocalRenderBounds(): void
Returns â
void
Implementation of â
IText.__updateLocalRenderBounds
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:266
__updateContentBounds â
⸠__updateContentBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:272
__updateStrokeBounds â
⸠__updateStrokeBounds(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:274
__updateAutoLayout â
⸠__updateAutoLayout(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:279
__updateFlowLayout â
⸠__updateFlowLayout(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:281
__updateNaturalSize â
⸠__updateNaturalSize(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:283
__updateStrokeSpread â
⸠__updateStrokeSpread(): number
Returns â
number
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:286
__updateEraser â
⸠__updateEraser(value?
): void
Parameters â
Name | Type |
---|---|
value? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:295
__renderEraser â
⸠__renderEraser(canvas
, options
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:299
__updateMask â
⸠__updateMask(value?
): void
Parameters â
Name | Type |
---|---|
value? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:307
__renderMask â
⸠__renderMask(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:313
__getNowWorld â
⸠__getNowWorld(options
): IMatrixWithBoundsScaleData
Parameters â
Name | Type |
---|---|
options | IRenderOptions |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:321
getTransform â
⸠getTransform(relative?
): IMatrixData
Parameters â
Name | Type |
---|---|
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:333
getBounds â
⸠getBounds(type?
, relative?
): IBoundsData
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:338
getLayoutBounds â
⸠getLayoutBounds(type?
, relative?
, unscale?
): ILayoutBoundsData
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
unscale? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:342
getLayoutPoints â
⸠getLayoutPoints(type?
, relative?
): IPointData
[]
Parameters â
Name | Type |
---|---|
type? | IBoundsType |
relative? | ILeaf | ILocationType |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:346
getWorldBounds â
⸠getWorldBounds(inner
, relative?
, change?
): IBoundsData
Parameters â
Name | Type |
---|---|
inner | IBoundsData |
relative? | ILeaf |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:351
worldToLocal â
⸠worldToLocal(world
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:359
localToWorld â
⸠localToWorld(local
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
local | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:367
worldToInner â
⸠worldToInner(world
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
world | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:375
innerToWorld â
⸠innerToWorld(inner
, to?
, distance?
, relative?
): void
Parameters â
Name | Type |
---|---|
inner | IPointData |
to? | IPointData |
distance? | boolean |
relative? | ILeaf |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:383
getInnerPoint â
⸠getInnerPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:390
getInnerPointByLocal â
⸠getInnerPointByLocal(local
, _relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
local | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:396
getLocalPoint â
⸠getLocalPoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:400
getLocalPointByInner â
⸠getLocalPointByInner(inner
, _relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
inner | IPointData |
_relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:406
getWorldPoint â
⸠getWorldPoint(inner
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
inner | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:410
getWorldPointByLocal â
⸠getWorldPointByLocal(local
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
local | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:416
getPagePoint â
⸠getPagePoint(world
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
world | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:422
getWorldPointByPage â
⸠getWorldPointByPage(page
, relative?
, distance?
, change?
): IPointData
Parameters â
Name | Type |
---|---|
page | IPointData |
relative? | ILeaf |
distance? | boolean |
change? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:427
setTransform â
⸠setTransform(matrix
, resize?
): void
Parameters â
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:435
transform â
⸠transform(matrix
, resize?
): void
Parameters â
Name | Type |
---|---|
matrix | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:439
move â
⸠move(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:443
moveInner â
⸠moveInner(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:448
scaleOf â
⸠scaleOf(origin
, scaleX
, scaleY?
, resize?
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:452
rotateOf â
⸠rotateOf(origin
, rotation
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
rotation | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:456
skewOf â
⸠skewOf(origin
, skewX
, skewY?
, resize?
): void
Parameters â
Name | Type |
---|---|
origin | IPointData | IDirection |
skewX | number |
skewY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:460
transformWorld â
⸠transformWorld(worldTransform?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldTransform? | IMatrixData |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:465
moveWorld â
⸠moveWorld(x
, y?
): void
Parameters â
Name | Type |
---|---|
x | number | IPointData |
y? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:469
scaleOfWorld â
⸠scaleOfWorld(worldOrigin
, scaleX
, scaleY?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
scaleX | number |
scaleY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:473
rotateOfWorld â
⸠rotateOfWorld(worldOrigin
, rotation
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
rotation | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:477
skewOfWorld â
⸠skewOfWorld(worldOrigin
, skewX
, skewY?
, resize?
): void
Parameters â
Name | Type |
---|---|
worldOrigin | IPointData |
skewX | number |
skewY? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:481
flip â
⸠flip(axis
): void
Parameters â
Name | Type |
---|---|
axis | IAxis |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:485
scaleResize â
⸠scaleResize(scaleX
, scaleY?
, _noResize?
): void
Parameters â
Name | Type | Default value |
---|---|---|
scaleX | number | undefined |
scaleY | number | scaleX |
_noResize? | boolean | undefined |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:492
__scaleResize â
⸠__scaleResize(_scaleX
, _scaleY
): void
Parameters â
Name | Type |
---|---|
_scaleX | number |
_scaleY | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:497
resizeWidth â
⸠resizeWidth(_width
): void
Parameters â
Name | Type |
---|---|
_width | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:500
resizeHeight â
⸠resizeHeight(_height
): void
Parameters â
Name | Type |
---|---|
_height | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:502
__hitWorld â
⸠__hitWorld(_point
): boolean
Parameters â
Name | Type |
---|---|
_point | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:507
__hit â
⸠__hit(_local
): boolean
Parameters â
Name | Type |
---|---|
_local | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:509
__hitFill â
⸠__hitFill(_inner
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:511
__hitStroke â
⸠__hitStroke(_inner
, _strokeWidth
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
_strokeWidth | number |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:513
__hitPixel â
⸠__hitPixel(_inner
): boolean
Parameters â
Name | Type |
---|---|
_inner | IRadiusPointData |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:515
__updateHitCanvas â
⸠__updateHitCanvas(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:519
__render â
⸠__render(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:526
__drawFast â
⸠__drawFast(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:528
__draw â
⸠__draw(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:530
__clip â
⸠__clip(_canvas
, _options
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:533
__renderShape â
⸠__renderShape(_canvas
, _options
, _ignoreFill?
, _ignoreStroke?
): void
Parameters â
Name | Type |
---|---|
_canvas | ILeaferCanvas |
_options | IRenderOptions |
_ignoreFill? | boolean |
_ignoreStroke? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:535
__updateWorldOpacity â
⸠__updateWorldOpacity(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:538
__updateChange â
⸠__updateChange(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:540
__updatePath â
⸠__updatePath(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:551
__updateSortChildren â
⸠__updateSortChildren(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:558
add â
⸠add(_child
, _index?
): void
Parameters â
Name | Type |
---|---|
_child | ILeaf |
_index? | number |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:560
remove â
⸠remove(_child?
, destroy?
): void
Parameters â
Name | Type |
---|---|
_child? | ILeaf |
destroy? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:562
dropTo â
⸠dropTo(parent
, index?
, resize?
): void
Parameters â
Name | Type |
---|---|
parent | ILeaf |
index? | number |
resize? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:566
on â
⸠on(_type
, _listener
, _options?
): void
Parameters â
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_options? | IEventOption |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:575
off â
⸠off(_type?
, _listener?
, _options?
): void
Parameters â
Name | Type |
---|---|
_type? | string | string [] |
_listener? | IFunction |
_options? | IEventOption |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:577
on_ â
⸠on_(_type
, _listener
, _bind?
, _options?
): IEventListenerId
Parameters â
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_bind? | IObject |
_options? | IEventOption |
Returns â
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:579
off_ â
⸠off_(_id
): void
Parameters â
Name | Type |
---|---|
_id | IEventListenerId | IEventListenerId [] |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:581
once â
⸠once(_type
, _listener
, _capture?
): void
Parameters â
Name | Type |
---|---|
_type | string | string [] |
_listener | IFunction |
_capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:583
emit â
⸠emit(_type
, _event?
, _capture?
): void
Parameters â
Name | Type |
---|---|
_type | string |
_event? | IObject | IEvent |
_capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:585
emitEvent â
⸠emitEvent(_event?
, _capture?
): void
Parameters â
Name | Type |
---|---|
_event? | IEvent |
_capture? | boolean |
Returns â
void
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:587
hasEvent â
⸠hasEvent(_type
, _capture?
): boolean
Parameters â
Name | Type |
---|---|
_type | string |
_capture? | boolean |
Returns â
boolean
Implementation of â
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:589
changeAttr â
⸠changeAttr(attrName
, defaultValue
, fn?
): void
Parameters â
Name | Type |
---|---|
attrName | string |
defaultValue | IValue |
fn? | IAttrDecorator |
Returns â
void
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:593
addAttr â
⸠addAttr(attrName
, defaultValue
, fn?
): void
Parameters â
Name | Type |
---|---|
attrName | string |
defaultValue | IValue |
fn? | IAttrDecorator |
Returns â
void
Inherited from â
Defined in â
leafer/packages/display/src/Leaf.ts:597
__drawHitPath â
⸠__drawHitPath(canvas
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:98
__drawPathByData â
⸠__drawPathByData(drawer
, _data?
): void
Parameters â
Name | Type |
---|---|
drawer | IPathDrawer |
_data? | IPathCommandData |
Returns â
void
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:110
__drawRenderPath â
⸠__drawRenderPath(canvas
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:115
__updateTextDrawData â
⸠__updateTextDrawData(): void
Returns â
void
Defined in â
ui/packages/display/src/Text.ts:119
__updateBoxBounds â
⸠__updateBoxBounds(): void
Returns â
void
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:125
__updateRenderSpread â
⸠__updateRenderSpread(): number
Returns â
number
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:185
__updateRenderBounds â
⸠__updateRenderBounds(): void
Returns â
void
Implementation of â
Overrides â
Defined in â
ui/packages/display/src/Text.ts:191
reset â
⸠reset(_data?
): void
Parameters â
Name | Type |
---|---|
_data? | IUIInputData |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:373
set â
⸠set(data
): void
Parameters â
Name | Type |
---|---|
data | IUIInputData |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:376
get â
⸠get(name?
): IValue
| IUIInputData
Parameters â
Name | Type |
---|---|
name? | string | string [] | IUIInputData |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:380
createProxyData â
⸠createProxyData(): IUIInputData
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:384
find â
⸠find(_condition
, _options?
): IUI
[]
Parameters â
Name | Type |
---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns â
IUI
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:389
findTag â
⸠findTag(tag
): IUI
[]
Parameters â
Name | Type |
---|---|
tag | string | string [] |
Returns â
IUI
[]
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:391
findOne â
⸠findOne(_condition
, _options?
): IUI
Parameters â
Name | Type |
---|---|
_condition | string | number | IFindCondition | IFindUIMethod |
_options? | any |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:393
findId â
⸠findId(id
): IUI
Parameters â
Name | Type |
---|---|
id | string | number |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:395
getPath â
⸠getPath(curve?
, pathForRender?
): IPathCommandData
Parameters â
Name | Type |
---|---|
curve? | boolean |
pathForRender? | boolean |
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:400
getPathString â
⸠getPathString(curve?
, pathForRender?
): string
Parameters â
Name | Type |
---|---|
curve? | boolean |
pathForRender? | boolean |
Returns â
string
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:407
load â
⸠load(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:412
__onUpdateSize â
⸠__onUpdateSize(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:416
__updateRenderPath â
⸠__updateRenderPath(): void
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:423
__drawPath â
⸠__drawPath(canvas
): void
Parameters â
Name | Type |
---|---|
canvas | ILeaferCanvas |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:436
__drawPathByBox â
⸠__drawPathByBox(drawer
): void
Parameters â
Name | Type |
---|---|
drawer | IPathDrawer |
Returns â
void
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:449
export â
⸠export(filename
, options?
): Promise
<IExportResult
>
Parameters â
Name | Type |
---|---|
filename | string |
options? | number | boolean | IExportOptions |
Returns â
Promise
<IExportResult
>
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:462
clone â
⸠clone(): IUI
Returns â
Implementation of â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:466
one â
⸠one(data
, x?
, y?
, width?
, height?
): IUI
Parameters â
Name | Type |
---|---|
data | IUIInputData |
x? | number |
y? | number |
width? | number |
height? | number |
Returns â
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:470
registerUI â
⸠registerUI(): void
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:474
registerData â
⸠registerData(data
): void
Parameters â
Name | Type |
---|---|
data | IUIData |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:478
setEditConfig â
⸠setEditConfig(_config
): void
Parameters â
Name | Type |
---|---|
_config | IEditorConfig | IEditorConfigFunction |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:485
setEditOuter â
⸠setEditOuter(_toolName
): void
Parameters â
Name | Type |
---|---|
_toolName | string | IEditToolFunction |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:487
setEditInner â
⸠setEditInner(_editorName
): void
Parameters â
Name | Type |
---|---|
_editorName | string | IEditToolFunction |
Returns â
void
Inherited from â
Defined in â
ui/packages/display/src/UI.ts:489
destroy â
⸠destroy(): void
Returns â
void