@zhongguo168a/yxeditor-common 0.0.133 → 0.0.139
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 -23
- package/dist/index.esm.js +316 -480
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as cc from 'cc';
|
|
2
|
-
import { HorizontalTextAlignment, VerticalTextAlignment, Scheduler, Prefab, Node, Component, ISchedulable, AssetManager, Asset,
|
|
2
|
+
import { HorizontalTextAlignment, VerticalTextAlignment, Scheduler, Prefab, Node, Component, ISchedulable, AssetManager, Asset, Camera, Canvas, Vec2, Vec3, Vec4, SpriteAtlas, Widget, UITransform, math } from 'cc';
|
|
3
3
|
|
|
4
4
|
interface IError {
|
|
5
5
|
isCancel(): boolean;
|
|
@@ -707,8 +707,10 @@ declare class ListSource extends EventDispatcher {
|
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
declare class DictIterator {
|
|
710
|
-
break(): void;
|
|
710
|
+
break(reason?: any): void;
|
|
711
711
|
isBreak(): boolean;
|
|
712
|
+
getReason(): any;
|
|
713
|
+
protected _reason: any;
|
|
712
714
|
protected _isBreak: any;
|
|
713
715
|
}
|
|
714
716
|
declare class Dictionary<K = string, V = any> {
|
|
@@ -1645,26 +1647,6 @@ declare class AssetLoader extends Dispatcher {
|
|
|
1645
1647
|
protected _failList: List<LoaderItem>;
|
|
1646
1648
|
}
|
|
1647
1649
|
|
|
1648
|
-
/**
|
|
1649
|
-
* 自动生成等距图集的frame描述表。
|
|
1650
|
-
* 用于减少创建atlas文件的过程。
|
|
1651
|
-
*
|
|
1652
|
-
* @param atlasSize 图集的像素尺寸
|
|
1653
|
-
* @param gridSize 每格的像素尺寸
|
|
1654
|
-
* @param keyFormat 名称格式化字符串,例如 "%d.png" 或 "tile_%d.png"
|
|
1655
|
-
* @param maxCount 可选,限制生成数量
|
|
1656
|
-
* @returns atlas数据对象
|
|
1657
|
-
*/
|
|
1658
|
-
declare function create等距图集(atlasSize: Vec2, gridSize: Vec2, keyFormat?: string, maxCount?: number): Record<string, any>;
|
|
1659
|
-
/**
|
|
1660
|
-
*
|
|
1661
|
-
* @param name 图集的名称
|
|
1662
|
-
* @param plist plist格式的json文件内容
|
|
1663
|
-
* @param texture
|
|
1664
|
-
* @returns
|
|
1665
|
-
*/
|
|
1666
|
-
declare function parseAtlas(plist: any, texture: Texture2D): SpriteAtlas;
|
|
1667
|
-
|
|
1668
1650
|
declare enum LogLevel {
|
|
1669
1651
|
DEBUG = 0,
|
|
1670
1652
|
INFO = 1,
|
|
@@ -2213,5 +2195,5 @@ declare class WidgetUtil {
|
|
|
2213
2195
|
}
|
|
2214
2196
|
declare var widgetutil: WidgetUtil;
|
|
2215
2197
|
|
|
2216
|
-
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,
|
|
2198
|
+
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, ctrlrepo, docutil, errorutil, eventmgr, eventutil, floatutil, formatutil, geoutil, identutil, loadAtlas, logmgr, maputil, mathutil, netutil, parsePlist, pathutil, randutil, resutil, routeViews, scaleutil, stringutil, timer, timeutil, treeutil, uimgr, uirepo, uiutil, viewhistorys, widgetutil };
|
|
2217
2199
|
export type { CreatorFunction, DisposeFunction, IController, IError, IEventDispatcher, IExtend, IListItem, IModel, IModule, ITreeListItem, RecycleFunction };
|