@zhongguo168a/yxeditor-common 0.0.38 → 0.0.39

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, SpriteAtlas, Camera, Canvas, Vec2, Vec3, Vec4, Widget, UITransform, math } from 'cc';
1
+ import { HorizontalTextAlignment, VerticalTextAlignment, Scheduler, Prefab, Node as Node$1, ISchedulable, AssetManager, Asset, SpriteAtlas, Camera, Canvas, Vec2, Vec3, Vec4, Widget, UITransform, math } from 'cc';
2
2
 
3
3
  interface IError {
4
4
  isCancel(): boolean;
@@ -1047,6 +1047,7 @@ declare class View extends EventDispatcher {
1047
1047
  protected _waitCloseComplete: boolean;
1048
1048
  get controller(): ViewController;
1049
1049
  get route(): Route;
1050
+ node: Node;
1050
1051
  datas: {};
1051
1052
  tags: {};
1052
1053
  layer: string;
@@ -1060,10 +1061,10 @@ declare class UIObjectDict extends Dictionary<string, any | List> {
1060
1061
  * 获取唯一的
1061
1062
  * @param prefab
1062
1063
  */
1063
- uniqueObject(prefab: Prefab): Node;
1064
+ uniqueObject(prefab: Prefab): Node$1;
1064
1065
  removeObject(prefab: Prefab): void;
1065
1066
  popObject(prefab: Prefab): any;
1066
- backObject(object: Node): void;
1067
+ backObject(object: Node$1): void;
1067
1068
  protected getList(key: any): List;
1068
1069
  }
1069
1070
  declare var uidict: UIObjectDict;
@@ -1974,21 +1975,21 @@ declare class UIUtil {
1974
1975
  * @param x
1975
1976
  * @param y
1976
1977
  */
1977
- hitTest(target: Node, x: number, y: number): boolean;
1978
- findNode(node: Node, name: string): Node;
1979
- walk(node: Node, f: (target: Node) => boolean): void;
1980
- _walk(node: Node, f: (target: Node) => boolean): boolean;
1978
+ hitTest(target: Node$1, x: number, y: number): boolean;
1979
+ findNode(node: Node$1, name: string): Node$1;
1980
+ walk(node: Node$1, f: (target: Node$1) => boolean): void;
1981
+ _walk(node: Node$1, f: (target: Node$1) => boolean): boolean;
1981
1982
  }
1982
1983
  declare const uiutil: UIUtil;
1983
1984
 
1984
1985
  declare class WidgetAlign {
1985
- node: Node;
1986
- targetNode: Node;
1986
+ node: Node$1;
1987
+ targetNode: Node$1;
1987
1988
  protected nodeWidget: Widget;
1988
1989
  protected parentTransform: UITransform;
1989
1990
  protected targetTransform: UITransform;
1990
1991
  protected uipos: math.Vec3;
1991
- constructor(node: Node, targetNode: Node);
1992
+ constructor(node: Node$1, targetNode: Node$1);
1992
1993
  topTop(distance?: number): void;
1993
1994
  topBottom(distance?: number): void;
1994
1995
  leftleft(distance?: number): void;
@@ -2001,41 +2002,41 @@ declare class WidgetUtil {
2001
2002
  * @param parent 对齐的父节点
2002
2003
  * @param distance
2003
2004
  */
2004
- alignTop(node: Node, parent: Node, distance?: number): void;
2005
+ alignTop(node: Node$1, parent: Node$1, distance?: number): void;
2005
2006
  /**
2006
2007
  * 与目标顶对齐,node和target都必须在渲染树中
2007
2008
  * @param node 需要修改的节点
2008
2009
  * @param target 对齐目标
2009
2010
  * @param distance
2010
2011
  */
2011
- alignTopWorld(node: Node, target: Node, distance?: number): void;
2012
+ alignTopWorld(node: Node$1, target: Node$1, distance?: number): void;
2012
2013
  /**
2013
2014
  * 与目标顶对齐,node和target都必须在渲染树中
2014
2015
  * @param node 需要修改的节点
2015
2016
  * @param target 对齐目标
2016
2017
  * @param distance
2017
2018
  */
2018
- alignBottomWorld(node: Node, target: Node, distance?: number): void;
2019
+ alignBottomWorld(node: Node$1, target: Node$1, distance?: number): void;
2019
2020
  /**
2020
2021
  * 调整【node】的widget,对齐【targetNode】
2021
2022
  * @param node
2022
2023
  * @param targetNode
2023
2024
  */
2024
- align(node: Node, targetNode: Node): WidgetAlign;
2025
+ align(node: Node$1, targetNode: Node$1): WidgetAlign;
2025
2026
  /**
2026
2027
  * 与目标右对齐
2027
2028
  * @param node 需要修改的节点
2028
2029
  * @param parent 对齐的父节点
2029
2030
  * @param distance
2030
2031
  */
2031
- alignLeft(node: Node, parent: Node, distance?: number): void;
2032
+ alignLeft(node: Node$1, parent: Node$1, distance?: number): void;
2032
2033
  /**
2033
2034
  * 与目标右对齐
2034
2035
  * @param node 需要修改的节点
2035
2036
  * @param target 对齐目标
2036
2037
  * @param distance
2037
2038
  */
2038
- alignLeftWorld(node: Node, target: Node, distance?: number): void;
2039
+ alignLeftWorld(node: Node$1, target: Node$1, distance?: number): void;
2039
2040
  }
2040
2041
  declare var widgetutil: WidgetUtil;
2041
2042