Skip to content
导航

Class: Text

Hierarchy

  • UI

    Text

Implements

Table of contents

Accessors

Properties

Methods

Constructors

Accessors

tagName

get tagName(): string

Returns

string

Implementation of

IText.tagName

Inherited from

UI.tagName

Defined in

leafer/packages/display/src/Leaf.ts:19


__DataProcessor

get __DataProcessor(): typeof LeafData

Returns

typeof LeafData

Implementation of

IText.__DataProcessor

Inherited from

UI.__DataProcessor

Defined in

leafer/packages/display/src/Leaf.ts:24


__LayoutProcessor

get __LayoutProcessor(): typeof LeafLayout

Returns

typeof LeafLayout

Implementation of

IText.__LayoutProcessor

Inherited from

UI.__LayoutProcessor

Defined in

leafer/packages/display/src/Leaf.ts:25


worldTransform

get worldTransform(): IMatrixData

Returns

IMatrixData

Implementation of

IText.worldTransform

Inherited from

UI.worldTransform

Defined in

leafer/packages/display/src/Leaf.ts:42


localTransform

get localTransform(): IMatrixData

Returns

IMatrixData

Implementation of

IText.localTransform

Inherited from

UI.localTransform

Defined in

leafer/packages/display/src/Leaf.ts:43


worldBoxBounds

get worldBoxBounds(): IBoundsData

Returns

IBoundsData

Implementation of

IText.worldBoxBounds

Inherited from

UI.worldBoxBounds

Defined in

leafer/packages/display/src/Leaf.ts:46


worldStrokeBounds

get worldStrokeBounds(): IBoundsData

Returns

IBoundsData

Implementation of

IText.worldStrokeBounds

Inherited from

UI.worldStrokeBounds

Defined in

leafer/packages/display/src/Leaf.ts:47


worldRenderBounds

get worldRenderBounds(): IBoundsData

Returns

IBoundsData

Implementation of

IText.worldRenderBounds

Inherited from

UI.worldRenderBounds

Defined in

leafer/packages/display/src/Leaf.ts:48


worldOpacity

get worldOpacity(): number

Returns

number

Implementation of

IText.worldOpacity

Inherited from

UI.worldOpacity

Defined in

leafer/packages/display/src/Leaf.ts:51


__tag

get __tag(): string

Returns

string

Implementation of

IText.__tag

Overrides

UI.__tag

Defined in

ui/packages/display/src/Text.ts:15


realWidth

get realWidth(): number

Returns

number

Defined in

ui/packages/display/src/Text.ts:66


realHeight

get realHeight(): number

Returns

number

Defined in

ui/packages/display/src/Text.ts:68


textDrawData

get textDrawData(): ITextDrawData

Returns

ITextDrawData

Defined in

ui/packages/display/src/Text.ts:70

Properties

innerId

Readonly innerId: number

Implementation of

IText.innerId

Inherited from

UI.innerId

Defined in

leafer/packages/display/src/Leaf.ts:22


leafer

Optional leafer: ILeafer

Implementation of

IText.leafer

Inherited from

UI.leafer

Defined in

leafer/packages/display/src/Leaf.ts:27


isLeafer

isLeafer: boolean

Implementation of

IText.isLeafer

Inherited from

UI.isLeafer

Defined in

leafer/packages/display/src/Leaf.ts:30


__isBranch

__isBranch: boolean

Implementation of

IText.__isBranch

Inherited from

UI.__isBranch

Defined in

leafer/packages/display/src/Leaf.ts:31


__isBranchLeaf

__isBranchLeaf: boolean

Implementation of

IText.__isBranchLeaf

Inherited from

UI.__isBranchLeaf

Defined in

leafer/packages/display/src/Leaf.ts:32


__layout

__layout: ILeafLayout

Implementation of

IText.__layout

Inherited from

UI.__layout

Defined in

leafer/packages/display/src/Leaf.ts:35


__local

__local: IMatrixWithBoundsData

Implementation of

IText.__local

Inherited from

UI.__local

Defined in

