aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorArmen Kesablyan2012-05-11 15:03:10 -0700
committerArmen Kesablyan2012-05-11 15:03:22 -0700
commitc80e7df1702dff09b5cc8447ab0619747fed2024 (patch)
treeed45ae752fd1427e03e39d8174df44de00a45f83 /js/tools
parente3efa52c409ef05c28bfc5f1f25a750b5132c3bd (diff)
downloadninja-c80e7df1702dff09b5cc8447ab0619747fed2024.tar.gz
created the initial environment requirements for workspace to be manipulated.
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools')
-rw-r--r--js/tools/bindingTool.js23
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
7var Montage = require("montage/core/core").Montage, 7var Montage = require("montage/core/core").Montage,
8 DrawingTool = require("js/tools/drawing-tool").DrawingTool; 8 DrawingTool = require("js/tools/drawing-tool").DrawingTool,
9ModifierToolBase = require("js/tools/modifier-tool-base").ModifierToolBase;
9 10
10exports.BindingTool = Montage.create(DrawingTool, { 11
12exports.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");