@zhongguo168a/yxeditor-common 0.0.90 → 0.0.92

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 CHANGED
@@ -1,4 +1,4 @@
1
- import { HorizontalTextAlignment, VerticalTextAlignment, Scheduler, Prefab, Node, ISchedulable, AssetManager, Asset, Vec2, Texture2D, SpriteAtlas, Camera, Canvas, Vec3, Vec4, Widget, UITransform, math } from 'cc';
1
+ import { HorizontalTextAlignment, VerticalTextAlignment, Scheduler, Prefab, Node, Component, ISchedulable, AssetManager, Asset, Vec2, Texture2D, SpriteAtlas, Camera, Canvas, Vec3, Vec4, Widget, UITransform, math } from 'cc';
2
2
 
3
3
  interface IError {
4
4
  isCancel(): boolean;
@@ -1366,11 +1366,6 @@ declare class ViewDict extends Dictionary<string, ViewModel> {
1366
1366
  closeExclusion(validFunc?: (existed: ViewModel) => boolean): ViewList;
1367
1367
  listByRoutePath(path: string): ViewList;
1368
1368
  listByTags(tags: string[]): ViewList;
1369
- /**
1370
- * 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
1371
- * @param node
1372
- */
1373
- tailNode(node: Node): ViewModel;
1374
1369
  }
1375
1370
  declare class RouteViewDict extends ViewDict {
1376
1371
  constructor();
@@ -1392,6 +1387,15 @@ declare class RouteViewDict extends ViewDict {
1392
1387
  }
1393
1388
  declare const routeViews: RouteViewDict;
1394
1389
 
1390
+ declare class ViewModelComponent extends Component {
1391
+ /**
1392
+ * 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
1393
+ * @param node
1394
+ */
1395
+ static tailNode(node: Node): ViewModel;
1396
+ viewModel: ViewModel;
1397
+ }
1398
+
1395
1399
  /**
1396
1400
  * 事件字符串分隔符
1397
1401
  */
@@ -2182,5 +2186,5 @@ declare class WidgetUtil {
2182
2186
  }
2183
2187
  declare var widgetutil: WidgetUtil;
2184
2188
 
2185
- export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, TreeUtil, UIManager, UIObjectRepo, UIPoolConfig, UISingleConfig, UIUtil, ViewDict, ViewEvent, ViewHistory, ViewList, ViewModel, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, create等距图集, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
2189
+ export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, TreeUtil, UIManager, UIObjectRepo, UIPoolConfig, UISingleConfig, UIUtil, ViewDict, ViewEvent, ViewHistory, ViewList, ViewModel, ViewModelComponent, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, create等距图集, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
2186
2190
  export type { CreatorFunction, DisposeFunction, IController, IError, IEventDispatcher, IExtend, IListItem, IModel, IModule, ITreeListItem, RecycleFunction };
package/dist/index.esm.js CHANGED
@@ -4067,42 +4067,6 @@ class RouteView extends EventDispatcher {
4067
4067
  }
4068
4068
  }
4069
4069
 
4070
- /******************************************************************************
4071
- Copyright (c) Microsoft Corporation.
4072
-
4073
- Permission to use, copy, modify, and/or distribute this software for any
4074
- purpose with or without fee is hereby granted.
4075
-
4076
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4077
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4078
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4079
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4080
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4081
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4082
- PERFORMANCE OF THIS SOFTWARE.
4083
- ***************************************************************************** */
4084
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
4085
-
4086
-
4087
- function __decorate(decorators, target, key, desc) {
4088
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4089
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4090
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4091
- return c > 3 && r && Object.defineProperty(target, key, r), r;
4092
- }
4093
-
4094
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
4095
- var e = new Error(message);
4096
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
4097
- };
4098
-
4099
- const { ccclass, property, menu } = _decorator;
4100
- let ViewModelComponent = class ViewModelComponent extends Component {
4101
- };
4102
- ViewModelComponent = __decorate([
4103
- ccclass('ViewModelComponent')
4104
- ], ViewModelComponent);
4105
-
4106
4070
  class ViewList extends List {
4107
4071
  }
