@cocos/cocos-cli-types 0.0.1-alpha.23.1 → 0.0.1-alpha.23.2
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/assets.d.ts +58 -58
- package/builder.d.ts +285 -285
- package/cli.d.ts +149 -149
- package/configuration.d.ts +1 -1
- package/engine.d.ts +1 -1
- package/index.d.ts +301 -301
- package/package.json +1 -1
- package/project.d.ts +7 -7
- package/scripting.d.ts +7 -7
package/cli.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ import type { Scene } from 'cc';
|
|
|
4
4
|
import type { Vec3 as Vec3_2 } from 'cc';
|
|
5
5
|
|
|
6
6
|
/** 动画剪辑资源的 userData */
|
|
7
|
-
declare interface AnimationClipAssetUserData {
|
|
7
|
+
export declare interface AnimationClipAssetUserData {
|
|
8
8
|
/** 动画名称 */
|
|
9
9
|
name: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
declare interface AnimationImportSetting {
|
|
12
|
+
export declare interface AnimationImportSetting {
|
|
13
13
|
/**
|
|
14
14
|
* glTf 中原始动画资源的名称。
|
|
15
15
|
*/
|
|
@@ -99,12 +99,12 @@ declare interface AnimationImportSetting {
|
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
/** 所有资源处理器类型的常量数组(用于 Zod enum 和 TypeScript type) */
|
|
102
|
-
declare const ASSET_HANDLER_TYPES: string[];
|
|
102
|
+
export declare const ASSET_HANDLER_TYPES: string[];
|
|
103
103
|
|
|
104
104
|
/** 资源处理器类型(从常量数组派生) */
|
|
105
|
-
declare type AssetHandlerType = typeof ASSET_HANDLER_TYPES[number] | 'database';
|
|
105
|
+
export declare type AssetHandlerType = typeof ASSET_HANDLER_TYPES[number] | 'database';
|
|
106
106
|
|
|
107
|
-
declare interface AssetUserDataMap {
|
|
107
|
+
export declare interface AssetUserDataMap {
|
|
108
108
|
'animation-clip': AnimationClipAssetUserData;
|
|
109
109
|
'auto-atlas': AutoAtlasAssetUserData;
|
|
110
110
|
'label-atlas': LabelAtlasAssetUserData;
|
|
@@ -142,13 +142,13 @@ declare interface AssetUserDataMap {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
/** 音频资源的 userData */
|
|
145
|
-
declare interface AudioClipAssetUserData {
|
|
145
|
+
export declare interface AudioClipAssetUserData {
|
|
146
146
|
/** 下载模式:0-Web Audio, 1-DOM Audio */
|
|
147
147
|
downloadMode: number;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
/** 自动图集资源的 userData */
|
|
151
|
-
declare interface AutoAtlasAssetUserData {
|
|
151
|
+
export declare interface AutoAtlasAssetUserData {
|
|
152
152
|
compressed: boolean;
|
|
153
153
|
dest: any;
|
|
154
154
|
/** 打包图像的尺寸 */
|
|
@@ -173,7 +173,7 @@ declare interface AutoAtlasAssetUserData {
|
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
/** 位图字体资源的 userData */
|
|
176
|
-
declare interface BitmapFontAssetUserData {
|
|
176
|
+
export declare interface BitmapFontAssetUserData {
|
|
177
177
|
/** 字体配置 */
|
|
178
178
|
_fntConfig: any;
|
|
179
179
|
/** 字体大小 */
|
|
@@ -185,10 +185,10 @@ declare interface BitmapFontAssetUserData {
|
|
|
185
185
|
/**
|
|
186
186
|
* 创建类型
|
|
187
187
|
*/
|
|
188
|
-
declare const CREATE_TYPES: readonly ['scene', 'prefab'];
|
|
188
|
+
export declare const CREATE_TYPES: readonly ['scene', 'prefab'];
|
|
189
189
|
|
|
190
190
|
/** 文件夹资源的 userData */
|
|
191
|
-
declare interface DirectoryAssetUserData {
|
|
191
|
+
export declare interface DirectoryAssetUserData {
|
|
192
192
|
/** 是否是资源包 */
|
|
193
193
|
isBundle?: boolean;
|
|
194
194
|
/** 资源包配置 ID */
|
|
@@ -200,16 +200,16 @@ declare interface DirectoryAssetUserData {
|
|
|
200
200
|
}
|
|
201
201
|
|
|
202
202
|
/** Effect 着色器资源的 userData */
|
|
203
|
-
declare interface EffectAssetUserData {
|
|
203
|
+
export declare interface EffectAssetUserData {
|
|
204
204
|
/** 预编译组合 */
|
|
205
205
|
combinations?: any;
|
|
206
206
|
/** 编辑器相关数据 */
|
|
207
207
|
editor?: any;
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
declare type Filter = 'none' | 'nearest' | 'linear';
|
|
210
|
+
export declare type Filter = 'none' | 'nearest' | 'linear';
|
|
211
211
|
|
|
212
|
-
declare interface FntData {
|
|
212
|
+
export declare interface FntData {
|
|
213
213
|
commonHeight?: number;
|
|
214
214
|
fontSize?: number;
|
|
215
215
|
atlasName?: string;
|
|
@@ -217,7 +217,7 @@ declare interface FntData {
|
|
|
217
217
|
kerningDict?: KerningDict;
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
declare interface FontDef {
|
|
220
|
+
export declare interface FontDef {
|
|
221
221
|
rect: {
|
|
222
222
|
x: number;
|
|
223
223
|
y: number;
|
|
@@ -229,7 +229,7 @@ declare interface FontDef {
|
|
|
229
229
|
xAdvance: number;
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
declare interface FontDefDictionary {
|
|
232
|
+
export declare interface FontDefDictionary {
|
|
233
233
|
[charId: number]: FontDef;
|
|
234
234
|
}
|
|
235
235
|
|
|
@@ -301,7 +301,7 @@ export declare class GlobalEventManager {
|
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
/** glTF 动画资源的 userData */
|
|
304
|
-
declare interface GltfAnimationAssetUserData {
|
|
304
|
+
export declare interface GltfAnimationAssetUserData {
|
|
305
305
|
gltfIndex: number;
|
|
306
306
|
events: Array<{
|
|
307
307
|
frame: number;
|
|
@@ -337,20 +337,20 @@ declare interface GltfAnimationAssetUserData {
|
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
/** glTF 嵌入图片子资源的 userData */
|
|
340
|
-
declare interface GltfEmbededImageAssetUserData extends IVirtualAssetUserData {
|
|
340
|
+
export declare interface GltfEmbededImageAssetUserData extends IVirtualAssetUserData {
|
|
341
341
|
/** 是否修复 Alpha 透明度瑕疵 */
|
|
342
342
|
fixAlphaTransparencyArtifacts?: boolean;
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
declare type GltfpackOptions = Record<string, any>;
|
|
345
|
+
export declare type GltfpackOptions = Record<string, any>;
|
|
346
346
|
|
|
347
347
|
/** glTF Skeleton 子资源的 userData */
|
|
348
|
-
declare interface GltfSkeletonAssetUserData extends IVirtualAssetUserData {
|
|
348
|
+
export declare interface GltfSkeletonAssetUserData extends IVirtualAssetUserData {
|
|
349
349
|
/** 骨骼数量 */
|
|
350
350
|
jointsLength?: number;
|
|
351
351
|
}
|
|
352
352
|
|
|
353
|
-
declare interface GlTFUserData {
|
|
353
|
+
export declare interface GlTFUserData {
|
|
354
354
|
assetFinder?: SerializedAssetFinder;
|
|
355
355
|
|
|
356
356
|
imageMetas: ImageMeta[];
|
|
@@ -484,16 +484,16 @@ declare interface GlTFUserData {
|
|
|
484
484
|
/**
|
|
485
485
|
* 添加/创建组件的选项
|
|
486
486
|
*/
|
|
487
|
-
declare interface IAddComponentOptions {
|
|
487
|
+
export declare interface IAddComponentOptions {
|
|
488
488
|
nodePathOrUuid: string;
|
|
489
489
|
component: string;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
declare interface IApplyPrefabChangesParams {
|
|
492
|
+
export declare interface IApplyPrefabChangesParams {
|
|
493
493
|
nodePath: string;
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
-
declare interface IAssetInfo {
|
|
496
|
+
export declare interface IAssetInfo {
|
|
497
497
|
name: string; // 资源名字
|
|
498
498
|
source: string; // url 地址
|
|
499
499
|
loadUrl: string; // loader 加载的层级地址
|
|
@@ -529,7 +529,7 @@ declare interface IAssetInfo {
|
|
|
529
529
|
temp?: string; // 资源临时文件目录
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown'> {
|
|
532
|
+
export declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown'> {
|
|
533
533
|
ver: string;
|
|
534
534
|
importer: AssetHandlerType;
|
|
535
535
|
imported: boolean;
|
|
@@ -547,7 +547,7 @@ declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown
|
|
|
547
547
|
/**
|
|
548
548
|
* 场景相关处理接口
|
|
549
549
|
*/
|
|
550
|
-
declare interface IAssetService extends IServiceEvents {
|
|
550
|
+
export declare interface IAssetService extends IServiceEvents {
|
|
551
551
|
/**
|
|
552
552
|
* 资源发生变化时,进行处理
|
|
553
553
|
* @param uuid
|
|
@@ -560,7 +560,7 @@ declare interface IAssetService extends IServiceEvents {
|
|
|
560
560
|
assetDeleted(uuid: string): Promise<void>;
|
|
561
561
|
}
|
|
562
562
|
|
|
563
|
-
declare type IAssetType =
|
|
563
|
+
export declare type IAssetType =
|
|
564
564
|
| ISupportCreateCCType
|
|
565
565
|
| 'cc.Asset' // 基础资源类型(instantiation-asset)
|
|
566
566
|
| 'cce.Database' // 数据库资源
|
|
@@ -586,7 +586,7 @@ declare type IAssetType =
|
|
|
586
586
|
| 'RenderStage' // 渲染阶段
|
|
587
587
|
| 'RenderFlow';
|
|
588
588
|
|
|
589
|
-
declare interface IBaseCreateNodeParams {
|
|
589
|
+
export declare interface IBaseCreateNodeParams {
|
|
590
590
|
path: string;
|
|
591
591
|
name?: string;
|
|
592
592
|
workMode?: '2d' | '3d';
|
|
@@ -598,14 +598,14 @@ declare interface IBaseCreateNodeParams {
|
|
|
598
598
|
/**
|
|
599
599
|
* 基础标识
|
|
600
600
|
*/
|
|
601
|
-
declare interface IBaseIdentifier {
|
|
601
|
+
export declare interface IBaseIdentifier {
|
|
602
602
|
assetName: string;
|
|
603
603
|
assetUuid: string;
|
|
604
604
|
assetUrl: string;
|
|
605
605
|
assetType: string;
|
|
606
606
|
}
|
|
607
607
|
|
|
608
|
-
declare interface ICameraService {
|
|
608
|
+
export declare interface ICameraService {
|
|
609
609
|
init(): void;
|
|
610
610
|
initFromConfig(): Promise<void>;
|
|
611
611
|
is2D: boolean;
|
|
@@ -626,7 +626,7 @@ declare interface ICameraService {
|
|
|
626
626
|
onUpdate(deltaTime: number): void;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
declare interface IChangeNodeOptions {
|
|
629
|
+
export declare interface IChangeNodeOptions {
|
|
630
630
|
source?: 'editor' | 'undo' | 'engine';
|
|
631
631
|
type?: NodeEventType;
|
|
632
632
|
propPath?: string;
|
|
@@ -643,14 +643,14 @@ export declare interface ICLI {
|
|
|
643
643
|
/**
|
|
644
644
|
* 关闭场景/预制体选项
|
|
645
645
|
*/
|
|
646
|
-
declare interface ICloseOptions {
|
|
646
|
+
export declare interface ICloseOptions {
|
|
647
647
|
urlOrUUID?: string;
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
/**
|
|
651
651
|
* CLI 使用的组件信息,属性值以扁平的 key-value 形式呈现
|
|
652
652
|
*/
|
|
653
|
-
declare interface IComponent extends IComponentIdentifier {
|
|
653
|
+
export declare interface IComponent extends IComponentIdentifier {
|
|
654
654
|
properties: {
|
|
655
655
|
[key: string]: IPropertyValueType;
|
|
656
656
|
};
|
|
@@ -661,7 +661,7 @@ declare interface IComponent extends IComponentIdentifier {
|
|
|
661
661
|
* 编辑器使用的组件详细信息,属性值以 IProperty 编码形式呈现,
|
|
662
662
|
* 包含 type、readonly、default 等元信息,用于编辑器 Inspector 面板渲染
|
|
663
663
|
*/
|
|
664
|
-
declare interface IComponentForEditor extends IProperty {
|
|
664
|
+
export declare interface IComponentForEditor extends IProperty {
|
|
665
665
|
value: {
|
|
666
666
|
enabled: IPropertyValueType;
|
|
667
667
|
uuid: IPropertyValueType;
|
|
@@ -673,7 +673,7 @@ declare interface IComponentForEditor extends IProperty {
|
|
|
673
673
|
/**
|
|
674
674
|
* 组件标识信息,包含组件的基本标识字段
|
|
675
675
|
*/
|
|
676
|
-
declare interface IComponentIdentifier {
|
|
676
|
+
export declare interface IComponentIdentifier {
|
|
677
677
|
cid: string;
|
|
678
678
|
path: string;
|
|
679
679
|
uuid: string;
|
|
@@ -685,7 +685,7 @@ declare interface IComponentIdentifier {
|
|
|
685
685
|
/**
|
|
686
686
|
* 组件服务接口,定义了所有组件相关的操作方法
|
|
687
687
|
*/
|
|
688
|
-
declare interface IComponentService extends IServiceEvents {
|
|
688
|
+
export declare interface IComponentService extends IServiceEvents {
|
|
689
689
|
/**
|
|
690
690
|
* 添加组件到指定节点,返回添加后的组件信息
|
|
691
691
|
* @param params - 添加组件选项
|
|
@@ -820,29 +820,29 @@ declare interface IComponentService extends IServiceEvents {
|
|
|
820
820
|
unregisterCompMgrEvents(): void;
|
|
821
821
|
}
|
|
822
822
|
|
|
823
|
-
declare interface ICompPrefabInfo {
|
|
823
|
+
export declare interface ICompPrefabInfo {
|
|
824
824
|
fileId: string;
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
-
declare interface ICreateByAssetParams extends IBaseCreateNodeParams {
|
|
827
|
+
export declare interface ICreateByAssetParams extends IBaseCreateNodeParams {
|
|
828
828
|
dbURL: string;
|
|
829
829
|
}
|
|
830
830
|
|
|
831
|
-
declare interface ICreateByNodeTypeParams extends IBaseCreateNodeParams {
|
|
831
|
+
export declare interface ICreateByNodeTypeParams extends IBaseCreateNodeParams {
|
|
832
832
|
nodeType: NodeType;
|
|
833
833
|
}
|
|
834
834
|
|
|
835
835
|
/**
|
|
836
836
|
* 创建场景/预制体选项
|
|
837
837
|
*/
|
|
838
|
-
declare interface ICreateOptions {
|
|
838
|
+
export declare interface ICreateOptions {
|
|
839
839
|
type: ICreateType;
|
|
840
840
|
baseName: string;
|
|
841
841
|
targetDirectory: string;
|
|
842
842
|
templateType?: TSceneTemplateType;
|
|
843
843
|
}
|
|
844
844
|
|
|
845
|
-
declare interface ICreatePrefabFromNodeParams {
|
|
845
|
+
export declare interface ICreatePrefabFromNodeParams {
|
|
846
846
|
/** 要转换为预制体的源节点路径 */
|
|
847
847
|
nodePath: string;
|
|
848
848
|
/** 预制体资源保存 URL */
|
|
@@ -851,18 +851,18 @@ declare interface ICreatePrefabFromNodeParams {
|
|
|
851
851
|
overwrite?: boolean;
|
|
852
852
|
}
|
|
853
853
|
|
|
854
|
-
declare type ICreateType = typeof CREATE_TYPES[number];
|
|
854
|
+
export declare type ICreateType = typeof CREATE_TYPES[number];
|
|
855
855
|
|
|
856
|
-
declare interface IDeleteNodeParams {
|
|
856
|
+
export declare interface IDeleteNodeParams {
|
|
857
857
|
path: string;
|
|
858
858
|
keepWorldTransform?: boolean;
|
|
859
859
|
}
|
|
860
860
|
|
|
861
|
-
declare interface IDeleteNodeResult {
|
|
861
|
+
export declare interface IDeleteNodeResult {
|
|
862
862
|
path: string;
|
|
863
863
|
}
|
|
864
864
|
|
|
865
|
-
declare interface IEditorService extends IServiceEvents {
|
|
865
|
+
export declare interface IEditorService extends IServiceEvents {
|
|
866
866
|
/**
|
|
867
867
|
* 当前编辑器类型
|
|
868
868
|
*/
|
|
@@ -906,7 +906,7 @@ declare interface IEditorService extends IServiceEvents {
|
|
|
906
906
|
unlock(): void;
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
-
declare interface IEngineService extends IServiceEvents {
|
|
909
|
+
export declare interface IEngineService extends IServiceEvents {
|
|
910
910
|
/**
|
|
911
911
|
* 初始化引擎服务,目前是暂时引擎 mainLoop
|
|
912
912
|
*/
|
|
@@ -920,13 +920,13 @@ declare interface IEngineService extends IServiceEvents {
|
|
|
920
920
|
/**
|
|
921
921
|
* 执行组件方法的选项
|
|
922
922
|
*/
|
|
923
|
-
declare interface IExecuteComponentMethodOptions {
|
|
923
|
+
export declare interface IExecuteComponentMethodOptions {
|
|
924
924
|
uuid: string;
|
|
925
925
|
name: string;
|
|
926
926
|
args: any[];
|
|
927
927
|
}
|
|
928
928
|
|
|
929
|
-
declare interface IFbxSetting {
|
|
929
|
+
export declare interface IFbxSetting {
|
|
930
930
|
/**
|
|
931
931
|
* https://github.com/cocos-creator/FBX-glTF-conv/pull/26
|
|
932
932
|
*/
|
|
@@ -962,11 +962,11 @@ declare interface IFbxSetting {
|
|
|
962
962
|
matchMeshNames?: boolean;
|
|
963
963
|
}
|
|
964
964
|
|
|
965
|
-
declare interface IGetPrefabInfoParams {
|
|
965
|
+
export declare interface IGetPrefabInfoParams {
|
|
966
966
|
nodePath: string;
|
|
967
967
|
}
|
|
968
968
|
|
|
969
|
-
declare interface IGizmoService {
|
|
969
|
+
export declare interface IGizmoService {
|
|
970
970
|
gizmoRootNode: any;
|
|
971
971
|
foregroundNode: any;
|
|
972
972
|
backgroundNode: any;
|
|
@@ -988,12 +988,12 @@ declare interface IGizmoService {
|
|
|
988
988
|
onUpdate(deltaTime: number): void;
|
|
989
989
|
}
|
|
990
990
|
|
|
991
|
-
declare interface IIsPrefabInstanceParams {
|
|
991
|
+
export declare interface IIsPrefabInstanceParams {
|
|
992
992
|
nodePath: string;
|
|
993
993
|
}
|
|
994
994
|
|
|
995
995
|
/** 图片资源的 userData */
|
|
996
|
-
declare interface ImageAssetUserData {
|
|
996
|
+
export declare interface ImageAssetUserData {
|
|
997
997
|
/** 图片类型 */
|
|
998
998
|
type: ImageImportType;
|
|
999
999
|
/** 垂直翻转 */
|
|
@@ -1017,9 +1017,9 @@ declare interface ImageAssetUserData {
|
|
|
1017
1017
|
alpha?: string;
|
|
1018
1018
|
}
|
|
1019
1019
|
|
|
1020
|
-
declare type ImageImportType = 'raw' | 'texture' | 'normal map' | 'sprite-frame' | 'texture cube';
|
|
1020
|
+
export declare type ImageImportType = 'raw' | 'texture' | 'normal map' | 'sprite-frame' | 'texture cube';
|
|
1021
1021
|
|
|
1022
|
-
declare interface ImageMeta {
|
|
1022
|
+
export declare interface ImageMeta {
|
|
1023
1023
|
/**
|
|
1024
1024
|
* 图片名字。
|
|
1025
1025
|
*/
|
|
@@ -1040,30 +1040,30 @@ declare interface ImageMeta {
|
|
|
1040
1040
|
remap?: string;
|
|
1041
1041
|
}
|
|
1042
1042
|
|
|
1043
|
-
declare interface IMountedChildrenInfo {
|
|
1043
|
+
export declare interface IMountedChildrenInfo {
|
|
1044
1044
|
targetInfo: ITargetInfo | null;
|
|
1045
1045
|
nodes: INodeIdentifier[];
|
|
1046
1046
|
}
|
|
1047
1047
|
|
|
1048
|
-
declare interface IMountedComponentsInfo {
|
|
1048
|
+
export declare interface IMountedComponentsInfo {
|
|
1049
1049
|
targetInfo: ITargetInfo | null;
|
|
1050
1050
|
components: IComponentIdentifier[];
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
-
declare interface INode extends INodeIdentifier {
|
|
1053
|
+
export declare interface INode extends INodeIdentifier {
|
|
1054
1054
|
properties: INodeProperties;
|
|
1055
1055
|
components?: IComponent[] | IComponentIdentifier[];
|
|
1056
1056
|
children?: INode[];
|
|
1057
1057
|
prefab: IPrefabInfo | null;
|
|
1058
1058
|
}
|
|
1059
1059
|
|
|
1060
|
-
declare interface INodeIdentifier {
|
|
1060
|
+
export declare interface INodeIdentifier {
|
|
1061
1061
|
nodeId: string;
|
|
1062
1062
|
path: string;
|
|
1063
1063
|
name: string;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
|
-
declare interface INodeProperties {
|
|
1066
|
+
export declare interface INodeProperties {
|
|
1067
1067
|
position: IVec3;
|
|
1068
1068
|
rotation: IQuat;
|
|
1069
1069
|
eulerAngles: IVec3;
|
|
@@ -1076,7 +1076,7 @@ declare interface INodeProperties {
|
|
|
1076
1076
|
/**
|
|
1077
1077
|
* 节点的相关处理接口
|
|
1078
1078
|
*/
|
|
1079
|
-
declare interface INodeService extends IServiceEvents {
|
|
1079
|
+
export declare interface INodeService extends IServiceEvents {
|
|
1080
1080
|
/**
|
|
1081
1081
|
* 创建节点
|
|
1082
1082
|
* @param params
|
|
@@ -1107,14 +1107,14 @@ declare interface INodeService extends IServiceEvents {
|
|
|
1107
1107
|
queryNodeTree(params: IQueryNodeTreeParams): Promise<INodeTreeItem | null>;
|
|
1108
1108
|
}
|
|
1109
1109
|
|
|
1110
|
-
declare interface INodeTreeComponent {
|
|
1110
|
+
export declare interface INodeTreeComponent {
|
|
1111
1111
|
isCustom: boolean;
|
|
1112
1112
|
type: string;
|
|
1113
1113
|
value: string;
|
|
1114
1114
|
extends: string[];
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
|
-
declare interface INodeTreeItem {
|
|
1117
|
+
export declare interface INodeTreeItem {
|
|
1118
1118
|
name: string;
|
|
1119
1119
|
active: boolean;
|
|
1120
1120
|
locked: boolean;
|
|
@@ -1132,12 +1132,12 @@ declare interface INodeTreeItem {
|
|
|
1132
1132
|
/**
|
|
1133
1133
|
* 打开场景/预制体选项
|
|
1134
1134
|
*/
|
|
1135
|
-
declare interface IOpenOptions {
|
|
1135
|
+
export declare interface IOpenOptions {
|
|
1136
1136
|
urlOrUUID: string;
|
|
1137
1137
|
simpleNode?: boolean;
|
|
1138
1138
|
}
|
|
1139
1139
|
|
|
1140
|
-
declare interface IOperationService {
|
|
1140
|
+
export declare interface IOperationService {
|
|
1141
1141
|
addListener(type: OperationEvent, listener: Function, priority?: number): void;
|
|
1142
1142
|
removeListener(type: OperationEvent, listener: Function): void;
|
|
1143
1143
|
dispatch(type: OperationEvent, ...args: any[]): void;
|
|
@@ -1147,7 +1147,7 @@ declare interface IOperationService {
|
|
|
1147
1147
|
changePointer(type: string): void;
|
|
1148
1148
|
}
|
|
1149
1149
|
|
|
1150
|
-
declare interface IPrefab {
|
|
1150
|
+
export declare interface IPrefab {
|
|
1151
1151
|
name: string;
|
|
1152
1152
|
uuid: string;
|
|
1153
1153
|
data: INodeIdentifier;
|
|
@@ -1155,7 +1155,7 @@ declare interface IPrefab {
|
|
|
1155
1155
|
persistent: boolean;
|
|
1156
1156
|
}
|
|
1157
1157
|
|
|
1158
|
-
declare interface IPrefabInfo {
|
|
1158
|
+
export declare interface IPrefabInfo {
|
|
1159
1159
|
/** 关联的预制体资源信息 */
|
|
1160
1160
|
asset?: IPrefab;
|
|
1161
1161
|
root?: INodeIdentifier;
|
|
@@ -1165,7 +1165,7 @@ declare interface IPrefabInfo {
|
|
|
1165
1165
|
nestedPrefabInstanceRoots: INodeIdentifier[];
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
|
-
declare interface IPrefabInstance {
|
|
1168
|
+
export declare interface IPrefabInstance {
|
|
1169
1169
|
fileId: string;
|
|
1170
1170
|
prefabRootNode?: INodeIdentifier;
|
|
1171
1171
|
mountedChildren: IMountedChildrenInfo[];
|
|
@@ -1174,7 +1174,7 @@ declare interface IPrefabInstance {
|
|
|
1174
1174
|
removedComponents: ITargetInfo[];
|
|
1175
1175
|
}
|
|
1176
1176
|
|
|
1177
|
-
declare interface IPrefabService extends IServiceEvents {
|
|
1177
|
+
export declare interface IPrefabService extends IServiceEvents {
|
|
1178
1178
|
/**
|
|
1179
1179
|
* 将节点转换为预制体资源
|
|
1180
1180
|
*/
|
|
@@ -1207,7 +1207,7 @@ declare interface IPrefabService extends IServiceEvents {
|
|
|
1207
1207
|
removePrefabInfoFromNode(node: Node_2, removeNested?: boolean): void;
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
|
-
declare interface IPrefabStateInfo {
|
|
1210
|
+
export declare interface IPrefabStateInfo {
|
|
1211
1211
|
state: PrefabState;
|
|
1212
1212
|
isUnwrappable: boolean;
|
|
1213
1213
|
isRevertable: boolean;
|
|
@@ -1221,7 +1221,7 @@ declare interface IPrefabStateInfo {
|
|
|
1221
1221
|
* 组件的 dump 数据,以 IProperty 格式编码组件信息
|
|
1222
1222
|
* 与 IComponent 不同,所有属性(包括 uuid, name, enabled)都通过 encodeObject 编码为 IProperty
|
|
1223
1223
|
*/
|
|
1224
|
-
declare interface IProperty {
|
|
1224
|
+
export declare interface IProperty {
|
|
1225
1225
|
value: { [key: string]: IPropertyValueType } | IPropertyValueType;
|
|
1226
1226
|
default?: any; // 默认值
|
|
1227
1227
|
|
|
@@ -1275,27 +1275,27 @@ declare interface IProperty {
|
|
|
1275
1275
|
userData?: { [key: string]: any }; // 用户透传的数据
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
-
declare interface IPropertyGroupOptions {
|
|
1278
|
+
export declare interface IPropertyGroupOptions {
|
|
1279
1279
|
id: string // 默认 'default'
|
|
1280
1280
|
name: string,
|
|
1281
1281
|
displayOrder: number, // 默认 Infinity, 排在最后面
|
|
1282
1282
|
style: string // 默认为 'tab'
|
|
1283
1283
|
}
|
|
1284
1284
|
|
|
1285
|
-
declare type IPropertyLock = {
|
|
1285
|
+
export declare type IPropertyLock = {
|
|
1286
1286
|
default: number;
|
|
1287
1287
|
message: string
|
|
1288
1288
|
};
|
|
1289
1289
|
|
|
1290
|
-
declare interface IPropertyOverrideInfo {
|
|
1290
|
+
export declare interface IPropertyOverrideInfo {
|
|
1291
1291
|
targetInfo: ITargetInfo | null;
|
|
1292
1292
|
propertyPath: string[];
|
|
1293
1293
|
value?: any;
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
-
declare type IPropertyValueType = IProperty | IProperty[] | null | undefined | number | boolean | string | Vec4 | Vec3 | Vec2 | Mat4 | any | Array<unknown>
|
|
1296
|
+
export declare type IPropertyValueType = IProperty | IProperty[] | null | undefined | number | boolean | string | Vec4 | Vec3 | Vec2 | Mat4 | any | Array<unknown>
|
|
1297
1297
|
|
|
1298
|
-
declare interface IQuat {
|
|
1298
|
+
export declare interface IQuat {
|
|
1299
1299
|
x: number;
|
|
1300
1300
|
y: number;
|
|
1301
1301
|
z: number;
|
|
@@ -1305,7 +1305,7 @@ declare interface IQuat {
|
|
|
1305
1305
|
/**
|
|
1306
1306
|
* 查询注册类的过滤选项
|
|
1307
1307
|
*/
|
|
1308
|
-
declare interface IQueryClassesOptions {
|
|
1308
|
+
export declare interface IQueryClassesOptions {
|
|
1309
1309
|
extends?: string | string[];
|
|
1310
1310
|
excludeSelf?: boolean;
|
|
1311
1311
|
}
|
|
@@ -1313,21 +1313,21 @@ declare interface IQueryClassesOptions {
|
|
|
1313
1313
|
/**
|
|
1314
1314
|
* 查询组件的选项
|
|
1315
1315
|
*/
|
|
1316
|
-
declare interface IQueryComponentOptions {
|
|
1316
|
+
export declare interface IQueryComponentOptions {
|
|
1317
1317
|
path: string;
|
|
1318
1318
|
}
|
|
1319
1319
|
|
|
1320
|
-
declare interface IQueryNodeParams {
|
|
1320
|
+
export declare interface IQueryNodeParams {
|
|
1321
1321
|
path: string;
|
|
1322
1322
|
queryChildren: boolean;
|
|
1323
1323
|
queryComponent: boolean;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
|
-
declare interface IQueryNodeTreeParams {
|
|
1326
|
+
export declare interface IQueryNodeTreeParams {
|
|
1327
1327
|
path?: string;
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
|
-
declare interface IRedirectInfo {
|
|
1330
|
+
export declare interface IRedirectInfo {
|
|
1331
1331
|
// 跳转资源的类型
|
|
1332
1332
|
type: string;
|
|
1333
1333
|
// 跳转资源的 uuid
|
|
@@ -1337,39 +1337,39 @@ declare interface IRedirectInfo {
|
|
|
1337
1337
|
/**
|
|
1338
1338
|
* 软刷新场景/预制体选项
|
|
1339
1339
|
*/
|
|
1340
|
-
declare interface IReloadOptions {
|
|
1340
|
+
export declare interface IReloadOptions {
|
|
1341
1341
|
urlOrUUID?: string;
|
|
1342
1342
|
}
|
|
1343
1343
|
|
|
1344
1344
|
/**
|
|
1345
1345
|
* 删除组件的选项
|
|
1346
1346
|
*/
|
|
1347
|
-
declare interface IRemoveComponentOptions {
|
|
1347
|
+
export declare interface IRemoveComponentOptions {
|
|
1348
1348
|
path: string;
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
|
-
declare interface IRevertToPrefabParams {
|
|
1351
|
+
export declare interface IRevertToPrefabParams {
|
|
1352
1352
|
nodePath: string;
|
|
1353
1353
|
}
|
|
1354
1354
|
|
|
1355
1355
|
/**
|
|
1356
1356
|
* 保持场景/预制体选项
|
|
1357
1357
|
*/
|
|
1358
|
-
declare interface ISaveOptions {
|
|
1358
|
+
export declare interface ISaveOptions {
|
|
1359
1359
|
urlOrUUID?: string;
|
|
1360
1360
|
}
|
|
1361
1361
|
|
|
1362
1362
|
/**
|
|
1363
1363
|
* 场景信息
|
|
1364
1364
|
*/
|
|
1365
|
-
declare interface IScene extends IBaseIdentifier {
|
|
1365
|
+
export declare interface IScene extends IBaseIdentifier {
|
|
1366
1366
|
name: string;
|
|
1367
1367
|
prefab: IPrefabInfo | null;
|
|
1368
1368
|
children: INode[];
|
|
1369
1369
|
components: IComponentIdentifier[];
|
|
1370
1370
|
}
|
|
1371
1371
|
|
|
1372
|
-
declare interface ISceneMouseEvent {
|
|
1372
|
+
export declare interface ISceneMouseEvent {
|
|
1373
1373
|
x: number;
|
|
1374
1374
|
y: number;
|
|
1375
1375
|
clientX: number;
|
|
@@ -1394,7 +1394,7 @@ declare interface ISceneMouseEvent {
|
|
|
1394
1394
|
handleName?: string;
|
|
1395
1395
|
}
|
|
1396
1396
|
|
|
1397
|
-
declare interface ISceneViewService {
|
|
1397
|
+
export declare interface ISceneViewService {
|
|
1398
1398
|
init(): void;
|
|
1399
1399
|
initFromConfig(): Promise<void>;
|
|
1400
1400
|
saveConfig(): Promise<void>;
|
|
@@ -1406,7 +1406,7 @@ declare interface ISceneViewService {
|
|
|
1406
1406
|
onComponentRemoved(comp: Component): void;
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
|
-
declare interface IScriptService extends IServiceEvents {
|
|
1409
|
+
export declare interface IScriptService extends IServiceEvents {
|
|
1410
1410
|
investigatePackerDriver(): Promise<void>;
|
|
1411
1411
|
loadScript(): Promise<void>;
|
|
1412
1412
|
removeScript(): Promise<void>;
|
|
@@ -1417,7 +1417,7 @@ declare interface IScriptService extends IServiceEvents {
|
|
|
1417
1417
|
suspend(condition: Promise<any>): void;
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
|
-
declare interface ISelectionService {
|
|
1420
|
+
export declare interface ISelectionService {
|
|
1421
1421
|
select(uuid: string): void;
|
|
1422
1422
|
unselect(uuid: string): void;
|
|
1423
1423
|
clear(): void;
|
|
@@ -1426,7 +1426,7 @@ declare interface ISelectionService {
|
|
|
1426
1426
|
reset(): void;
|
|
1427
1427
|
}
|
|
1428
1428
|
|
|
1429
|
-
declare interface IServiceEvents {
|
|
1429
|
+
export declare interface IServiceEvents {
|
|
1430
1430
|
onEditorOpened?(): void;
|
|
1431
1431
|
onEditorReload?(): void;
|
|
1432
1432
|
onEditorClosed?(): void;
|
|
@@ -1477,7 +1477,7 @@ export declare interface IServiceManager {
|
|
|
1477
1477
|
/**
|
|
1478
1478
|
* CLI 设置组件属性的选项
|
|
1479
1479
|
*/
|
|
1480
|
-
declare interface ISetPropertyOptions {
|
|
1480
|
+
export declare interface ISetPropertyOptions {
|
|
1481
1481
|
componentPath: string;
|
|
1482
1482
|
properties: {
|
|
1483
1483
|
[key: string]: null | undefined | number | boolean | string | object | Array<unknown>;
|
|
@@ -1488,14 +1488,14 @@ declare interface ISetPropertyOptions {
|
|
|
1488
1488
|
/**
|
|
1489
1489
|
* 编辑器设置组件属性的选项
|
|
1490
1490
|
*/
|
|
1491
|
-
declare interface ISetPropertyOptionsForEditor {
|
|
1491
|
+
export declare interface ISetPropertyOptionsForEditor {
|
|
1492
1492
|
uuid: string;
|
|
1493
1493
|
path: string;
|
|
1494
1494
|
dump: IProperty;
|
|
1495
1495
|
record?: boolean;
|
|
1496
1496
|
}
|
|
1497
1497
|
|
|
1498
|
-
declare type ISupportCreateCCType =
|
|
1498
|
+
export declare type ISupportCreateCCType =
|
|
1499
1499
|
| 'cc.AnimationClip' // 动画剪辑
|
|
1500
1500
|
| 'cc.Script' // 脚本(TypeScript/JavaScript)
|
|
1501
1501
|
| 'cc.SpriteAtlas' // 精灵图集(自动图集)
|
|
@@ -1513,13 +1513,13 @@ declare type ISupportCreateCCType =
|
|
|
1513
1513
|
| 'cc.AnimationGraphVariant';
|
|
1514
1514
|
|
|
1515
1515
|
/** 支持创建的资源类型(从常量数组派生) */
|
|
1516
|
-
declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
|
|
1516
|
+
export declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
|
|
1517
1517
|
|
|
1518
|
-
declare interface ITargetInfo {
|
|
1518
|
+
export declare interface ITargetInfo {
|
|
1519
1519
|
localID: string[];
|
|
1520
1520
|
}
|
|
1521
1521
|
|
|
1522
|
-
declare interface ITargetOverrideInfo {
|
|
1522
|
+
export declare interface ITargetOverrideInfo {
|
|
1523
1523
|
source: IComponentIdentifier | INodeIdentifier | null;
|
|
1524
1524
|
sourceInfo: ITargetInfo | null;
|
|
1525
1525
|
propertyPath: string[];
|
|
@@ -1527,7 +1527,7 @@ declare interface ITargetOverrideInfo {
|
|
|
1527
1527
|
targetInfo: ITargetInfo | null;
|
|
1528
1528
|
}
|
|
1529
1529
|
|
|
1530
|
-
declare interface IUndoService {
|
|
1530
|
+
export declare interface IUndoService {
|
|
1531
1531
|
beginRecording(uuids: string[], options?: any): string;
|
|
1532
1532
|
endRecording(commandId: string): void;
|
|
1533
1533
|
cancelRecording(commandId: string): void;
|
|
@@ -1538,31 +1538,31 @@ declare interface IUndoService {
|
|
|
1538
1538
|
isDirty(): boolean;
|
|
1539
1539
|
}
|
|
1540
1540
|
|
|
1541
|
-
declare interface IUnpackPrefabInstanceParams {
|
|
1541
|
+
export declare interface IUnpackPrefabInstanceParams {
|
|
1542
1542
|
/** 要解耦的预制体实例节点 */
|
|
1543
1543
|
nodePath: string;
|
|
1544
1544
|
/** 递归解耦所有子预制体 */
|
|
1545
1545
|
recursive?: boolean;
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
|
-
declare interface IUpdateNodeParams {
|
|
1548
|
+
export declare interface IUpdateNodeParams {
|
|
1549
1549
|
path: string;
|
|
1550
1550
|
name?: string;
|
|
1551
1551
|
properties?: Partial<INodeProperties>;
|
|
1552
1552
|
}
|
|
1553
1553
|
|
|
1554
|
-
declare interface IUpdateNodeResult {
|
|
1554
|
+
export declare interface IUpdateNodeResult {
|
|
1555
1555
|
path: string;
|
|
1556
1556
|
}
|
|
1557
1557
|
|
|
1558
|
-
declare interface IVec3 {
|
|
1558
|
+
export declare interface IVec3 {
|
|
1559
1559
|
x: number;
|
|
1560
1560
|
y: number;
|
|
1561
1561
|
z: number;
|
|
1562
1562
|
}
|
|
1563
1563
|
|
|
1564
1564
|
/** glTF 虚拟子资源的通用 userData */
|
|
1565
|
-
declare interface IVirtualAssetUserData {
|
|
1565
|
+
export declare interface IVirtualAssetUserData {
|
|
1566
1566
|
/** 在 glTF 文件中的索引 */
|
|
1567
1567
|
gltfIndex?: number;
|
|
1568
1568
|
/** mesh 资源的面数 */
|
|
@@ -1578,20 +1578,20 @@ declare interface IVirtualAssetUserData {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
|
|
1580
1580
|
/** JavaScript 资源的 userData */
|
|
1581
|
-
declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
|
|
1581
|
+
export declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
|
|
1582
1582
|
|
|
1583
1583
|
/** JSON 资源的 userData */
|
|
1584
|
-
declare interface JsonAssetUserData {
|
|
1584
|
+
export declare interface JsonAssetUserData {
|
|
1585
1585
|
/** 是否启用 JSON5 解析 */
|
|
1586
1586
|
json5?: boolean;
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
1589
|
-
declare interface KerningDict {
|
|
1589
|
+
export declare interface KerningDict {
|
|
1590
1590
|
[key: number]: number;
|
|
1591
1591
|
}
|
|
1592
1592
|
|
|
1593
1593
|
/** 标签图集资源的 userData */
|
|
1594
|
-
declare interface LabelAtlasAssetUserData {
|
|
1594
|
+
export declare interface LabelAtlasAssetUserData {
|
|
1595
1595
|
itemWidth: number;
|
|
1596
1596
|
itemHeight: number;
|
|
1597
1597
|
startChar: string;
|
|
@@ -1600,14 +1600,14 @@ declare interface LabelAtlasAssetUserData {
|
|
|
1600
1600
|
_fntConfig: FntData;
|
|
1601
1601
|
}
|
|
1602
1602
|
|
|
1603
|
-
declare interface LODsOption {
|
|
1603
|
+
export declare interface LODsOption {
|
|
1604
1604
|
// 屏占比
|
|
1605
1605
|
screenRatio: number;
|
|
1606
1606
|
// 和 lod0 的减面比
|
|
1607
1607
|
faceCount: number;
|
|
1608
1608
|
}
|
|
1609
1609
|
|
|
1610
|
-
declare interface Mat4 {
|
|
1610
|
+
export declare interface Mat4 {
|
|
1611
1611
|
m00: number;
|
|
1612
1612
|
m01: number;
|
|
1613
1613
|
m02: number;
|
|
@@ -1629,26 +1629,26 @@ declare interface Mat4 {
|
|
|
1629
1629
|
m15: number;
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
1632
|
-
declare interface MeshClusterOptions {
|
|
1632
|
+
export declare interface MeshClusterOptions {
|
|
1633
1633
|
enable: boolean;
|
|
1634
1634
|
coneCluster?: boolean;
|
|
1635
1635
|
}
|
|
1636
1636
|
|
|
1637
|
-
declare interface MeshCompressOptions {
|
|
1637
|
+
export declare interface MeshCompressOptions {
|
|
1638
1638
|
enable: boolean;
|
|
1639
1639
|
encode?: boolean;
|
|
1640
1640
|
compress?: boolean;
|
|
1641
1641
|
quantize?: boolean;
|
|
1642
1642
|
}
|
|
1643
1643
|
|
|
1644
|
-
declare interface MeshOptimizeOptions {
|
|
1644
|
+
export declare interface MeshOptimizeOptions {
|
|
1645
1645
|
enable: boolean;
|
|
1646
1646
|
vertexCache?: boolean;
|
|
1647
1647
|
vertexFetch?: boolean;
|
|
1648
1648
|
overdraw?: boolean;
|
|
1649
1649
|
}
|
|
1650
1650
|
|
|
1651
|
-
declare interface MeshOptimizerOption {
|
|
1651
|
+
export declare interface MeshOptimizerOption {
|
|
1652
1652
|
// 是否启用此功能
|
|
1653
1653
|
enable: boolean;
|
|
1654
1654
|
// 减面算法,默认 simplify
|
|
@@ -1658,7 +1658,7 @@ declare interface MeshOptimizerOption {
|
|
|
1658
1658
|
gltfpackOptions?: GltfpackOptions;
|
|
1659
1659
|
}
|
|
1660
1660
|
|
|
1661
|
-
declare interface MeshSimplifyOptions {
|
|
1661
|
+
export declare interface MeshSimplifyOptions {
|
|
1662
1662
|
enable: boolean;
|
|
1663
1663
|
targetRatio?: number;
|
|
1664
1664
|
autoErrorRate?: boolean;
|
|
@@ -1666,7 +1666,7 @@ declare interface MeshSimplifyOptions {
|
|
|
1666
1666
|
lockBoundary?: boolean;
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
|
-
declare enum MobilityMode {
|
|
1669
|
+
export declare enum MobilityMode {
|
|
1670
1670
|
/**
|
|
1671
1671
|
* @en Static node
|
|
1672
1672
|
* @zh 静态节点
|
|
@@ -1684,7 +1684,7 @@ declare enum MobilityMode {
|
|
|
1684
1684
|
Movable = 2
|
|
1685
1685
|
}
|
|
1686
1686
|
|
|
1687
|
-
declare enum NodeEventType {
|
|
1687
|
+
export declare enum NodeEventType {
|
|
1688
1688
|
TRANSFORM_CHANGED = 'transform-changed',// 节点改变位置、旋转或缩放事件
|
|
1689
1689
|
SIZE_CHANGED = 'size-changed',// 当节点尺寸改变时触发的事件
|
|
1690
1690
|
ANCHOR_CHANGED = 'anchor-changed',// 当节点锚点改变时触发的事件
|
|
@@ -1704,7 +1704,7 @@ declare enum NodeEventType {
|
|
|
1704
1704
|
RESET_COMPONENT = 'reset-component'
|
|
1705
1705
|
}
|
|
1706
1706
|
|
|
1707
|
-
declare enum NodeType {
|
|
1707
|
+
export declare enum NodeType {
|
|
1708
1708
|
EMPTY = 'Empty',// 空节点
|
|
1709
1709
|
TERRAIN = 'Terrain',// 地形节点
|
|
1710
1710
|
CAMERA = 'Camera',// 摄像机节点(需要用过 TWorkMode 来区分 2D 和 3D)
|
|
@@ -1744,7 +1744,7 @@ declare enum NodeType {
|
|
|
1744
1744
|
REFLECTION_LIGHT = 'Light-Reflection-Probe'
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
|
-
declare enum NormalImportSetting {
|
|
1747
|
+
export declare enum NormalImportSetting {
|
|
1748
1748
|
/**
|
|
1749
1749
|
* 如果模型文件中包含法线信息则导出法线,否则不导出法线。
|
|
1750
1750
|
*/
|
|
@@ -1763,16 +1763,16 @@ declare enum NormalImportSetting {
|
|
|
1763
1763
|
recalculate = 3
|
|
1764
1764
|
}
|
|
1765
1765
|
|
|
1766
|
-
declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
|
|
1766
|
+
export declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
|
|
1767
1767
|
|
|
1768
|
-
declare enum OptimizationPolicy {
|
|
1768
|
+
export declare enum OptimizationPolicy {
|
|
1769
1769
|
AUTO = 0,
|
|
1770
1770
|
SINGLE_INSTANCE = 1,
|
|
1771
1771
|
MULTI_INSTANCE = 2
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
1774
|
/** 粒子资源的 userData */
|
|
1775
|
-
declare interface ParticleAssetUserData {
|
|
1775
|
+
export declare interface ParticleAssetUserData {
|
|
1776
1776
|
totalParticles: number;
|
|
1777
1777
|
life: number;
|
|
1778
1778
|
lifeVar: number;
|
|
@@ -1816,7 +1816,7 @@ declare interface ParticleAssetUserData {
|
|
|
1816
1816
|
}
|
|
1817
1817
|
|
|
1818
1818
|
/** JavaScript 插件脚本的 userData */
|
|
1819
|
-
declare interface PluginScriptUserData {
|
|
1819
|
+
export declare interface PluginScriptUserData {
|
|
1820
1820
|
isPlugin: true;
|
|
1821
1821
|
/** 界面没有开放给用户。默认开启 */
|
|
1822
1822
|
experimentalHideCommonJs?: boolean;
|
|
@@ -1834,14 +1834,14 @@ declare interface PluginScriptUserData {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
|
|
1836
1836
|
/** 场景/预制体资源的 userData */
|
|
1837
|
-
declare interface PrefabAssetUserData {
|
|
1837
|
+
export declare interface PrefabAssetUserData {
|
|
1838
1838
|
/** 是否为持久节点 */
|
|
1839
1839
|
persistent?: boolean;
|
|
1840
1840
|
/** 同步节点名称 */
|
|
1841
1841
|
syncNodeName?: string;
|
|
1842
1842
|
}
|
|
1843
1843
|
|
|
1844
|
-
declare enum PrefabState {
|
|
1844
|
+
export declare enum PrefabState {
|
|
1845
1845
|
NotAPrefab = 0,// Normal node, not a Prefab
|
|
1846
1846
|
PrefabChild = 1,// Child node of a Prefab, without PrefabInstance
|
|
1847
1847
|
PrefabInstance = 2,// Root node of a Prefab that contains a PrefabInstance
|
|
@@ -1851,7 +1851,7 @@ declare enum PrefabState {
|
|
|
1851
1851
|
/**
|
|
1852
1852
|
* 重载结果
|
|
1853
1853
|
*/
|
|
1854
|
-
declare enum ReloadResult {
|
|
1854
|
+
export declare enum ReloadResult {
|
|
1855
1855
|
SUCCESS = 0,
|
|
1856
1856
|
FAILED = 1,
|
|
1857
1857
|
QUEUED = 2,
|
|
@@ -1861,13 +1861,13 @@ declare enum ReloadResult {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
|
|
1863
1863
|
/** 渲染纹理资源的 userData */
|
|
1864
|
-
declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
|
|
1864
|
+
export declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
|
|
1865
1865
|
width: number;
|
|
1866
1866
|
height: number;
|
|
1867
1867
|
}
|
|
1868
1868
|
|
|
1869
1869
|
/** 渲染纹理精灵帧的 userData */
|
|
1870
|
-
declare interface RtSpriteFrameAssetUserData {
|
|
1870
|
+
export declare interface RtSpriteFrameAssetUserData {
|
|
1871
1871
|
/** 图片 UUID 或数据库 URI */
|
|
1872
1872
|
imageUuidOrDatabaseUri: string;
|
|
1873
1873
|
/** 宽度 */
|
|
@@ -1879,20 +1879,20 @@ declare interface RtSpriteFrameAssetUserData {
|
|
|
1879
1879
|
/**
|
|
1880
1880
|
* 场景模板类型
|
|
1881
1881
|
*/
|
|
1882
|
-
declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
|
|
1882
|
+
export declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
|
|
1883
1883
|
|
|
1884
|
-
declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
|
|
1884
|
+
export declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
|
|
1885
1885
|
|
|
1886
|
-
declare type SceneKeyboardEvent = 'keydown' | 'keyup';
|
|
1886
|
+
export declare type SceneKeyboardEvent = 'keydown' | 'keyup';
|
|
1887
1887
|
|
|
1888
|
-
declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
|
|
1888
|
+
export declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
|
|
1889
1889
|
|
|
1890
1890
|
/** JavaScript 脚本模块的 userData */
|
|
1891
|
-
declare interface ScriptModuleUserData {
|
|
1891
|
+
export declare interface ScriptModuleUserData {
|
|
1892
1892
|
isPlugin: false;
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
|
-
declare interface SerializedAssetFinder {
|
|
1895
|
+
export declare interface SerializedAssetFinder {
|
|
1896
1896
|
meshes?: Array<string | null>;
|
|
1897
1897
|
animations?: Array<string | null>;
|
|
1898
1898
|
skeletons?: Array<string | null>;
|
|
@@ -1901,7 +1901,7 @@ declare interface SerializedAssetFinder {
|
|
|
1901
1901
|
scenes?: Array<string | null>;
|
|
1902
1902
|
}
|
|
1903
1903
|
|
|
1904
|
-
declare interface SimplifyOptions {
|
|
1904
|
+
export declare interface SimplifyOptions {
|
|
1905
1905
|
// 压缩比例
|
|
1906
1906
|
targetRatio?: number;
|
|
1907
1907
|
// 防止破面
|
|
@@ -1913,13 +1913,13 @@ declare interface SimplifyOptions {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
|
|
1915
1915
|
/** Spine 资源的 userData */
|
|
1916
|
-
declare interface SpineAssetUserData {
|
|
1916
|
+
export declare interface SpineAssetUserData {
|
|
1917
1917
|
/** 图集资源的 UUID */
|
|
1918
1918
|
atlasUuid: string;
|
|
1919
1919
|
}
|
|
1920
1920
|
|
|
1921
1921
|
/** 精灵图集资源的 userData */
|
|
1922
|
-
declare interface SpriteAtlasAssetUserData {
|
|
1922
|
+
export declare interface SpriteAtlasAssetUserData {
|
|
1923
1923
|
/** 图集纹理名称 */
|
|
1924
1924
|
atlasTextureName: string;
|
|
1925
1925
|
/** 纹理 UUID */
|
|
@@ -1932,12 +1932,12 @@ declare interface SpriteAtlasAssetUserData {
|
|
|
1932
1932
|
format: number;
|
|
1933
1933
|
}
|
|
1934
1934
|
|
|
1935
|
-
declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
|
|
1935
|
+
export declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
|
|
1936
1936
|
isUuid?: boolean;
|
|
1937
1937
|
imageUuidOrDatabaseUri: string;
|
|
1938
1938
|
}
|
|
1939
1939
|
|
|
1940
|
-
declare interface SpriteFrameBaseAssetUserData {
|
|
1940
|
+
export declare interface SpriteFrameBaseAssetUserData {
|
|
1941
1941
|
trimType?: string;
|
|
1942
1942
|
trimThreshold: number;
|
|
1943
1943
|
rotated: boolean;
|
|
@@ -1961,7 +1961,7 @@ declare interface SpriteFrameBaseAssetUserData {
|
|
|
1961
1961
|
vertices: SpriteFrameVertices;
|
|
1962
1962
|
}
|
|
1963
1963
|
|
|
1964
|
-
declare interface SpriteFrameVertices {
|
|
1964
|
+
export declare interface SpriteFrameVertices {
|
|
1965
1965
|
rawPosition: number[];
|
|
1966
1966
|
indexes: number[];
|
|
1967
1967
|
uv: number[];
|
|
@@ -1972,9 +1972,9 @@ declare interface SpriteFrameVertices {
|
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
1974
|
/** 支持创建的资源类型常量数组(用于 Zod enum 和 TypeScript type) */
|
|
1975
|
-
declare const SUPPORT_CREATE_TYPES: readonly ['animation-clip', 'typescript', 'auto-atlas', 'effect', 'scene', 'prefab', 'material', 'terrain', 'physics-material', 'label-atlas', 'render-texture', 'directory', 'effect-header'];
|
|
1975
|
+
export declare const SUPPORT_CREATE_TYPES: readonly ['animation-clip', 'typescript', 'auto-atlas', 'effect', 'scene', 'prefab', 'material', 'terrain', 'physics-material', 'label-atlas', 'render-texture', 'directory', 'effect-header'];
|
|
1976
1976
|
|
|
1977
|
-
declare enum TangentImportSetting {
|
|
1977
|
+
export declare enum TangentImportSetting {
|
|
1978
1978
|
/**
|
|
1979
1979
|
* 不在导出的网格中包含正切信息。
|
|
1980
1980
|
*/
|
|
@@ -1993,16 +1993,16 @@ declare enum TangentImportSetting {
|
|
|
1993
1993
|
recalculate = 3
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
|
-
declare type TEditorEntity = IScene | INode;
|
|
1996
|
+
export declare type TEditorEntity = IScene | INode;
|
|
1997
1997
|
|
|
1998
|
-
declare type TEditorInstance = Scene | Node_2;
|
|
1998
|
+
export declare type TEditorInstance = Scene | Node_2;
|
|
1999
1999
|
|
|
2000
|
-
declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
|
|
2000
|
+
export declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
|
|
2001
2001
|
isUuid?: boolean;
|
|
2002
2002
|
imageUuidOrDatabaseUri?: string;
|
|
2003
2003
|
}
|
|
2004
2004
|
|
|
2005
|
-
declare interface TextureBaseAssetUserData {
|
|
2005
|
+
export declare interface TextureBaseAssetUserData {
|
|
2006
2006
|
wrapModeS: WrapMode;
|
|
2007
2007
|
wrapModeT: WrapMode;
|
|
2008
2008
|
minfilter: Filter;
|
|
@@ -2011,7 +2011,7 @@ declare interface TextureBaseAssetUserData {
|
|
|
2011
2011
|
anisotropy: number;
|
|
2012
2012
|
}
|
|
2013
2013
|
|
|
2014
|
-
declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
2014
|
+
export declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
2015
2015
|
imageDatabaseUri?: string;
|
|
2016
2016
|
isRGBE: boolean;
|
|
2017
2017
|
|
|
@@ -2032,26 +2032,26 @@ declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
|
2032
2032
|
bottom?: string;
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
|
-
declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
|
|
2035
|
+
export declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
|
|
2036
2036
|
|
|
2037
|
-
declare interface Vec2 {
|
|
2037
|
+
export declare interface Vec2 {
|
|
2038
2038
|
x: number;
|
|
2039
2039
|
y: number;
|
|
2040
2040
|
}
|
|
2041
2041
|
|
|
2042
|
-
declare interface Vec3 {
|
|
2042
|
+
export declare interface Vec3 {
|
|
2043
2043
|
x: number;
|
|
2044
2044
|
y: number;
|
|
2045
2045
|
z: number;
|
|
2046
2046
|
}
|
|
2047
2047
|
|
|
2048
|
-
declare interface Vec4 {
|
|
2048
|
+
export declare interface Vec4 {
|
|
2049
2049
|
x: number;
|
|
2050
2050
|
y: number;
|
|
2051
2051
|
z: number;
|
|
2052
2052
|
w: number;
|
|
2053
2053
|
}
|
|
2054
2054
|
|
|
2055
|
-
declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
|
|
2055
|
+
export declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
|
|
2056
2056
|
|
|
2057
2057
|
export { };
|