leafer/packages/display/src/Leaf.ts:37


__world

__world: IMatrixWithBoundsData

Implementation of

IText.__world

Inherited from

UI.__world

Defined in

leafer/packages/display/src/Leaf.ts:38


__worldOpacity

__worldOpacity: number

Implementation of

IText.__worldOpacity

Inherited from

UI.__worldOpacity

Defined in

leafer/packages/display/src/Leaf.ts:39


__level

__level: number

Implementation of

IText.__level

Inherited from

UI.__level

Defined in

leafer/packages/display/src/Leaf.ts:53


__tempNumber

__tempNumber: number

Implementation of

IText.__tempNumber

Inherited from

UI.__tempNumber

Defined in

leafer/packages/display/src/Leaf.ts:54


__hasMask

Optional __hasMask: boolean

Implementation of

IText.__hasMask

Inherited from

UI.__hasMask

Defined in

leafer/packages/display/src/Leaf.ts:56


__hitCanvas

Optional __hitCanvas: ILeaferCanvas

Implementation of

IText.__hitCanvas

Inherited from

UI.__hitCanvas

Defined in

leafer/packages/display/src/Leaf.ts:57


__captureMap

Optional __captureMap: IEventListenerMap

Implementation of

IText.__captureMap

Inherited from

UI.__captureMap

Defined in

leafer/packages/display/src/Leaf.ts:60


__bubbleMap

Optional __bubbleMap: IEventListenerMap

Implementation of

IText.__bubbleMap

Inherited from

UI.__bubbleMap

Defined in

leafer/packages/display/src/Leaf.ts:61


__parentWait

Optional __parentWait: IFunction[]

Implementation of

IText.__parentWait

Inherited from

UI.__parentWait

Defined in

leafer/packages/display/src/Leaf.ts:63


children

Optional children: ILeaf[]

Implementation of

IText.children

Inherited from

UI.children

Defined in

leafer/packages/display/src/Leaf.ts:66


__

__: ITextData

Implementation of

IText.__

Overrides

UI.__

Defined in

ui/packages/display/src/Text.ts:18


width

width: number

Implementation of

IText.width

Overrides

UI.width

Defined in

ui/packages/display/src/Text.ts:22


height

height: number

Implementation of

IText.height

Overrides

UI.height

Defined in

ui/packages/display/src/Text.ts:25


content

content: string

Implementation of

IText.content

Defined in

ui/packages/display/src/Text.ts:28


fontFamily

fontFamily: string

Implementation of

IText.fontFamily

Defined in

ui/packages/display/src/Text.ts:31


fontSize

fontSize: number

Implementation of

IText.fontSize

Defined in

ui/packages/display/src/Text.ts:34


fontWeight

fontWeight: IFontWeight

Implementation of

IText.fontWeight

Defined in

ui/packages/display/src/Text.ts:37


italic

italic: boolean

Implementation of

IText.italic

Defined in

ui/packages/display/src/Text.ts:40


textCase

textCase: ITextCase

Implementation of

IText.textCase

Defined in

ui/packages/display/src/Text.ts:43


textDecoration

textDecoration: ITextDecoration

Implementation of

IText.textDecoration

Defined in

ui/packages/display/src/Text.ts:46


letterSpacing

letterSpacing: string | number

Implementation of

IText.letterSpacing

Defined in

ui/packages/display/src/Text.ts:49


lineHeight

lineHeight: string | number

Implementation of

IText.lineHeight

Defined in

ui/packages/display/src/Text.ts:52


paragraphIndent

paragraphIndent: number

Implementation of

IText.paragraphIndent

Defined in

ui/packages/display/src/Text.ts:55


paragraphSpacing

paragraphSpacing: number

Implementation of

IText.paragraphSpacing

Defined in

ui/packages/display/src/Text.ts:58


textAlign

textAlign: ITextAlign

Implementation of

IText.textAlign

Defined in

ui/packages/display/src/Text.ts:61


verticalAlign

verticalAlign: IVerticalAlign

Implementation of

IText.verticalAlign

Defined in

ui/packages/display/src/Text.ts:64


