Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
createjs
Text
Class Text
Hierarchy
DisplayObject
Text
Index
Constructor methods
constructor
Properties
alpha
cacheCanvas
cacheID
color
compositeOperation
cursor
filters
font
hitArea
id
lineHeight
lineWidth
mask
maxWidth
mouseEnabled
name
outline
parent
regX
regY
rotation
scaleX
scaleY
shadow
skewX
skewY
snapToPixel
text
textAlign
textBaseline
tickEnabled
visible
x
y
Methods
addEventListener
cache
clone
dispatchEvent
draw
getBounds
getCacheDataURL
getConcatenatedMatrix
getMatrix
getMeasuredHeight
getMeasuredLineHeight
getMeasuredWidth
getStage
getTransformedBounds
globalToLocal
hasEventListener
hitTest
isVisible
localToGlobal
localToLocal
off
on
removeAllEventListeners
removeEventListener
set
setBounds
setTransform
toString
uncache
updateCache
updateContext
willTrigger
Constructor methods
constructor
(
text
?:
string
, font
?:
string
, color
?:
string
)
:
Text
Parameters
text?:
string
optional
font?:
string
optional
color?:
string
optional
Returns
Text
Properties
public
alpha
:
number
public
cacheCanvas
:
any
public
cacheID
:
number
public
color
:
string
public
compositeOperation
:
string
public
cursor
:
string
public
filters
:
Filter
[]
public
font
:
string
public
hitArea
:
DisplayObject
public
id
:
number
public
lineHeight
:
number
public
lineWidth
:
number
public
mask
:
Shape
public
maxWidth
:
number
public
mouseEnabled
:
boolean
public
name
:
string
public
outline
:
number
public
parent
:
Container
public
regX
:
number
public
regY
:
number
public
rotation
:
number
public
scaleX
:
number
public
scaleY
:
number
public
shadow
:
Shadow
public
skewX
:
number
public
skewY
:
number
public
snapToPixel
:
boolean
deprecated
public
text
:
string
public
textAlign
:
string
public
textBaseline
:
string
public
tickEnabled
:
boolean
public
visible
:
boolean
public
x
:
number
public
y
:
number
Methods
public
addEventListener
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => boolean
useCapture?:
boolean
optional
Returns
Function
public
addEventListener
(
type
:
string
, listener
:
(eventObj: Object) => void
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => void
useCapture?:
boolean
optional
Returns
Function
public
addEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
useCapture?:
boolean
optional
Returns
Object
public
addEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
useCapture?:
boolean
optional
Returns
Object
public
cache
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
, scale
?:
number
)
Parameters
x:
number
y:
number
width:
number
height:
number
scale?:
number
optional
public
clone
(
)
:
Text
Returns
Text
public
dispatchEvent
(
eventObj
:
Object
, target
?:
Object
)
:
boolean
Parameters
eventObj:
Object
target?:
Object
optional
Returns
boolean
public
dispatchEvent
(
eventObj
:
string
, target
?:
Object
)
:
boolean
Parameters
eventObj:
string
target?:
Object
optional
Returns
boolean
public
dispatchEvent
(
eventObj
:
createjs.Event
, target
?:
Object
)
:
boolean
Parameters
eventObj:
createjs.Event
target?:
Object
optional
Returns
boolean
public
draw
(
ctx
:
CanvasRenderingContext2D
, ignoreCache
?:
boolean
)
:
boolean
Parameters
ctx:
CanvasRenderingContext2D
ignoreCache?:
boolean
optional
Returns
boolean
public
getBounds
(
)
:
Rectangle
Returns
Rectangle
public
getCacheDataURL
(
)
:
string
Returns
string
public
getConcatenatedMatrix
(
mtx
?:
Matrix2D
)
:
Matrix2D
Parameters
mtx?:
Matrix2D
optional
Returns
Matrix2D
public
getMatrix
(
matrix
?:
Matrix2D
)
:
Matrix2D
Parameters
matrix?:
Matrix2D
optional
Returns
Matrix2D
public
getMeasuredHeight
(
)
:
number
Returns
number
public
getMeasuredLineHeight
(
)
:
number
Returns
number
public
getMeasuredWidth
(
)
:
number
Returns
number
public
getStage
(
)
:
Stage
Returns
Stage
public
getTransformedBounds
(
)
:
Rectangle
Returns
Rectangle
public
globalToLocal
(
x
:
number
, y
:
number
)
:
Point
Parameters
x:
number
y:
number
Returns
Point
public
hasEventListener
(
type
:
string
)
:
boolean
Parameters
type:
string
Returns
boolean
public
hitTest
(
x
:
number
, y
:
number
)
:
boolean
Parameters
x:
number
y:
number
Returns
boolean
public
isVisible
(
)
:
boolean
Returns
boolean
public
localToGlobal
(
x
:
number
, y
:
number
)
:
Point
Parameters
x:
number
y:
number
Returns
Point
public
localToLocal
(
x
:
number
, y
:
number
, target
:
DisplayObject
)
:
Point
Parameters
x:
number
y:
number
target:
DisplayObject
Returns
Point
public
off
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => boolean
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
(eventObj: Object) => void
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => void
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
useCapture?:
boolean
optional
public
off
(
type
:
string
, listener
:
Function
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
Function
useCapture?:
boolean
optional
public
on
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => boolean
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Function
public
on
(
type
:
string
, listener
:
(eventObj: Object) => void
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Function
Parameters
type:
string
listener:
(eventObj: Object) => void
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Function
public
on
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Object
public
on
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, scope
?:
Object
, once
?:
boolean
, data
?:
any
, useCapture
?:
boolean
)
:
Object
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
scope?:
Object
optional
once?:
boolean
optional
data?:
any
optional
useCapture?:
boolean
optional
Returns
Object
public
removeAllEventListeners
(
type
?:
string
)
Parameters
type?:
string
optional
public
removeEventListener
(
type
:
string
, listener
:
(eventObj: Object) => boolean
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => boolean
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
(eventObj: Object) => void
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
(eventObj: Object) => void
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => boolean; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => boolean; }
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
{ handleEvent: (eventObj: Object) => void; }
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
{ handleEvent: (eventObj: Object) => void; }
useCapture?:
boolean
optional
public
removeEventListener
(
type
:
string
, listener
:
Function
, useCapture
?:
boolean
)
Parameters
type:
string
listener:
Function
useCapture?:
boolean
optional
public
set
(
props
:
Object
)
:
Text
Parameters
props:
Object
Returns
Text
public
setBounds
(
x
:
number
, y
:
number
, width
:
number
, height
:
number
)
Parameters
x:
number
y:
number
width:
number
height:
number
public
setTransform
(
x
?:
number
, y
?:
number
, scaleX
?:
number
, scaleY
?:
number
, rotation
?:
number
, skewX
?:
number
, skewY
?:
number
, regX
?:
number
, regY
?:
number
)
:
Text
Parameters
x?:
number
optional
y?:
number
optional
scaleX?:
number
optional
scaleY?:
number
optional
rotation?:
number
optional
skewX?:
number
optional
skewY?:
number
optional
regX?:
number
optional
regY?:
number
optional
Returns
Text
public
toString
(
)
:
string
Returns
string
public
uncache
(
)
public
updateCache
(
compositeOperation
?:
string
)
Parameters
compositeOperation?:
string
optional
public
updateContext
(
ctx
:
CanvasRenderingContext2D
)
Parameters
ctx:
CanvasRenderingContext2D
public
willTrigger
(
type
:
string
)
:
boolean
Parameters
type:
string
Returns
boolean
Globals
createjs
SpriteSheetAnimation
SpriteSheetFrame
AlphaMapFilter
AlphaMaskFilter
Bitmap
BitmapAnimation
BitmapText
BlurFilter
ButtonHelper
CSSPlugin
ColorFilter
ColorMatrix
ColorMatrixFilter
Command
Container
DOMElement
DisplayObject
Ease
EaselJS
Filter
Graphics
Matrix2D
MotionGuidePlugin
MouseEvent
MovieClip
MovieClipPlugin
Point
Rectangle
Shadow
Shape
Sprite
SpriteSheet
SpriteSheetBuilder
SpriteSheetUtils
Stage
Text
constructor
alpha
cacheCanvas
cacheID
color
compositeOperation
cursor
filters
font
hitArea
id
lineHeight
lineWidth
mask
maxWidth
mouseEnabled
name
outline
parent
regX
regY
rotation
scaleX
scaleY
shadow
skewX
skewY
snapToPixel
text
textAlign
textBaseline
tickEnabled
visible
x
y
addEventListener
cache
clone
dispatchEvent
draw
getBounds
getCacheDataURL
getConcatenatedMatrix
getMatrix
getMeasuredHeight
getMeasuredLineHeight
getMeasuredWidth
getStage
getTransformedBounds
globalToLocal
hasEventListener
hitTest
isVisible
localToGlobal
localToLocal
off
on
removeAllEventListeners
removeEventListener
set
setBounds
setTransform
toString
uncache
updateCache
updateContext
willTrigger
Ticker
TickerEvent
Timeline
Touch
Tween
TweenJS
UID