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
7cc1645a
Commit
7cc1645a
authored
Sep 29, 2020
by
Lukas Pravda
Browse files
fix broken molstar event handling
parent
1fdd03d2
Pipeline
#100274
passed with stages
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
21 deletions
+9
-21
src/plugin/manager.ts
src/plugin/manager.ts
+9
-21
No files found.
src/plugin/manager.ts
View file @
7cc1645a
...
...
@@ -108,6 +108,10 @@ class Visualization {
return
;
}
});
this
.
links
.
attr
(
'
opacity
'
,
1
);
this
.
nodes
.
attr
(
'
opacity
'
,
1
);
}
private
linkMouseOverEventHandler
(
x
:
Model
.
Link
,
i
:
number
,
g
:
any
)
{
...
...
@@ -138,6 +142,9 @@ class Visualization {
this
.
fireExternalNullEvent
(
Config
.
interactionMouseoutEvent
);
}
this
.
links
.
attr
(
'
opacity
'
,
1
);
this
.
nodes
.
attr
(
'
opacity
'
,
1
);
}
private
dragHandler
=
d3
.
drag
()
...
...
@@ -289,11 +296,7 @@ class Visualization {
public
toogleZoom
(
active
:
boolean
)
{
if
(
active
)
{
this
.
zoomHandler
=
this
.
getZoomHandler
();
}
else
{
this
.
zoomHandler
=
undefined
;
}
this
.
zoomHandler
=
active
?
this
.
getZoomHandler
()
:
undefined
;
}
...
...
@@ -849,27 +852,12 @@ class Visualization {
private
nodeDim
(
x
:
Model
.
InteractionNode
,
i
:
number
,
g
:
any
)
{
x
.
scale
=
1.0
;
if
(
!
x
.
residue
.
isLigand
)
x
.
scale
=
1.0
;
if
(
x
.
residue
.
isLigand
)
d3
.
select
(
g
[
i
]).
style
(
'
cursor
'
,
'
default
'
);
d3
.
select
(
g
[
i
])
//.transition()
.
attr
(
'
transform
'
,
`translate(
${
x
.
x
}
,
${
x
.
y
}
) scale(
${
x
.
scale
}
)`
);
this
.
links
.
attr
(
'
opacity
'
,
1
);
this
.
nodes
.
attr
(
'
opacity
'
,
1
);
// g.forEach((_, index) => {
// if (i != index) {
// d3.select(g[index])//.transition()
// .attr('opacity', 1);
// }
// });
// this.links
// .filter((l: Model.Link) => !l.containsNode(x))
// //.transition()
// .attr('opacity', 1);
}
...
...
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