diff options
author | Pushkar Joshi | 2012-04-19 14:12:45 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-04-19 14:12:45 -0700 |
commit | 9f32d7e5454db3189209fc68a286a7fdb0c31fe8 (patch) | |
tree | a51c2bf67839a25158c30752b44fdea0eac28b9d /node_modules/montage/ui/flow-path-sigmoid.js | |
parent | dc1e8dde18c40cf740bd2fe09165784e0d415fab (diff) | |
parent | 6d33345a9e609e36539d2efa25569f5eeb04a2af (diff) | |
download | ninja-9f32d7e5454db3189209fc68a286a7fdb0c31fe8.tar.gz |
Merge branch 'master' into pentool
Conflicts:
js/helper-classes/3D/view-utils.js
Diffstat (limited to 'node_modules/montage/ui/flow-path-sigmoid.js')
-rw-r--r-- | node_modules/montage/ui/flow-path-sigmoid.js | 148 |
1 files changed, 0 insertions, 148 deletions
diff --git a/node_modules/montage/ui/flow-path-sigmoid.js b/node_modules/montage/ui/flow-path-sigmoid.js deleted file mode 100644 index 5f161544..00000000 --- a/node_modules/montage/ui/flow-path-sigmoid.js +++ /dev/null | |||
@@ -1,148 +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 | |||
7 | var Montage = require("montage").Montage; | ||
8 | |||
9 | var FlowPathSigmoid = exports.FlowPathSigmoid = 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 | _smoothness: { | ||
34 | enumerable: false, | ||
35 | value: 0 | ||
36 | }, | ||
37 | |||
38 | smoothness: { | ||
39 | get: function () { | ||
40 | return this._smoothness; | ||
41 | }, | ||
42 | set: function (value) { | ||
43 | this._smoothness = value; | ||
44 | this._updatePath(); | ||
45 | } | ||
46 | }, | ||
47 | |||
48 | _scale: { | ||
49 | enumerable: false, | ||
50 | value: 0 | ||
51 | }, | ||
52 | |||
53 | scale: { | ||
54 | get: function () { | ||
55 | return this._scale; | ||
56 | }, | ||
57 | set: function (value) { | ||
58 | this._scale = value; | ||
59 | this._updatePath(); | ||
60 | } | ||
61 | }, | ||
62 | |||
63 | _width: { | ||
64 | enumerable: false, | ||
65 | value: 0 | ||
66 | }, | ||
67 | |||
68 | width: { | ||
69 | get: function () { | ||
70 | return this._width; | ||
71 | }, | ||
72 | set: function (value) { | ||
73 | this._width = value; | ||
74 | this._updatePath(); | ||
75 | } | ||
76 | }, | ||
77 | |||
78 | _origin: { | ||
79 | enumerable: false, | ||
80 | value: 0 | ||
81 | }, | ||
82 | |||
83 | origin: { | ||
84 | get: function () { | ||
85 | return this._origin; | ||
86 | }, | ||
87 | set: function (value) { | ||
88 | this._origin = value; | ||
89 | this._updatePath(); | ||
90 | } | ||
91 | }, | ||
92 | |||
93 | _sigmoidCenter: { | ||
94 | enumerable: false, | ||
95 | value: 0 | ||
96 | }, | ||
97 | |||
98 | sigmoidCenter: { | ||
99 | get: function () { | ||
100 | return this._sigmoidCenter; | ||
101 | }, | ||
102 | set: function (value) { | ||
103 | this._sigmoidCenter = value; | ||
104 | this._updatePath(); | ||
105 | } | ||
106 | }, | ||
107 | |||
108 | _slope: { | ||
109 | enumerable: false, | ||
110 | value: 1 | ||
111 | }, | ||
112 | |||
113 | slope: { | ||
114 | get: function () { | ||
115 | return this._slope; | ||
116 | }, | ||
117 | set: function (value) { | ||
118 | this._slope = value; | ||
119 | this._updatePath(); | ||
120 | } | ||
121 | }, | ||
122 | |||
123 | _path: { | ||
124 | enumerable: false, | ||
125 | value: "0" | ||
126 | }, | ||
127 | |||
128 | path: { | ||
129 | get: function () { | ||
130 | return this._path; | ||
131 | }, | ||
132 | set: function (value) { | ||
133 | this._path = value; | ||
134 | } | ||
135 | }, | ||
136 | |||
137 | _updatePath: { | ||
138 | enumerable: false, | ||
139 | value: function () { | ||
140 | var s = "(slide."+this._variable+"-("+this._origin+"))"; | ||
141 | |||
142 | |||
143 | /** parseInt((a/(1+Math.pow(c, -(j*d)))-(a/2)+j*b)*1000)/1000; | ||
144 | this.path = "parseInt(("+this._a+"/(1+Math.pow("+this._c+", -"+s+"*("+this._d+")))-(("+this._a+")/2)+"+s+"*("+this._b+"))*1000)/1000";*/ | ||
145 | this.path = "((("+this._width+")/(1+Math.pow(2, (("+this._sigmoidCenter+")-"+s+")/("+this._smoothness+"))))-("+(this._width/2)+")+"+s+"*("+this._slope+"))*("+this._scale+")"; | ||
146 | } | ||
147 | } | ||
148 | }); | ||