aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-user/ui/flow-path-linear.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/montage-user/ui/flow-path-linear.js')
-rw-r--r--node_modules/montage-user/ui/flow-path-linear.js77
1 files changed, 0 insertions, 77 deletions
diff --git a/node_modules/montage-user/ui/flow-path-linear.js b/node_modules/montage-user/ui/flow-path-linear.js
deleted file mode 100644
index b95ddb92..00000000
--- a/node_modules/montage-user/ui/flow-path-linear.js
+++ /dev/null
@@ -1,77 +0,0 @@
1var Montage = require("montage").Montage;
2
3var FlowPathLinear = exports.FlowPathLinear = Montage.create(Montage, {
4
5 _variable: {
6 enumerable: false,
7 value: "time"
8 },
9
10 variable: {
11 get: function () {
12 return this._variable;
13 },
14 set: function (value) {
15 switch (value) {
16 case "speed":
17 case "index":
18 this._variable = value;
19 break;
20 default:
21 this._variable = "time";
22 }
23 this._updatePath();
24 }
25 },
26
27 _origin: {
28 enumerable: false,
29 value: 0
30 },
31
32 origin: {
33 get: function () {
34 return this._origin;
35 },
36 set: function (value) {
37 this._origin = value;
38 this._updatePath();
39 }
40 },
41
42 _multiplier: {
43 enumerable: false,
44 value: 1
45 },
46
47 multiplier: {
48 get: function () {
49 return this._multiplier;
50 },
51 set: function (value) {
52 this._multiplier = value;
53 this._updatePath();
54 }
55 },
56
57 _path: {
58 enumerable: false,
59 value: "0"
60 },
61
62 path: {
63 get: function () {
64 return this._path;
65 },
66 set: function (value) {
67 this._path = value;
68 }
69 },
70
71 _updatePath: {
72 enumerable: false,
73 value: function () {
74 this.path = "slide."+this._variable+"*("+this._multiplier+")-("+this._origin+")";
75 }
76 }
77});