diff options
Diffstat (limited to 'js/stage/binding-view.reel/binding-view.js')
-rwxr-xr-x | js/stage/binding-view.reel/binding-view.js | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/js/stage/binding-view.reel/binding-view.js b/js/stage/binding-view.reel/binding-view.js index a0ca0c4f..90e6a5e3 100755 --- a/js/stage/binding-view.reel/binding-view.js +++ b/js/stage/binding-view.reel/binding-view.js | |||
@@ -23,6 +23,10 @@ exports.BindingView = Montage.create(Component, { | |||
23 | value:[] | 23 | value:[] |
24 | }, | 24 | }, |
25 | 25 | ||
26 | _bindingViewCanvas: { | ||
27 | value:null | ||
28 | }, | ||
29 | |||
26 | //Public Objects | 30 | //Public Objects |
27 | hudRepeater: { value: null }, | 31 | hudRepeater: { value: null }, |
28 | 32 | ||
@@ -53,9 +57,19 @@ exports.BindingView = Montage.create(Component, { | |||
53 | this._nonVisualComponents = val; | 57 | this._nonVisualComponents = val; |
54 | } | 58 | } |
55 | }, | 59 | }, |
60 | bindingViewCanvas: { | ||
61 | get: function() { | ||
62 | return this._bindingViewCanvas; | ||
63 | }, | ||
64 | set: function(val) { | ||
65 | this._bindingViewCanvas = val; | ||
66 | } | ||
67 | }, | ||
56 | 68 | ||
57 | //Methods | 69 | //Methods |
58 | 70 | ||
71 | |||
72 | |||
59 | //Montage Draw Cycle | 73 | //Montage Draw Cycle |
60 | prepareForDraw: { | 74 | prepareForDraw: { |
61 | value: function() { | 75 | value: function() { |
@@ -70,7 +84,10 @@ exports.BindingView = Montage.create(Component, { | |||
70 | { | 84 | { |
71 | "title": "Input1", | 85 | "title": "Input1", |
72 | "properties": [ | 86 | "properties": [ |
73 | {"title":"Value"}, | 87 | {"title":"Value", |
88 | "bindings": [ | ||
89 | {"direction": "<-", "boundObject":"Checkbox1", "boundProperty": "Value"} | ||
90 | ]}, | ||
74 | {"title": "Width"} | 91 | {"title": "Width"} |
75 | ], | 92 | ], |
76 | "x": 20, | 93 | "x": 20, |
@@ -92,6 +109,18 @@ exports.BindingView = Montage.create(Component, { | |||
92 | } | 109 | } |
93 | }, | 110 | }, |
94 | 111 | ||
112 | drawBlueLine: { | ||
113 | value: function(fromX,fromY,toX,toY) { | ||
114 | |||
115 | } | ||
116 | }, | ||
117 | |||
118 | handleMousedown: { | ||
119 | value: function(event) { | ||
120 | debugger; | ||
121 | } | ||
122 | }, | ||
123 | |||
95 | didDraw: { | 124 | didDraw: { |
96 | value: function() { | 125 | value: function() { |
97 | 126 | ||