@zhongguo168a/yxeditor-common 0.0.74 → 0.0.75
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 +0 -19
- package/dist/index.esm.js +0 -37
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1134,23 +1134,6 @@ declare class MapUtil {
|
|
|
1134
1134
|
}
|
|
1135
1135
|
declare const maputil: MapUtil;
|
|
1136
1136
|
|
|
1137
|
-
interface CommandInfo {
|
|
1138
|
-
/**
|
|
1139
|
-
* 默认的
|
|
1140
|
-
*/
|
|
1141
|
-
caller?: any;
|
|
1142
|
-
name: string;
|
|
1143
|
-
handler: Function;
|
|
1144
|
-
group?: string;
|
|
1145
|
-
global: boolean;
|
|
1146
|
-
}
|
|
1147
|
-
declare class CommandManager extends EventDispatcher {
|
|
1148
|
-
protected _infos: any[];
|
|
1149
|
-
register(info: CommandInfo): void;
|
|
1150
|
-
execute(name: string, ...args: any): any;
|
|
1151
|
-
removeGroup(group: string): void;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
1137
|
declare enum ViewState {
|
|
1155
1138
|
/**
|
|
1156
1139
|
* 关闭
|
|
@@ -1216,7 +1199,6 @@ declare class RouteView extends EventDispatcher {
|
|
|
1216
1199
|
*/
|
|
1217
1200
|
onStop(value: (ctx: this) => void): this;
|
|
1218
1201
|
get reason(): LinkError;
|
|
1219
|
-
get cmdmgr(): CommandManager;
|
|
1220
1202
|
node: Node;
|
|
1221
1203
|
datas: MapObject;
|
|
1222
1204
|
tags: MapObject;
|
|
@@ -1226,7 +1208,6 @@ declare class RouteView extends EventDispatcher {
|
|
|
1226
1208
|
protected _controller: RouteController;
|
|
1227
1209
|
protected _route: Route;
|
|
1228
1210
|
protected _reason: LinkError;
|
|
1229
|
-
protected _cmdmgr: CommandManager;
|
|
1230
1211
|
private _onOpen;
|
|
1231
1212
|
private _onOpened;
|
|
1232
1213
|
private _onClose;
|
package/dist/index.esm.js
CHANGED
|
@@ -3892,39 +3892,6 @@ class ViewRepo extends ViewDict {
|
|
|
3892
3892
|
}
|
|
3893
3893
|
const viewrepo = new ViewRepo();
|
|
3894
3894
|
|
|
3895
|
-
class CommandManager extends EventDispatcher {
|
|
3896
|
-
constructor() {
|
|
3897
|
-
super(...arguments);
|
|
3898
|
-
this._infos = [];
|
|
3899
|
-
}
|
|
3900
|
-
register(info) {
|
|
3901
|
-
this._infos[info.name] = info;
|
|
3902
|
-
if (info.global) {
|
|
3903
|
-
window[info.name] = info.handler;
|
|
3904
|
-
}
|
|
3905
|
-
}
|
|
3906
|
-
execute(name, ...args) {
|
|
3907
|
-
let info = this._infos[name];
|
|
3908
|
-
if (!info) {
|
|
3909
|
-
return;
|
|
3910
|
-
}
|
|
3911
|
-
let caller;
|
|
3912
|
-
if (!caller) {
|
|
3913
|
-
caller = info.caller;
|
|
3914
|
-
}
|
|
3915
|
-
return info.handler.call(caller, ...args);
|
|
3916
|
-
}
|
|
3917
|
-
removeGroup(group) {
|
|
3918
|
-
for (let key in this._infos) {
|
|
3919
|
-
let info = this._infos[key];
|
|
3920
|
-
if (info.group == group) {
|
|
3921
|
-
delete this._infos[key];
|
|
3922
|
-
}
|
|
3923
|
-
}
|
|
3924
|
-
}
|
|
3925
|
-
}
|
|
3926
|
-
new CommandManager();
|
|
3927
|
-
|
|
3928
3895
|
var ViewState;
|
|
3929
3896
|
(function (ViewState) {
|
|
3930
3897
|
/**
|
|
@@ -3966,7 +3933,6 @@ class RouteView extends EventDispatcher {
|
|
|
3966
3933
|
this.tags = new MapObject({});
|
|
3967
3934
|
this.enableHistory = false;
|
|
3968
3935
|
this.state = 0;
|
|
3969
|
-
this._cmdmgr = new CommandManager();
|
|
3970
3936
|
this._onStop = (ctx) => {
|
|
3971
3937
|
ctx.close();
|
|
3972
3938
|
};
|
|
@@ -4173,9 +4139,6 @@ class RouteView extends EventDispatcher {
|
|
|
4173
4139
|
get reason() {
|
|
4174
4140
|
return this._reason;
|
|
4175
4141
|
}
|
|
4176
|
-
get cmdmgr() {
|
|
4177
|
-
return this._cmdmgr;
|
|
4178
|
-
}
|
|
4179
4142
|
}
|
|
4180
4143
|
|
|
4181
4144
|
class ViewHistory extends RouteList {
|