diff options
Diffstat (limited to 'node_modules/montage/ui/flow-bezier-spline.js')
-rwxr-xr-x | node_modules/montage/ui/flow-bezier-spline.js | 904 |
1 files changed, 452 insertions, 452 deletions
diff --git a/node_modules/montage/ui/flow-bezier-spline.js b/node_modules/montage/ui/flow-bezier-spline.js index 3475be8b..ce441d90 100755 --- a/node_modules/montage/ui/flow-bezier-spline.js +++ b/node_modules/montage/ui/flow-bezier-spline.js | |||
@@ -1,452 +1,452 @@ | |||
1 | var Montage = require("montage").Montage, | 1 | var Montage = require("montage").Montage, |
2 | FlowBezierSpline = exports.FlowBezierSpline = Montage.create(Montage, { | 2 | FlowBezierSpline = exports.FlowBezierSpline = Montage.create(Montage, { |
3 | 3 | ||
4 | init: { | 4 | init: { |
5 | value: function() { | 5 | value: function() { |
6 | this._densities = []; | 6 | this._densities = []; |
7 | this._densitySummation = []; | 7 | this._densitySummation = []; |
8 | return this; | 8 | return this; |
9 | } | 9 | } |
10 | }, | 10 | }, |
11 | 11 | ||
12 | knots: { | 12 | knots: { |
13 | get: function () { | 13 | get: function () { |
14 | if (!this._knots) { | 14 | if (!this._knots) { |
15 | this._knots = []; | 15 | this._knots = []; |
16 | } | 16 | } |
17 | return this._knots; | 17 | return this._knots; |
18 | }, | 18 | }, |
19 | set: function (value) { | 19 | set: function (value) { |
20 | this._knots = value; | 20 | this._knots = value; |
21 | } | 21 | } |
22 | }, | 22 | }, |
23 | 23 | ||
24 | previousHandlers: { | 24 | previousHandlers: { |
25 | get: function () { | 25 | get: function () { |
26 | if (!this._previousHandlers) { | 26 | if (!this._previousHandlers) { |
27 | this._previousHandlers = []; | 27 | this._previousHandlers = []; |
28 | } | 28 | } |
29 | return this._previousHandlers; | 29 | return this._previousHandlers; |
30 | }, | 30 | }, |
31 | set: function (value) { | 31 | set: function (value) { |
32 | this._previousHandlers = value; | 32 | this._previousHandlers = value; |
33 | } | 33 | } |
34 | }, | 34 | }, |
35 | 35 | ||
36 | nextHandlers: { | 36 | nextHandlers: { |
37 | get: function () { | 37 | get: function () { |
38 | if (!this._nextHandlers) { | 38 | if (!this._nextHandlers) { |
39 | this._nextHandlers = []; | 39 | this._nextHandlers = []; |
40 | } | 40 | } |
41 | return this._nextHandlers; | 41 | return this._nextHandlers; |
42 | }, | 42 | }, |
43 | set: function (value) { | 43 | set: function (value) { |
44 | this._nextHandlers = value; | 44 | this._nextHandlers = value; |
45 | } | 45 | } |
46 | }, | 46 | }, |
47 | 47 | ||
48 | _densities: { | 48 | _densities: { |
49 | enumerable: false, | 49 | enumerable: false, |
50 | value: null | 50 | value: null |
51 | }, | 51 | }, |
52 | 52 | ||
53 | densities: { | 53 | densities: { |
54 | get: function () { | 54 | get: function () { |
55 | return this._densities; | 55 | return this._densities; |
56 | }, | 56 | }, |
57 | set: function (value) { | 57 | set: function (value) { |
58 | this._densities = value; | 58 | this._densities = value; |
59 | this._densitiesLength = this._densities.length; | 59 | this._densitiesLength = this._densities.length; |
60 | this._densitySummation.wipe(); | 60 | this._densitySummation.wipe(); |
61 | this._maxTime = null; | 61 | this._maxTime = null; |
62 | } | 62 | } |
63 | }, | 63 | }, |
64 | 64 | ||
65 | _parameters: { | 65 | _parameters: { |
66 | value: { | 66 | value: { |
67 | rotateX: { | 67 | rotateX: { |
68 | data: [0], | 68 | data: [0], |
69 | units: "rad" | 69 | units: "rad" |
70 | }, | 70 | }, |
71 | rotateY: { | 71 | rotateY: { |
72 | data: [0], | 72 | data: [0], |
73 | units: "rad" | 73 | units: "rad" |
74 | }, | 74 | }, |
75 | rotateZ: { | 75 | rotateZ: { |
76 | data: [0], | 76 | data: [0], |
77 | units: "rad" | 77 | units: "rad" |
78 | }, | 78 | }, |
79 | opacity: { | 79 | opacity: { |
80 | data: [1], | 80 | data: [1], |
81 | units: "" | 81 | units: "" |
82 | } | 82 | } |
83 | } | 83 | } |
84 | }, | 84 | }, |
85 | 85 | ||
86 | parameters: { | 86 | parameters: { |
87 | get: function () { | 87 | get: function () { |
88 | if (!this._parameters) { | 88 | if (!this._parameters) { |
89 | this._parameters = {}; | 89 | this._parameters = {}; |
90 | } | 90 | } |
91 | return this._parameters; | 91 | return this._parameters; |
92 | }, | 92 | }, |
93 | set: function (value) { | 93 | set: function (value) { |
94 | this._parameters = value; | 94 | this._parameters = value; |
95 | this._parametersLength = this._parameters.length; | 95 | this._parametersLength = this._parameters.length; |
96 | } | 96 | } |
97 | }, | 97 | }, |
98 | 98 | ||
99 | knotsLength: { | 99 | knotsLength: { |
100 | get: function () { | 100 | get: function () { |
101 | if (!this._knots) { | 101 | if (!this._knots) { |
102 | return 0; | 102 | return 0; |
103 | } | 103 | } |
104 | return this._knots.length; | 104 | return this._knots.length; |
105 | }, | 105 | }, |
106 | set: function () {} | 106 | set: function () {} |
107 | }, | 107 | }, |
108 | 108 | ||
109 | getKnot: { | 109 | getKnot: { |
110 | value: function (index) { | 110 | value: function (index) { |
111 | return this._knots[index]; | 111 | return this._knots[index]; |
112 | } | 112 | } |
113 | }, | 113 | }, |
114 | 114 | ||
115 | getPreviousHandler: { | 115 | getPreviousHandler: { |
116 | value: function (index) { | 116 | value: function (index) { |
117 | return this._previousHandlers[index]; | 117 | return this._previousHandlers[index]; |
118 | } | 118 | } |
119 | }, | 119 | }, |
120 | 120 | ||
121 | getNextHandler: { | 121 | getNextHandler: { |
122 | value: function (index) { | 122 | value: function (index) { |
123 | return this._nextHandlers[index]; | 123 | return this._nextHandlers[index]; |
124 | } | 124 | } |
125 | }, | 125 | }, |
126 | 126 | ||
127 | removeKnot: { | 127 | removeKnot: { |
128 | value: function (index) { | 128 | value: function (index) { |
129 | this._knots.splice(index, 1); | 129 | this._knots.splice(index, 1); |
130 | this._nextHandlers.splice(index, 1); | 130 | this._nextHandlers.splice(index, 1); |
131 | this._previousHandlers.splice(index, 1); | 131 | this._previousHandlers.splice(index, 1); |
132 | this._densities.splice(index, 1); | 132 | this._densities.splice(index, 1); |
133 | } | 133 | } |
134 | }, | 134 | }, |
135 | 135 | ||
136 | _maxTime: { | 136 | _maxTime: { |
137 | enumerable: false, | 137 | enumerable: false, |
138 | value: null | 138 | value: null |
139 | }, |