From a98948280a27e20a66c70d51c814956d2850c357 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Thu, 6 Jun 2013 15:54:25 +0200 Subject: [PATCH] More highlighting --- modules/nodeBreadCrumbs/nodeBreadCrumbs.js | 4 +++- modules/rng/rng.js | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js index 99143bc..1db8a22 100644 --- a/modules/nodeBreadCrumbs/nodeBreadCrumbs.js +++ b/modules/nodeBreadCrumbs/nodeBreadCrumbs.js @@ -44,7 +44,9 @@ return function(sandbox) { return { start: function() { sandbox.publish('ready'); }, getView: function() { return view.dom; }, - setNode: function(node) { view.setNode(node); } + setNode: function(node) { view.setNode(node); }, + highlightNode: function(id) { view.highlightNode(id); }, + dimNode: function(id) { view.dimNode(id); } } } diff --git a/modules/rng/rng.js b/modules/rng/rng.js index a42632d..0322ca2 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -113,11 +113,16 @@ return function(sandbox) { }, nodeHovered: function(node) { + sandbox.getModule('documentCanvas').highlightNode(node.attr('id')); sandbox.getModule('nodeFamilyTree').highlightNode(node.attr('id')); + sandbox.getModule('nodeBreadCrumbs').highlightNode(node.attr('id')); + }, nodeBlured: function(node) { + sandbox.getModule('documentCanvas').dimNode(node.attr('id')); sandbox.getModule('nodeFamilyTree').dimNode(node.attr('id')); + sandbox.getModule('nodeBreadCrumbs').dimNode(node.attr('id')); } }; -- 2.20.1