'use strict'; /** * Licensed Materials - Property of IBM * IBM Cognos Products: BI Cloud (C) Copyright IBM Corp. 2017 * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ define(['../TransitionController', '../../util/AnimationHelper'], function (BaseClass, AnimationHelper) { var NoTransitionSlideShowTransitionController = BaseClass.extend({ _duration: null, _cssOnScreen: { display: 'block', transform: 'scale(1)', position: 'absolute', top: '0px', bottom: '0px', left: '0px', right: '0px' }, init: function init(options) { NoTransitionSlideShowTransitionController.inherited('init', this, arguments); this._duration = options.duration ? options.duration : 100; }, _beforeJump: function _beforeJump(from) { this._hideWidgets(from); return NoTransitionSlideShowTransitionController.inherited('_beforeJump', this, arguments); }, _jump: function _jump(from, to) { if (from && from.$el) { from.$el.css({ transform: AnimationHelper.SCALE_ZERO }).attr('aria-hidden', 'true'); } to.$el.css(this._cssOnScreen).css({ opacity: 1 }).addClass('selected').attr('aria-hidden', 'false'); return NoTransitionSlideShowTransitionController.inherited('_jump', this, arguments); }, _afterJump: function _afterJump(from, to) { this._showWidgets(to); return NoTransitionSlideShowTransitionController.inherited('_afterJump', this, arguments); }, _beforeNext: function _beforeNext() /*from, to*/{ return NoTransitionSlideShowTransitionController.inherited('_beforeNext', this, arguments); }, _next: function _next(from, to) { return this._jump(from, to); }, _afterNext: function _afterNext(from, to) { return this._afterJump(from, to); }, _beforePrevious: function _beforePrevious(from, to) { return this._beforeJump(from, to); }, _previous: function _previous(from, to) { return this._jump(from, to); }, _afterPrevious: function _afterPrevious(from, to) { return this._afterJump(from, to); } }); return NoTransitionSlideShowTransitionController; }); //# sourceMappingURL=NoTransitionSlideShowTransitionController.js.map