parent

Optional parent: IGroup

Implementation of

IText.parent

Inherited from

UI.parent

Defined in

ui/packages/display/src/UI.ts:21


id

id: string

Implementation of

IText.id

Inherited from

UI.id

Defined in

ui/packages/display/src/UI.ts:27


name

name: string

Implementation of

IText.name

Inherited from

UI.name

Defined in

ui/packages/display/src/UI.ts:30


className

className: string

Implementation of

IText.className

Inherited from

UI.className

Defined in

ui/packages/display/src/UI.ts:33


blendMode

blendMode: IBlendMode

Implementation of

IText.blendMode

Inherited from

UI.blendMode

Defined in

ui/packages/display/src/UI.ts:38


opacity

opacity: number

Implementation of

IText.opacity

Inherited from

UI.opacity

Defined in

ui/packages/display/src/UI.ts:41


visible

visible: boolean

Implementation of

IText.visible

Inherited from

UI.visible

Defined in

ui/packages/display/src/UI.ts:44


isMask

isMask: boolean

Implementation of

IText.isMask

Inherited from

UI.isMask

Defined in

ui/packages/display/src/UI.ts:47


zIndex

zIndex: number

Implementation of

IText.zIndex

Inherited from

UI.zIndex

Defined in

ui/packages/display/src/UI.ts:50


locked

locked: boolean

Inherited from

UI.locked

Defined in

ui/packages/display/src/UI.ts:53


x

x: number

Implementation of

IText.x

Inherited from

UI.x

Defined in

ui/packages/display/src/UI.ts:58


y

y: number

Implementation of

IText.y

Inherited from

UI.y

Defined in

ui/packages/display/src/UI.ts:61


scaleX

scaleX: number

Implementation of

IText.scaleX

Inherited from

UI.scaleX

Defined in

ui/packages/display/src/UI.ts:73


scaleY

scaleY: number

Implementation of

IText.scaleY

Inherited from

UI.scaleY

Defined in

ui/packages/display/src/UI.ts:76


rotation

rotation: number

Implementation of

IText.rotation

Inherited from

UI.rotation

Defined in

ui/packages/display/src/UI.ts:81


skewX

skewX: number

Implementation of

IText.skewX

Inherited from

UI.skewX

Defined in

ui/packages/display/src/UI.ts:85


skewY

skewY: number

Implementation of

IText.skewY

Inherited from

UI.skewY

Defined in

ui/packages/display/src/UI.ts:88


draggable

draggable: boolean

Implementation of

IText.draggable

Inherited from

UI.draggable

Defined in

ui/packages/display/src/UI.ts:92


hittable

hittable: boolean

Implementation of

IText.hittable

Inherited from

UI.hittable

Defined in

ui/packages/display/src/UI.ts:96


hitType

hitType: IHitType

Implementation of

IText.hitType

Inherited from

UI.hitType

Defined in

ui/packages/display/src/UI.ts:99


hitChildren

hitChildren: boolean

Implementation of

IText.hitChildren

Inherited from

UI.hitChildren

Defined in

ui/packages/display/src/UI.ts:102


fill

fill: string | IPaint | IPaint[]

Implementation of

IText.fill

Inherited from

UI.fill

Defined in

ui/packages/display/src/UI.ts:110


stroke

stroke: string | IPaint | IPaint[]

Implementation of

IText.stroke

Inherited from

UI.stroke

Defined in

ui/packages/display/src/UI.ts:115


strokeAlign

strokeAlign: IStrokeAlign

Implementation of

IText.strokeAlign

Inherited from

UI.strokeAlign

Defined in

ui/packages/display/src/UI.ts:118


strokeWidth

strokeWidth: string | number | number[]

Implementation of

IText.strokeWidth

Inherited from

UI.strokeWidth

Defined in

ui/packages/display/src/UI.ts:121


strokeCap

strokeCap: IStrokeCap

Implementation of

IText.strokeCap

Inherited from

UI.strokeCap

Defined in

ui/packages/display/src/UI.ts:124


strokeJoin

