UNPKG

olympus-r

Version:

一个力求简单易用的前端开发框架 #### 开发语言 TypeScript #### 核心架构 MVC #### 模块间通讯和解耦 采用事件机制,利用一个全局唯一的事件派发器进行模块间通讯,解耦模块间依赖 #### 表现层结构 使用桥接模式拆分接口与实现,达到一套核心驱动多套表现层的目的(目前支持DOM、Egret、PixiJS三种表现层),同时支持表现层的未来可扩展性 #### TypeScript装饰器注入 框架提供TypeScript装饰器注入功能,便捷获取托管对象。例如:

67 lines (66 loc) 1.34 kB
/** * @author Raykid * @email initial_r@qq.com * @create date 2017-10-30 * @modify date 2017-10-30 * * 音频消息 */ export default class AudioMessage { /** * 音频加载开始事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_LOAD_STARTED: string; /** * 音频加载完毕事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_LOAD_ENDED: string; /** * 音频播放开始事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_PLAY_STARTED: string; /** * 音频播放停止事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_PLAY_STOPPED: string; /** * 音频播放完毕事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_PLAY_ENDED: string; /** * 音频播放进度事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_PLAY_PROGRESS: string; /** * 音频错误事件 * * @static * @type {string} * @memberof AudioMessage */ static AUDIO_ERROR: string; }