Move setting text direction into bidi module

This commit is contained in:
Nick O'Leary
2016-08-26 00:40:01 +01:00
parent b17c34402d
commit c60fb3bc25
3 changed files with 8 additions and 13 deletions

View File

@@ -2155,8 +2155,6 @@ RED.view = (function() {
).classed("link_selected", false);
}
RED.text.bidi.enforceTextDirectionOnPage();
if (d3.event) {
d3.event.preventDefault();
}
@@ -2360,12 +2358,6 @@ RED.view = (function() {
snapGrid = state;
redraw();
},
toggleTextDir: function(value) {
RED.text.bidi.setTextDirection(value);
RED.nodes.eachNode(function(n) { n.dirty = true;});
redraw();
RED.palette.refresh();
},
scale: function() {
return scaleFactor;
},