@zhongguo168a/yxeditor-common 0.0.28 → 0.0.30
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.esm.js +20 -17
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HorizontalTextAlignment, VerticalTextAlignment,
|
|
1
|
+
import { HorizontalTextAlignment, VerticalTextAlignment, director, macro, Scheduler, math, instantiate, SpriteAtlas, Size, Vec2, Rect, SpriteFrame, path, assetManager, ImageAsset, JsonAsset, TextAsset, Asset, Texture2D, find, Canvas, Node, Vec3, Vec4, resources, UITransform, Widget } from 'cc';
|
|
2
2
|
|
|
3
3
|
class NetUtil {
|
|
4
4
|
// 获取URL的参数对象
|
|
@@ -360,8 +360,7 @@ class Timer {
|
|
|
360
360
|
return this._scheduler;
|
|
361
361
|
}
|
|
362
362
|
constructor() {
|
|
363
|
-
this._scheduler =
|
|
364
|
-
Scheduler.enableForTarget(this._scheduler);
|
|
363
|
+
this._scheduler = director.getScheduler();
|
|
365
364
|
}
|
|
366
365
|
/**
|
|
367
366
|
* 定时执行一次。
|
|
@@ -3963,20 +3962,24 @@ class ViewController extends Controller {
|
|
|
3963
3962
|
view.state = ViewState.Opening;
|
|
3964
3963
|
view.dispatch(ViewEvent.Opening);
|
|
3965
3964
|
//
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3965
|
+
try {
|
|
3966
|
+
viewrepo.push(view);
|
|
3967
|
+
this.onOpening(view);
|
|
3968
|
+
// @ts-ignore
|
|
3969
|
+
if (!view._waitOpenComplete) {
|
|
3970
|
+
// 没有被打断,打开完成
|
|
3971
|
+
this.openComplete(view);
|
|
3972
|
+
}
|
|
3973
|
+
else {
|
|
3974
|
+
// 被打断了,等待完成1
|
|
3975
|
+
}
|
|
3976
|
+
}
|
|
3977
|
+
catch (e) {
|
|
3978
|
+
console.error(`open view ${view.route.key}`);
|
|
3979
|
+
console.error(e.stack);
|
|
3980
|
+
//
|
|
3981
|
+
this.closeView(view);
|
|
3982
|
+
}
|
|
3980
3983
|
}
|
|
3981
3984
|
openComplete(view) {
|
|
3982
3985
|
if (!view) {
|