Class: Monotype
Extends
Constructors
Constructor
new Monotype():
Monotype
Returns
Monotype
Overrides
Properties
MAX_ELAPSE
MAX_ELAPSE:
number=Infinity
Inherited from
Methods
alpha()
alpha(
a,ta?):Monotype
Parameters
a
number
ta?
number
Returns
Monotype
Inherited from
append()
Call Signature
append(...
child):this
Parameters
child
...Component[]
Returns
this
Inherited from
Call Signature
append(
child):this
Parameters
child
Returns
this
Inherited from
appendTo()
appendTo(
parent):Monotype
Parameters
parent
Returns
Monotype
Inherited from
attr()
Call Signature
attr(
name,value):this
Parameters
name
string
value
any
Returns
this
Inherited from
Call Signature
attr(
name):any
Parameters
name
string
Returns
any
Inherited from
clearTimeout()
clearTimeout(
timer):void
Parameters
timer
ComponentTickListener<Monotype>
Returns
void
Inherited from
column()
column(
align):Monotype
Parameters
align
number
Returns
Monotype
Inherited from
direction()
direction(
direction,align):Monotype
Parameters
direction
"row" | "column"
align
number
Returns
Monotype
Inherited from
empty()
empty():
Monotype
Returns
Monotype
Inherited from
first()
first(
visible?):Component
Parameters
visible?
boolean
Returns
Inherited from
frames()
frames(
frames):Monotype
Parameters
frames
string | Record<string, Texture> | ((char) => Texture)
Returns
Monotype
height()
Call Signature
height(
h):this
Parameters
h
number
Returns
this
Inherited from
Call Signature
height():
number
Returns
number
Inherited from
hide()
hide():
Monotype
Returns
Monotype
Inherited from
insertAfter()
insertAfter(
prev):Monotype
Parameters
prev
Returns
Monotype
Inherited from
insertBefore()
insertBefore(
next):Monotype
Parameters
next
Returns
Monotype
Inherited from
insertNext()
insertNext(
sibling,more?):Monotype
Parameters
sibling
more?
Returns
Monotype
Inherited from
insertPrev()
insertPrev(
sibling,more?):Monotype
Parameters
sibling
more?
Returns
Monotype
Inherited from
label()
Call Signature
label():
string
Returns
string
Inherited from
Call Signature
label(
label):this
Parameters
label
string
Returns
this
Inherited from
last()
last(
visible?):Component
Parameters
visible?
boolean
Returns
Inherited from
listeners()
listeners(
type):ComponentEventListener<Component>[]
Parameters
type
string
Returns
ComponentEventListener<Component>[]
Inherited from
matrix()
matrix(
relative?):Matrix
Parameters
relative?
boolean = false
Returns
Inherited from
maximize()
maximize():
Monotype
Set size to match parent size.
Returns
Monotype
Inherited from
minimize()
minimize():
Monotype
Set size to match largest child size.
Returns
Monotype
Inherited from
next()
next(
visible?):Component
Parameters
visible?
boolean
Returns
Inherited from
off()
off(
types,listener):this
Parameters
types
string
listener
ComponentEventListener<Monotype>
Returns
this
Inherited from
offset()
Call Signature
offset(
value):this
Parameters
value
Returns
this
Inherited from
Call Signature
offset(
x,y):this
Parameters
x
number
y
number
Returns
this
Inherited from
on()
on(
types,listener):this
Parameters
types
string
listener
ComponentEventListener<Monotype>
Returns
this
Inherited from
padding()
padding(
pad):Monotype
Set cell spacing for layout.
Parameters
pad
number
Returns
Monotype
Inherited from
parent()
parent():
Component
Returns
Inherited from
pin()
Call Signature
pin(
key):any
Parameters
key
keyof GetPinType
Returns
any
Inherited from
Call Signature
pin(
key,value):this
Parameters
key
keyof SetPinType
value
any
Returns
this
Inherited from
Call Signature
pin(
obj):this
Parameters
obj
Returns
this
Inherited from
Call Signature
pin():
Pin
Returns
Inherited from
prepend()
Call Signature
prepend(...
child):this
Parameters
child
...Component[]
Returns
this
Inherited from
Call Signature
prepend(
child):this
Parameters
child
Returns
this
Inherited from
prependTo()
prependTo(
parent):Monotype
Parameters
parent
Returns
Monotype
Inherited from
prev()
prev(
visible?):Component
Parameters
visible?
boolean
Returns
Inherited from
publish()
publish(
name,args?):number
Parameters
name
string
args?
any[]
Returns
number
Inherited from
remove()
remove(
child?,more?):Monotype
Parameters
child?
more?
any
Returns
Monotype
Inherited from
renderDebug()
renderDebug(
ctx,xf):void
Parameters
ctx
CanvasRenderingContext2D
xf
Returns
void
Inherited from
rotate()
rotate(
a):Monotype
Parameters
a
number
Returns
Monotype
Inherited from
row()
row(
align):Monotype
Parameters
align
number
Returns
Monotype
Inherited from
scale()
Call Signature
scale(
value):this
Parameters
value
Returns
this
Inherited from
Call Signature
scale(
x,y):this
Parameters
x
number
y
number
Returns
this
Inherited from
Call Signature
scale(
s):this
Parameters
s
number
Returns
this
Inherited from
setFont()
setFont(
frames):Monotype
Parameters
frames
string | Record<string, Texture> | ((char) => Texture)
Returns
Monotype
Deprecated
Use frames
setTimeout()
setTimeout(
callback,time): (t) =>boolean
Parameters
callback
() => any
time
number
Returns
(t) => boolean
Inherited from
setValue()
setValue(
value):Monotype
Parameters
value
string | number | string[] | number[]
Returns
Monotype
Deprecated
Use value
show()
show():
Monotype
Returns
Monotype
Inherited from
size()
size(
w,h):Monotype
Parameters
w
number
h
number
Returns
Monotype
Inherited from
skew()
Call Signature
skew(
value):this
Parameters
value
Returns
this
Inherited from
Call Signature
skew(
x,y):this
Parameters
x
number
y
number
Returns
this
Inherited from
spacing()
spacing(
space):Monotype
Set cell spacing for row and column layout.
Parameters
space
number
Returns
Monotype
Inherited from
tick()
tick(
callback,before?):void
Parameters
callback
ComponentTickListener<Monotype>
before?
boolean = false
Returns
void
Inherited from
timeout()
timeout(
callback,time):void
Parameters
callback
() => any
time
number
Returns
void
Inherited from
toString()
toString():
string
Returns
string
Inherited from
touch()
touch():
Monotype
Returns
Monotype
Inherited from
tween()
Call Signature
tween(
opts?):Transition
Parameters
opts?
Returns
Inherited from
Call Signature
tween(
duration?,delay?,append?):Transition
Parameters
duration?
number
delay?
number
append?
boolean
Returns
Inherited from
untick()
untick(
callback):void
Parameters
callback
ComponentTickListener<Monotype>
Returns
void
Inherited from
value()
value(
value):this
Parameters
value
string | number | string[] | number[]
Returns
this
visible()
Call Signature
visible(
visible):this
Parameters
visible
boolean
Returns
this
Inherited from
Call Signature
visible():
boolean
Returns
boolean
Inherited from
visit()
visit<
P>(visitor,payload?):boolean|void
Type Parameters
P
P
Parameters
visitor
ComponentVisitor<P>
payload?
P
Returns
boolean | void
Inherited from
width()
Call Signature
width(
w):this
Parameters
w
number
Returns
this
Inherited from
Call Signature
width():
number
Returns
number