aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage/ui/flow-path-cubic.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-18 13:48:51 -0700
committerValerio Virgillito2012-04-18 13:48:51 -0700
commit2e04af953463643791f6362bd8ef4c6ba190abfa (patch)
treed07aaf646091ddf9dad5b030a7905055fd323490 /node_modules/montage/ui/flow-path-cubic.js
parent616a8532099fec2a15855eac97cd85cb60c4451c (diff)
downloadninja-2e04af953463643791f6362bd8ef4c6ba190abfa.tar.gz
Squashed commit of the following:
commit 2054551bfb01a0f4ca2e138b9d724835462d45cd Merge: 765c2da 616a853 Author: Valerio Virgillito <valerio@motorola.com> Date: Wed Apr 18 13:48:21 2012 -0700 Merge branch 'refs/heads/master' into integration commit 765c2da8e1aa03550caf42b2bd5f367555ad2843 Author: Valerio Virgillito <valerio@motorola.com> Date: Tue Apr 17 15:29:41 2012 -0700 updating the picasa carousel Signed-off-by: Valerio Virgillito <valerio@motorola.com> commit 9484f1c82b81e27edf2dc0a1bcc1fa3b12077406 Merge: d27f2df cacb4a2 Author: Valerio Virgillito <valerio@motorola.com> Date: Tue Apr 17 15:03:50 2012 -0700 Merge branch 'refs/heads/master' into integration commit d27f2df4d846064444263d7832d213535962abe7 Author: Valerio Virgillito <valerio@motorola.com> Date: Wed Apr 11 10:39:36 2012 -0700 integrating new picasa carousel component Signed-off-by: Valerio Virgillito <valerio@motorola.com> commit 6f98384c9ecbc8abe55ccfe1fc25a0c7ce22c493 Author: Valerio Virgillito <valerio@motorola.com> Date: Tue Apr 10 14:33:00 2012 -0700 fixed the text area case issue Text area was renamed from TextArea to Textarea Signed-off-by: Valerio Virgillito <valerio@motorola.com> commit 1e83e26652266136802bc7af930379c1ecd631a6 Author: Valerio Virgillito <valerio@motorola.com> Date: Mon Apr 9 22:10:45 2012 -0700 integrating montage v0.8 into ninja. Signed-off-by: Valerio Virgillito <valerio@motorola.com> Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/flow-path-cubic.js')
-rw-r--r--node_modules/montage/ui/flow-path-cubic.js115
1 files changed, 0 insertions, 115 deletions
diff --git a/node_modules/montage/ui/flow-path-cubic.js b/node_modules/montage/ui/flow-path-cubic.js
deleted file mode 100644
index ec4c6600..00000000
--- a/node_modules/montage/ui/flow-path-cubic.js
+++ /dev/null
@@ -1,115 +0,0 @@
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
7var Montage = require("montage").Montage;
8
9var FlowPathCubic = exports.FlowPathCubic = Montage.create(Montage, {
10
11 _variable: {
12 enumerable: false,
13 value: "time"
14 },
15
16 variable: {
17 get: function () {
18 return this._variable;
19 },
20 set: function (value) {
21 switch (value) {
22 case "speed":
23 case "index":
24 this._variable = value;
25 break;
26 default:
27 this._variable = "time";
28 }
29 this._updatePath();
30 }
31 },
32
33 _a: {
34 enumerable: false,
35 value: 0
36 },
37
38 a: {
39 get: function () {
40 return this._a;
41 },
42 set: function (value) {
43 this._a = value;
44 this._updatePath();
45 }
46 },
47
48 _b: {
49 enumerable: false,
50 value: 0
51 },
52
53 b: {
54 get: function () {
55 return this._b;
56 },
57 set: function (value) {
58 this._b = value;
59 this._updatePath();
60 }
61 },
62
63 _c: {
64 enumerable: false,
65 value: 0
66 },
67
68 c: {
69 get: function () {
70 return this._c;
71 },
72 set: function (value) {
73 this._c = value;
74 this._updatePath();
75 }
76 },
77
78 _d: {
79 enumerable: false,
80 value: 0
81 },
82
83 d: {
84 get: function () {
85 return this._d;
86 },
87 set: function (value) {
88 this._d = value;
89 this._updatePath();
90 }
91 },
92
93 _path: {
94 enumerable: false,
95 value: "0"
96 },
97
98 path: {
99 get: function () {
100 return this._path;
101 },
102 set: function (value) {
103 this._path = value;
104 }
105 },
106
107 _updatePath: {
108 enumerable: false,
109 value: function () {
110 var s = "slide."+this._variable;
111
112 this.path = "("+this._a+")*"+s+"*"+s+"*"+s+"+("+this._b+")*"+s+"*"+s+"+("+this._c+")*"+s+"+("+this._d+")";
113 }
114 }
115});