diff options
Diffstat (limited to 'js/tools')
-rw-r--r-- | js/tools/bindingTool.js | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/js/tools/bindingTool.js b/js/tools/bindingTool.js index 05a4965f..282e3408 100644 --- a/js/tools/bindingTool.js +++ b/js/tools/bindingTool.js | |||
@@ -5,11 +5,30 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
5 | </copyright> */ | 5 | </copyright> */ |
6 | 6 | ||
7 | var Montage = require("montage/core/core").Montage, | 7 | var Montage = require("montage/core/core").Montage, |
8 | DrawingTool = require("js/tools/drawing-tool").DrawingTool; | 8 | DrawingTool = require("js/tools/drawing-tool").DrawingTool, |
9 | ModifierToolBase = require("js/tools/modifier-tool-base").ModifierToolBase; | ||
9 | 10 | ||
10 | exports.BindingTool = Montage.create(DrawingTool, { | 11 | |
12 | exports.BindingTool = Montage.create(ModifierToolBase, { | ||
11 | drawingFeedback: { value: { mode: "Draw2D", type: "" } }, | 13 | drawingFeedback: { value: { mode: "Draw2D", type: "" } }, |
12 | 14 | ||
15 | Configure: { | ||
16 | value: function (doActivate) | ||
17 | { | ||
18 | if (doActivate) | ||
19 | { | ||
20 | NJevent("enableStageMove"); | ||
21 | document.body.classList.add("ws-binding"); | ||
22 | |||
23 | } | ||
24 | else | ||
25 | { | ||
26 | NJevent("disableStageMove"); | ||
27 | document.body.classList.remove("ws-binding"); | ||
28 | } | ||
29 | } | ||
30 | }, | ||
31 | |||
13 | HandleLeftButtonDown: { | 32 | HandleLeftButtonDown: { |
14 | value: function(event) { | 33 | value: function(event) { |
15 | NJevent("enableStageMove"); | 34 | NJevent("enableStageMove"); |