strokeJoin: IStrokeJoin

Implementation of

IText.strokeJoin

Inherited from

UI.strokeJoin

Defined in

ui/packages/display/src/UI.ts:127


dashPattern

dashPattern: string | number[]

Implementation of

IText.dashPattern

Inherited from

UI.dashPattern

Defined in

ui/packages/display/src/UI.ts:130


dashOffset

dashOffset: number

Implementation of

IText.dashOffset

Inherited from

UI.dashOffset

Defined in

ui/packages/display/src/UI.ts:133


miterLimit

miterLimit: number

Implementation of

IText.miterLimit

Inherited from

UI.miterLimit

Defined in

ui/packages/display/src/UI.ts:136


cornerRadius

cornerRadius: string | number | number[]

Implementation of

IText.cornerRadius

Inherited from

UI.cornerRadius

Defined in

ui/packages/display/src/UI.ts:142


cornerSmoothing

cornerSmoothing: number

Implementation of

IText.cornerSmoothing

Inherited from

UI.cornerSmoothing

Defined in

ui/packages/display/src/UI.ts:145


shadow

shadow: string | IShadowEffect | IShadowEffect[]

Implementation of

IText.shadow

Inherited from

UI.shadow

Defined in

ui/packages/display/src/UI.ts:150


innerShadow

innerShadow: string | IShadowEffect | IShadowEffect[]

Implementation of

IText.innerShadow

Inherited from

UI.innerShadow

Defined in

ui/packages/display/src/UI.ts:153


blur

blur: number | IBlurEffect

Implementation of

IText.blur

Inherited from

UI.blur

Defined in

ui/packages/display/src/UI.ts:156


backgroundBlur

backgroundBlur: number | IBlurEffect

Implementation of

IText.backgroundBlur

Inherited from

UI.backgroundBlur

Defined in

ui/packages/display/src/UI.ts:159


grayscale

grayscale: number | IGrayscaleEffect

Implementation of

IText.grayscale

Inherited from

UI.grayscale

Defined in

ui/packages/display/src/UI.ts:162

Methods

__addParentWait

__addParentWait(item): void

Parameters

NameType
itemIFunction

Returns

void

Implementation of

IText.__addParentWait

Inherited from

UI.__addParentWait

Defined in

leafer/packages/display/src/Leaf.ts:84


__runParentWait

__runParentWait(): void

Returns

void

Implementation of

IText.__runParentWait

Inherited from

UI.__runParentWait

Defined in

leafer/packages/display/src/Leaf.ts:88


__bindLeafer

__bindLeafer(leafer): void

Parameters

NameType
leaferILeafer

Returns

void

Implementation of

IText.__bindLeafer

Inherited from

UI.__bindLeafer

Defined in

leafer/packages/display/src/Leaf.ts:96


__setAttr

__setAttr(_attrName, _newValue): void

Parameters

NameType
_attrNamestring
_newValueunknown

Returns

void

Implementation of

IText.__setAttr

Inherited from

UI.__setAttr

Defined in

leafer/packages/display/src/Leaf.ts:117


__getAttr

__getAttr(_attrName): unknown

Parameters

NameType
_attrNamestring

Returns

unknown

Implementation of

IText.__getAttr

Inherited from

UI.__getAttr

Defined in

leafer/packages/display/src/Leaf.ts:119


__updateAttr

__updateAttr(_attrName): void

Parameters

NameType
_attrNamestring

Returns

void

Implementation of

IText.__updateAttr

Inherited from

UI.__updateAttr

Defined in

leafer/packages/display/src/Leaf.ts:121


__updateWorldMatrix

__updateWorldMatrix(): void

Returns

void

Implementation of

IText.__updateWorldMatrix

Inherited from

UI.__updateWorldMatrix

Defined in

leafer/packages/display/src/Leaf.ts:128


__updateLocalMatrix

__updateLocalMatrix(): void

Returns

void

Implementation of

IText.__updateLocalMatrix

Inherited from

UI.__updateLocalMatrix

Defined in

leafer/packages/display/src/Leaf.ts:130


