WTex
Defined in: wtex.ts:11
The base class for objects used in wanim’s animations.
Extends
Constructors
Constructor
new WTex(
text,options?):WTex
Defined in: wtex.ts:14
Parameters
text
string
options?
WTexOptions
Returns
WTex
Overrides
Properties
animate
animate:
object
Defined in: wobject.ts:15
fill
fill:
TweenerFactory<"fill",ColorLike>
position
position:
TweenerFactory<"position">
rotate
rotate:
TweenerFactory<"rotate">
scale
scale:
TweenerFactory<"scale">
scaleX
scaleX:
TweenerFactory<"scaleX">
scaleY
scaleY:
TweenerFactory<"scaleY">
x
x:
TweenerFactory<"x">
y
y:
TweenerFactory<"y">
Inherited from
children
children:
WObject<SVGElement>[] =[]
Defined in: wgroup.ts:7
Inherited from
element
element:
SVGGElement
Defined in: wobject.ts:14
The DOM element that represents the object’s visual.
Inherited from
rendered
rendered:
Promise<void>
Defined in: wtex.ts:12
Accessors
size
Get Signature
get size():
Vector2
Defined in: wgroup.ts:13
Returns
Inherited from
visible
Get Signature
get visible():
boolean
Defined in: wobject.ts:186
Returns
boolean
Set Signature
set visible(
v):void
Defined in: wobject.ts:189
Parameters
v
boolean
Returns
void
Inherited from
Methods
add()
add(…
objects):WGroup
Defined in: wgroup.ts:18
Parameters
objects
…WObject<SVGElement>[]
Returns
Inherited from
anchor()
Call Signature
anchor():
Anchor
Defined in: wobject.ts:174
Returns
Inherited from
Call Signature
anchor(
value):this
Defined in: wobject.ts:175
Parameters
value
Returns
this
Inherited from
createElement()
createElement():
SVGGElement
Defined in: wtex.ts:124
Returns
SVGGElement
Overrides
fill()
Call Signature
fill():
ColorInstance
Defined in: wgroup.ts:27
Returns
ColorInstance
Inherited from
Call Signature
fill(
color):this
Defined in: wgroup.ts:28
Parameters
color
ColorLike
Returns
this
Inherited from
fillOpacity()
Call Signature
fillOpacity():
number
Defined in: wgroup.ts:41
Returns
number
Inherited from
Call Signature
fillOpacity(
value):this
Defined in: wgroup.ts:42
Parameters
value
number
Returns
this
Inherited from
hide()
hide():
void
Defined in: wgroup.ts:104
Returns
void
Inherited from
position()
Call Signature
position():
Vector2
Defined in: wobject.ts:54
Returns
Inherited from
Call Signature
position(
value):this
Defined in: wobject.ts:55
Parameters
value
Returns
this
Inherited from
rotate()
Call Signature
rotate():
number
Defined in: wobject.ts:162
Returns
number
Inherited from
Call Signature
rotate(
value):this
Defined in: wobject.ts:163
Parameters
value
number
Returns
this
Inherited from
scale()
Call Signature
scale():
Vector2
Defined in: wobject.ts:150
Returns
Inherited from
Call Signature
scale(
value):this
Defined in: wobject.ts:151
Parameters
value
Returns
this
Inherited from
scaleX()
Call Signature
scaleX():
number
Defined in: wobject.ts:126
Returns
number
Inherited from
Call Signature
scaleX(
value):this
Defined in: wobject.ts:127
Parameters
value
number
Returns
this
Inherited from
scaleY()
Call Signature
scaleY():
number
Defined in: wobject.ts:138
Returns
number
Inherited from
Call Signature
scaleY(
value):this
Defined in: wobject.ts:139
Parameters
value
number
Returns
this
Inherited from
show()
show():
void
Defined in: wgroup.ts:97
Returns
void
Inherited from
stroke()
Call Signature
stroke():
ColorInstance
Defined in: wgroup.ts:55
Returns
ColorInstance
Inherited from
Call Signature
stroke(
color):this
Defined in: wgroup.ts:56
Parameters
color
ColorLike
Returns
this
Inherited from
strokeOpacity()
Call Signature
strokeOpacity():
number
Defined in: wgroup.ts:83
Returns
number
Inherited from
Call Signature
strokeOpacity(
value):this
Defined in: wgroup.ts:84
Parameters
value
number
Returns
this
Inherited from
strokeWidth()
Call Signature
strokeWidth():
number
Defined in: wgroup.ts:69
Returns
number
Inherited from
Call Signature
strokeWidth(
value):this
Defined in: wgroup.ts:70
Parameters
value
number
Returns
this
Inherited from
updateFill()
updateFill():
void
Defined in: wobject.ts:237
Returns
void
Inherited from
updateStroke()
updateStroke():
void
Defined in: wobject.ts:231
Returns
void
Inherited from
updateTransform()
updateTransform():
void
Defined in: wobject.ts:215
Returns
void
Inherited from
x()
Call Signature
x():
number
Defined in: wobject.ts:30
Returns
number
Inherited from
Call Signature
x(
value):this
Defined in: wobject.ts:31
Parameters
value
number
Returns
this
Inherited from
y()
Call Signature
y():
number
Defined in: wobject.ts:42
Returns
number
Inherited from
Call Signature
y(
value):this
Defined in: wobject.ts:43
Parameters
value
number
Returns
this