4108
4072
  /**
@@ -4150,21 +4114,6 @@ class ViewDict extends Dictionary {
4150
4114
  });
4151
4115
  return list;
4152
4116
  }
4153
- /**
4154
- * 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
4155
- * @param node
4156
- */
4157
- tailNode(node) {
4158
- let current = node;
4159
- while (current != null) {
4160
- let com = current.getComponent(ViewModelComponent);
4161
- if (com) {
4162
- return com.viewModel;
4163
- }
4164
- current = current.parent;
4165
- }
4166
- return null;
4167
- }
4168
4117
  }
4169
4118
  class RouteViewDict extends ViewDict {
4170
4119
  constructor() {
@@ -4225,6 +4174,58 @@ class ViewHistory extends RouteList {
4225
4174
  }
4226
4175
  const viewhistorys = new ViewHistory();
4227
4176
 
4177
+ /******************************************************************************
4178
+ Copyright (c) Microsoft Corporation.
4179
+
4180
+ Permission to use, copy, modify, and/or distribute this software for any
4181
+ purpose with or without fee is hereby granted.
4182
+
4183
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4184
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4185
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4186
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4187
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
4188
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4189
+ PERFORMANCE OF THIS SOFTWARE.
4190
+ ***************************************************************************** */
4191
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
4192
+
4193
+
4194
+ function __decorate(decorators, target, key, desc) {
4195
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4196
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4197
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4198
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
4199
+ }
4200
+
4201
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
4202
+ var e = new Error(message);
4203
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
4204
+ };
4205
+
4206
+ var ViewModelComponent_1;
4207
+ const { ccclass, property, menu } = _decorator;
4208
+ let ViewModelComponent = ViewModelComponent_1 = class ViewModelComponent extends Component {
4209
+ /**
4210
+ * 往上追踪,返回第一个包含 RouteComponent 的节点, 返回节点中的 RouteView
4211
+ * @param node
4212
+ */
4213
+ static tailNode(node) {
4214
+ let current = node;
4215
+ while (current != null) {
4216
+ let com = current.getComponent(ViewModelComponent_1);
4217
+ if (com) {
4218
+ return com.viewModel;
4219
+ }
4220
+ current = current.parent;
4221
+ }
4222
+ return null;
4223
+ }
4224
+ };
4225
+ ViewModelComponent = ViewModelComponent_1 = __decorate([
4226
+ ccclass('ViewModelComponent')
4227
+ ], ViewModelComponent);
4228
+
4228
4229
  class ViewModel extends EventDispatcher {
4229
4230
  /**
4230
4231
  * 视图模型的名称
@@ -6852,5 +6853,5 @@ class WidgetUtil {
6852
6853
  }
6853
6854
  var widgetutil = new WidgetUtil();
6854
6855
 
6855
- export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, TreeUtil, UIManager, UIObjectRepo, UIPoolConfig, UISingleConfig, UIUtil, ViewDict, ViewEvent, ViewHistory, ViewList, ViewModel, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, create等距图集, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
6856
+ export { ArrayUtil, AssetLoader, AssetURI, BitUtil, CallbackList, CameraUtil, CanvasUtil, Controller, ControllerDict, ControllerRepo, ConvertUtil, DictIterator, DictNode, DictSource, Dictionary, DirectionMode, Dispatcher, DocUtil, ErrorUtil, EventDispatcher, EventItem, EventUtil, Factory, FloatUtil, GeometryDirection, GeometryUtil, IdentUtil, LOGGER_EVENT, LinkError, List, ListIterator, ListNode, ListSource, Listener, LogLevel, LogManager, Logger, MapObject, MapUtil, MathUtil, Model, NetUtil, PathUtil, Pool, RandUtil, Route, RouteController, RouteList, RouteView, RouteViewDict, SampleCallbackList, SamplePool, SamplePoolSet, ScaleUtil, SimpleModel, StringUtil, TimeUtil, Timer, TreeIterator, TreeNode, TreeNodePlugin, TreeRoot, TreeRootPlugin, TreeUtil, UIManager, UIObjectRepo, UIPoolConfig, UISingleConfig, UIUtil, ViewDict, ViewEvent, ViewHistory, ViewList, ViewModel, ViewModelComponent, ViewState, WidgetAlign, WidgetUtil, XAssetManager, XEvent, arrayutil, assetx, bitutil, camerautil, canvasutil, convertutil, create等距图集, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parseAtlas, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
6856
6857
  //# sourceMappingURL=index.esm.js.map