__updateWorldBounds

__updateWorldBounds(): void

Returns

void

Implementation of

IText.__updateWorldBounds

Inherited from

UI.__updateWorldBounds

Defined in

leafer/packages/display/src/Leaf.ts:136


__updateLocalBoxBounds

__updateLocalBoxBounds(): void

Returns

void

Implementation of

IText.__updateLocalBoxBounds

Inherited from

UI.__updateLocalBoxBounds

Defined in

leafer/packages/display/src/Leaf.ts:139


__updateLocalStrokeBounds

__updateLocalStrokeBounds(): void

Returns

void

Implementation of

IText.__updateLocalStrokeBounds

Inherited from

UI.__updateLocalStrokeBounds

Defined in

leafer/packages/display/src/Leaf.ts:141


__updateLocalRenderBounds

__updateLocalRenderBounds(): void

Returns

void

Implementation of

IText.__updateLocalRenderBounds

Inherited from

UI.__updateLocalRenderBounds

Defined in

leafer/packages/display/src/Leaf.ts:143


__updateStrokeBounds

__updateStrokeBounds(): void

Returns

void

Implementation of

IText.__updateStrokeBounds

Inherited from

UI.__updateStrokeBounds

Defined in

leafer/packages/display/src/Leaf.ts:149


__updateRenderBounds

__updateRenderBounds(): void

Returns

void

Implementation of

IText.__updateRenderBounds

Inherited from

UI.__updateRenderBounds

Defined in

leafer/packages/display/src/Leaf.ts:151


__updateStrokeBoundsSpreadWidth

__updateStrokeBoundsSpreadWidth(): number

Returns

number

Implementation of

IText.__updateStrokeBoundsSpreadWidth

Inherited from

UI.__updateStrokeBoundsSpreadWidth

Defined in

leafer/packages/display/src/Leaf.ts:154


__updateRenderBoundsSpreadWidth

__updateRenderBoundsSpreadWidth(): number

Returns

number

Implementation of

IText.__updateRenderBoundsSpreadWidth

Inherited from

UI.__updateRenderBoundsSpreadWidth

Defined in

leafer/packages/display/src/Leaf.ts:156


__onUpdateSize

__onUpdateSize(): void

Returns

void

Implementation of

IText.__onUpdateSize

Inherited from

UI.__onUpdateSize

Defined in

leafer/packages/display/src/Leaf.ts:159


getWorld

getWorld(attrName): number

Parameters

NameType
attrNameIMatrixDecompositionAttr

Returns

number

Implementation of

IText.getWorld

Inherited from

UI.getWorld

Defined in

leafer/packages/display/src/Leaf.ts:166


getBounds

getBounds(type, locationType?): IBoundsData

Parameters

NameTypeDefault value
typeILayoutBoundsTypeundefined
locationTypeILayoutLocationType'world'

Returns

IBoundsData

Implementation of

IText.getBounds

Inherited from

UI.getBounds

Defined in

leafer/packages/display/src/Leaf.ts:170


worldToLocal

worldToLocal(world, to?, isMovePoint?): void

Parameters

NameType
worldIPointData
to?IPointData
isMovePoint?boolean

Returns

void

Implementation of

IText.worldToLocal

Inherited from

UI.worldToLocal

Defined in

leafer/packages/display/src/Leaf.ts:175


localToWorld

localToWorld(local, to?, isMovePoint?): void

Parameters

NameType
localIPointData
to?IPointData
isMovePoint?boolean

Returns

void

Implementation of

IText.localToWorld

Inherited from

UI.localToWorld

Defined in

leafer/packages/display/src/Leaf.ts:183


worldToInner

worldToInner(world, to?, isMovePoint?): void

Parameters

NameType
worldIPointData
to?IPointData
isMovePoint?boolean

Returns

void

Implementation of

IText.worldToInner

Inherited from

UI.worldToInner

Defined in

leafer/packages/display/src/Leaf.ts:191


innerToWorld

innerToWorld(inner, to?, isMovePoint?): void

Parameters

