X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/80c653023eaa918f6b736e84d12e17d3c9c24d88..8c9d3b6afa002ad4db684dadcf8a50ca27f8701d:/modules/documentCanvas/documentCanvas.js?ds=sidebyside diff --git a/modules/documentCanvas/documentCanvas.js b/modules/documentCanvas/documentCanvas.js index decda83..2f8dae5 100644 --- a/modules/documentCanvas/documentCanvas.js +++ b/modules/documentCanvas/documentCanvas.js @@ -55,10 +55,10 @@ return function(sandbox) { sandbox.publish('currentNodeElementChanged', currentNodeElement); }, highlightElement: function(element) { - canvas.highlightElement(element); + element.toggleHighlight(true); }, dimElement: function(element) { - canvas.dimElement(element); + element.toggleHighlight(false); }, jumpToElement: function(element) { canvas.setCurrentElement(element);