@cocos/cocos-cli-types 0.0.1-alpha.23.1 → 0.0.1-alpha.24.1
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 +288 -292
- package/cli.d.ts +151 -149
- package/configuration.d.ts +1 -1
- package/engine.d.ts +1 -1
- package/index.d.ts +303 -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;
|
|
@@ -1385,6 +1385,8 @@ declare interface ISceneMouseEvent {
|
|
|
1385
1385
|
rightButton: boolean;
|
|
1386
1386
|
button: number;
|
|
1387
1387
|
buttons: number;
|
|
1388
|
+
movementX: number;
|
|
1389
|
+
movementY: number;
|
|
1388
1390
|
ctrlKey: boolean;
|
|
1389
1391
|
shiftKey: boolean;
|
|
1390
1392
|
altKey: boolean;
|
|
@@ -1394,7 +1396,7 @@ declare interface ISceneMouseEvent {
|
|
|
1394
1396
|
handleName?: string;
|
|
1395
1397
|
}
|
|
1396
1398
|
|
|
1397
|
-
declare interface ISceneViewService {
|
|
1399
|
+
export declare interface ISceneViewService {
|
|
1398
1400
|
init(): void;
|
|
1399
1401
|
initFromConfig(): Promise<void>;
|
|
1400
1402
|
saveConfig(): Promise<void>;
|
|
@@ -1406,7 +1408,7 @@ declare interface ISceneViewService {
|
|
|
1406
1408
|
onComponentRemoved(comp: Component): void;
|
|
1407
1409
|
}
|
|
1408
1410
|
|
|
1409
|
-
declare interface IScriptService extends IServiceEvents {
|
|
1411
|
+
export declare interface IScriptService extends IServiceEvents {
|
|
1410
1412
|
investigatePackerDriver(): Promise<void>;
|
|
1411
1413
|
loadScript(): Promise<void>;
|
|
1412
1414
|
removeScript(): Promise<void>;
|
|
@@ -1417,7 +1419,7 @@ declare interface IScriptService extends IServiceEvents {
|
|
|
1417
1419
|
suspend(condition: Promise<any>): void;
|
|
1418
1420
|
}
|
|
1419
1421
|
|
|
1420
|
-
declare interface ISelectionService {
|
|
1422
|
+
export declare interface ISelectionService {
|
|
1421
1423
|
select(uuid: string): void;
|
|
1422
1424
|
unselect(uuid: string): void;
|
|
1423
1425
|
clear(): void;
|
|
@@ -1426,7 +1428,7 @@ declare interface ISelectionService {
|
|
|
1426
1428
|
reset(): void;
|
|
1427
1429
|
}
|
|
1428
1430
|
|
|
1429
|
-
declare interface IServiceEvents {
|
|
1431
|
+
export declare interface IServiceEvents {
|
|
1430
1432
|
onEditorOpened?(): void;
|
|
1431
1433
|
onEditorReload?(): void;
|
|
1432
1434
|
onEditorClosed?(): void;
|
|
@@ -1477,7 +1479,7 @@ export declare interface IServiceManager {
|
|
|
1477
1479
|
/**
|
|
1478
1480
|
* CLI 设置组件属性的选项
|
|
1479
1481
|
*/
|
|
1480
|
-
declare interface ISetPropertyOptions {
|
|
1482
|
+
export declare interface ISetPropertyOptions {
|
|
1481
1483
|
componentPath: string;
|
|
1482
1484
|
properties: {
|
|
1483
1485
|
[key: string]: null | undefined | number | boolean | string | object | Array<unknown>;
|
|
@@ -1488,14 +1490,14 @@ declare interface ISetPropertyOptions {
|
|
|
1488
1490
|
/**
|
|
1489
1491
|
* 编辑器设置组件属性的选项
|
|
1490
1492
|
*/
|
|
1491
|
-
declare interface ISetPropertyOptionsForEditor {
|
|
1493
|
+
export declare interface ISetPropertyOptionsForEditor {
|
|
1492
1494
|
uuid: string;
|
|
1493
1495
|
path: string;
|
|
1494
1496
|
dump: IProperty;
|
|
1495
1497
|
record?: boolean;
|
|
1496
1498
|
}
|
|
1497
1499
|
|
|
1498
|
-
declare type ISupportCreateCCType =
|
|
1500
|
+
export declare type ISupportCreateCCType =
|
|
1499
1501
|
| 'cc.AnimationClip' // 动画剪辑
|
|
1500
1502
|
| 'cc.Script' // 脚本(TypeScript/JavaScript)
|
|
1501
1503
|
| 'cc.SpriteAtlas' // 精灵图集(自动图集)
|
|
@@ -1513,13 +1515,13 @@ declare type ISupportCreateCCType =
|
|
|
1513
1515
|
| 'cc.AnimationGraphVariant';
|
|
1514
1516
|
|
|
1515
1517
|
/** 支持创建的资源类型(从常量数组派生) */
|
|
1516
|
-
declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
|
|
1518
|
+
export declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
|
|
1517
1519
|
|
|
1518
|
-
declare interface ITargetInfo {
|
|
1520
|
+
export declare interface ITargetInfo {
|
|
1519
1521
|
localID: string[];
|
|
1520
1522
|
}
|
|
1521
1523
|
|
|
1522
|
-
declare interface ITargetOverrideInfo {
|
|
1524
|
+
export declare interface ITargetOverrideInfo {
|
|
1523
1525
|
source: IComponentIdentifier | INodeIdentifier | null;
|
|
1524
1526
|
sourceInfo: ITargetInfo | null;
|
|
1525
1527
|
propertyPath: string[];
|
|
@@ -1527,7 +1529,7 @@ declare interface ITargetOverrideInfo {
|
|
|
1527
1529
|
targetInfo: ITargetInfo | null;
|
|
1528
1530
|
}
|
|
1529
1531
|
|
|
1530
|
-
declare interface IUndoService {
|
|
1532
|
+
export declare interface IUndoService {
|
|
1531
1533
|
beginRecording(uuids: string[], options?: any): string;
|
|
1532
1534
|
endRecording(commandId: string): void;
|
|
1533
1535
|
cancelRecording(commandId: string): void;
|
|
@@ -1538,31 +1540,31 @@ declare interface IUndoService {
|
|
|
1538
1540
|
isDirty(): boolean;
|
|
1539
1541
|
}
|
|
1540
1542
|
|
|
1541
|
-
declare interface IUnpackPrefabInstanceParams {
|
|
1543
|
+
export declare interface IUnpackPrefabInstanceParams {
|
|
1542
1544
|
/** 要解耦的预制体实例节点 */
|
|
1543
1545
|
nodePath: string;
|
|
1544
1546
|
/** 递归解耦所有子预制体 */
|
|
1545
1547
|
recursive?: boolean;
|
|
1546
1548
|
}
|
|
1547
1549
|
|
|
1548
|
-
declare interface IUpdateNodeParams {
|
|
1550
|
+
export declare interface IUpdateNodeParams {
|
|
1549
1551
|
path: string;
|
|
1550
1552
|
name?: string;
|
|
1551
1553
|
properties?: Partial<INodeProperties>;
|
|
1552
1554
|
}
|
|
1553
1555
|
|
|
1554
|
-
declare interface IUpdateNodeResult {
|
|
1556
|
+
export declare interface IUpdateNodeResult {
|
|
1555
1557
|
path: string;
|
|
1556
1558
|
}
|
|
1557
1559
|
|
|
1558
|
-
declare interface IVec3 {
|
|
1560
|
+
export declare interface IVec3 {
|
|
1559
1561
|
x: number;
|
|
1560
1562
|
y: number;
|
|
1561
1563
|
z: number;
|
|
1562
1564
|
}
|
|
1563
1565
|
|
|
1564
1566
|
/** glTF 虚拟子资源的通用 userData */
|
|
1565
|
-
declare interface IVirtualAssetUserData {
|
|
1567
|
+
export declare interface IVirtualAssetUserData {
|
|
1566
1568
|
/** 在 glTF 文件中的索引 */
|
|
1567
1569
|
gltfIndex?: number;
|
|
1568
1570
|
/** mesh 资源的面数 */
|
|
@@ -1578,20 +1580,20 @@ declare interface IVirtualAssetUserData {
|
|
|
1578
1580
|
}
|
|
1579
1581
|
|
|
1580
1582
|
/** JavaScript 资源的 userData */
|
|
1581
|
-
declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
|
|
1583
|
+
export declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
|
|
1582
1584
|
|
|
1583
1585
|
/** JSON 资源的 userData */
|
|
1584
|
-
declare interface JsonAssetUserData {
|
|
1586
|
+
export declare interface JsonAssetUserData {
|
|
1585
1587
|
/** 是否启用 JSON5 解析 */
|
|
1586
1588
|
json5?: boolean;
|
|
1587
1589
|
}
|
|
1588
1590
|
|
|
1589
|
-
declare interface KerningDict {
|
|
1591
|
+
export declare interface KerningDict {
|
|
1590
1592
|
[key: number]: number;
|
|
1591
1593
|
}
|
|
1592
1594
|
|
|
1593
1595
|
/** 标签图集资源的 userData */
|
|
1594
|
-
declare interface LabelAtlasAssetUserData {
|
|
1596
|
+
export declare interface LabelAtlasAssetUserData {
|
|
1595
1597
|
itemWidth: number;
|
|
1596
1598
|
itemHeight: number;
|
|
1597
1599
|
startChar: string;
|
|
@@ -1600,14 +1602,14 @@ declare interface LabelAtlasAssetUserData {
|
|
|
1600
1602
|
_fntConfig: FntData;
|
|
1601
1603
|
}
|
|
1602
1604
|
|
|
1603
|
-
declare interface LODsOption {
|
|
1605
|
+
export declare interface LODsOption {
|
|
1604
1606
|
// 屏占比
|
|
1605
1607
|
screenRatio: number;
|
|
1606
1608
|
// 和 lod0 的减面比
|
|
1607
1609
|
faceCount: number;
|
|
1608
1610
|
}
|
|
1609
1611
|
|
|
1610
|
-
declare interface Mat4 {
|
|
1612
|
+
export declare interface Mat4 {
|
|
1611
1613
|
m00: number;
|
|
1612
1614
|
m01: number;
|
|
1613
1615
|
m02: number;
|
|
@@ -1629,26 +1631,26 @@ declare interface Mat4 {
|
|
|
1629
1631
|
m15: number;
|
|
1630
1632
|
}
|
|
1631
1633
|
|
|
1632
|
-
declare interface MeshClusterOptions {
|
|
1634
|
+
export declare interface MeshClusterOptions {
|
|
1633
1635
|
enable: boolean;
|
|
1634
1636
|
coneCluster?: boolean;
|
|
1635
1637
|
}
|
|
1636
1638
|
|
|
1637
|
-
declare interface MeshCompressOptions {
|
|
1639
|
+
export declare interface MeshCompressOptions {
|
|
1638
1640
|
enable: boolean;
|
|
1639
1641
|
encode?: boolean;
|
|
1640
1642
|
compress?: boolean;
|
|
1641
1643
|
quantize?: boolean;
|
|
1642
1644
|
}
|
|
1643
1645
|
|
|
1644
|
-
declare interface MeshOptimizeOptions {
|
|
1646
|
+
export declare interface MeshOptimizeOptions {
|
|
1645
1647
|
enable: boolean;
|
|
1646
1648
|
vertexCache?: boolean;
|
|
1647
1649
|
vertexFetch?: boolean;
|
|
1648
1650
|
overdraw?: boolean;
|
|
1649
1651
|
}
|
|
1650
1652
|
|
|
1651
|
-
declare interface MeshOptimizerOption {
|
|
1653
|
+
export declare interface MeshOptimizerOption {
|
|
1652
1654
|
// 是否启用此功能
|
|
1653
1655
|
enable: boolean;
|
|
1654
1656
|
// 减面算法,默认 simplify
|
|
@@ -1658,7 +1660,7 @@ declare interface MeshOptimizerOption {
|
|
|
1658
1660
|
gltfpackOptions?: GltfpackOptions;
|
|
1659
1661
|
}
|
|
1660
1662
|
|
|
1661
|
-
declare interface MeshSimplifyOptions {
|
|
1663
|
+
export declare interface MeshSimplifyOptions {
|
|
1662
1664
|
enable: boolean;
|
|
1663
1665
|
targetRatio?: number;
|
|
1664
1666
|
autoErrorRate?: boolean;
|
|
@@ -1666,7 +1668,7 @@ declare interface MeshSimplifyOptions {
|
|
|
1666
1668
|
lockBoundary?: boolean;
|
|
1667
1669
|
}
|
|
1668
1670
|
|
|
1669
|
-
declare enum MobilityMode {
|
|
1671
|
+
export declare enum MobilityMode {
|
|
1670
1672
|
/**
|
|
1671
1673
|
* @en Static node
|
|
1672
1674
|
* @zh 静态节点
|
|
@@ -1684,7 +1686,7 @@ declare enum MobilityMode {
|
|
|
1684
1686
|
Movable = 2
|
|
1685
1687
|
}
|
|
1686
1688
|
|
|
1687
|
-
declare enum NodeEventType {
|
|
1689
|
+
export declare enum NodeEventType {
|
|
1688
1690
|
TRANSFORM_CHANGED = 'transform-changed',// 节点改变位置、旋转或缩放事件
|
|
1689
1691
|
SIZE_CHANGED = 'size-changed',// 当节点尺寸改变时触发的事件
|
|
1690
1692
|
ANCHOR_CHANGED = 'anchor-changed',// 当节点锚点改变时触发的事件
|
|
@@ -1704,7 +1706,7 @@ declare enum NodeEventType {
|
|
|
1704
1706
|
RESET_COMPONENT = 'reset-component'
|
|
1705
1707
|
}
|
|
1706
1708
|
|
|
1707
|
-
declare enum NodeType {
|
|
1709
|
+
export declare enum NodeType {
|
|
1708
1710
|
EMPTY = 'Empty',// 空节点
|
|
1709
1711
|
TERRAIN = 'Terrain',// 地形节点
|
|
1710
1712
|
CAMERA = 'Camera',// 摄像机节点(需要用过 TWorkMode 来区分 2D 和 3D)
|
|
@@ -1744,7 +1746,7 @@ declare enum NodeType {
|
|
|
1744
1746
|
REFLECTION_LIGHT = 'Light-Reflection-Probe'
|
|
1745
1747
|
}
|
|
1746
1748
|
|
|
1747
|
-
declare enum NormalImportSetting {
|
|
1749
|
+
export declare enum NormalImportSetting {
|
|
1748
1750
|
/**
|
|
1749
1751
|
* 如果模型文件中包含法线信息则导出法线,否则不导出法线。
|
|
1750
1752
|
*/
|
|
@@ -1763,16 +1765,16 @@ declare enum NormalImportSetting {
|
|
|
1763
1765
|
recalculate = 3
|
|
1764
1766
|
}
|
|
1765
1767
|
|
|
1766
|
-
declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
|
|
1768
|
+
export declare type OperationEvent = SceneDragEvent | SceneKeyboardEvent | SceneMouseEvent | 'resize';
|
|
1767
1769
|
|
|
1768
|
-
declare enum OptimizationPolicy {
|
|
1770
|
+
export declare enum OptimizationPolicy {
|
|
1769
1771
|
AUTO = 0,
|
|
1770
1772
|
SINGLE_INSTANCE = 1,
|
|
1771
1773
|
MULTI_INSTANCE = 2
|
|
1772
1774
|
}
|
|
1773
1775
|
|
|
1774
1776
|
/** 粒子资源的 userData */
|
|
1775
|
-
declare interface ParticleAssetUserData {
|
|
1777
|
+
export declare interface ParticleAssetUserData {
|
|
1776
1778
|
totalParticles: number;
|
|
1777
1779
|
life: number;
|
|
1778
1780
|
lifeVar: number;
|
|
@@ -1816,7 +1818,7 @@ declare interface ParticleAssetUserData {
|
|
|
1816
1818
|
}
|
|
1817
1819
|
|
|
1818
1820
|
/** JavaScript 插件脚本的 userData */
|
|
1819
|
-
declare interface PluginScriptUserData {
|
|
1821
|
+
export declare interface PluginScriptUserData {
|
|
1820
1822
|
isPlugin: true;
|
|
1821
1823
|
/** 界面没有开放给用户。默认开启 */
|
|
1822
1824
|
experimentalHideCommonJs?: boolean;
|
|
@@ -1834,14 +1836,14 @@ declare interface PluginScriptUserData {
|
|
|
1834
1836
|
}
|
|
1835
1837
|
|
|
1836
1838
|
/** 场景/预制体资源的 userData */
|
|
1837
|
-
declare interface PrefabAssetUserData {
|
|
1839
|
+
export declare interface PrefabAssetUserData {
|
|
1838
1840
|
/** 是否为持久节点 */
|
|
1839
1841
|
persistent?: boolean;
|
|
1840
1842
|
/** 同步节点名称 */
|
|
1841
1843
|
syncNodeName?: string;
|
|
1842
1844
|
}
|
|
1843
1845
|
|
|
1844
|
-
declare enum PrefabState {
|
|
1846
|
+
export declare enum PrefabState {
|
|
1845
1847
|
NotAPrefab = 0,// Normal node, not a Prefab
|
|
1846
1848
|
PrefabChild = 1,// Child node of a Prefab, without PrefabInstance
|
|
1847
1849
|
PrefabInstance = 2,// Root node of a Prefab that contains a PrefabInstance
|
|
@@ -1851,7 +1853,7 @@ declare enum PrefabState {
|
|
|
1851
1853
|
/**
|
|
1852
1854
|
* 重载结果
|
|
1853
1855
|
*/
|
|
1854
|
-
declare enum ReloadResult {
|
|
1856
|
+
export declare enum ReloadResult {
|
|
1855
1857
|
SUCCESS = 0,
|
|
1856
1858
|
FAILED = 1,
|
|
1857
1859
|
QUEUED = 2,
|
|
@@ -1861,13 +1863,13 @@ declare enum ReloadResult {
|
|
|
1861
1863
|
}
|
|
1862
1864
|
|
|
1863
1865
|
/** 渲染纹理资源的 userData */
|
|
1864
|
-
declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
|
|
1866
|
+
export declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
|
|
1865
1867
|
width: number;
|
|
1866
1868
|
height: number;
|
|
1867
1869
|
}
|
|
1868
1870
|
|
|
1869
1871
|
/** 渲染纹理精灵帧的 userData */
|
|
1870
|
-
declare interface RtSpriteFrameAssetUserData {
|
|
1872
|
+
export declare interface RtSpriteFrameAssetUserData {
|
|
1871
1873
|
/** 图片 UUID 或数据库 URI */
|
|
1872
1874
|
imageUuidOrDatabaseUri: string;
|
|
1873
1875
|
/** 宽度 */
|
|
@@ -1879,20 +1881,20 @@ declare interface RtSpriteFrameAssetUserData {
|
|
|
1879
1881
|
/**
|
|
1880
1882
|
* 场景模板类型
|
|
1881
1883
|
*/
|
|
1882
|
-
declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
|
|
1884
|
+
export declare const SCENE_TEMPLATE_TYPE: readonly ['2d', '3d', 'quality'];
|
|
1883
1885
|
|
|
1884
|
-
declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
|
|
1886
|
+
export declare type SceneDragEvent = 'onDragLeave' | 'onDragOver' | 'onDrop';
|
|
1885
1887
|
|
|
1886
|
-
declare type SceneKeyboardEvent = 'keydown' | 'keyup';
|
|
1888
|
+
export declare type SceneKeyboardEvent = 'keydown' | 'keyup';
|
|
1887
1889
|
|
|
1888
|
-
declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
|
|
1890
|
+
export declare type SceneMouseEvent = 'dblclick' | 'mousedown' | 'mousemove' | 'mouseup' | 'mousewheel';
|
|
1889
1891
|
|
|
1890
1892
|
/** JavaScript 脚本模块的 userData */
|
|
1891
|
-
declare interface ScriptModuleUserData {
|
|
1893
|
+
export declare interface ScriptModuleUserData {
|
|
1892
1894
|
isPlugin: false;
|
|
1893
1895
|
}
|
|
1894
1896
|
|
|
1895
|
-
declare interface SerializedAssetFinder {
|
|
1897
|
+
export declare interface SerializedAssetFinder {
|
|
1896
1898
|
meshes?: Array<string | null>;
|
|
1897
1899
|
animations?: Array<string | null>;
|
|
1898
1900
|
skeletons?: Array<string | null>;
|
|
@@ -1901,7 +1903,7 @@ declare interface SerializedAssetFinder {
|
|
|
1901
1903
|
scenes?: Array<string | null>;
|
|
1902
1904
|
}
|
|
1903
1905
|
|
|
1904
|
-
declare interface SimplifyOptions {
|
|
1906
|
+
export declare interface SimplifyOptions {
|
|
1905
1907
|
// 压缩比例
|
|
1906
1908
|
targetRatio?: number;
|
|
1907
1909
|
// 防止破面
|
|
@@ -1913,13 +1915,13 @@ declare interface SimplifyOptions {
|
|
|
1913
1915
|
}
|
|
1914
1916
|
|
|
1915
1917
|
/** Spine 资源的 userData */
|
|
1916
|
-
declare interface SpineAssetUserData {
|
|
1918
|
+
export declare interface SpineAssetUserData {
|
|
1917
1919
|
/** 图集资源的 UUID */
|
|
1918
1920
|
atlasUuid: string;
|
|
1919
1921
|
}
|
|
1920
1922
|
|
|
1921
1923
|
/** 精灵图集资源的 userData */
|
|
1922
|
-
declare interface SpriteAtlasAssetUserData {
|
|
1924
|
+
export declare interface SpriteAtlasAssetUserData {
|
|
1923
1925
|
/** 图集纹理名称 */
|
|
1924
1926
|
atlasTextureName: string;
|
|
1925
1927
|
/** 纹理 UUID */
|
|
@@ -1932,12 +1934,12 @@ declare interface SpriteAtlasAssetUserData {
|
|
|
1932
1934
|
format: number;
|
|
1933
1935
|
}
|
|
1934
1936
|
|
|
1935
|
-
declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
|
|
1937
|
+
export declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
|
|
1936
1938
|
isUuid?: boolean;
|
|
1937
1939
|
imageUuidOrDatabaseUri: string;
|
|
1938
1940
|
}
|
|
1939
1941
|
|
|
1940
|
-
declare interface SpriteFrameBaseAssetUserData {
|
|
1942
|
+
export declare interface SpriteFrameBaseAssetUserData {
|
|
1941
1943
|
trimType?: string;
|
|
1942
1944
|
trimThreshold: number;
|
|
1943
1945
|
rotated: boolean;
|
|
@@ -1961,7 +1963,7 @@ declare interface SpriteFrameBaseAssetUserData {
|
|
|
1961
1963
|
vertices: SpriteFrameVertices;
|
|
1962
1964
|
}
|
|
1963
1965
|
|
|
1964
|
-
declare interface SpriteFrameVertices {
|
|
1966
|
+
export declare interface SpriteFrameVertices {
|
|
1965
1967
|
rawPosition: number[];
|
|
1966
1968
|
indexes: number[];
|
|
1967
1969
|
uv: number[];
|
|
@@ -1972,9 +1974,9 @@ declare interface SpriteFrameVertices {
|
|
|
1972
1974
|
}
|
|
1973
1975
|
|
|
1974
1976
|
/** 支持创建的资源类型常量数组(用于 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'];
|
|
1977
|
+
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
1978
|
|
|
1977
|
-
declare enum TangentImportSetting {
|
|
1979
|
+
export declare enum TangentImportSetting {
|
|
1978
1980
|
/**
|
|
1979
1981
|
* 不在导出的网格中包含正切信息。
|
|
1980
1982
|
*/
|
|
@@ -1993,16 +1995,16 @@ declare enum TangentImportSetting {
|
|
|
1993
1995
|
recalculate = 3
|
|
1994
1996
|
}
|
|
1995
1997
|
|
|
1996
|
-
declare type TEditorEntity = IScene | INode;
|
|
1998
|
+
export declare type TEditorEntity = IScene | INode;
|
|
1997
1999
|
|
|
1998
|
-
declare type TEditorInstance = Scene | Node_2;
|
|
2000
|
+
export declare type TEditorInstance = Scene | Node_2;
|
|
1999
2001
|
|
|
2000
|
-
declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
|
|
2002
|
+
export declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
|
|
2001
2003
|
isUuid?: boolean;
|
|
2002
2004
|
imageUuidOrDatabaseUri?: string;
|
|
2003
2005
|
}
|
|
2004
2006
|
|
|
2005
|
-
declare interface TextureBaseAssetUserData {
|
|
2007
|
+
export declare interface TextureBaseAssetUserData {
|
|
2006
2008
|
wrapModeS: WrapMode;
|
|
2007
2009
|
wrapModeT: WrapMode;
|
|
2008
2010
|
minfilter: Filter;
|
|
@@ -2011,7 +2013,7 @@ declare interface TextureBaseAssetUserData {
|
|
|
2011
2013
|
anisotropy: number;
|
|
2012
2014
|
}
|
|
2013
2015
|
|
|
2014
|
-
declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
2016
|
+
export declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
2015
2017
|
imageDatabaseUri?: string;
|
|
2016
2018
|
isRGBE: boolean;
|
|
2017
2019
|
|
|
@@ -2032,26 +2034,26 @@ declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
|
2032
2034
|
bottom?: string;
|
|
2033
2035
|
}
|
|
2034
2036
|
|
|
2035
|
-
declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
|
|
2037
|
+
export declare type TSceneTemplateType = typeof SCENE_TEMPLATE_TYPE[number];
|
|
2036
2038
|
|
|
2037
|
-
declare interface Vec2 {
|
|
2039
|
+
export declare interface Vec2 {
|
|
2038
2040
|
x: number;
|
|
2039
2041
|
y: number;
|
|
2040
2042
|
}
|
|
2041
2043
|
|
|
2042
|
-
declare interface Vec3 {
|
|
2044
|
+
export declare interface Vec3 {
|
|
2043
2045
|
x: number;
|
|
2044
2046
|
y: number;
|
|
2045
2047
|
z: number;
|
|
2046
2048
|
}
|
|
2047
2049
|
|
|
2048
|
-
declare interface Vec4 {
|
|
2050
|
+
export declare interface Vec4 {
|
|
2049
2051
|
x: number;
|
|
2050
2052
|
y: number;
|
|
2051
2053
|
z: number;
|
|
2052
2054
|
w: number;
|
|
2053
2055
|
}
|
|
2054
2056
|
|
|
2055
|
-
declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
|
|
2057
|
+
export declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
|
|
2056
2058
|
|
|
2057
2059
|
export { };
|