NameType
innerIPointData
to?IPointData
isMovePoint?boolean

Returns

void

Implementation of

IText.innerToWorld

Inherited from

UI.innerToWorld

Defined in

leafer/packages/display/src/Leaf.ts:195


__hitWorld

__hitWorld(_point): boolean

Parameters

NameType
_pointIRadiusPointData

Returns

boolean

Implementation of

IText.__hitWorld

Inherited from

UI.__hitWorld

Defined in

leafer/packages/display/src/Leaf.ts:202


__hit

__hit(_local): boolean

Parameters

NameType
_localIRadiusPointData

Returns

boolean

Implementation of

IText.__hit

Inherited from

UI.__hit

Defined in

leafer/packages/display/src/Leaf.ts:204


__drawHitPath

__drawHitPath(_canvas): void

Parameters

NameType
_canvasILeaferCanvas

Returns

void

Implementation of

IText.__drawHitPath

Inherited from

UI.__drawHitPath

Defined in

leafer/packages/display/src/Leaf.ts:206


__updateHitCanvas

__updateHitCanvas(): void

Returns

void

Implementation of

IText.__updateHitCanvas

Inherited from

UI.__updateHitCanvas

Defined in

leafer/packages/display/src/Leaf.ts:208


__render

__render(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

IText.__render

Inherited from

UI.__render

Defined in

leafer/packages/display/src/Leaf.ts:215


__drawFast

__drawFast(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

IText.__drawFast

Inherited from

UI.__drawFast

Defined in

leafer/packages/display/src/Leaf.ts:217


__draw

__draw(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

IText.__draw

Inherited from

UI.__draw

Defined in

leafer/packages/display/src/Leaf.ts:219


__renderShape

__renderShape(_canvas, _options): void

Parameters

NameType
_canvasILeaferCanvas
_optionsIRenderOptions

Returns

void

Implementation of

IText.__renderShape

Inherited from

UI.__renderShape

Defined in

leafer/packages/display/src/Leaf.ts:221


__updateWorldOpacity

__updateWorldOpacity(): void

Returns

void

Implementation of

IText.__updateWorldOpacity

Inherited from

UI.__updateWorldOpacity

Defined in

leafer/packages/display/src/Leaf.ts:224


__updateRenderTime

__updateRenderTime(): void

Returns

void

Implementation of

IText.__updateRenderTime

Inherited from

UI.__updateRenderTime

Defined in

leafer/packages/display/src/Leaf.ts:226


__updateChange

__updateChange(): void

Returns

void

Implementation of

IText.__updateChange

Inherited from

UI.__updateChange

Defined in

leafer/packages/display/src/Leaf.ts:228


__updatePath

__updatePath(): void

Returns

void

Implementation of

IText.__updatePath

Inherited from

UI.__updatePath

Defined in

leafer/packages/display/src/Leaf.ts:239


__updateSortChildren

__updateSortChildren(): void

Returns

void

Implementation of

IText.__updateSortChildren

Inherited from

UI.__updateSortChildren

Defined in

leafer/packages/display/src/Leaf.ts:246


add

add(_child, _index?): void

Parameters

NameType
_childILeaf
_index?number

Returns

void

Implementation of

IText.add

Inherited from

UI.add

Defined in

leafer/packages/display/src/Leaf.ts:248


remove

remove(_child?): void

Parameters

NameType
_child?ILeaf

Returns

void

Implementation of

IText.remove

Inherited from

UI.remove

Defined in

leafer/packages/display/src/Leaf.ts:250


on

on(_type, _listener, _options?): void

Parameters

NameType
_typestring | string[]
_listenerIFunction
_options?boolean | IEventListenerOptions

Returns

void

Implementation of

IText.on

Inherited from

UI.on

Defined in

leafer/packages/display/src/Leaf.ts:259


off

off(_type, _listener, _options?): void

Parameters

NameType
_typestring | string[]
_listenerIFunction
_options?boolean | IEventListenerOptions

Returns

void

Implementation of

IText.off

Inherited from

UI.off

Defined in

leafer/packages/display/src/Leaf.ts:261


on__

on__(_type, _listener, _bind?, _options?): IEventListenerId

Parameters

NameType
_typestring | string[]
_listenerIFunction
_bind?IObject
_options?boolean | IEventListenerOptions

Returns

IEventListenerId

Implementation of

IText.on__

Inherited from

UI.on__

Defined in

leafer/packages/display/src/Leaf.ts:263


off__

off__(_id): void

Parameters

NameType
_idIEventListenerId | IEventListenerId[]

Returns

void

Implementation of

IText.off__

Inherited from

UI.off__

Defined in

leafer/packages/display/src/Leaf.ts:265


once

once(_type, _listener, _capture?): void

Parameters

NameType
_typestring | string[]
_listenerIFunction
_capture?boolean

Returns

void

Implementation of

IText.once

Inherited from

UI.once

Defined in

leafer/packages/display/src/Leaf.ts:267


emit

emit(_type, _event?, _capture?): void

Parameters

NameType
_typestring
_event?IObject | IEvent
_capture?boolean

Returns

void

Implementation of

IText.emit

Inherited from

UI.emit

Defined in

leafer/packages/display/src/Leaf.ts:269


emitEvent

emitEvent(_event?, _capture?): void

Parameters

NameType
_event?IEvent
_capture?boolean

Returns

void

Implementation of

IText.emitEvent

Inherited from

UI.emitEvent

Defined in

leafer/packages/display/src/Leaf.ts:271


hasEvent

hasEvent(_type, _capture?): boolean

Parameters

NameType
_typestring
_capture?boolean

Returns

boolean

Implementation of

IText.hasEvent

Inherited from

UI.hasEvent

Defined in

leafer/packages/display/src/Leaf.ts:273


destroy

destroy(): void

Returns

void

Implementation of

IText.destroy

Inherited from

UI.destroy

Defined in

leafer/packages/display/src/Leaf.ts:277


__drawPathByData

__drawPathByData(drawer, _data): void

Parameters

NameType
drawerIPathDrawer
_dataIPathCommandData

Returns

void

Implementation of

IText.__drawPathByData

Overrides

UI.__drawPathByData

Defined in

ui/packages/display/src/Text.ts:79


__updateTextDrawData

__updateTextDrawData(): void

Returns

void

Defined in

ui/packages/display/src/Text.ts:84


__updateBoxBounds

__updateBoxBounds(): void

Returns

void

Implementation of

IText.__updateBoxBounds

Overrides

UI.__updateBoxBounds

Defined in

ui/packages/display/src/Text.ts:88


make

Static make(data, x?, y?, width?, height?): IUI

Parameters

NameType
dataIUITagInputData
x?number
y?number
width?number
height?number

Returns

IUI

Inherited from

UI.make

Defined in

ui/packages/display/src/UI.ts:198


set

set(data): void

Parameters

NameType
dataIUITagInputData

Returns

void

Implementation of

IText.set

Inherited from

UI.set

Defined in

ui/packages/display/src/UI.ts:170


get

get(): IUITagInputData

Returns

IUITagInputData

Implementation of

IText.get

Inherited from

UI.get

Defined in

ui/packages/display/src/UI.ts:174


__updateRenderPath

__updateRenderPath(): void

Returns

void

Implementation of

IText.__updateRenderPath

Inherited from

UI.__updateRenderPath

Defined in

ui/packages/display/src/UI.ts:178


__drawRenderPath

__drawRenderPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Implementation of

IText.__drawRenderPath

Inherited from

UI.__drawRenderPath

Defined in

ui/packages/display/src/UI.ts:185


__drawPath

__drawPath(canvas): void

Parameters

NameType
canvasILeaferCanvas

Returns

void

Implementation of

IText.__drawPath

Inherited from

UI.__drawPath

Defined in

ui/packages/display/src/UI.ts:190

Constructors

constructor

new Text(data?)

Parameters

NameType
data?ITextInputData

Overrides

UI.constructor

Defined in

ui/packages/display/src/Text.ts:75

Released under the MIT License.