Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pdbe
web-components
pdb-ligand-env
Commits
66eee7de
Commit
66eee7de
authored
Sep 10, 2020
by
Lukas Pravda
Browse files
fix node reinitialisation
parent
b963cff2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/plugin/manager.ts
src/plugin/manager.ts
+13
-0
No files found.
src/plugin/manager.ts
View file @
66eee7de
...
...
@@ -387,12 +387,15 @@ class Visualization {
this
.
depictionRoot
.
selectAll
(
'
*
'
).
remove
();
this
.
depiction
=
undefined
;
this
.
nullNodesPositions
();
this
.
setupScene
().
then
(()
=>
this
.
centerScene
());
}
else
if
(
this
.
depiction
===
undefined
)
{
this
.
nullNodesPositions
();
this
.
setupScene
().
then
(()
=>
this
.
centerScene
());
}
else
{
this
.
nullNodesPositions
();
this
.
setupLigandScene
().
then
(()
=>
this
.
centerScene
());
}
...
...
@@ -485,6 +488,16 @@ class Visualization {
return
'
blank.svg
'
;
}
private
nullNodesPositions
()
{
this
.
presentBindingSite
.
interactionNodes
.
forEach
((
x
:
Model
.
InteractionNode
)
=>
{
if
(
!
x
.
static
)
{
x
.
fx
=
null
;
x
.
fy
=
null
;
}
});
}
// #region fire events
//https://stackoverflow.com/questions/40722344/understanding-d3-with-an-example-mouseover-mouseup-with-multiple-arguments
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment