Search
Preparing search index...
The search index is not available
JSDK 2.7.0 API
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
JS
an
TweenAnim
Class TweenAnim
Hierarchy
Anim
TweenAnim
Index
Constructors
constructor
Properties
_bus
_cfg
_dir
_loop
_targets
_timer
Methods
_reset
_reset
Targets
_setup
Timer
config
direction
get
Looped
get
State
is
Running
off
on
pause
play
replay
seek
stop
targets
Constructors
constructor
new
Tween
Anim
(
cfg
:
TweenAnimInit
)
:
TweenAnim
Parameters
cfg:
TweenAnimInit
Returns
TweenAnim
Properties
Protected
_bus
_bus
:
EventBus
= new EventBus(this)
Protected
_cfg
_cfg
:
TweenAnimInit
Protected
_dir
_dir
:
"forward"
|
"backward"
Protected
_loop
_loop
:
number
= 0
Protected
_targets
_targets
:
Array
<
HTMLElement
|
object
>
= []
Protected
_timer
_timer
:
Timer
= null
Methods
Protected
_reset
_reset
(
)
:
void
Returns
void
Protected
_reset
Targets
_reset
Targets
(
)
:
void
Returns
void
Protected
_setup
Timer
_setup
Timer
(
)
:
void
Returns
void
config
config<T>
(
)
:
T
Type parameters
T
:
AnimInit
Returns
T
direction
direction
(
)
:
"forward"
|
"backward"
direction
(
d
:
"forward"
|
"backward"
)
:
this
Returns
"forward"
|
"backward"
Parameters
d:
"forward"
|
"backward"
Returns
this
get
Looped
get
Looped
(
)
:
number
Returns
number
get
State
get
State
(
)
:
AnimState
Returns
AnimState
is
Running
is
Running
(
)
:
boolean
Returns
boolean
off
off
(
ev
?:
string
)
:
this
Parameters
Optional
ev:
string
Returns
this
on
on
(
ev
:
string
, fn
:
EventHandler
<
this
>
)
:
this
Parameters
ev:
string
fn:
EventHandler
<
this
>
Returns
this
pause
pause
(
)
:
this
Pauses the animation.
Returns
this
play
play
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
replay
replay
(
)
:
void
Returns
void
seek
seek
(
dt
:
number
)
:
void
Parameters
dt:
number
Returns
void
stop
stop
(
)
:
this
Stops the animation and resets the play head to its initial position.
Returns
this
targets
targets
(
t
:
AnimTargets
)
:
this
Parameters
t:
AnimTargets
Returns
this
Globals
JS
an
app
core
d2
ds
fx
input
ioc
lang
math
media
model
net
store
sugar
ui
unit
util
view
Tween
Anim
constructor
_bus
_cfg
_dir
_loop
_targets
_timer
_reset
_reset
Targets
_setup
Timer
config
direction
get
Looped
get
State
is
Running
off
on
pause
play
replay
seek
stop
targets
Pauses the animation.