@samatawy/diagrams
Demo
Preparing search index...
index
DiagramAnimations
Class DiagramAnimations
Index
Constructors
constructor
Accessors
enabled
fps
line
Dash
Offset
Methods
start
Animation
stop
Animation
stop
Animations
By
Type
animate
Line
Dash
animate
Node
Center
animate
Node
Shutter
animate
Viewport
stop
Viewport
Animation
Constructors
constructor
new
DiagramAnimations
(
diagram
:
DiagramView
,
options
:
AnimationConfig
,
)
:
DiagramAnimations
Parameters
diagram
:
DiagramView
options
:
AnimationConfig
Returns
DiagramAnimations
Accessors
enabled
get
enabled
()
:
boolean
Returns
boolean
set
enabled
(
value
:
boolean
)
:
void
Parameters
value
:
boolean
Returns
void
fps
get
fps
()
:
number
Returns
number
set
fps
(
value
:
number
)
:
void
Parameters
value
:
number
Returns
void
line
Dash
Offset
get
lineDashOffset
()
:
number
Returns
number
Methods
start
Animation
startAnimation
(
type
:
AnimationChannelType
,
id
:
string
|
undefined
,
func
:
()
=>
void
,
)
:
void
Parameters
type
:
AnimationChannelType
id
:
string
|
undefined
func
:
()
=>
void
Returns
void
stop
Animation
stopAnimation
(
channel
:
string
)
:
void
Parameters
channel
:
string
Returns
void
stop
Animations
By
Type
stopAnimationsByType
(
type
:
AnimationChannelType
)
:
void
Parameters
type
:
AnimationChannelType
Returns
void
animate
Line
Dash
animateLineDash
(
id
:
string
,
func
:
()
=>
void
)
:
void
Parameters
id
:
string
func
:
()
=>
void
Returns
void
animate
Node
Center
animateNodeCenter
(
node
:
INode
,
target
:
IPoint
,
func
:
()
=>
void
)
:
void
Parameters
node
:
INode
target
:
IPoint
func
:
()
=>
void
Returns
void
animate
Node
Shutter
animateNodeShutter
(
node
:
INode
,
func
:
()
=>
void
)
:
void
Parameters
node
:
INode
func
:
()
=>
void
Returns
void
animate
Viewport
animateViewport
(
target
:
{
zoom
?:
number
;
pan
?:
{
x
:
number
;
y
:
number
}
}
,
func
?:
()
=>
void
,
)
:
void
Parameters
target
:
{
zoom
?:
number
;
pan
?:
{
x
:
number
;
y
:
number
}
}
Optional
func
:
()
=>
void
Returns
void
stop
Viewport
Animation
stopViewportAnimation
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
enabled
fps
line
Dash
Offset
Methods
start
Animation
stop
Animation
stop
Animations
By
Type
animate
Line
Dash
animate
Node
Center
animate
Node
Shutter
animate
Viewport
stop
Viewport
Animation
@samatawy/diagrams
Demo gallery
Loading...