- highlightDocumentElement: function(element, origin) {
- ///'nodeBreadCrumbs', 'nodeFamilyTree'
- ['documentCanvas', 'nodeFamilyTree'].forEach(function(moduleName) {
- if(!origin || moduleName !== origin) {
- sandbox.getModule(moduleName).highlightElement(element);
- }
- });
- },
- dimDocumentElement: function(element, origin) {
- //'nodeBreadCrumbs', 'nodeFamilyTree'
- ['documentCanvas', 'nodeFamilyTree'].forEach(function(moduleName) {
- if(!origin || moduleName !== origin) {
- sandbox.getModule(moduleName).dimElement(element);
- }
- });
- },
- jumpToDocumentElement: function(element) {
- sandbox.getModule('documentCanvas').jumpToElement(element);
- },
- updateCurrentNodeElement: function(nodeElement) {
- sandbox.getModule('nodePane').setNodeElement(nodeElement);
- sandbox.getModule('nodeFamilyTree').setElement(nodeElement);
- sandbox.getModule('nodeBreadCrumbs').setNodeElement(nodeElement);
- sandbox.getModule('documentToolbar').setNodeElement(nodeElement);
- sandbox.getModule('metadataEditor').setNodeElement(nodeElement);
+ refreshCanvasSelection: function(selection) {
+ var fragment = selection.toDocumentFragment();
+ sandbox.getModule('documentToolbar').setDocumentFragment(fragment);