Skip to content

Commit

Permalink
Highlight only set operator links to included nodes
Browse files Browse the repository at this point in the history
Closes #74
  • Loading branch information
linkvt committed Nov 22, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 71e54a4 commit cd83b50
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/webvowl/js/elements/nodes/SetOperatorNode.js
Original file line number Diff line number Diff line change
@@ -15,12 +15,17 @@ module.exports = (function () {
this.setHoverHighlighting = function (enable) {
superHoverHighlightingFunction(enable);

// Highlight connected links when hovering the set operator
that.links().forEach(function (link) {
if (link instanceof BoxArrowLink) {
// Highlight links pointing to included nodes when hovering the set operator
that.links()
.filter(function (link) {
return link instanceof BoxArrowLink;
})
.filter(function (link) {
return link.domain().equals(that);
})
.forEach(function (link) {
link.property().setHighlighting(enable);
}
});
});
};

this.draw = function (element) {

0 comments on commit cd83b50

Please sign in to comment.