/** * @author: xd * @Date: 2022-10-10 20:02:02 * @LastEditors: xd * @LastEditTime: 2023-06-06 14:42:45 * @FilePath: \Map2D\src\base\baseClass.ts * @Description: * * Copyright (c) 2023 by xd, All Rights Reserved. */ /** * 基类. * @class 基类 */ export declare class baseClass { /** 容器 */ handlers: {}; /** * Creates baseClass instance. */ constructor(); _on(type: string | number, fn: any): this; off(type: string | number, fn: any): this; /** * 绑定一个只执行一次的事件 * @param {string} type 事件类型 * @param {Function} fn 事件处理函数 * @param {object} scope 要为事件处理函数绑定的执行上下文 * @returns {any} 当前实例对象 */ onec(type: string | number, fn: Function, scope: any): any; trigger(eName: string | number | symbol, params: any): void; }