@zhongguo168a/yxeditor-common 0.0.12 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +60 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1408,6 +1408,65 @@ declare class AssetLoader extends Dispatcher {
|
|
|
1408
1408
|
|
|
1409
1409
|
declare function parseAtlas(name: any, plist: any, texture: any): SpriteAtlas;
|
|
1410
1410
|
|
|
1411
|
+
declare enum LogLevel {
|
|
1412
|
+
DEBUG = 0,
|
|
1413
|
+
INFO = 1,
|
|
1414
|
+
WARNING = 2,
|
|
1415
|
+
ERROR = 3
|
|
1416
|
+
}
|
|
1417
|
+
declare class Logger {
|
|
1418
|
+
name: string;
|
|
1419
|
+
level: LogLevel;
|
|
1420
|
+
ignoreRegexp: any[];
|
|
1421
|
+
ignoreString: any[];
|
|
1422
|
+
protected _enable: boolean;
|
|
1423
|
+
disable(): void;
|
|
1424
|
+
canLogByLevel(level: LogLevel): boolean;
|
|
1425
|
+
canLog(msg: string, level: LogLevel): boolean;
|
|
1426
|
+
debug(msg: string, ...data: any[]): void;
|
|
1427
|
+
info(msg: string, ...data: any[]): void;
|
|
1428
|
+
infof(msgCreator: () => string): void;
|
|
1429
|
+
warning(msg: string, ...data: any[]): void;
|
|
1430
|
+
error(msg: string, ...data: any[]): void;
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
declare const LOGGER_EVENT = "Event";
|
|
1434
|
+
declare class LogManager {
|
|
1435
|
+
/**
|
|
1436
|
+
* 获取事件的日志管理
|
|
1437
|
+
* 日志的group为事件类型
|
|
1438
|
+
*/
|
|
1439
|
+
getEventLogger(): Logger;
|
|
1440
|
+
/**
|
|
1441
|
+
* 获取日志管理
|
|
1442
|
+
*/
|
|
1443
|
+
getLogger(name: string): Logger;
|
|
1444
|
+
protected _loggers: {};
|
|
1445
|
+
/**
|
|
1446
|
+
* 是否开启日志
|
|
1447
|
+
*/
|
|
1448
|
+
enable: boolean;
|
|
1449
|
+
protected ignores: any[];
|
|
1450
|
+
/**
|
|
1451
|
+
* 忽视包含指定字符串的日志
|
|
1452
|
+
* @param val
|
|
1453
|
+
*/
|
|
1454
|
+
ignoreString(val: string): void;
|
|
1455
|
+
/**
|
|
1456
|
+
* 取消指定的日志
|
|
1457
|
+
* @param val
|
|
1458
|
+
*/
|
|
1459
|
+
ignoreStringCancel(val: string): void;
|
|
1460
|
+
/**
|
|
1461
|
+
* 是否可以输出日志
|
|
1462
|
+
* @param type
|
|
1463
|
+
* @private
|
|
1464
|
+
*/
|
|
1465
|
+
canLog(type: string): boolean;
|
|
1466
|
+
disableSystemConsole(): void;
|
|
1467
|
+
}
|
|
1468
|
+
declare const logmgr: LogManager;
|
|
1469
|
+
|
|
1411
1470
|
type CreatorFunction = (...args: any[]) => {};
|
|
1412
1471
|
/**
|
|
1413
1472
|
* 回收的方法
|
|
@@ -1879,5 +1938,5 @@ declare const pathutil: PathUtil;
|
|
|
1879
1938
|
declare function parsePlist(plist: any, texture: any): SpriteAtlas;
|
|
1880
1939
|
declare function loadAtlas(url: any, callback: any): void;
|
|
1881
1940
|
|
|
1882
|
-
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, Controller, ControllerDict, ControllerSet, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, Dispatcher, ErrorUtil, EventItem, EventManager, EventUtil, Factory, FloatUtil, GeometryUtil, IdentUtil, LinkError, List, ListIterator, ListNode, ListSource, Listener, MapUtil, MathUtil, Model, Module, NetUtil, Page, PageController, PageEvent, PageLayer, PageList, PageRepo, PageState, PathUtil, Pool, RandUtil, Route, SampleCallbackList, SamplePool, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, UIManager, UIObjectDict, UIPoolConfig, UISingleConfig, UIUtil, ViewController, XAssetManager, XEvent, arrayutil, assetx, bitutil, convertutil, ctrlrepo, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, maputil, mathutil, netutil, pagerepo, parseAtlas, parsePlist, pathutil, randutil, resutil, scaleutil, stringutil, timer, timeutil, uidict, uimgr, uiutil };
|
|
1941
|
+
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, Controller, ControllerDict, ControllerSet, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, Dispatcher, ErrorUtil, EventItem, EventManager, EventUtil, Factory, FloatUtil, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapUtil, MathUtil, Model, Module, NetUtil, Page, PageController, PageEvent, PageLayer, PageList, PageRepo, PageState, PathUtil, Pool, RandUtil, Route, SampleCallbackList, SamplePool, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, UIManager, UIObjectDict, UIPoolConfig, UISingleConfig, UIUtil, ViewController, XAssetManager, XEvent, arrayutil, assetx, bitutil, convertutil, ctrlrepo, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, pagerepo, parseAtlas, parsePlist, pathutil, randutil, resutil, scaleutil, stringutil, timer, timeutil, uidict, uimgr, uiutil };
|
|
1883
1942
|
export type { CreatorFunction, DisposeFunction, IController, IEventManager, IExtend, IListItem, IModel, IModule, IModuleSample, ITreeListItem, RecycleFunction, error };
|
package/dist/index.esm.js
CHANGED
|
@@ -6099,5 +6099,5 @@ class PathUtil {
|
|
|
6099
6099
|
}
|
|
6100
6100
|
const pathutil = new PathUtil();
|
|
6101
6101
|
|
|
6102
|
-
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, Controller, ControllerDict, ControllerSet, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, Dispatcher, ErrorUtil, EventItem, EventManager, EventUtil, Factory, FloatUtil, GeometryUtil, IdentUtil, LinkError, List, ListIterator, ListNode, ListSource, Listener, MapUtil, MathUtil, Model, Module, NetUtil, Page, PageController, PageEvent, PageLayer, PageList, PageRepo, PageState, PathUtil, Pool, RandUtil, Route, SampleCallbackList, SamplePool, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, UIManager, UIObjectDict, UIPoolConfig, UISingleConfig, UIUtil, ViewController, XAssetManager, XEvent, arrayutil, assetx, bitutil, convertutil, ctrlrepo, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, maputil, mathutil, netutil, pagerepo, parseAtlas, parsePlist, pathutil, randutil, resutil, scaleutil, stringutil, timer, timeutil, uidict, uimgr, uiutil };
|
|
6102
|
+
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, Controller, ControllerDict, ControllerSet, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, Dispatcher, ErrorUtil, EventItem, EventManager, EventUtil, Factory, FloatUtil, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapUtil, MathUtil, Model, Module, NetUtil, Page, PageController, PageEvent, PageLayer, PageList, PageRepo, PageState, PathUtil, Pool, RandUtil, Route, SampleCallbackList, SamplePool, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, UIManager, UIObjectDict, UIPoolConfig, UISingleConfig, UIUtil, ViewController, XAssetManager, XEvent, arrayutil, assetx, bitutil, convertutil, ctrlrepo, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, pagerepo, parseAtlas, parsePlist, pathutil, randutil, resutil, scaleutil, stringutil, timer, timeutil, uidict, uimgr, uiutil };
|
|
6103
6103
|
//# sourceMappingURL=index.esm.js.map
|