Lines Matching defs:Effect
112 new ImageView.Effect.None(),
113 ImageView.Effect.DEFAULT_DURATION);
252 * @param {Object} effect Transition effect object.
259 function(item, effect, displayCallback, loadCallback) {
263 if (effect) {
268 effect = null;
296 } else if ((effect && effect.constructor.name === 'Slide') &&
298 // Only show thumbnails if there is no effect or the effect is Slide.
331 effect,
338 (effect && canvas) ? effect.getSafeInterval() : 0);
370 var replaceEffect = previewShown ? null : effect;
407 * @param {Rect} zoomToRect Target rectangle for zoom-out-effect.
415 var effect = this.createZoomEffect(zoomToRect);
416 this.setTransform_(this.screenImage_, this.viewport_, effect);
421 }.bind(this), effect.getSafeInterval());
511 * @param {Object=} opt_effect Transition effect object.
545 console.assert(opt_effect.getReverse, 'Cannot revert an effect.');
560 * @param {ImageView.Effect=} opt_effect The effect to apply.
567 opt_effect = new ImageView.Effect.None();
577 * @return {ImageView.Effect.Zoom} Zoom effect object.
580 return new ImageView.Effect.ZoomToScreen(
604 var effect = rotate90 ?
605 new ImageView.Effect.Rotate(rotate90 > 0) :
606 new ImageView.Effect.Zoom(
609 this.setTransform_(newScreenImage, this.viewport_, effect, 0 /* instant */);
617 this, newScreenImage, this.viewport_, null, effect.getDuration()),
620 return effect.getSafeInterval();
638 var effect = new ImageView.Effect.Zoom(
644 this.setTransform_(oldScreenImage, this.viewport_, effect);
649 }, effect.getSafeInterval());
651 return effect.getSafeInterval();
663 ImageView.Effect = function(duration, opt_timing) {
671 ImageView.Effect.DEFAULT_DURATION = 180;
676 ImageView.Effect.MARGIN = 100;
679 * @return {number} Effect duration in ms.
681 ImageView.Effect.prototype.getDuration = function() { return this.duration_; };
687 ImageView.Effect.prototype.getSafeInterval = function() {
688 return this.getDuration() + ImageView.Effect.MARGIN;
694 ImageView.Effect.prototype.getTiming = function() { return this.timing_; };
697 * Obtains the CSS transformation string of the effect.
702 ImageView.Effect.prototype.transform = function(element, viewport) {
708 * Default effect.
711 * @extends {ImageView.Effect}
713 ImageView.Effect.None = function() {
714 ImageView.Effect.call(this, 0, 'easy-out');
718 * Inherits from ImageView.Effect.
720 ImageView.Effect.None.prototype = { __proto__: ImageView.Effect.prototype };
727 ImageView.Effect.None.prototype.transform = function(element, viewport) {
732 * Slide effect.
737 * @extends {ImageView.Effect}
739 ImageView.Effect.Slide = function Slide(direction, opt_slow) {
740 ImageView.Effect.call(this,
741 opt_slow ? 800 : ImageView.Effect.DEFAULT_DURATION, 'ease-out');
748 ImageView.Effect.Slide.prototype = { __proto__: ImageView.Effect.prototype };
751 * Reverses the slide effect.
752 * @return {ImageView.Effect.Slide} Reversed effect.
754 ImageView.Effect.Slide.prototype.getReverse = function() {
755 return new ImageView.Effect.Slide(-this.direction_, this.slow_);
761 ImageView.Effect.Slide.prototype.transform = function(element, viewport) {
766 * Zoom effect.
773 * @param {number=} opt_duration Duration of the effect.
775 * @extends {ImageView.Effect}
777 ImageView.Effect.Zoom = function(
779 ImageView.Effect.call(this,
780 opt_duration || ImageView.Effect.DEFAULT_DURATION, 'ease-out');
786 ImageView.Effect.Zoom.prototype = { __proto__: ImageView.Effect.prototype };
791 ImageView.Effect.Zoom.prototype.transform = function(element, viewport) {
797 * Effect to zoom to a screen rectangle.
800 * @param {number=} opt_duration Duration of effect.
802 * @extends {ImageView.Effect}
804 ImageView.Effect.ZoomToScreen = function(screenRect, opt_duration) {
805 ImageView.Effect.call(this, opt_duration);
809 ImageView.Effect.ZoomToScreen.prototype = {
810 __proto__: ImageView.Effect.prototype
816 ImageView.Effect.ZoomToScreen.prototype.transform = function(
822 * Rotation effect.
827 * @extends {ImageView.Effect}
829 ImageView.Effect.Rotate = function(orientation) {
830 ImageView.Effect.call(this, ImageView.Effect.DEFAULT_DURATION);
834 ImageView.Effect.Rotate.prototype = { __proto__: ImageView.Effect.prototype };
839 ImageView.Effect.Rotate.prototype.transform = function(element, viewport) {