aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/flow-path-linear.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage/ui/flow-path-linear.js')
-rwxr-xr-xnode_modules/montage/ui/flow-path-linear.js26
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 100755
--- a/node_modules/montage/ui/flow-path-linear.js
+++ b/node_modules/montage/ui/flow-path-linear.js
@@ -1,18 +1,12 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No 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
7var Montage = require("montage").Montage; 1var Montage = require("montage").Montage;
8 2
9var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, { 3var 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});