Lines Matching refs:options

135     var options = Object.extend({
139 var masterDelay = options.delay;
142 new effect(element, Object.extend(options, { delay: index * options.speed + masterDelay }));
150 toggle: function(element, effect, options) { argument
156 }, options || {}));
175 var position = Object.isString(effect.options.queue) ?
176 effect.options.queue : effect.options.queue.position;
198 if (!effect.options.queue.limit || (this.effects.length < effect.options.queue.limit))
231 start: function(options) { argument
232 if (options && options.transition === false) options.transition = Effect.Transitions.linear;
233 this.options = Object.extend(Object.extend({ },Effect.DefaultOptions), options || { });
236 this.startOn = this.options.delay*1000;
237 this.finishOn = this.startOn+(this.options.duration*1000);
238 this.fromToDelta = this.options.to-this.options.from;
240 this.totalFrames = this.options.fps*this.options.duration;
244 if (effect.options[eventName + 'Internal'])
245 effect.options[eventName + 'Internal'](effect);
246 if (effect.options[eventName])
247 effect.options[eventName](effect);
258 pos = (this.options.transition(pos) * this.fromToDelta) + this.options.from;
268 if (!this.options.sync)
269 Effect.Queues.get(Object.isString(this.options.queue) ?
270 'global' : this.options.queue.scope).add(this);
291 if (!this.options.sync)
292 Effect.Queues.get(Object.isString(this.options.queue) ?
293 'global' : this.options.queue.scope).remove(this);
297 if (this.options[eventName + 'Internal']) this.options[eventName + 'Internal'](this);
298 if (this.options[eventName]) this.options[eventName](this);
304 return '#<Effect:' + data.inspect() + ',options:' + $H(this.options).inspect() + '>';
331 options = args.length == 5 ? args[3] : null;
335 this.start(Object.extend({ from: from, to: to }, options || { }));
356 var options = Object.extend({
360 this.start(options);
371 var options = Object.extend({
376 this.start(options);
382 if (this.options.mode == 'absolute') {
383 this.options.x = this.options.x - this.originalLeft;
384 this.options.y = this.options.y - this.originalTop;
389 left: (this.options.x * position + this.originalLeft).round() + 'px',
390 top: (this.options.y * position + this.originalTop).round() + 'px'
405 var options = Object.extend({
414 this.start(options);
417 this.restoreAfterFinish = this.options.restoreAfterFinish || false;
436 this.factor = (this.options.scaleTo - this.options.scaleFrom)/100;
439 if (this.options.scaleMode=='box')
441 if (/^content/.test(this.options.scaleMode))
444 this.dims = [this.options.scaleMode.originalHeight,
445 this.options.scaleMode.originalWidth];
448 var currentScale = (this.options.scaleFrom/100.0) + (this.factor * position);
449 if (this.options.scaleContent && this.fontSize)
458 if (this.options.scaleX) d.width = width.round() + 'px';
459 if (this.options.scaleY) d.height = height.round() + 'px';
460 if (this.options.scaleFromCenter) {
464 if (this.options.scaleY) d.top = this.originalTop-topd + 'px';
465 if (this.options.scaleX) d.left = this.originalLeft-leftd + 'px';
467 if (this.options.scaleY) d.top = -topd + 'px';
468 if (this.options.scaleX) d.left = -leftd + 'px';
479 var options = Object.extend({ startcolor: '#ffff99' }, arguments[1] || { });
480 this.start(options);
487 if (!this.options.keepBackgroundImage) {
491 if (!this.options.endcolor)
492 this.options.endcolor = this.element.getStyle('background-color').parseColor('#ffffff');
493 if (!this.options.restorecolor)
494 this.options.restorecolor = this.element.getStyle('background-color');
496 …this._base = $R(0,2).map(function(i){ return parseInt(this.options.startcolor.slice(i*2+1,i*2+3),…
497 …this._delta = $R(0,2).map(function(i){ return parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16…
505 backgroundColor: this.options.restorecolor
511 var options = arguments[1] || { },
515 if (options.offset) elementOffsets[1] += options.offset;
520 options,
531 var options = Object.extend({
535 if (effect.options.to!=0) return;
539 return new Effect.Opacity(element,options);
546 var options = Object.extend({
554 effect.element.setOpacity(effect.options.from).show();
556 return new Effect.Opacity(element,options);
664 var options = Object.extend({
668 var distance = parseFloat(options.distance);
669 var split = parseFloat(options.duration) / 10.0;
767 var options = Object.extend({
784 switch (options.direction) {
821 …[ new Effect.Opacity(effect.element, { sync: true, to: 1.0, from: 0.0, transition: options.opacity…
822 …new Effect.Move(effect.element, { x: moveX, y: moveY, sync: true, transition: options.moveTransiti…
825 …sync: true, scaleFrom: window.opera ? 1 : 0, transition: options.scaleTransition, restoreAfterFini…
833 }, options)
841 var options = Object.extend({
857 switch (options.direction) {
880 …[ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, transition: options.opacityTransit…
881 …new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, transition: options.scaleTransition,…
882 … new Effect.Move(element, { x: moveX, y: moveY, sync: true, transition: options.moveTransition })
889 }, options)
895 var options = arguments[1] || { },
897 transition = options.transition || Effect.Transitions.linear,
899 return 1 - transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2) + .5);
905 }, options), {transition: reverser}));
935 var options = Object.extend({
939 if (!Object.isString(options.style)) this.style = $H(options.style);
941 if (options.style.include(':'))
942 this.style = options.style.parseStyle();
944 this.element.addClassName(options.style);
946 this.element.removeClassName(options.style);
951 options.afterFinishInternal = function(effect) { method
952 effect.element.addClassName(effect.options.style);
959 this.start(options);
1024 this.options = arguments[1] || { };
1034 options: { style: data }
1042 var ids = track.get('ids'), effect = track.get('effect'), options = track.get('options');
1044 … return elements.map(function(e){ return new effect(e, Object.extend({ sync:true }, options)) });
1046 this.options
1111 visualEffect: function(element, effect, options) { argument
1114 new Effect[klass](element, options);
1117 highlight: function(element, options) { argument
1119 new Effect.Highlight(element, options);
1127 Effect.Methods[effect] = function(element, options){ argument
1129 Effect[effect.charAt(0).toUpperCase() + effect.substring(1)](element, options);