diff options
author | Valerio Virgillito | 2012-02-03 12:20:10 -0800 |
---|---|---|
committer | Valerio Virgillito | 2012-02-03 12:20:10 -0800 |
commit | e6e539f345f5e1ac36a595db5d1a1c3700715e88 (patch) | |
tree | 39846bf1570f9b5a4057b726c54905de9e9e1c02 /node_modules/montage/ui/flow-path-linear.js | |
parent | 7950424cf704bb221971f4645406b01e6979db18 (diff) | |
parent | c630ead20487c3948fa36448d3e7d5f7b5cba782 (diff) | |
download | ninja-e6e539f345f5e1ac36a595db5d1a1c3700715e88.tar.gz |
Merge branch 'master' into components
Conflicts:
node_modules/montage/ui/bluemoon/progress.reel/progress.html
node_modules/montage/ui/image2.reel/image2.html
node_modules/ninja-components/effect/desaturate-effect.js
node_modules/ninja-components/effect/effect.js
node_modules/ninja-components/effect/invert-effect.js
node_modules/ninja-components/effect/kaliedoscope-effect.js
node_modules/ninja-components/effect/multiply-effect.js
node_modules/ninja-components/effect/sepia-effect.js
node_modules/ninja-components/flow-controller.reel/flow-controller.html
node_modules/ninja-components/flow-controller.reel/flow-controller.js
node_modules/ninja-components/flow-offset.js
node_modules/ninja-components/hottext.reel/hottext.css
node_modules/ninja-components/hottext.reel/hottext.html
node_modules/ninja-components/hottext.reel/hottext.js
node_modules/ninja-components/hottextunit.reel/hottextunit.css
node_modules/ninja-components/hottextunit.reel/hottextunit.html
node_modules/ninja-components/hottextunit.reel/hottextunit.js
node_modules/ninja-components/image2.reel/image2.html
node_modules/ninja-components/image2.reel/image2.js
node_modules/ninja-components/image3d.reel/image3d.html
node_modules/ninja-components/image3d.reel/image3d.js
node_modules/ninja-components/photo-editor.reel/photo-editor.css
node_modules/ninja-components/photo-editor.reel/photo-editor.html
node_modules/ninja-components/photo-editor.reel/photo-editor.js
node_modules/ninja-components/slider-base.js
user-document-templates/montage-application-cloud/appdelegate.js
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/flow-path-linear.js')
-rw-r--r-- | node_modules/montage/ui/flow-path-linear.js | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/node_modules/montage/ui/flow-path-linear.js b/node_modules/montage/ui/flow-path-linear.js index fa23d10b..b95ddb92 100644 --- a/node_modules/montage/ui/flow-path-linear.js +++ b/node_modules/montage/ui/flow-path-linear.js | |||
@@ -1,18 +1,12 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | var Montage = require("montage").Montage; | 1 | var Montage = require("montage").Montage; |
8 | 2 | ||
9 | var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | 3 | var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { |
10 | 4 | ||
11 | _variable: { | 5 | _variable: { |
12 | enumerable: false, | 6 | enumerable: false, |
13 | value: "time" | 7 | value: "time" |
14 | }, | 8 | }, |
15 | 9 | ||
16 | variable: { | 10 | variable: { |
17 | get: function () { | 11 | get: function () { |
18 | return this._variable; | 12 | return this._variable; |
@@ -29,12 +23,12 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
29 | this._updatePath(); | 23 | this._updatePath(); |
30 | } | 24 | } |
31 | }, | 25 | }, |
32 | 26 | ||
33 | _origin: { | 27 | _origin: { |
34 | enumerable: false, | 28 | enumerable: false, |
35 | value: 0 | 29 | value: 0 |
36 | }, | 30 | }, |
37 | 31 | ||
38 | origin: { | 32 | origin: { |
39 | get: function () { | 33 | get: function () { |
40 | return this._origin; | 34 | return this._origin; |
@@ -49,7 +43,7 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
49 | enumerable: false, | 43 | enumerable: false, |
50 | value: 1 | 44 | value: 1 |
51 | }, | 45 | }, |
52 | 46 | ||
53 | multiplier: { | 47 | multiplier: { |
54 | get: function () { | 48 | get: function () { |
55 | return this._multiplier; | 49 | return this._multiplier; |
@@ -59,12 +53,12 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
59 | this._updatePath(); | 53 | this._updatePath(); |
60 | } | 54 | } |
61 | }, | 55 | }, |
62 | 56 | ||
63 | _path: { | 57 | _path: { |
64 | enumerable: false, | 58 | enumerable: false, |
65 | value: "0" | 59 | value: "0" |
66 | }, | 60 | }, |
67 | 61 | ||
68 | path: { | 62 | path: { |
69 | get: function () { | 63 | get: function () { |
70 | return this._path; | 64 | return this._path; |
@@ -73,11 +67,11 @@ var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { | |||
73 | this._path = value; | 67 | this._path = value; |
74 | } | 68 | } |
75 | }, | 69 | }, |
76 | 70 | ||
77 | _updatePath: { | 71 | _updatePath: { |
78 | enumerable: false, | 72 | enumerable: false, |
79 | value: function () { | 73 | value: function () { |
80 | this.path = "slide."+this._variable+"*("+this._multiplier+")-("+this._origin+")"; | 74 | this.path = "slide."+this._variable+"*("+this._multiplier+")-("+this._origin+")"; |
81 | } | 75 | } |
82 | } | 76 | } |
83 | }); \ No newline at end of file | 77 | }); |