Lines Matching refs:action
22 var action = keyframe[i];
23 loopOver(action, timeline);
51 var action = actions[aIndex];
52 var hasDraw = 'draw' in action;
53 var hasRef = 'ref' in action;
56 var ref = hasRef ? action.ref : "anonymous_" + index + "_" + aIndex;
61 assert('string' == typeof(action.draw));
62 var draw = (new Function("return " + action.draw))();
65 if ('paint' in action) {
66 assert('string' == typeof(action.paint));
67 paint = (new Function("return " + action.paint))();
74 "drawSpec":action.draw, "paintSpec":action.paint,
80 assert('string' == typeof(action.ref));
81 displayIndex = animationState.displayDict[action.ref];
84 for (var prop in action) {
86 assert('string' == typeof(action[prop]));
87 var obj = (new Function("return " + action[prop]))();
91 animationState.defaults[prop] = action[prop];
96 var targetSpec = 'target' in action ? action.target : animationState.defaults.target;
104 var copied = modDraw ? display.drawCopied : action.paintCopied;
156 if (!('start' in action) || action.start < animation.time) {
162 if (!(p in action)) {
163 action[p] = animationState.defaults[p];
166 if ('number' == typeof(action.formula)) {
167 targetObject[targetField] = action.formula;
168 action.once = true;
170 action.start = animation.time;
172 if (action.once) {
176 var scaled = action.range[0] + (action.range[1] - action.range[0]) * value;
177 if ('params' in action) {
178 if (!('func' in action)) {
179 if (isArray(action.params)) {
180 action.funcParams = [];
181 var len = action.params.length;
183 action.funcParams[i] = 'target' == action.params[i]
185 : (new Function("return " + action.params[i]))();
188 action.funcParams = 'target' == action.params
190 : (new Function("return " + action.params))();
192 assert('formula' in action && 'string' == typeof(action.formula));
194 action.func = new Function('value', 'params', "return " + action.formula);
196 scaled = action.func(scaled, action.funcParams);
254 function loopAddProp(action, propName) { argument
256 var prop = action[propName];
291 var action = rec.actions[i];
292 for (var p in action) {
294 funcStr += loopAddProp(action, p);