Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Molstar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michal Malý
Molstar
Commits
27f94c81
Commit
27f94c81
authored
4 years ago
by
Alexander Rose
Browse files
Options
Downloads
Patches
Plain Diff
applied event for animation manager
parent
1e865eca
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/mol-plugin-state/manager/animation.ts
+7
-1
7 additions, 1 deletion
src/mol-plugin-state/manager/animation.ts
with
7 additions
and
1 deletion
src/mol-plugin-state/manager/animation.ts
+
7
−
1
View file @
27f94c81
...
@@ -22,7 +22,8 @@ class PluginAnimationManager extends StatefulPluginComponent<PluginAnimationMana
...
@@ -22,7 +22,8 @@ class PluginAnimationManager extends StatefulPluginComponent<PluginAnimationMana
private
_params
?:
PD
.
For
<
PluginAnimationManager
.
State
[
'
params
'
]
>
=
void
0
;
private
_params
?:
PD
.
For
<
PluginAnimationManager
.
State
[
'
params
'
]
>
=
void
0
;
readonly
events
=
{
readonly
events
=
{
updated
:
this
.
ev
()
updated
:
this
.
ev
(),
applied
:
this
.
ev
(),
};
};
get
isEmpty
()
{
return
this
.
animations
.
length
===
0
;
}
get
isEmpty
()
{
return
this
.
animations
.
length
===
0
;
}
...
@@ -32,6 +33,10 @@ class PluginAnimationManager extends StatefulPluginComponent<PluginAnimationMana
...
@@ -32,6 +33,10 @@ class PluginAnimationManager extends StatefulPluginComponent<PluginAnimationMana
this
.
events
.
updated
.
next
();
this
.
events
.
updated
.
next
();
}
}
private
triggerApply
()
{
this
.
events
.
applied
.
next
();
}
getParams
():
PD
.
Params
{
getParams
():
PD
.
Params
{
if
(
!
this
.
_params
)
{
if
(
!
this
.
_params
)
{
this
.
_params
=
{
this
.
_params
=
{
...
@@ -150,6 +155,7 @@ class PluginAnimationManager extends StatefulPluginComponent<PluginAnimationMana
...
@@ -150,6 +155,7 @@ class PluginAnimationManager extends StatefulPluginComponent<PluginAnimationMana
}
else
if
(
newState
.
kind
===
'
skip
'
)
{
}
else
if
(
newState
.
kind
===
'
skip
'
)
{
if
(
this
.
state
.
animationState
===
'
playing
'
)
this
.
_frame
=
requestAnimationFrame
(
this
.
animate
);
if
(
this
.
state
.
animationState
===
'
playing
'
)
this
.
_frame
=
requestAnimationFrame
(
this
.
animate
);
}
}
this
.
triggerApply
();
}
}
getSnapshot
():
PluginAnimationManager
.
Snapshot
{
getSnapshot
():
PluginAnimationManager
.
Snapshot
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment