X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/a398f2a96740ebe6dd60559d90e74c648e7009af..1d8d7b5fad1547bc2356f2e69e18ca597c969d9b:/modules/rng/rng.js?ds=inline diff --git a/modules/rng/rng.js b/modules/rng/rng.js index 469a6fc..2078494 100644 --- a/modules/rng/rng.js +++ b/modules/rng/rng.js @@ -64,10 +64,12 @@ return function(sandbox) { }, selectNode: function(canvasNode, origin) { sandbox.getModule('documentCanvas').selectNode(canvasNode); + this.updateNodesModules(canvasNode); + }, + updateNodesModules: function(canvasNode) { sandbox.getModule('nodePane').setNode(canvasNode); sandbox.getModule('nodeFamilyTree').setNode(canvasNode); sandbox.getModule('nodeBreadCrumbs').setNode(canvasNode); - }, resetDocument: function(document, reason) { var modules = []; @@ -199,6 +201,10 @@ return function(sandbox) { dirty.documentCanvas = true; }, + currentNodeChanged: function(canvasNode) { + commands.updateNodesModules(canvasNode); + }, + nodeHovered: function(canvasNode) { commands.highlightDocumentNode(canvasNode); },