From: Aleksander Ɓukasz Date: Thu, 6 Jun 2013 13:54:25 +0000 (+0200) Subject: More highlighting X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/a98948280a27e20a66c70d51c814956d2850c357?ds=sidebyside;hp=5c8c1676ef0036d6feceee576423ed0f1d28ae7c More highlighting --- 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')); } };