application.transitionpane.js
来自「一个ajax富客户端的ajax类库」· JavaScript 代码 · 共 95 行
JS
95 行
/** * Creates a new TransitionPane. * * @constructor * @class TransitionPane component. * @base EchoApp.Component */ExtrasApp.TransitionPane = Core.extend(EchoApp.Component, { $static: { /** * Default duration time (350ms). */ DEFAULT_DURATION: 350, /** * Default transition type (immediate replace). */ DEFAULT_TYPE: 0, /** * Transition setting indicating new content should immediately * final int replace old content with no visual effect. */ TYPE_IMMEDIATE_REPLACE: 0, /** * Transition setting describing a visual effect where the * viewing area pans to the left to realize the new content. * Old content exits to the right side of the screen. * New content enters from the left side of the screen. */ TYPE_CAMERA_PAN_LEFT: 1, /** * Transition setting describing a visual effect where the * viewing area pans to the right to realize the new content. * Old content exits to the left side of the screen. * New content enters from the right side of the screen. */ TYPE_CAMERA_PAN_RIGHT: 2, /** * Transition setting describing a visual effect where the * viewing area pans up to realize the new content. * Old content exits to the bottom of the screen. * New content enters from the top of the screen. */ TYPE_CAMERA_PAN_UP: 3, /** * Transition setting describing a visual effect where the * viewing area pans to up to realize the new content. * Old content exits to the top of the screen. * New content enters from the bottom of the screen. */ TYPE_CAMERA_PAN_DOWN: 4, /** * A horizontal blind effect with a black background. * Top of blinds rotate inward. */ TYPE_BLIND_BLACK_IN: 5, /** * A horizontal blind effect with a black background. * Top of blinds rotate outward. */ TYPE_BLIND_BLACK_OUT: 6, /** * Fades to black, fades in new content. */ TYPE_FADE_TO_BLACK: 7, /** * Fades to white, fades in new content. */ TYPE_FADE_TO_WHITE: 8, /** * Fades to new content over old content. */ TYPE_FADE: 9 }, $load: function() { EchoApp.ComponentFactory.registerType("ExtrasApp.TransitionPane", this); }, componentType: "ExtrasApp.TransitionPane", pane: true});
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?