@zhongguo168a/yxeditor-common 0.0.34 → 0.0.36
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 +5 -5
- package/dist/index.esm.js +6 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ declare class EventItem {
|
|
|
265
265
|
once: boolean;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
interface
|
|
268
|
+
interface IEventDispatcher {
|
|
269
269
|
has(type: string, caller: any, listener: Function): boolean;
|
|
270
270
|
/**
|
|
271
271
|
* 监听事件
|
|
@@ -298,7 +298,7 @@ interface IEventManager {
|
|
|
298
298
|
/**
|
|
299
299
|
* 事件派发器
|
|
300
300
|
*/
|
|
301
|
-
declare class EventDispatcher implements
|
|
301
|
+
declare class EventDispatcher implements IEventDispatcher {
|
|
302
302
|
constructor();
|
|
303
303
|
dispose(): void;
|
|
304
304
|
/**
|
|
@@ -1102,7 +1102,7 @@ declare class ViewRepo extends ViewDict {
|
|
|
1102
1102
|
declare const viewrepo: ViewRepo;
|
|
1103
1103
|
|
|
1104
1104
|
declare class ViewController extends Controller {
|
|
1105
|
-
constructor(
|
|
1105
|
+
constructor(route: Route);
|
|
1106
1106
|
/**
|
|
1107
1107
|
* 当视图需要通过路由打开时,需要实现此方法
|
|
1108
1108
|
* @param route
|
|
@@ -1159,7 +1159,7 @@ declare class ViewHistory extends RouteList {
|
|
|
1159
1159
|
declare const viewhistorys: RouteList;
|
|
1160
1160
|
|
|
1161
1161
|
declare class PageController extends ViewController {
|
|
1162
|
-
constructor(
|
|
1162
|
+
constructor(route: Route);
|
|
1163
1163
|
/**
|
|
1164
1164
|
* 打开视图,如果视图已经存在则刷新视图
|
|
1165
1165
|
* @param route
|
|
@@ -2040,4 +2040,4 @@ declare class WidgetUtil {
|
|
|
2040
2040
|
declare var widgetutil: WidgetUtil;
|
|
2041
2041
|
|
|
2042
2042
|
export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapUtil, MathUtil, Model, NetUtil, PageController, PathUtil, Pool, RandUtil, Route, RouteList, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, TreeUtil, UIManager, UIObjectDict, UIPoolConfig, UISingleConfig, UIUtil, View, ViewController, ViewDict, ViewEvent, ViewHistory, ViewList, ViewRepo, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, scaleutil, stringutil, timer, timeutil, treeutil, uidict, uimgr, uiutil, viewhistorys, viewrepo, widgetutil };
|
|
2043
|
-
export type { CreatorFunction, DisposeFunction, IController, IError,
|
|
2043
|
+
export type { CreatorFunction, DisposeFunction, IController, IError, IEventDispatcher, IExtend, IListItem, IModel, IModule, ITreeListItem, RecycleFunction };
|
package/dist/index.esm.js
CHANGED
|
@@ -991,7 +991,7 @@ class EventDispatcher {
|
|
|
991
991
|
eventPool.recycleObject(event);
|
|
992
992
|
}
|
|
993
993
|
toString() {
|
|
994
|
-
return `
|
|
994
|
+
return `EventDispatcher`;
|
|
995
995
|
}
|
|
996
996
|
getOnEventItems(type) {
|
|
997
997
|
let items = this._onEventItems[type];
|
|
@@ -3828,11 +3828,11 @@ class ViewRepo extends ViewDict {
|
|
|
3828
3828
|
const viewrepo = new ViewRepo();
|
|
3829
3829
|
|
|
3830
3830
|
class ViewController extends Controller {
|
|
3831
|
-
constructor(
|
|
3832
|
-
super(
|
|
3831
|
+
constructor(route) {
|
|
3832
|
+
super(route.path);
|
|
3833
3833
|
this._enableHistory = false;
|
|
3834
3834
|
this._tags = {};
|
|
3835
|
-
this._route =
|
|
3835
|
+
this._route = this.route;
|
|
3836
3836
|
}
|
|
3837
3837
|
/**
|
|
3838
3838
|
* 当视图需要通过路由打开时,需要实现此方法
|
|
@@ -4055,11 +4055,10 @@ class ViewHistory extends RouteList {
|
|
|
4055
4055
|
const viewhistorys = new RouteList();
|
|
4056
4056
|
|
|
4057
4057
|
class PageController extends ViewController {
|
|
4058
|
-
constructor(
|
|
4059
|
-
super(
|
|
4058
|
+
constructor(route) {
|
|
4059
|
+
super(route);
|
|
4060
4060
|
this._enableHistory = false;
|
|
4061
4061
|
this._layer = "";
|
|
4062
|
-
this._route = new Route(routeName);
|
|
4063
4062
|
}
|
|
4064
4063
|
/**
|
|
4065
4064
|
* 打开视图,如果视图已经存在则刷新视图
|