@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/builder.d.ts
CHANGED
|
@@ -5,17 +5,17 @@ import { EventEmitter as EventEmitter_2 } from 'stream';
|
|
|
5
5
|
import type { PluginItem } from '@babel/core';
|
|
6
6
|
import { SpriteFrame } from 'cc';
|
|
7
7
|
|
|
8
|
-
declare interface AcornNode {
|
|
8
|
+
export declare interface AcornNode {
|
|
9
9
|
end: number;
|
|
10
10
|
start: number;
|
|
11
11
|
type: string;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
declare type AddonHook = string | AddonHookFunction;
|
|
14
|
+
export declare type AddonHook = string | AddonHookFunction;
|
|
15
15
|
|
|
16
|
-
declare type AddonHookFunction = (this: PluginContext) => string | Promise<string>;
|
|
16
|
+
export declare type AddonHookFunction = (this: PluginContext) => string | Promise<string>;
|
|
17
17
|
|
|
18
|
-
declare type AddonHooks = 'banner' | 'footer' | 'intro' | 'outro';
|
|
18
|
+
export declare type AddonHooks = 'banner' | 'footer' | 'intro' | 'outro';
|
|
19
19
|
|
|
20
20
|
export declare interface AllTextureCompressConfig {
|
|
21
21
|
platformConfig: Record<string, ITextureCompressConfig>;
|
|
@@ -26,7 +26,7 @@ export declare interface AllTextureCompressConfig {
|
|
|
26
26
|
textureFormatConfigs: Record<string, ITextureFormatConfig>;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
declare type AmdOptions = (
|
|
29
|
+
export declare type AmdOptions = (
|
|
30
30
|
| {
|
|
31
31
|
autoId?: false;
|
|
32
32
|
id: string;
|
|
@@ -46,12 +46,12 @@ declare type AmdOptions = (
|
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
/** 动画剪辑资源的 userData */
|
|
49
|
-
declare interface AnimationClipAssetUserData {
|
|
49
|
+
export declare interface AnimationClipAssetUserData {
|
|
50
50
|
/** 动画名称 */
|
|
51
51
|
name: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
declare interface AnimationImportSetting {
|
|
54
|
+
export declare interface AnimationImportSetting {
|
|
55
55
|
/**
|
|
56
56
|
* glTf 中原始动画资源的名称。
|
|
57
57
|
*/
|
|
@@ -164,7 +164,7 @@ export declare type ArrayItem = {
|
|
|
164
164
|
* 创建的时候会读取对应的 .meta 文件
|
|
165
165
|
* 如果 meta 不存在则会创建,并分配一个 uuid
|
|
166
166
|
*/
|
|
167
|
-
declare class Asset extends VirtualAsset {
|
|
167
|
+
export declare class Asset extends VirtualAsset {
|
|
168
168
|
_source: string;
|
|
169
169
|
get source(): string;
|
|
170
170
|
_url: string;
|
|
@@ -184,16 +184,16 @@ declare class Asset extends VirtualAsset {
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
/** 所有资源处理器类型的常量数组(用于 Zod enum 和 TypeScript type) */
|
|
187
|
-
declare const ASSET_HANDLER_TYPES: string[];
|
|
187
|
+
export declare const ASSET_HANDLER_TYPES: string[];
|
|
188
188
|
|
|
189
|
-
declare enum AssetActionEnum {
|
|
189
|
+
export declare enum AssetActionEnum {
|
|
190
190
|
'add' = 0,
|
|
191
191
|
'change' = 1,
|
|
192
192
|
'delete' = 2,
|
|
193
193
|
'none' = 3
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
declare class AssetDB extends EventEmitter {
|
|
196
|
+
export declare class AssetDB extends EventEmitter {
|
|
197
197
|
static readonly version = '1.0.1';
|
|
198
198
|
options: AssetDBOptions;
|
|
199
199
|
flag: {
|
|
@@ -293,7 +293,7 @@ declare class AssetDB extends EventEmitter {
|
|
|
293
293
|
/**
|
|
294
294
|
* 资源数据库启动参数
|
|
295
295
|
*/
|
|
296
|
-
declare interface AssetDBOptions {
|
|
296
|
+
export declare interface AssetDBOptions {
|
|
297
297
|
name: string;
|
|
298
298
|
target: string;
|
|
299
299
|
library: string;
|
|
@@ -315,7 +315,7 @@ declare interface AssetDBOptions {
|
|
|
315
315
|
importConcurrency?: number;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
declare interface AssetDBRefreshOptions {
|
|
318
|
+
export declare interface AssetDBRefreshOptions {
|
|
319
319
|
ignoreSelf?: boolean;
|
|
320
320
|
globList?: string[];
|
|
321
321
|
useCache?: boolean;
|
|
@@ -327,7 +327,7 @@ declare interface AssetDBRefreshOptions {
|
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
-
declare interface AssetDBStartOptions {
|
|
330
|
+
export declare interface AssetDBStartOptions {
|
|
331
331
|
ignoreSelf?: boolean;
|
|
332
332
|
globList?: string[];
|
|
333
333
|
hooks?: {
|
|
@@ -343,7 +343,7 @@ export declare namespace AssetHandlers {
|
|
|
343
343
|
}
|
|
344
344
|
|
|
345
345
|
/** 资源处理器类型(从常量数组派生) */
|
|
346
|
-
declare type AssetHandlerType = typeof ASSET_HANDLER_TYPES[number] | 'database';
|
|
346
|
+
export declare type AssetHandlerType = typeof ASSET_HANDLER_TYPES[number] | 'database';
|
|
347
347
|
|
|
348
348
|
export declare type AssetInfoArr = Array<string | number>;
|
|
349
349
|
|
|
@@ -355,7 +355,7 @@ export declare interface AssetSerializeOptions {
|
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
declare interface AssetUserDataMap {
|
|
358
|
+
export declare interface AssetUserDataMap {
|
|
359
359
|
'animation-clip': AnimationClipAssetUserData;
|
|
360
360
|
'auto-atlas': AutoAtlasAssetUserData;
|
|
361
361
|
'label-atlas': LabelAtlasAssetUserData;
|
|
@@ -392,16 +392,16 @@ declare interface AssetUserDataMap {
|
|
|
392
392
|
'unknown': any;
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
declare type AsyncPluginHooks = Exclude<keyof FunctionPluginHooks, SyncPluginHooks>;
|
|
395
|
+
export declare type AsyncPluginHooks = Exclude<keyof FunctionPluginHooks, SyncPluginHooks>;
|
|
396
396
|
|
|
397
397
|
/** 音频资源的 userData */
|
|
398
|
-
declare interface AudioClipAssetUserData {
|
|
398
|
+
export declare interface AudioClipAssetUserData {
|
|
399
399
|
/** 下载模式:0-Web Audio, 1-DOM Audio */
|
|
400
400
|
downloadMode: number;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
/** 自动图集资源的 userData */
|
|
404
|
-
declare interface AutoAtlasAssetUserData {
|
|
404
|
+
export declare interface AutoAtlasAssetUserData {
|
|
405
405
|
compressed: boolean;
|
|
406
406
|
dest: any;
|
|
407
407
|
/** 打包图像的尺寸 */
|
|
@@ -428,7 +428,7 @@ declare interface AutoAtlasAssetUserData {
|
|
|
428
428
|
export declare type BabelPluginItem = PluginItem;
|
|
429
429
|
|
|
430
430
|
/** 位图字体资源的 userData */
|
|
431
|
-
declare interface BitmapFontAssetUserData {
|
|
431
|
+
export declare interface BitmapFontAssetUserData {
|
|
432
432
|
/** 字体配置 */
|
|
433
433
|
_fntConfig: any;
|
|
434
434
|
/** 字体大小 */
|
|
@@ -466,7 +466,7 @@ export declare interface BuildConfiguration {
|
|
|
466
466
|
* 资源管理器,主要负责资源的缓存查询缓存等
|
|
467
467
|
* 所有 __ 开头的属性方法都不对外公开
|
|
468
468
|
*/
|
|
469
|
-
declare class BuilderAssetCache implements BuilderCache {
|
|
469
|
+
export declare class BuilderAssetCache implements BuilderCache {
|
|
470
470
|
readonly scenes: Array<IBuildSceneItem>;
|
|
471
471
|
readonly scriptUuids: Array<string>;
|
|
472
472
|
assetUuids: Array<string>;
|
|
@@ -610,7 +610,7 @@ export declare namespace BuildPlugin {
|
|
|
610
610
|
export type Unload = () => Promise<void> | void;
|
|
611
611
|
}
|
|
612
612
|
|
|
613
|
-
declare class BuildResult implements IBuildResult {
|
|
613
|
+
export declare class BuildResult implements IBuildResult {
|
|
614
614
|
private readonly __task;
|
|
615
615
|
settings?: ISettings;
|
|
616
616
|
dest: string;
|
|
@@ -646,7 +646,7 @@ declare class BuildResult implements IBuildResult {
|
|
|
646
646
|
getImportAssetPaths(uuid: string): IImportAssetPathInfo[];
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
declare class BuildStageTask extends BuildTaskBase implements IBuildStageTask {
|
|
649
|
+
export declare class BuildStageTask extends BuildTaskBase implements IBuildStageTask {
|
|
650
650
|
options: IBuildOptionBase;
|
|
651
651
|
hooksInfo: IBuildHooksInfo;
|
|
652
652
|
private root;
|
|
@@ -658,7 +658,7 @@ declare class BuildStageTask extends BuildTaskBase implements IBuildStageTask {
|
|
|
658
658
|
saveOptions(): Promise<void>;
|
|
659
659
|
}
|
|
660
660
|
|
|
661
|
-
declare class BuildTask extends BuildTaskBase implements IBuilder {
|
|
661
|
+
export declare class BuildTask extends BuildTaskBase implements IBuilder {
|
|
662
662
|
cache: BuilderAssetCache;
|
|
663
663
|
result: InternalBuildResult_2;
|
|
664
664
|
buildTemplate: BuildTemplate;
|
|
@@ -724,7 +724,7 @@ declare class BuildTask extends BuildTaskBase implements IBuilder {
|
|
|
724
724
|
runErrorHook(): Promise<void>;
|
|
725
725
|
}
|
|
726
726
|
|
|
727
|
-
declare abstract class BuildTaskBase extends EventEmitter {
|
|
727
|
+
export declare abstract class BuildTaskBase extends EventEmitter {
|
|
728
728
|
breakReason?: string;
|
|
729
729
|
name: string;
|
|
730
730
|
progress: number;
|
|
@@ -750,7 +750,7 @@ declare abstract class BuildTaskBase extends EventEmitter {
|
|
|
750
750
|
runPluginTask(funcName: string, weight?: number): Promise<void>;
|
|
751
751
|
}
|
|
752
752
|
|
|
753
|
-
declare class BuildTemplate implements IBuildTemplate {
|
|
753
|
+
export declare class BuildTemplate implements IBuildTemplate {
|
|
754
754
|
_buildTemplateDirs: string[];
|
|
755
755
|
map: Record<string, {
|
|
756
756
|
url: string;
|
|
@@ -784,7 +784,7 @@ export declare const enum BuiltinBundleName {
|
|
|
784
784
|
INTERNAL = 'internal'
|
|
785
785
|
}
|
|
786
786
|
|
|
787
|
-
declare enum BuiltinBundleName_2 {
|
|
787
|
+
export declare enum BuiltinBundleName_2 {
|
|
788
788
|
RESOURCES = 'resources',
|
|
789
789
|
MAIN = 'main',
|
|
790
790
|
START_SCENE = 'start-scene',
|
|
@@ -801,7 +801,7 @@ export declare const enum BundleCompressionTypes {
|
|
|
801
801
|
ZIP = 'zip'
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
declare enum BundleCompressionTypes_2 {
|
|
804
|
+
export declare enum BundleCompressionTypes_2 {
|
|
805
805
|
NONE = 'none',
|
|
806
806
|
MERGE_DEP = 'merge_dep',
|
|
807
807
|
MERGE_ALL_JSON = 'merge_all_json',
|
|
@@ -826,7 +826,7 @@ export declare interface BundleFilterConfig {
|
|
|
826
826
|
assets?: string[];
|
|
827
827
|
}
|
|
828
828
|
|
|
829
|
-
declare class BundleManager extends BuildTaskBase implements IBundleManager {
|
|
829
|
+
export declare class BundleManager extends BuildTaskBase implements IBundleManager {
|
|
830
830
|
static BuiltinBundleName: typeof BuiltinBundleName_2;
|
|
831
831
|
static BundleConfigs: Record<string, Record<string, {
|
|
832
832
|
isRemote: boolean;
|
|
@@ -943,11 +943,11 @@ export declare interface BundleRenderConfig {
|
|
|
943
943
|
minOptionList?: Record<string, any[]>;
|
|
944
944
|
}
|
|
945
945
|
|
|
946
|
-
declare type CCEnvConstants = ConstantManager.CCEnvConstants;
|
|
946
|
+
export declare type CCEnvConstants = ConstantManager.CCEnvConstants;
|
|
947
947
|
|
|
948
|
-
declare type ChangeEvent = 'create' | 'update' | 'delete';
|
|
948
|
+
export declare type ChangeEvent = 'create' | 'update' | 'delete';
|
|
949
949
|
|
|
950
|
-
declare interface ChokidarOptions {
|
|
950
|
+
export declare interface ChokidarOptions {
|
|
951
951
|
alwaysStat?: boolean;
|
|
952
952
|
atomic?: boolean | number;
|
|
953
953
|
awaitWriteFinish?:
|
|
@@ -970,7 +970,7 @@ declare interface ChokidarOptions {
|
|
|
970
970
|
usePolling?: boolean;
|
|
971
971
|
}
|
|
972
972
|
|
|
973
|
-
declare class CocosParams<T> {
|
|
973
|
+
export declare class CocosParams<T> {
|
|
974
974
|
platformParams: T;
|
|
975
975
|
debug: boolean;
|
|
976
976
|
projectName: string;
|
|
@@ -1023,7 +1023,7 @@ declare class CocosParams<T> {
|
|
|
1023
1023
|
constructor(params: CocosParams<T>);
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
|
-
declare interface CompressCacheInfo {
|
|
1026
|
+
export declare interface CompressCacheInfo {
|
|
1027
1027
|
option: {
|
|
1028
1028
|
mtime: number | string;
|
|
1029
1029
|
src: string;
|
|
@@ -1039,7 +1039,7 @@ export declare interface CompressedInfo {
|
|
|
1039
1039
|
imagePathNoExt: string;
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
|
-
declare interface CompressExecuteInfo {
|
|
1042
|
+
export declare interface CompressExecuteInfo {
|
|
1043
1043
|
busyFormatType: Partial<Record<ITextureCompressFormatType | string, number>>;
|
|
1044
1044
|
busyAsset: Set<string>;
|
|
1045
1045
|
resolve: Function;
|
|
@@ -1050,7 +1050,7 @@ declare interface CompressExecuteInfo {
|
|
|
1050
1050
|
childProcess: number;
|
|
1051
1051
|
}
|
|
1052
1052
|
|
|
1053
|
-
declare interface Config {
|
|
1053
|
+
export declare interface Config {
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Engine features. Keys are feature IDs.
|
|
1056
1056
|
*/
|
|
@@ -1100,9 +1100,9 @@ declare namespace ConfigInterface {
|
|
|
1100
1100
|
|
|
1101
1101
|
export declare type ConfigType = 'options' | 'overwrite';
|
|
1102
1102
|
|
|
1103
|
-
declare type ConstantTypeName = 'boolean' | 'number';
|
|
1103
|
+
export declare type ConstantTypeName = 'boolean' | 'number';
|
|
1104
1104
|
|
|
1105
|
-
declare interface Context {
|
|
1105
|
+
export declare interface Context {
|
|
1106
1106
|
mode?: string;
|
|
1107
1107
|
platform?: string;
|
|
1108
1108
|
buildTimeConstants?: object;
|
|
@@ -1132,7 +1132,7 @@ export declare interface CustomBundleConfigItem {
|
|
|
1132
1132
|
configMode?: 'auto' | 'fallback' | 'overwrite';
|
|
1133
1133
|
}
|
|
1134
1134
|
|
|
1135
|
-
declare class CustomConsole {
|
|
1135
|
+
export declare class CustomConsole {
|
|
1136
1136
|
constructor(level?: LogLevel);
|
|
1137
1137
|
debug: (...args: any[]) => void;
|
|
1138
1138
|
log: (...args: any[]) => void;
|
|
@@ -1140,7 +1140,7 @@ declare class CustomConsole {
|
|
|
1140
1140
|
error: (...args: any[]) => void;
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
1143
|
-
declare interface CustomPluginOptions {
|
|
1143
|
+
export declare interface CustomPluginOptions {
|
|
1144
1144
|
[plugin: string]: any;
|
|
1145
1145
|
}
|
|
1146
1146
|
|
|
@@ -1148,7 +1148,7 @@ declare interface CustomPluginOptions {
|
|
|
1148
1148
|
* 资源关联以及依赖关系列表
|
|
1149
1149
|
* 部分数据需要固化到硬盘上
|
|
1150
1150
|
*/
|
|
1151
|
-
declare class DataManager {
|
|
1151
|
+
export declare class DataManager {
|
|
1152
1152
|
file: string | undefined;
|
|
1153
1153
|
dataMap: {
|
|
1154
1154
|
[uuid: string]: IData;
|
|
@@ -1198,7 +1198,7 @@ declare class DataManager {
|
|
|
1198
1198
|
get(asset: VirtualAsset, key?: keyof IData): null | any;
|
|
1199
1199
|
}
|
|
1200
1200
|
|
|
1201
|
-
declare type DecodedSourceMapOrMissing =
|
|
1201
|
+
export declare type DecodedSourceMapOrMissing =
|
|
1202
1202
|
| {
|
|
1203
1203
|
mappings?: never;
|
|
1204
1204
|
missing: true;
|
|
@@ -1206,15 +1206,15 @@ declare type DecodedSourceMapOrMissing =
|
|
|
1206
1206
|
}
|
|
1207
1207
|
| ExistingDecodedSourceMap;
|
|
1208
1208
|
|
|
1209
|
-
declare function defineConfig(options: RollupOptions): RollupOptions;
|
|
1209
|
+
export declare function defineConfig(options: RollupOptions): RollupOptions;
|
|
1210
1210
|
|
|
1211
|
-
declare function defineConfig(options: RollupOptions[]): RollupOptions[];
|
|
1211
|
+
export declare function defineConfig(options: RollupOptions[]): RollupOptions[];
|
|
1212
1212
|
|
|
1213
1213
|
/**
|
|
1214
1214
|
* 资源关联以及依赖关系列表,主要影响导入队列以及是否需要重新导入
|
|
1215
1215
|
* 部分数据需要固化到硬盘上
|
|
1216
1216
|
*/
|
|
1217
|
-
declare class DependencyManager {
|
|
1217
|
+
export declare class DependencyManager {
|
|
1218
1218
|
static version: string;
|
|
1219
1219
|
file?: string;
|
|
1220
1220
|
pathRoot: string;
|
|
@@ -1250,7 +1250,7 @@ declare class DependencyManager {
|
|
|
1250
1250
|
destroy(): void;
|
|
1251
1251
|
}
|
|
1252
1252
|
|
|
1253
|
-
declare interface DependMap {
|
|
1253
|
+
export declare interface DependMap {
|
|
1254
1254
|
path: {
|
|
1255
1255
|
[path: string]: string[];
|
|
1256
1256
|
};
|
|
@@ -1260,7 +1260,7 @@ declare interface DependMap {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
|
|
1262
1262
|
/** 文件夹资源的 userData */
|
|
1263
|
-
declare interface DirectoryAssetUserData {
|
|
1263
|
+
export declare interface DirectoryAssetUserData {
|
|
1264
1264
|
/** 是否是资源包 */
|
|
1265
1265
|
isBundle?: boolean;
|
|
1266
1266
|
/** 资源包配置 ID */
|
|
@@ -1272,27 +1272,27 @@ declare interface DirectoryAssetUserData {
|
|
|
1272
1272
|
}
|
|
1273
1273
|
|
|
1274
1274
|
/** Effect 着色器资源的 userData */
|
|
1275
|
-
declare interface EffectAssetUserData {
|
|
1275
|
+
export declare interface EffectAssetUserData {
|
|
1276
1276
|
/** 预编译组合 */
|
|
1277
1277
|
combinations?: any;
|
|
1278
1278
|
/** 编辑器相关数据 */
|
|
1279
1279
|
editor?: any;
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
|
-
declare type EmitAsset = (name: string, source?: string | Uint8Array) => string;
|
|
1282
|
+
export declare type EmitAsset = (name: string, source?: string | Uint8Array) => string;
|
|
1283
1283
|
|
|
1284
|
-
declare type EmitChunk = (id: string, options?: { name?: string }) => string;
|
|
1284
|
+
export declare type EmitChunk = (id: string, options?: { name?: string }) => string;
|
|
1285
1285
|
|
|
1286
|
-
declare type EmitFile = (emittedFile: EmittedFile) => string;
|
|
1286
|
+
export declare type EmitFile = (emittedFile: EmittedFile) => string;
|
|
1287
1287
|
|
|
1288
|
-
declare interface EmittedAsset {
|
|
1288
|
+
export declare interface EmittedAsset {
|
|
1289
1289
|
fileName?: string;
|
|
1290
1290
|
name?: string;
|
|
1291
1291
|
source?: string | Uint8Array;
|
|
1292
1292
|
type: 'asset';
|
|
1293
1293
|
}
|
|
1294
1294
|
|
|
1295
|
-
declare interface EmittedChunk {
|
|
1295
|
+
export declare interface EmittedChunk {
|
|
1296
1296
|
fileName?: string;
|
|
1297
1297
|
id: string;
|
|
1298
1298
|
implicitlyLoadedAfterOneOf?: string[];
|
|
@@ -1302,9 +1302,9 @@ declare interface EmittedChunk {
|
|
|
1302
1302
|
type: 'chunk';
|
|
1303
1303
|
}
|
|
1304
1304
|
|
|
1305
|
-
declare type EmittedFile = EmittedAsset | EmittedChunk;
|
|
1305
|
+
export declare type EmittedFile = EmittedAsset | EmittedChunk;
|
|
1306
1306
|
|
|
1307
|
-
declare interface EngineInfo {
|
|
1307
|
+
export declare interface EngineInfo {
|
|
1308
1308
|
typescript: {
|
|
1309
1309
|
type: 'builtin' | 'custom'; // 当前使用的引擎类型(内置或自定义)
|
|
1310
1310
|
builtin: string, // 内置引擎地址
|
|
@@ -1322,7 +1322,7 @@ declare interface EngineInfo {
|
|
|
1322
1322
|
/**
|
|
1323
1323
|
* 枚举选项,可以是字符串值或带标签的值
|
|
1324
1324
|
*/
|
|
1325
|
-
declare type EnumItem = string | {
|
|
1325
|
+
export declare type EnumItem = string | {
|
|
1326
1326
|
/** 选项显示的标签,支持 i18n:xxx */
|
|
1327
1327
|
label: string;
|
|
1328
1328
|
/** 选项的值 */
|
|
@@ -1338,7 +1338,7 @@ export declare interface ExecuteHookTaskOption {
|
|
|
1338
1338
|
[x: string]: any;
|
|
1339
1339
|
}
|
|
1340
1340
|
|
|
1341
|
-
declare interface ExistingDecodedSourceMap {
|
|
1341
|
+
export declare interface ExistingDecodedSourceMap {
|
|
1342
1342
|
file?: string;
|
|
1343
1343
|
mappings: SourceMapSegment[][];
|
|
1344
1344
|
names: string[];
|
|
@@ -1348,7 +1348,7 @@ declare interface ExistingDecodedSourceMap {
|
|
|
1348
1348
|
version: number;
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
|
-
declare interface ExistingRawSourceMap {
|
|
1351
|
+
export declare interface ExistingRawSourceMap {
|
|
1352
1352
|
file?: string;
|
|
1353
1353
|
mappings: string;
|
|
1354
1354
|
names: string[];
|
|
@@ -1358,7 +1358,7 @@ declare interface ExistingRawSourceMap {
|
|
|
1358
1358
|
version: number;
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
declare type ExternalOption =
|
|
1361
|
+
export declare type ExternalOption =
|
|
1362
1362
|
| (string | RegExp)[]
|
|
1363
1363
|
| string
|
|
1364
1364
|
| RegExp
|
|
@@ -1367,7 +1367,7 @@ declare type ExternalOption =
|
|
|
1367
1367
|
/**
|
|
1368
1368
|
* An engine feature.
|
|
1369
1369
|
*/
|
|
1370
|
-
declare interface Feature {
|
|
1370
|
+
export declare interface Feature {
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Modules to be included in this feature in their IDs.
|
|
1373
1373
|
* The ID of a module is its relative path(no extension) under /exports/.
|
|
@@ -1406,9 +1406,9 @@ export declare interface fileMap {
|
|
|
1406
1406
|
dest: string;
|
|
1407
1407
|
}
|
|
1408
1408
|
|
|
1409
|
-
declare type Filter = 'none' | 'nearest' | 'linear';
|
|
1409
|
+
export declare type Filter = 'none' | 'nearest' | 'linear';
|
|
1410
1410
|
|
|
1411
|
-
declare type FirstPluginHooks =
|
|
1411
|
+
export declare type FirstPluginHooks =
|
|
1412
1412
|
| 'load'
|
|
1413
1413
|
| 'renderDynamicImport'
|
|
1414
1414
|
| 'resolveAssetUrl'
|
|
@@ -1418,7 +1418,7 @@ declare type FirstPluginHooks =
|
|
|
1418
1418
|
| 'resolveImportMeta'
|
|
1419
1419
|
| 'shouldTransformCachedModule';
|
|
1420
1420
|
|
|
1421
|
-
declare interface FntData {
|
|
1421
|
+
export declare interface FntData {
|
|
1422
1422
|
commonHeight?: number;
|
|
1423
1423
|
fontSize?: number;
|
|
1424
1424
|
atlasName?: string;
|
|
@@ -1426,7 +1426,7 @@ declare interface FntData {
|
|
|
1426
1426
|
kerningDict?: KerningDict;
|
|
1427
1427
|
}
|
|
1428
1428
|
|
|
1429
|
-
declare interface FontDef {
|
|
1429
|
+
export declare interface FontDef {
|
|
1430
1430
|
rect: {
|
|
1431
1431
|
x: number;
|
|
1432
1432
|
y: number;
|
|
@@ -1438,11 +1438,11 @@ declare interface FontDef {
|
|
|
1438
1438
|
xAdvance: number;
|
|
1439
1439
|
}
|
|
1440
1440
|
|
|
1441
|
-
declare interface FontDefDictionary {
|
|
1441
|
+
export declare interface FontDefDictionary {
|
|
1442
1442
|
[charId: number]: FontDef;
|
|
1443
1443
|
}
|
|
1444
1444
|
|
|
1445
|
-
declare interface FunctionPluginHooks {
|
|
1445
|
+
export declare interface FunctionPluginHooks {
|
|
1446
1446
|
augmentChunkHash: (this: PluginContext, chunk: PreRenderedChunk) => string | void;
|
|
1447
1447
|
buildEnd: (this: PluginContext, err?: Error) => void;
|
|
1448
1448
|
buildStart: (this: PluginContext, options: NormalizedInputOptions) => void;
|
|
@@ -1490,29 +1490,29 @@ declare interface FunctionPluginHooks {
|
|
|
1490
1490
|
) => void;
|
|
1491
1491
|
}
|
|
1492
1492
|
|
|
1493
|
-
declare interface GeneratedCodeOptions extends Partial<NormalizedGeneratedCodeOptions> {
|
|
1493
|
+
export declare interface GeneratedCodeOptions extends Partial<NormalizedGeneratedCodeOptions> {
|
|
1494
1494
|
preset?: GeneratedCodePreset;
|
|
1495
1495
|
}
|
|
1496
1496
|
|
|
1497
|
-
declare type GeneratedCodePreset = 'es5' | 'es2015';
|
|
1497
|
+
export declare type GeneratedCodePreset = 'es5' | 'es2015';
|
|
1498
1498
|
|
|
1499
|
-
declare type GetInterop = (id: string | null) => InteropType;
|
|
1499
|
+
export declare type GetInterop = (id: string | null) => InteropType;
|
|
1500
1500
|
|
|
1501
|
-
declare type GetManualChunk = (id: string, api: GetManualChunkApi) => string | null | void;
|
|
1501
|
+
export declare type GetManualChunk = (id: string, api: GetManualChunkApi) => string | null | void;
|
|
1502
1502
|
|
|
1503
|
-
declare interface GetManualChunkApi {
|
|
1503
|
+
export declare interface GetManualChunkApi {
|
|
1504
1504
|
getModuleIds: () => IterableIterator<string>;
|
|
1505
1505
|
getModuleInfo: GetModuleInfo;
|
|
1506
1506
|
}
|
|
1507
1507
|
|
|
1508
|
-
declare type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
|
|
1508
|
+
export declare type GetModuleInfo = (moduleId: string) => ModuleInfo | null;
|
|
1509
1509
|
|
|
1510
1510
|
export declare function getPreviewSettings<P extends Platform>(options?: IBuildTaskOption<P>): Promise<IPreviewSettingsResult>;
|
|
1511
1511
|
|
|
1512
|
-
declare type GlobalsOption = { [name: string]: string } | ((name: string) => string);
|
|
1512
|
+
export declare type GlobalsOption = { [name: string]: string } | ((name: string) => string);
|
|
1513
1513
|
|
|
1514
1514
|
/** glTF 动画资源的 userData */
|
|
1515
|
-
declare interface GltfAnimationAssetUserData {
|
|
1515
|
+
export declare interface GltfAnimationAssetUserData {
|
|
1516
1516
|
gltfIndex: number;
|
|
1517
1517
|
events: Array<{
|
|
1518
1518
|
frame: number;
|
|
@@ -1548,20 +1548,20 @@ declare interface GltfAnimationAssetUserData {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
|
|
1550
1550
|
/** glTF 嵌入图片子资源的 userData */
|
|
1551
|
-
declare interface GltfEmbededImageAssetUserData extends IVirtualAssetUserData {
|
|
1551
|
+
export declare interface GltfEmbededImageAssetUserData extends IVirtualAssetUserData {
|
|
1552
1552
|
/** 是否修复 Alpha 透明度瑕疵 */
|
|
1553
1553
|
fixAlphaTransparencyArtifacts?: boolean;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
declare type GltfpackOptions = Record<string, any>;
|
|
1556
|
+
export declare type GltfpackOptions = Record<string, any>;
|
|
1557
1557
|
|
|
1558
1558
|
/** glTF Skeleton 子资源的 userData */
|
|
1559
|
-
declare interface GltfSkeletonAssetUserData extends IVirtualAssetUserData {
|
|
1559
|
+
export declare interface GltfSkeletonAssetUserData extends IVirtualAssetUserData {
|
|
1560
1560
|
/** 骨骼数量 */
|
|
1561
1561
|
jointsLength?: number;
|
|
1562
1562
|
}
|
|
1563
1563
|
|
|
1564
|
-
declare interface GlTFUserData {
|
|
1564
|
+
export declare interface GlTFUserData {
|
|
1565
1565
|
assetFinder?: SerializedAssetFinder;
|
|
1566
1566
|
|
|
1567
1567
|
imageMetas: ImageMeta[];
|
|
@@ -1692,9 +1692,9 @@ declare interface GlTFUserData {
|
|
|
1692
1692
|
};
|
|
1693
1693
|
}
|
|
1694
1694
|
|
|
1695
|
-
declare type HasModuleSideEffects = (id: string, external: boolean) => boolean;
|
|
1695
|
+
export declare type HasModuleSideEffects = (id: string, external: boolean) => boolean;
|
|
1696
1696
|
|
|
1697
|
-
declare type IAsset = VirtualAsset | Asset;
|
|
1697
|
+
export declare type IAsset = VirtualAsset | Asset;
|
|
1698
1698
|
|
|
1699
1699
|
export declare interface IAssetGroupItem {
|
|
1700
1700
|
baseUrls: string[];
|
|
@@ -1718,7 +1718,7 @@ export declare interface IAssetInfo extends IAssetInfo_2 {
|
|
|
1718
1718
|
mtime: number;
|
|
1719
1719
|
}
|
|
1720
1720
|
|
|
1721
|
-
declare interface IAssetInfo_2 {
|
|
1721
|
+
export declare interface IAssetInfo_2 {
|
|
1722
1722
|
name: string; // 资源名字
|
|
1723
1723
|
source: string; // url 地址
|
|
1724
1724
|
loadUrl: string; // loader 加载的层级地址
|
|
@@ -1756,7 +1756,7 @@ declare interface IAssetInfo_2 {
|
|
|
1756
1756
|
|
|
1757
1757
|
export declare type IAssetInfoMap = Record<UUID, IAssetInfo>;
|
|
1758
1758
|
|
|
1759
|
-
declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown'> {
|
|
1759
|
+
export declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown'> {
|
|
1760
1760
|
ver: string;
|
|
1761
1761
|
importer: AssetHandlerType;
|
|
1762
1762
|
imported: boolean;
|
|
@@ -1771,7 +1771,7 @@ declare interface IAssetMeta<T extends ISupportCreateType | 'unknown' = 'unknown
|
|
|
1771
1771
|
name?: string;
|
|
1772
1772
|
}
|
|
1773
1773
|
|
|
1774
|
-
declare interface IAssetPathBase {
|
|
1774
|
+
export declare interface IAssetPathBase {
|
|
1775
1775
|
bundleName?: string;
|
|
1776
1776
|
redirect?: string;
|
|
1777
1777
|
}
|
|
@@ -1790,7 +1790,7 @@ export declare interface IAssetPathInfo extends IAssetPathBase {
|
|
|
1790
1790
|
groupIndex?: number;
|
|
1791
1791
|
}
|
|
1792
1792
|
|
|
1793
|
-
declare type IAssetType =
|
|
1793
|
+
export declare type IAssetType =
|
|
1794
1794
|
| ISupportCreateCCType
|
|
1795
1795
|
| 'cc.Asset' // 基础资源类型(instantiation-asset)
|
|
1796
1796
|
| 'cce.Database' // 数据库资源
|
|
@@ -2081,7 +2081,7 @@ export declare interface IBuildPacResult {
|
|
|
2081
2081
|
imageToPac: Record<string, string>;
|
|
2082
2082
|
}
|
|
2083
2083
|
|
|
2084
|
-
declare interface IBuildPacResult_2 {
|
|
2084
|
+
export declare interface IBuildPacResult_2 {
|
|
2085
2085
|
spriteToImage: Record<string, string>;
|
|
2086
2086
|
textureToImage: Record<string, string>;
|
|
2087
2087
|
imageToPac: Record<string, string>;
|
|
@@ -2257,7 +2257,7 @@ export declare interface IBuildSeparateEngineResult {
|
|
|
2257
2257
|
|
|
2258
2258
|
export declare type IBuildStage = 'build' | 'bundle' | 'make' | 'run' | string;
|
|
2259
2259
|
|
|
2260
|
-
declare interface IBuildStageConfig extends IBuildStageItem {
|
|
2260
|
+
export declare interface IBuildStageConfig extends IBuildStageItem {
|
|
2261
2261
|
root: string;
|
|
2262
2262
|
hooksInfo: IBuildHooksInfo;
|
|
2263
2263
|
buildTaskOptions: IBuildOptionBase;
|
|
@@ -2332,7 +2332,7 @@ export declare interface IBuildTemplate {
|
|
|
2332
2332
|
isEnable: boolean;
|
|
2333
2333
|
}
|
|
2334
2334
|
|
|
2335
|
-
declare type IBuildTimeConstantValue = StatsQuery.ConstantManager.ValueType;
|
|
2335
|
+
export declare type IBuildTimeConstantValue = StatsQuery.ConstantManager.ValueType;
|
|
2336
2336
|
|
|
2337
2337
|
export declare interface IBuildUtils {
|
|
2338
2338
|
/**
|
|
@@ -2539,14 +2539,14 @@ export declare interface IBundleTaskOption extends IBuildOptionBase {
|
|
|
2539
2539
|
dest: string;
|
|
2540
2540
|
}
|
|
2541
2541
|
|
|
2542
|
-
declare type ICheckRule = 'pathExist' | 'valid' | 'required' | 'normalName' | 'noChinese' | 'array' | 'string' | 'number' | 'http';
|
|
2542
|
+
export declare type ICheckRule = 'pathExist' | 'valid' | 'required' | 'normalName' | 'noChinese' | 'array' | 'string' | 'number' | 'http';
|
|
2543
2543
|
|
|
2544
|
-
declare interface IChunkContent {
|
|
2544
|
+
export declare interface IChunkContent {
|
|
2545
2545
|
skeleton: null | string;
|
|
2546
2546
|
clips: string[];
|
|
2547
2547
|
}
|
|
2548
2548
|
|
|
2549
|
-
declare interface ICMakeConfig {
|
|
2549
|
+
export declare interface ICMakeConfig {
|
|
2550
2550
|
USE_AUDIO?: boolean;
|
|
2551
2551
|
USE_VIDEO?: boolean;
|
|
2552
2552
|
USE_WEBVIEW?: boolean;
|
|
@@ -2568,7 +2568,7 @@ export declare interface ICollisionMatrix {
|
|
|
2568
2568
|
[x: string]: number;
|
|
2569
2569
|
}
|
|
2570
2570
|
|
|
2571
|
-
declare interface ICollisionMatrix_2 {
|
|
2571
|
+
export declare interface ICollisionMatrix_2 {
|
|
2572
2572
|
[x: string]: number;
|
|
2573
2573
|
}
|
|
2574
2574
|
|
|
@@ -2597,7 +2597,7 @@ export declare type ICompressImageResult = Record<UUID, {
|
|
|
2597
2597
|
|
|
2598
2598
|
export declare type ICompressOptions = Record<string, number>;
|
|
2599
2599
|
|
|
2600
|
-
declare interface ICompressPresetConfig {
|
|
2600
|
+
export declare interface ICompressPresetConfig {
|
|
2601
2601
|
name: string;
|
|
2602
2602
|
options: Record<ITextureCompressPlatform, Record<ITextureCompressType, {
|
|
2603
2603
|
quality: number | string;
|
|
@@ -2609,7 +2609,7 @@ export declare interface IconConfig {
|
|
|
2609
2609
|
value: string;
|
|
2610
2610
|
}
|
|
2611
2611
|
|
|
2612
|
-
declare interface IconConfigWithHook extends ICustomBuildIconItem {
|
|
2612
|
+
export declare interface IconConfigWithHook extends ICustomBuildIconItem {
|
|
2613
2613
|
executeType: 'hook';
|
|
2614
2614
|
hook: string;
|
|
2615
2615
|
}
|
|
@@ -2632,12 +2632,12 @@ export declare interface IConfigGroupsInfo {
|
|
|
2632
2632
|
* - object: 必须提供 properties
|
|
2633
2633
|
* - boolean/string/number: 只需基本字段
|
|
2634
2634
|
*/
|
|
2635
|
-
declare type IConfigItem = IConfigItemString | IConfigItemNumber | IConfigItemBoolean | IConfigItemEnum | IConfigItemArray | IConfigItemObject;
|
|
2635
|
+
export declare type IConfigItem = IConfigItemString | IConfigItemNumber | IConfigItemBoolean | IConfigItemEnum | IConfigItemArray | IConfigItemObject;
|
|
2636
2636
|
|
|
2637
2637
|
/**
|
|
2638
2638
|
* 数组类型配置项
|
|
2639
2639
|
*/
|
|
2640
|
-
declare interface IConfigItemArray extends IConfigItemBase {
|
|
2640
|
+
export declare interface IConfigItemArray extends IConfigItemBase {
|
|
2641
2641
|
type: 'array';
|
|
2642
2642
|
/** 数组项配置,定义数组中每个元素的类型和结构 */
|
|
2643
2643
|
items: IConfigItem | IConfigItem[];
|
|
@@ -2652,7 +2652,7 @@ declare interface IConfigItemArray extends IConfigItemBase {
|
|
|
2652
2652
|
/**
|
|
2653
2653
|
* 用户数据配置项的基础接口
|
|
2654
2654
|
*/
|
|
2655
|
-
declare interface IConfigItemBase {
|
|
2655
|
+
export declare interface IConfigItemBase {
|
|
2656
2656
|
/** 唯一标识符 */
|
|
2657
2657
|
key?: string;
|
|
2658
2658
|
/** 配置显示的名字,如果需要翻译,则传入 i18n:${key} */
|
|
@@ -2666,7 +2666,7 @@ declare interface IConfigItemBase {
|
|
|
2666
2666
|
/**
|
|
2667
2667
|
* 布尔类型配置项
|
|
2668
2668
|
*/
|
|
2669
|
-
declare interface IConfigItemBoolean extends IConfigItemBase {
|
|
2669
|
+
export declare interface IConfigItemBoolean extends IConfigItemBase {
|
|
2670
2670
|
type: 'boolean';
|
|
2671
2671
|
default?: boolean;
|
|
2672
2672
|
}
|
|
@@ -2674,7 +2674,7 @@ declare interface IConfigItemBoolean extends IConfigItemBase {
|
|
|
2674
2674
|
/**
|
|
2675
2675
|
* 枚举类型配置项
|
|
2676
2676
|
*/
|
|
2677
|
-
declare interface IConfigItemEnum extends IConfigItemBase {
|
|
2677
|
+
export declare interface IConfigItemEnum extends IConfigItemBase {
|
|
2678
2678
|
type: 'enum';
|
|
2679
2679
|
/** 枚举选项列表,可以是字符串数组或对象数组 */
|
|
2680
2680
|
items: EnumItem[];
|
|
@@ -2685,7 +2685,7 @@ declare interface IConfigItemEnum extends IConfigItemBase {
|
|
|
2685
2685
|
/**
|
|
2686
2686
|
* 数字类型配置项
|
|
2687
2687
|
*/
|
|
2688
|
-
declare interface IConfigItemNumber extends IConfigItemBase {
|
|
2688
|
+
export declare interface IConfigItemNumber extends IConfigItemBase {
|
|
2689
2689
|
type: 'number';
|
|
2690
2690
|
/** 最小值 */
|
|
2691
2691
|
minimum?: number;
|
|
@@ -2699,7 +2699,7 @@ declare interface IConfigItemNumber extends IConfigItemBase {
|
|
|
2699
2699
|
/**
|
|
2700
2700
|
* 对象类型配置项
|
|
2701
2701
|
*/
|
|
2702
|
-
declare interface IConfigItemObject extends IConfigItemBase {
|
|
2702
|
+
export declare interface IConfigItemObject extends IConfigItemBase {
|
|
2703
2703
|
type: 'object';
|
|
2704
2704
|
/** 对象属性配置,定义对象中每个属性的类型和结构 */
|
|
2705
2705
|
properties: Record<string, IConfigItem>;
|
|
@@ -2712,7 +2712,7 @@ declare interface IConfigItemObject extends IConfigItemBase {
|
|
|
2712
2712
|
/**
|
|
2713
2713
|
* 字符串类型配置项
|
|
2714
2714
|
*/
|
|
2715
|
-
declare interface IConfigItemString extends IConfigItemBase {
|
|
2715
|
+
export declare interface IConfigItemString extends IConfigItemBase {
|
|
2716
2716
|
type: 'string';
|
|
2717
2717
|
/** 最小长度 */
|
|
2718
2718
|
minLength?: number;
|
|
@@ -2732,11 +2732,11 @@ export declare interface IConsoleMessage {
|
|
|
2732
2732
|
|
|
2733
2733
|
export declare type IConsoleType = 'log' | 'warn' | 'error' | 'debug' | 'info' | 'success' | 'ready' | 'start';
|
|
2734
2734
|
|
|
2735
|
-
declare interface IConstantConfig {
|
|
2735
|
+
export declare interface IConstantConfig {
|
|
2736
2736
|
[ConstantName: string]: IConstantInfo;
|
|
2737
2737
|
}
|
|
2738
2738
|
|
|
2739
|
-
declare interface IConstantInfo {
|
|
2739
|
+
export declare interface IConstantInfo {
|
|
2740
2740
|
/**
|
|
2741
2741
|
* The comment of the constant.
|
|
2742
2742
|
* Which is used to generate the consts.d.ts file.
|
|
@@ -2777,18 +2777,18 @@ declare interface IConstantInfo {
|
|
|
2777
2777
|
dynamic?: boolean;
|
|
2778
2778
|
}
|
|
2779
2779
|
|
|
2780
|
-
declare type ICustomAssetHandlerType = 'compressTextures';
|
|
2780
|
+
export declare type ICustomAssetHandlerType = 'compressTextures';
|
|
2781
2781
|
|
|
2782
2782
|
export declare type ICustomBuildIconInfo = IBuildIconItem & {
|
|
2783
2783
|
pkgName: string;
|
|
2784
2784
|
};
|
|
2785
2785
|
|
|
2786
|
-
declare interface ICustomBuildIconItem extends IconConfig {
|
|
2786
|
+
export declare interface ICustomBuildIconItem extends IconConfig {
|
|
2787
2787
|
description?: string;
|
|
2788
2788
|
disabled?: (taskInfo: IBuildTaskItemJSON) => boolean | Promise<boolean>;
|
|
2789
2789
|
}
|
|
2790
2790
|
|
|
2791
|
-
declare interface ICustomBuildScriptParam extends IBuildScriptParam {
|
|
2791
|
+
export declare interface ICustomBuildScriptParam extends IBuildScriptParam {
|
|
2792
2792
|
experimentalHotReload: boolean;
|
|
2793
2793
|
}
|
|
2794
2794
|
|
|
@@ -2810,12 +2810,12 @@ export declare interface ICustomConfig {
|
|
|
2810
2810
|
|
|
2811
2811
|
export declare type ICustomConsoleType = IConsoleType | 'group' | 'groupEnd' | 'groupCollapsed';
|
|
2812
2812
|
|
|
2813
|
-
declare interface ICustomJointTextureLayout {
|
|
2813
|
+
export declare interface ICustomJointTextureLayout {
|
|
2814
2814
|
textureLength: number;
|
|
2815
2815
|
contents: IChunkContent[];
|
|
2816
2816
|
}
|
|
2817
2817
|
|
|
2818
|
-
declare interface IData {
|
|
2818
|
+
export declare interface IData {
|
|
2819
2819
|
url: string;
|
|
2820
2820
|
value: {
|
|
2821
2821
|
[key: string]: any;
|
|
@@ -2832,7 +2832,7 @@ export declare interface IDefaultGroup {
|
|
|
2832
2832
|
/**
|
|
2833
2833
|
* 构建使用的设计分辨率数据
|
|
2834
2834
|
*/
|
|
2835
|
-
declare interface IDesignResolution {
|
|
2835
|
+
export declare interface IDesignResolution {
|
|
2836
2836
|
height: number;
|
|
2837
2837
|
width: number;
|
|
2838
2838
|
fitWidth?: boolean;
|
|
@@ -2851,7 +2851,7 @@ export declare interface IEngineCachePaths {
|
|
|
2851
2851
|
pluginJSON: string;
|
|
2852
2852
|
}
|
|
2853
2853
|
|
|
2854
|
-
declare interface IEngineConfig extends IEngineModuleConfig {
|
|
2854
|
+
export declare interface IEngineConfig extends IEngineModuleConfig {
|
|
2855
2855
|
physicsConfig: IPhysicsConfig_2;
|
|
2856
2856
|
macroConfig?: Record<string, string | number | boolean>;
|
|
2857
2857
|
sortingLayers: { id: number, name: string, value: number }[];
|
|
@@ -2882,7 +2882,7 @@ export declare interface IEngineFeatureQuery {
|
|
|
2882
2882
|
filterEngineModules(features: string[]): string[];
|
|
2883
2883
|
}
|
|
2884
2884
|
|
|
2885
|
-
declare interface IEngineModuleConfig {
|
|
2885
|
+
export declare interface IEngineModuleConfig {
|
|
2886
2886
|
// ---- 模块配置相关 ----
|
|
2887
2887
|
includeModules: string[];
|
|
2888
2888
|
flags?: IFlags;
|
|
@@ -2900,7 +2900,7 @@ export declare interface IExportBuildOptions extends IBuildTaskOption {
|
|
|
2900
2900
|
__version__: string;
|
|
2901
2901
|
}
|
|
2902
2902
|
|
|
2903
|
-
declare interface IFbxSetting {
|
|
2903
|
+
export declare interface IFbxSetting {
|
|
2904
2904
|
/**
|
|
2905
2905
|
* https://github.com/cocos-creator/FBX-glTF-conv/pull/26
|
|
2906
2906
|
*/
|
|
@@ -2936,7 +2936,7 @@ declare interface IFbxSetting {
|
|
|
2936
2936
|
matchMeshNames?: boolean;
|
|
2937
2937
|
}
|
|
2938
2938
|
|
|
2939
|
-
declare type IFlags = Record<string, boolean | number>;
|
|
2939
|
+
export declare type IFlags = Record<string, boolean | number>;
|
|
2940
2940
|
|
|
2941
2941
|
export declare interface IGroup {
|
|
2942
2942
|
name: string;
|
|
@@ -3144,7 +3144,7 @@ export declare type IJsonMap = Record<UUID, any>;
|
|
|
3144
3144
|
export declare type IJsonPathInfo = IImportAssetPathInfo;
|
|
3145
3145
|
|
|
3146
3146
|
/** 图片资源的 userData */
|
|
3147
|
-
declare interface ImageAssetUserData {
|
|
3147
|
+
export declare interface ImageAssetUserData {
|
|
3148
3148
|
/** 图片类型 */
|
|
3149
3149
|
type: ImageImportType;
|
|
3150
3150
|
/** 垂直翻转 */
|
|
@@ -3178,9 +3178,9 @@ export declare interface ImageCompressTask {
|
|
|
3178
3178
|
mtime?: any;
|
|
3179
3179
|
}
|
|
3180
3180
|
|
|
3181
|
-
declare type ImageImportType = 'raw' | 'texture' | 'normal map' | 'sprite-frame' | 'texture cube';
|
|
3181
|
+
export declare type ImageImportType = 'raw' | 'texture' | 'normal map' | 'sprite-frame' | 'texture cube';
|
|
3182
3182
|
|
|
3183
|
-
declare interface ImageMeta {
|
|
3183
|
+
export declare interface ImageMeta {
|
|
3184
3184
|
/**
|
|
3185
3185
|
* 图片名字。
|
|
3186
3186
|
*/
|
|
@@ -3223,7 +3223,7 @@ export declare interface ImportMap {
|
|
|
3223
3223
|
scopes?: Record<string, Record<string, string>>;
|
|
3224
3224
|
}
|
|
3225
3225
|
|
|
3226
|
-
declare interface ImportMapOptions {
|
|
3226
|
+
export declare interface ImportMapOptions {
|
|
3227
3227
|
data: ImportMapWithImports;
|
|
3228
3228
|
format?: 'commonjs' | 'esm';
|
|
3229
3229
|
output: string;
|
|
@@ -3233,7 +3233,7 @@ export declare type ImportMapWithImports = ImportMap & {
|
|
|
3233
3233
|
imports: NonNullable<ImportMap['imports']>;
|
|
3234
3234
|
};
|
|
3235
3235
|
|
|
3236
|
-
declare interface IndexConfig {
|
|
3236
|
+
export declare interface IndexConfig {
|
|
3237
3237
|
modules?: Record<string, {
|
|
3238
3238
|
/**
|
|
3239
3239
|
* If specified, export contents of the module into a namespace specified by `ns`
|
|
@@ -3252,7 +3252,7 @@ declare interface IndexConfig {
|
|
|
3252
3252
|
* 缓存所有文件的 mtimeMs 时间,用于比对是否修改
|
|
3253
3253
|
* 这部分数据需要落地到文件系统
|
|
3254
3254
|
*/
|
|
3255
|
-
declare class InfoManager {
|
|
3255
|
+
export declare class InfoManager {
|
|
3256
3256
|
static version: string;
|
|
3257
3257
|
private file;
|
|
3258
3258
|
pathRoot: string;
|
|
@@ -3315,9 +3315,9 @@ declare class InfoManager {
|
|
|
3315
3315
|
|
|
3316
3316
|
export declare function init(platform?: string): Promise<void>;
|
|
3317
3317
|
|
|
3318
|
-
declare type InputOption = string | string[] | { [entryAlias: string]: string };
|
|
3318
|
+
export declare type InputOption = string | string[] | { [entryAlias: string]: string };
|
|
3319
3319
|
|
|
3320
|
-
declare interface InputOptions {
|
|
3320
|
+
export declare interface InputOptions {
|
|
3321
3321
|
acorn?: Record<string, unknown>;
|
|
3322
3322
|
acornInjectPlugins?: (() => unknown)[] | (() => unknown);
|
|
3323
3323
|
cache?: false | RollupCache;
|
|
@@ -3347,7 +3347,7 @@ declare interface InputOptions {
|
|
|
3347
3347
|
watch?: WatcherOptions | false;
|
|
3348
3348
|
}
|
|
3349
3349
|
|
|
3350
|
-
declare type InputPluginHooks = Exclude<keyof FunctionPluginHooks, OutputPluginHooks>;
|
|
3350
|
+
export declare type InputPluginHooks = Exclude<keyof FunctionPluginHooks, OutputPluginHooks>;
|
|
3351
3351
|
|
|
3352
3352
|
export declare interface InternalBuildResult {
|
|
3353
3353
|
settings: ISettings;
|
|
@@ -3366,7 +3366,7 @@ export declare interface InternalBuildResult {
|
|
|
3366
3366
|
separateEngineResult?: IBuildSeparateEngineResult;
|
|
3367
3367
|
}
|
|
3368
3368
|
|
|
3369
|
-
declare class InternalBuildResult_2 extends EventEmitter implements InternalBuildResult {
|
|
3369
|
+
export declare class InternalBuildResult_2 extends EventEmitter implements InternalBuildResult {
|
|
3370
3370
|
settings: ISettings;
|
|
3371
3371
|
scriptPackages: string[];
|
|
3372
3372
|
pluginVers: Record<string, string>;
|
|
@@ -3391,11 +3391,11 @@ declare class InternalBuildResult_2 extends EventEmitter implements InternalBuil
|
|
|
3391
3391
|
constructor(task: IBuilder, preview: boolean);
|
|
3392
3392
|
}
|
|
3393
3393
|
|
|
3394
|
-
declare type InternalModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd';
|
|
3394
|
+
export declare type InternalModuleFormat = 'amd' | 'cjs' | 'es' | 'iife' | 'system' | 'umd';
|
|
3395
3395
|
|
|
3396
|
-
declare type InternalNativePlatform = 'mac' | 'android' | 'google-play' | 'windows' | 'ios' | 'ohos' | 'harmonyos-next';
|
|
3396
|
+
export declare type InternalNativePlatform = 'mac' | 'android' | 'google-play' | 'windows' | 'ios' | 'ohos' | 'harmonyos-next';
|
|
3397
3397
|
|
|
3398
|
-
declare interface InternalPackageInfo {
|
|
3398
|
+
export declare interface InternalPackageInfo {
|
|
3399
3399
|
name: string;
|
|
3400
3400
|
path: string;
|
|
3401
3401
|
buildPath: string;
|
|
@@ -3406,9 +3406,9 @@ declare interface InternalPackageInfo {
|
|
|
3406
3406
|
|
|
3407
3407
|
export declare type InternalPlatform = 'web-desktop' | 'web-mobile' | 'mac' | 'ios' | 'android' | 'google-play' | 'windows' | 'ohos' | 'harmonyos-next';
|
|
3408
3408
|
|
|
3409
|
-
declare type InteropType = boolean | 'auto' | 'esModule' | 'default' | 'defaultOnly';
|
|
3409
|
+
export declare type InteropType = boolean | 'auto' | 'esModule' | 'default' | 'defaultOnly';
|
|
3410
3410
|
|
|
3411
|
-
declare interface IOptimizeDecorators {
|
|
3411
|
+
export declare interface IOptimizeDecorators {
|
|
3412
3412
|
/**
|
|
3413
3413
|
* The decorators which should be optimized when they only decorate class fields.
|
|
3414
3414
|
*/
|
|
@@ -3421,7 +3421,7 @@ declare interface IOptimizeDecorators {
|
|
|
3421
3421
|
|
|
3422
3422
|
export declare type IOrientation = 'auto' | 'landscape' | 'portrait';
|
|
3423
3423
|
|
|
3424
|
-
declare type IOrientation_2 = 'auto' | 'landscape' | 'portrait';
|
|
3424
|
+
export declare type IOrientation_2 = 'auto' | 'landscape' | 'portrait';
|
|
3425
3425
|
|
|
3426
3426
|
export declare interface IPacInfo {
|
|
3427
3427
|
spriteFrames: any[];
|
|
@@ -3494,7 +3494,7 @@ export declare interface IPhysicsConfig {
|
|
|
3494
3494
|
};
|
|
3495
3495
|
}
|
|
3496
3496
|
|
|
3497
|
-
declare interface IPhysicsConfig_2 {
|
|
3497
|
+
export declare interface IPhysicsConfig_2 {
|
|
3498
3498
|
gravity: IVec3Like_2; // (0,-10, 0)
|
|
3499
3499
|
allowSleep: boolean; // true
|
|
3500
3500
|
sleepThreshold: number; // 0.1,最小 0
|
|
@@ -3569,7 +3569,7 @@ export declare interface IPluginRegisterInfo {
|
|
|
3569
3569
|
type: 'plugin';
|
|
3570
3570
|
}
|
|
3571
3571
|
|
|
3572
|
-
declare interface IPluginScriptInfo extends PluginScriptInfo {
|
|
3572
|
+
export declare interface IPluginScriptInfo extends PluginScriptInfo {
|
|
3573
3573
|
url: string;
|
|
3574
3574
|
}
|
|
3575
3575
|
|
|
@@ -3622,7 +3622,7 @@ export declare interface IRecompileConfig {
|
|
|
3622
3622
|
generateEngineByCache: boolean;
|
|
3623
3623
|
}
|
|
3624
3624
|
|
|
3625
|
-
declare interface IRedirectInfo {
|
|
3625
|
+
export declare interface IRedirectInfo {
|
|
3626
3626
|
// 跳转资源的类型
|
|
3627
3627
|
type: string;
|
|
3628
3628
|
// 跳转资源的 uuid
|
|
@@ -3645,7 +3645,7 @@ export declare interface IScriptOptions {
|
|
|
3645
3645
|
bundleCommonChunk: boolean;
|
|
3646
3646
|
}
|
|
3647
3647
|
|
|
3648
|
-
declare interface IScriptProjectOption extends SharedSettings {
|
|
3648
|
+
export declare interface IScriptProjectOption extends SharedSettings {
|
|
3649
3649
|
ccEnvConstants: CCEnvConstants;
|
|
3650
3650
|
dbInfos: {
|
|
3651
3651
|
dbID: string;
|
|
@@ -3739,7 +3739,7 @@ export declare interface ISettingsDesignResolution {
|
|
|
3739
3739
|
policy: number;
|
|
3740
3740
|
}
|
|
3741
3741
|
|
|
3742
|
-
declare type IsExternal = (
|
|
3742
|
+
export declare type IsExternal = (
|
|
3743
3743
|
source: string,
|
|
3744
3744
|
importer: string | undefined,
|
|
3745
3745
|
isResolved: boolean
|
|
@@ -3752,14 +3752,14 @@ export declare interface ISignatureConfig {
|
|
|
3752
3752
|
|
|
3753
3753
|
export declare type ISortType = 'taskName' | 'createTime' | 'platform' | 'buildTime';
|
|
3754
3754
|
|
|
3755
|
-
declare interface ISplashBackgroundColor {
|
|
3755
|
+
export declare interface ISplashBackgroundColor {
|
|
3756
3756
|
x: number;
|
|
3757
3757
|
y: number;
|
|
3758
3758
|
z: number;
|
|
3759
3759
|
w: number;
|
|
3760
3760
|
}
|
|
3761
3761
|
|
|
3762
|
-
declare interface ISplashSetting {
|
|
3762
|
+
export declare interface ISplashSetting {
|
|
3763
3763
|
displayRatio: number;
|
|
3764
3764
|
totalTime: number;
|
|
3765
3765
|
watermarkLocation: 'default' | 'topLeft' | 'topRight' | 'topCenter' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
@@ -3794,7 +3794,7 @@ export declare interface ISpriteFrameInfo {
|
|
|
3794
3794
|
spriteFrame: any;
|
|
3795
3795
|
}
|
|
3796
3796
|
|
|
3797
|
-
declare type IsPureModule = (id: string) => boolean | null | void;
|
|
3797
|
+
export declare type IsPureModule = (id: string) => boolean | null | void;
|
|
3798
3798
|
|
|
3799
3799
|
export declare interface IStageTaskItemJSON extends ITaskItemJSON {
|
|
3800
3800
|
stage: string;
|
|
@@ -3814,7 +3814,7 @@ export declare interface ISuffixMap {
|
|
|
3814
3814
|
import: Record<string, string[]>;
|
|
3815
3815
|
}
|
|
3816
3816
|
|
|
3817
|
-
declare type ISupportCreateCCType =
|
|
3817
|
+
export declare type ISupportCreateCCType =
|
|
3818
3818
|
| 'cc.AnimationClip' // 动画剪辑
|
|
3819
3819
|
| 'cc.Script' // 脚本(TypeScript/JavaScript)
|
|
3820
3820
|
| 'cc.SpriteAtlas' // 精灵图集(自动图集)
|
|
@@ -3832,7 +3832,7 @@ declare type ISupportCreateCCType =
|
|
|
3832
3832
|
| 'cc.AnimationGraphVariant';
|
|
3833
3833
|
|
|
3834
3834
|
/** 支持创建的资源类型(从常量数组派生) */
|
|
3835
|
-
declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
|
|
3835
|
+
export declare type ISupportCreateType = typeof SUPPORT_CREATE_TYPES[number];
|
|
3836
3836
|
|
|
3837
3837
|
export declare interface ISupportFormat {
|
|
3838
3838
|
rgb: ITextureCompressType[];
|
|
@@ -3857,7 +3857,7 @@ export declare interface ITaskResultMap {
|
|
|
3857
3857
|
'build-task/pac'?: IBuildPacResult;
|
|
3858
3858
|
}
|
|
3859
3859
|
|
|
3860
|
-
declare interface ITaskResultMap_2 {
|
|
3860
|
+
export declare interface ITaskResultMap_2 {
|
|
3861
3861
|
'build-task/script'?: {
|
|
3862
3862
|
projectJs: string;
|
|
3863
3863
|
systemJs: string;
|
|
@@ -3913,7 +3913,7 @@ export declare interface ITransformOptions {
|
|
|
3913
3913
|
|
|
3914
3914
|
export declare type ITransformTarget = string | string[] | Record<string, string>;
|
|
3915
3915
|
|
|
3916
|
-
declare interface ITreeShakeConfig {
|
|
3916
|
+
export declare interface ITreeShakeConfig {
|
|
3917
3917
|
noSideEffectFiles: string[];
|
|
3918
3918
|
}
|
|
3919
3919
|
|
|
@@ -3939,7 +3939,7 @@ export declare interface IVec3Like {
|
|
|
3939
3939
|
z: number;
|
|
3940
3940
|
}
|
|
3941
3941
|
|
|
3942
|
-
declare interface IVec3Like_2 {
|
|
3942
|
+
export declare interface IVec3Like_2 {
|
|
3943
3943
|
x: number;
|
|
3944
3944
|
y: number;
|
|
3945
3945
|
z: number;
|
|
@@ -3960,7 +3960,7 @@ export declare interface IVersionMap {
|
|
|
3960
3960
|
}
|
|
3961
3961
|
|
|
3962
3962
|
/** glTF 虚拟子资源的通用 userData */
|
|
3963
|
-
declare interface IVirtualAssetUserData {
|
|
3963
|
+
export declare interface IVirtualAssetUserData {
|
|
3964
3964
|
/** 在 glTF 文件中的索引 */
|
|
3965
3965
|
gltfIndex?: number;
|
|
3966
3966
|
/** mesh 资源的面数 */
|
|
@@ -3976,20 +3976,20 @@ declare interface IVirtualAssetUserData {
|
|
|
3976
3976
|
}
|
|
3977
3977
|
|
|
3978
3978
|
/** JavaScript 资源的 userData */
|
|
3979
|
-
declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
|
|
3979
|
+
export declare type JavaScriptAssetUserData = ScriptModuleUserData | PluginScriptUserData;
|
|
3980
3980
|
|
|
3981
3981
|
/** JSON 资源的 userData */
|
|
3982
|
-
declare interface JsonAssetUserData {
|
|
3982
|
+
export declare interface JsonAssetUserData {
|
|
3983
3983
|
/** 是否启用 JSON5 解析 */
|
|
3984
3984
|
json5?: boolean;
|
|
3985
3985
|
}
|
|
3986
3986
|
|
|
3987
|
-
declare interface KerningDict {
|
|
3987
|
+
export declare interface KerningDict {
|
|
3988
3988
|
[key: number]: number;
|
|
3989
3989
|
}
|
|
3990
3990
|
|
|
3991
3991
|
/** 标签图集资源的 userData */
|
|
3992
|
-
declare interface LabelAtlasAssetUserData {
|
|
3992
|
+
export declare interface LabelAtlasAssetUserData {
|
|
3993
3993
|
itemWidth: number;
|
|
3994
3994
|
itemHeight: number;
|
|
3995
3995
|
startChar: string;
|
|
@@ -3998,18 +3998,18 @@ declare interface LabelAtlasAssetUserData {
|
|
|
3998
3998
|
_fntConfig: FntData;
|
|
3999
3999
|
}
|
|
4000
4000
|
|
|
4001
|
-
declare type LoadHook = (this: PluginContext, id: string) => LoadResult;
|
|
4001
|
+
export declare type LoadHook = (this: PluginContext, id: string) => LoadResult;
|
|
4002
4002
|
|
|
4003
|
-
declare type LoadResult = SourceDescription | string | null | void;
|
|
4003
|
+
export declare type LoadResult = SourceDescription | string | null | void;
|
|
4004
4004
|
|
|
4005
|
-
declare interface LODsOption {
|
|
4005
|
+
export declare interface LODsOption {
|
|
4006
4006
|
// 屏占比
|
|
4007
4007
|
screenRatio: number;
|
|
4008
4008
|
// 和 lod0 的减面比
|
|
4009
4009
|
faceCount: number;
|
|
4010
4010
|
}
|
|
4011
4011
|
|
|
4012
|
-
declare const enum LogLevel {
|
|
4012
|
+
export declare const enum LogLevel {
|
|
4013
4013
|
NONE = 0,
|
|
4014
4014
|
Error = 1,
|
|
4015
4015
|
WARN = 2,
|
|
@@ -4017,50 +4017,50 @@ declare const enum LogLevel {
|
|
|
4017
4017
|
DEBUG = 4
|
|
4018
4018
|
}
|
|
4019
4019
|
|
|
4020
|
-
declare type MacroItem = {
|
|
4020
|
+
export declare type MacroItem = {
|
|
4021
4021
|
key: string;
|
|
4022
4022
|
value: boolean;
|
|
4023
4023
|
}
|
|
4024
4024
|
|
|
4025
4025
|
export declare function make(platform: Platform, dest: string): Promise<IBuildResultData>;
|
|
4026
4026
|
|
|
4027
|
-
declare type MakeAsync<Fn> = Fn extends (this: infer This, ...args: infer Args) => infer Return
|
|
4027
|
+
export declare type MakeAsync<Fn> = Fn extends (this: infer This, ...args: infer Args) => infer Return
|
|
4028
4028
|
? (this: This, ...args: Args) => Return | Promise<Return>
|
|
4029
4029
|
: never;
|
|
4030
4030
|
|
|
4031
4031
|
export declare type MakeRequired<T, K extends keyof T> = T & Required<Pick<T, K>>;
|
|
4032
4032
|
|
|
4033
|
-
declare type ManualChunksOption = { [chunkAlias: string]: string[] } | GetManualChunk;
|
|
4033
|
+
export declare type ManualChunksOption = { [chunkAlias: string]: string[] } | GetManualChunk;
|
|
4034
4034
|
|
|
4035
4035
|
export declare interface Md5GlobbyPathInfo {
|
|
4036
4036
|
base: string;
|
|
4037
4037
|
pattern: string;
|
|
4038
4038
|
}
|
|
4039
4039
|
|
|
4040
|
-
declare interface MergedRollupOptions extends InputOptions {
|
|
4040
|
+
export declare interface MergedRollupOptions extends InputOptions {
|
|
4041
4041
|
output: OutputOptions[];
|
|
4042
4042
|
}
|
|
4043
4043
|
|
|
4044
|
-
declare interface MeshClusterOptions {
|
|
4044
|
+
export declare interface MeshClusterOptions {
|
|
4045
4045
|
enable: boolean;
|
|
4046
4046
|
coneCluster?: boolean;
|
|
4047
4047
|
}
|
|
4048
4048
|
|
|
4049
|
-
declare interface MeshCompressOptions {
|
|
4049
|
+
export declare interface MeshCompressOptions {
|
|
4050
4050
|
enable: boolean;
|
|
4051
4051
|
encode?: boolean;
|
|
4052
4052
|
compress?: boolean;
|
|
4053
4053
|
quantize?: boolean;
|
|
4054
4054
|
}
|
|
4055
4055
|
|
|
4056
|
-
declare interface MeshOptimizeOptions {
|
|
4056
|
+
export declare interface MeshOptimizeOptions {
|
|
4057
4057
|
enable: boolean;
|
|
4058
4058
|
vertexCache?: boolean;
|
|
4059
4059
|
vertexFetch?: boolean;
|
|
4060
4060
|
overdraw?: boolean;
|
|
4061
4061
|
}
|
|
4062
4062
|
|
|
4063
|
-
declare interface MeshOptimizerOption {
|
|
4063
|
+
export declare interface MeshOptimizerOption {
|
|
4064
4064
|
// 是否启用此功能
|
|
4065
4065
|
enable: boolean;
|
|
4066
4066
|
// 减面算法,默认 simplify
|
|
@@ -4070,7 +4070,7 @@ declare interface MeshOptimizerOption {
|
|
|
4070
4070
|
gltfpackOptions?: GltfpackOptions;
|
|
4071
4071
|
}
|
|
4072
4072
|
|
|
4073
|
-
declare interface MeshSimplifyOptions {
|
|
4073
|
+
export declare interface MeshSimplifyOptions {
|
|
4074
4074
|
enable: boolean;
|
|
4075
4075
|
targetRatio?: number;
|
|
4076
4076
|
autoErrorRate?: boolean;
|
|
@@ -4078,7 +4078,7 @@ declare interface MeshSimplifyOptions {
|
|
|
4078
4078
|
lockBoundary?: boolean;
|
|
4079
4079
|
}
|
|
4080
4080
|
|
|
4081
|
-
declare interface Meta {
|
|
4081
|
+
export declare interface Meta {
|
|
4082
4082
|
ver: string;
|
|
4083
4083
|
importer: string;
|
|
4084
4084
|
imported: boolean;
|
|
@@ -4095,13 +4095,13 @@ declare interface Meta {
|
|
|
4095
4095
|
name: string;
|
|
4096
4096
|
}
|
|
4097
4097
|
|
|
4098
|
-
declare interface MetaInfo {
|
|
4098
|
+
export declare interface MetaInfo {
|
|
4099
4099
|
json: Meta;
|
|
4100
4100
|
backup: string;
|
|
4101
4101
|
EOL: '\n' | '\r\n';
|
|
4102
4102
|
}
|
|
4103
4103
|
|
|
4104
|
-
declare class MetaManager {
|
|
4104
|
+
export declare class MetaManager {
|
|
4105
4105
|
path2meta: {
|
|
4106
4106
|
[index: string]: MetaInfo;
|
|
4107
4107
|
};
|
|
@@ -4134,35 +4134,35 @@ declare class MetaManager {
|
|
|
4134
4134
|
move(pathA: string, pathB: string): void;
|
|
4135
4135
|
}
|
|
4136
4136
|
|
|
4137
|
-
declare enum MinigamePlatform {
|
|
4137
|
+
export declare enum MinigamePlatform {
|
|
4138
4138
|
WECHAT = 0,
|
|
4139
4139
|
WECHAT_MINI_PROGRAM = 1,
|
|
4140
4140
|
BYTEDANCE = 3,
|
|
4141
|
-
XIAOMI = 4,
|
|
4142
4141
|
ALIPAY = 5,
|
|
4143
4142
|
TAOBAO = 6,
|
|
4144
4143
|
TAOBAO_MINIGAME = 7,
|
|
4145
4144
|
OPPO = 8,
|
|
4146
4145
|
VIVO = 9,
|
|
4147
4146
|
HUAWEI = 10,
|
|
4148
|
-
MIGU = 14,
|
|
4149
4147
|
HONOR = 15,
|
|
4150
4148
|
COCOS_RUNTIME = 16,
|
|
4149
|
+
SUD = 17,
|
|
4150
|
+
SUDV2 = 18,
|
|
4151
4151
|
}
|
|
4152
4152
|
|
|
4153
|
-
declare interface MinimalPluginContext {
|
|
4153
|
+
export declare interface MinimalPluginContext {
|
|
4154
4154
|
meta: PluginContextMeta;
|
|
4155
4155
|
}
|
|
4156
4156
|
|
|
4157
|
-
declare interface MissingAssetInfo {
|
|
4157
|
+
export declare interface MissingAssetInfo {
|
|
4158
4158
|
path: string;
|
|
4159
4159
|
time: number;
|
|
4160
4160
|
removeTime: number;
|
|
4161
4161
|
}
|
|
4162
4162
|
|
|
4163
|
-
declare type ModuleFormat = InternalModuleFormat | 'commonjs' | 'esm' | 'module' | 'systemjs';
|
|
4163
|
+
export declare type ModuleFormat = InternalModuleFormat | 'commonjs' | 'esm' | 'module' | 'systemjs';
|
|
4164
4164
|
|
|
4165
|
-
declare interface ModuleInfo extends ModuleOptions {
|
|
4165
|
+
export declare interface ModuleInfo extends ModuleOptions {
|
|
4166
4166
|
ast: AcornNode | null;
|
|
4167
4167
|
code: string | null;
|
|
4168
4168
|
dynamicImporters: readonly string[];
|
|
@@ -4182,7 +4182,7 @@ declare interface ModuleInfo extends ModuleOptions {
|
|
|
4182
4182
|
isIncluded: boolean | null;
|
|
4183
4183
|
}
|
|
4184
4184
|
|
|
4185
|
-
declare interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
|
|
4185
|
+
export declare interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
|
|
4186
4186
|
ast: AcornNode;
|
|
4187
4187
|
dependencies: string[];
|
|
4188
4188
|
id: string;
|
|
@@ -4190,13 +4190,13 @@ declare interface ModuleJSON extends TransformModuleJSON, ModuleOptions {
|
|
|
4190
4190
|
transformFiles: EmittedFile[] | undefined;
|
|
4191
4191
|
}
|
|
4192
4192
|
|
|
4193
|
-
declare interface ModuleOptions {
|
|
4193
|
+
export declare interface ModuleOptions {
|
|
4194
4194
|
meta: CustomPluginOptions;
|
|
4195
4195
|
moduleSideEffects: boolean | 'no-treeshake';
|
|
4196
4196
|
syntheticNamedExports: boolean | string;
|
|
4197
4197
|
}
|
|
4198
4198
|
|
|
4199
|
-
declare type ModuleParsedHook = (this: PluginContext, info: ModuleInfo) => void;
|
|
4199
|
+
export declare type ModuleParsedHook = (this: PluginContext, info: ModuleInfo) => void;
|
|
4200
4200
|
|
|
4201
4201
|
/**
|
|
4202
4202
|
* 模块保留选项。
|
|
@@ -4208,7 +4208,7 @@ declare type ModuleParsedHook = (this: PluginContext, info: ModuleInfo) => void;
|
|
|
4208
4208
|
*/
|
|
4209
4209
|
export declare type ModulePreservation = 'erase' | 'preserve' | 'facade';
|
|
4210
4210
|
|
|
4211
|
-
declare type ModuleSideEffectsOption = boolean | 'no-external' | string[] | HasModuleSideEffects;
|
|
4211
|
+
export declare type ModuleSideEffectsOption = boolean | 'no-external' | string[] | HasModuleSideEffects;
|
|
4212
4212
|
|
|
4213
4213
|
export declare interface nativeOptions {
|
|
4214
4214
|
template: string;
|
|
@@ -4227,7 +4227,7 @@ export declare interface nativeOptions {
|
|
|
4227
4227
|
buildScriptParam: ICustomBuildScriptParam;
|
|
4228
4228
|
}
|
|
4229
4229
|
|
|
4230
|
-
declare enum NativePlatform {
|
|
4230
|
+
export declare enum NativePlatform {
|
|
4231
4231
|
NATIVE_EDITOR = 0,
|
|
4232
4232
|
ANDROID = 1,
|
|
4233
4233
|
WINDOWS = 2,
|
|
@@ -4238,13 +4238,13 @@ declare enum NativePlatform {
|
|
|
4238
4238
|
LINUX = 7,
|
|
4239
4239
|
}
|
|
4240
4240
|
|
|
4241
|
-
declare enum NetMode {
|
|
4241
|
+
export declare enum NetMode {
|
|
4242
4242
|
client = 0,
|
|
4243
4243
|
hostServer = 1,
|
|
4244
4244
|
listenServer = 2
|
|
4245
4245
|
}
|
|
4246
4246
|
|
|
4247
|
-
declare enum NormalImportSetting {
|
|
4247
|
+
export declare enum NormalImportSetting {
|
|
4248
4248
|
/**
|
|
4249
4249
|
* 如果模型文件中包含法线信息则导出法线,否则不导出法线。
|
|
4250
4250
|
*/
|
|
@@ -4263,7 +4263,7 @@ declare enum NormalImportSetting {
|
|
|
4263
4263
|
recalculate = 3
|
|
4264
4264
|
}
|
|
4265
4265
|
|
|
4266
|
-
declare type NormalizedAmdOptions = (
|
|
4266
|
+
export declare type NormalizedAmdOptions = (
|
|
4267
4267
|
| {
|
|
4268
4268
|
autoId: false;
|
|
4269
4269
|
id?: string;
|
|
@@ -4277,7 +4277,7 @@ declare type NormalizedAmdOptions = (
|
|
|
4277
4277
|
forceJsExtensionForImports: boolean;
|
|
4278
4278
|
};
|
|
4279
4279
|
|
|
4280
|
-
declare interface NormalizedGeneratedCodeOptions {
|
|
4280
|
+
export declare interface NormalizedGeneratedCodeOptions {
|
|
4281
4281
|
arrowFunctions: boolean;
|
|
4282
4282
|
constBindings: boolean;
|
|
4283
4283
|
objectShorthand: boolean;
|
|
@@ -4285,7 +4285,7 @@ declare interface NormalizedGeneratedCodeOptions {
|
|
|
4285
4285
|
symbols: boolean;
|
|
4286
4286
|
}
|
|
4287
4287
|
|
|
4288
|
-
declare interface NormalizedInputOptions {
|
|
4288
|
+
export declare interface NormalizedInputOptions {
|
|
4289
4289
|
acorn: Record<string, unknown>;
|
|
4290
4290
|
acornInjectPlugins: (() => unknown)[];
|
|
4291
4291
|
cache: false | undefined | RollupCache;
|
|
@@ -4314,7 +4314,7 @@ declare interface NormalizedInputOptions {
|
|
|
4314
4314
|
treeshake: false | NormalizedTreeshakingOptions;
|
|
4315
4315
|
}
|
|
4316
4316
|
|
|
4317
|
-
declare interface NormalizedOutputOptions {
|
|
4317
|
+
export declare interface NormalizedOutputOptions {
|
|
4318
4318
|
amd: NormalizedAmdOptions;
|
|
4319
4319
|
assetFileNames: string | ((chunkInfo: PreRenderedAsset) => string);
|
|
4320
4320
|
banner: () => string | Promise<string>;
|
|
@@ -4362,7 +4362,7 @@ declare interface NormalizedOutputOptions {
|
|
|
4362
4362
|
validate: boolean;
|
|
4363
4363
|
}
|
|
4364
4364
|
|
|
4365
|
-
declare interface NormalizedTreeshakingOptions {
|
|
4365
|
+
export declare interface NormalizedTreeshakingOptions {
|
|
4366
4366
|
annotations: boolean;
|
|
4367
4367
|
correctVarValueBeforeDeclaration: boolean;
|
|
4368
4368
|
moduleSideEffects: HasModuleSideEffects;
|
|
@@ -4371,25 +4371,25 @@ declare interface NormalizedTreeshakingOptions {
|
|
|
4371
4371
|
unknownGlobalSideEffects: boolean;
|
|
4372
4372
|
}
|
|
4373
4373
|
|
|
4374
|
-
declare type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
|
|
4374
|
+
export declare type ObjectHook<T, O = {}> = T | ({ handler: T; order?: 'pre' | 'post' | null } & O);
|
|
4375
4375
|
|
|
4376
|
-
declare type OptionsPaths = Record<string, string> | ((id: string) => string);
|
|
4376
|
+
export declare type OptionsPaths = Record<string, string> | ((id: string) => string);
|
|
4377
4377
|
|
|
4378
|
-
declare interface OutputAsset extends PreRenderedAsset {
|
|
4378
|
+
export declare interface OutputAsset extends PreRenderedAsset {
|
|
4379
4379
|
fileName: string;
|
|
4380
4380
|
/** @deprecated Accessing "isAsset" on files in the bundle is deprecated, please use "type === \'asset\'" instead */
|
|
4381
4381
|
isAsset: true;
|
|
4382
4382
|
}
|
|
4383
4383
|
|
|
4384
|
-
declare interface OutputBundle {
|
|
4384
|
+
export declare interface OutputBundle {
|
|
4385
4385
|
[fileName: string]: OutputAsset | OutputChunk;
|
|
4386
4386
|
}
|
|
4387
4387
|
|
|
4388
|
-
declare interface OutputChunk extends RenderedChunk {
|
|
4388
|
+
export declare interface OutputChunk extends RenderedChunk {
|
|
4389
4389
|
code: string;
|
|
4390
4390
|
}
|
|
4391
4391
|
|
|
4392
|
-
declare interface OutputOptions {
|
|
4392
|
+
export declare interface OutputOptions {
|
|
4393
4393
|
amd?: AmdOptions;
|
|
4394
4394
|
assetFileNames?: string | ((chunkInfo: PreRenderedAsset) => string);
|
|
4395
4395
|
banner?: string | (() => string | Promise<string>);
|
|
@@ -4440,14 +4440,14 @@ declare interface OutputOptions {
|
|
|
4440
4440
|
validate?: boolean;
|
|
4441
4441
|
}
|
|
4442
4442
|
|
|
4443
|
-
declare interface OutputPlugin
|
|
4443
|
+
export declare interface OutputPlugin
|
|
4444
4444
|
extends Partial<{ [K in OutputPluginHooks]: PluginHooks[K] }>,
|
|
4445
4445
|
Partial<{ [K in AddonHooks]: ObjectHook<AddonHook> }> {
|
|
4446
4446
|
cacheKey?: string;
|
|
4447
4447
|
name: string;
|
|
4448
4448
|
}
|
|
4449
4449
|
|
|
4450
|
-
declare type OutputPluginHooks =
|
|
4450
|
+
export declare type OutputPluginHooks =
|
|
4451
4451
|
| 'augmentChunkHash'
|
|
4452
4452
|
| 'generateBundle'
|
|
4453
4453
|
| 'outputOptions'
|
|
@@ -4469,7 +4469,7 @@ export declare interface OverwriteProjectSettings extends IEngineConfig {
|
|
|
4469
4469
|
/**
|
|
4470
4470
|
* 一个图集信息
|
|
4471
4471
|
*/
|
|
4472
|
-
declare class PacInfo implements IPacInfo {
|
|
4472
|
+
export declare class PacInfo implements IPacInfo {
|
|
4473
4473
|
spriteFrameInfos: SpriteFrameInfo[];
|
|
4474
4474
|
spriteFrames: SpriteFrame[];
|
|
4475
4475
|
relativePath: string;
|
|
@@ -4506,7 +4506,7 @@ export declare interface PacStoreInfo {
|
|
|
4506
4506
|
options: IPackOptions;
|
|
4507
4507
|
}
|
|
4508
4508
|
|
|
4509
|
-
declare type ParallelPluginHooks = Exclude<
|
|
4509
|
+
export declare type ParallelPluginHooks = Exclude<
|
|
4510
4510
|
keyof FunctionPluginHooks | AddonHooks,
|
|
4511
4511
|
FirstPluginHooks | SequentialPluginHooks
|
|
4512
4512
|
>;
|
|
@@ -4514,7 +4514,7 @@ declare type ParallelPluginHooks = Exclude<
|
|
|
4514
4514
|
/**
|
|
4515
4515
|
* 瀑布流任务队列
|
|
4516
4516
|
*/
|
|
4517
|
-
declare class ParallelQueue<TaskObject, ReturnValue> {
|
|
4517
|
+
export declare class ParallelQueue<TaskObject, ReturnValue> {
|
|
4518
4518
|
private _thread;
|
|
4519
4519
|
private _waitQueue;
|
|
4520
4520
|
private _execQueue;
|
|
@@ -4570,17 +4570,17 @@ declare class ParallelQueue<TaskObject, ReturnValue> {
|
|
|
4570
4570
|
resume(id: number): void;
|
|
4571
4571
|
}
|
|
4572
4572
|
|
|
4573
|
-
declare type PartialNull<T> = {
|
|
4573
|
+
export declare type PartialNull<T> = {
|
|
4574
4574
|
[P in keyof T]: T[P] | null;
|
|
4575
4575
|
};
|
|
4576
4576
|
|
|
4577
|
-
declare interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
|
|
4577
|
+
export declare interface PartialResolvedId extends Partial<PartialNull<ModuleOptions>> {
|
|
4578
4578
|
external?: boolean | 'absolute' | 'relative';
|
|
4579
4579
|
id: string;
|
|
4580
4580
|
}
|
|
4581
4581
|
|
|
4582
4582
|
/** 粒子资源的 userData */
|
|
4583
|
-
declare interface ParticleAssetUserData {
|
|
4583
|
+
export declare interface ParticleAssetUserData {
|
|
4584
4584
|
totalParticles: number;
|
|
4585
4585
|
life: number;
|
|
4586
4586
|
lifeVar: number;
|
|
@@ -4652,28 +4652,28 @@ export declare interface PlatformPackageOptions {
|
|
|
4652
4652
|
[packageName: string]: Record<string, any>;
|
|
4653
4653
|
}
|
|
4654
4654
|
|
|
4655
|
-
declare type PlatformType = Uppercase<keyof typeof WebPlatform | keyof typeof MinigamePlatform | keyof typeof NativePlatform> | 'HTML5' | 'NATIVE' | 'NODEJS' | 'INVALID_PLATFORM';
|
|
4655
|
+
export declare type PlatformType = Uppercase<keyof typeof WebPlatform | keyof typeof MinigamePlatform | keyof typeof NativePlatform> | 'HTML5' | 'NATIVE' | 'NODEJS' | 'INVALID_PLATFORM';
|
|
4656
4656
|
|
|
4657
|
-
declare type PlatformType_2 = StatsQuery.ConstantManager.PlatformType;
|
|
4657
|
+
export declare type PlatformType_2 = StatsQuery.ConstantManager.PlatformType;
|
|
4658
4658
|
|
|
4659
4659
|
export declare interface PlatformTypeInfo {
|
|
4660
4660
|
icon: string;
|
|
4661
4661
|
displayName: string;
|
|
4662
4662
|
}
|
|
4663
4663
|
|
|
4664
|
-
declare interface Plugin_2 extends OutputPlugin, Partial<PluginHooks> {
|
|
4664
|
+
export declare interface Plugin_2 extends OutputPlugin, Partial<PluginHooks> {
|
|
4665
4665
|
// for inter-plugin communication
|
|
4666
4666
|
api?: any;
|
|
4667
4667
|
}
|
|
4668
4668
|
|
|
4669
|
-
declare interface PluginCache {
|
|
4669
|
+
export declare interface PluginCache {
|
|
4670
4670
|
delete(id: string): boolean;
|
|
4671
4671
|
get<T = any>(id: string): T;
|
|
4672
4672
|
has(id: string): boolean;
|
|
4673
4673
|
set<T = any>(id: string, value: T): void;
|
|
4674
4674
|
}
|
|
4675
4675
|
|
|
4676
|
-
declare interface PluginContext extends MinimalPluginContext {
|
|
4676
|
+
export declare interface PluginContext extends MinimalPluginContext {
|
|
4677
4677
|
addWatchFile: (id: string) => void;
|
|
4678
4678
|
cache: PluginCache;
|
|
4679
4679
|
/** @deprecated Use `this.emitFile` instead */
|
|
@@ -4709,12 +4709,12 @@ declare interface PluginContext extends MinimalPluginContext {
|
|
|
4709
4709
|
warn: (warning: RollupWarning | string, pos?: number | { column: number; line: number }) => void;
|
|
4710
4710
|
}
|
|
4711
4711
|
|
|
4712
|
-
declare interface PluginContextMeta {
|
|
4712
|
+
export declare interface PluginContextMeta {
|
|
4713
4713
|
rollupVersion: string;
|
|
4714
4714
|
watchMode: boolean;
|
|
4715
4715
|
}
|
|
4716
4716
|
|
|
4717
|
-
declare type PluginHooks = {
|
|
4717
|
+
export declare type PluginHooks = {
|
|
4718
4718
|
[K in keyof FunctionPluginHooks]: ObjectHook<
|
|
4719
4719
|
K extends AsyncPluginHooks ? MakeAsync<FunctionPluginHooks[K]> : FunctionPluginHooks[K],
|
|
4720
4720
|
K extends ParallelPluginHooks ? { sequential?: boolean } : {}
|
|
@@ -4731,9 +4731,9 @@ declare type PluginHooks = {
|
|
|
4731
4731
|
* const myPlugin: PluginImpl<Options> = (options = {}) => { ... }
|
|
4732
4732
|
* ```
|
|
4733
4733
|
*/
|
|
4734
|
-
declare type PluginImpl<O extends object = object> = (options?: O) => Plugin_2;
|
|
4734
|
+
export declare type PluginImpl<O extends object = object> = (options?: O) => Plugin_2;
|
|
4735
4735
|
|
|
4736
|
-
declare class PluginManager extends EventEmitter {
|
|
4736
|
+
export declare class PluginManager extends EventEmitter {
|
|
4737
4737
|
bundleConfigs: Record<string, PlatformBundleConfig>;
|
|
4738
4738
|
commonOptionConfig: Record<string, Record<string, IBuilderConfigItem & {
|
|
4739
4739
|
verifyKey: string;
|
|
@@ -4822,7 +4822,7 @@ declare class PluginManager extends EventEmitter {
|
|
|
4822
4822
|
|
|
4823
4823
|
export declare const pluginManager: PluginManager;
|
|
4824
4824
|
|
|
4825
|
-
declare interface PluginScriptInfo {
|
|
4825
|
+
export declare interface PluginScriptInfo {
|
|
4826
4826
|
/**
|
|
4827
4827
|
* 脚本文件。
|
|
4828
4828
|
*/
|
|
@@ -4831,7 +4831,7 @@ declare interface PluginScriptInfo {
|
|
|
4831
4831
|
}
|
|
4832
4832
|
|
|
4833
4833
|
/** JavaScript 插件脚本的 userData */
|
|
4834
|
-
declare interface PluginScriptUserData {
|
|
4834
|
+
export declare interface PluginScriptUserData {
|
|
4835
4835
|
isPlugin: true;
|
|
4836
4836
|
/** 界面没有开放给用户。默认开启 */
|
|
4837
4837
|
experimentalHideCommonJs?: boolean;
|
|
@@ -4849,20 +4849,20 @@ declare interface PluginScriptUserData {
|
|
|
4849
4849
|
}
|
|
4850
4850
|
|
|
4851
4851
|
/** 场景/预制体资源的 userData */
|
|
4852
|
-
declare interface PrefabAssetUserData {
|
|
4852
|
+
export declare interface PrefabAssetUserData {
|
|
4853
4853
|
/** 是否为持久节点 */
|
|
4854
4854
|
persistent?: boolean;
|
|
4855
4855
|
/** 同步节点名称 */
|
|
4856
4856
|
syncNodeName?: string;
|
|
4857
4857
|
}
|
|
4858
4858
|
|
|
4859
|
-
declare interface PreRenderedAsset {
|
|
4859
|
+
export declare interface PreRenderedAsset {
|
|
4860
4860
|
name: string | undefined;
|
|
4861
4861
|
source: string | Uint8Array;
|
|
4862
4862
|
type: 'asset';
|
|
4863
4863
|
}
|
|
4864
4864
|
|
|
4865
|
-
declare interface PreRenderedChunk {
|
|
4865
|
+
export declare interface PreRenderedChunk {
|
|
4866
4866
|
exports: string[];
|
|
4867
4867
|
facadeModuleId: string | null;
|
|
4868
4868
|
isDynamicEntry: boolean;
|
|
@@ -4875,7 +4875,7 @@ declare interface PreRenderedChunk {
|
|
|
4875
4875
|
type: 'chunk';
|
|
4876
4876
|
}
|
|
4877
4877
|
|
|
4878
|
-
declare type PreserveEntrySignaturesOption = false | 'strict' | 'allow-extension' | 'exports-only';
|
|
4878
|
+
export declare type PreserveEntrySignaturesOption = false | 'strict' | 'allow-extension' | 'exports-only';
|
|
4879
4879
|
|
|
4880
4880
|
export declare interface PreviewPackResult {
|
|
4881
4881
|
atlasImagePaths: string[];
|
|
@@ -4888,20 +4888,20 @@ export declare interface PreviewPackResult {
|
|
|
4888
4888
|
atlases: IAtlasInfo[];
|
|
4889
4889
|
}
|
|
4890
4890
|
|
|
4891
|
-
declare type PureModulesOption = boolean | string[] | IsPureModule;
|
|
4891
|
+
export declare type PureModulesOption = boolean | string[] | IsPureModule;
|
|
4892
4892
|
|
|
4893
4893
|
export declare function queryBuildConfig(): Promise<BuildConfiguration>;
|
|
4894
4894
|
|
|
4895
4895
|
export declare function queryDefaultBuildConfigByPlatform(platform: Platform): Promise<IBuildTaskOption<string>>;
|
|
4896
4896
|
|
|
4897
|
-
declare type RenderChunkHook = (
|
|
4897
|
+
export declare type RenderChunkHook = (
|
|
4898
4898
|
this: PluginContext,
|
|
4899
4899
|
code: string,
|
|
4900
4900
|
chunk: RenderedChunk,
|
|
4901
4901
|
options: NormalizedOutputOptions
|
|
4902
4902
|
) => { code: string; map?: SourceMapInput } | string | null | undefined;
|
|
4903
4903
|
|
|
4904
|
-
declare interface RenderedChunk extends PreRenderedChunk {
|
|
4904
|
+
export declare interface RenderedChunk extends PreRenderedChunk {
|
|
4905
4905
|
code?: string;
|
|
4906
4906
|
dynamicImports: string[];
|
|
4907
4907
|
fileName: string;
|
|
@@ -4914,7 +4914,7 @@ declare interface RenderedChunk extends PreRenderedChunk {
|
|
|
4914
4914
|
referencedFiles: string[];
|
|
4915
4915
|
}
|
|
4916
4916
|
|
|
4917
|
-
declare interface RenderedModule {
|
|
4917
|
+
export declare interface RenderedModule {
|
|
4918
4918
|
code: string | null;
|
|
4919
4919
|
originalLength: number;
|
|
4920
4920
|
removedExports: string[];
|
|
@@ -4923,12 +4923,12 @@ declare interface RenderedModule {
|
|
|
4923
4923
|
}
|
|
4924
4924
|
|
|
4925
4925
|
/** 渲染纹理资源的 userData */
|
|
4926
|
-
declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
|
|
4926
|
+
export declare interface RenderTextureAssetUserData extends TextureBaseAssetUserData {
|
|
4927
4927
|
width: number;
|
|
4928
4928
|
height: number;
|
|
4929
4929
|
}
|
|
4930
4930
|
|
|
4931
|
-
declare type ResolveAssetUrlHook = (
|
|
4931
|
+
export declare type ResolveAssetUrlHook = (
|
|
4932
4932
|
this: PluginContext,
|
|
4933
4933
|
options: {
|
|
4934
4934
|
assetFileName: string;
|
|
@@ -4939,22 +4939,22 @@ declare type ResolveAssetUrlHook = (
|
|
|
4939
4939
|
}
|
|
4940
4940
|
) => string | null | void;
|
|
4941
4941
|
|
|
4942
|
-
declare interface ResolvedId extends ModuleOptions {
|
|
4942
|
+
export declare interface ResolvedId extends ModuleOptions {
|
|
4943
4943
|
external: boolean | 'absolute';
|
|
4944
4944
|
id: string;
|
|
4945
4945
|
}
|
|
4946
4946
|
|
|
4947
|
-
declare interface ResolvedIdMap {
|
|
4947
|
+
export declare interface ResolvedIdMap {
|
|
4948
4948
|
[key: string]: ResolvedId;
|
|
4949
4949
|
}
|
|
4950
4950
|
|
|
4951
|
-
declare type ResolveDynamicImportHook = (
|
|
4951
|
+
export declare type ResolveDynamicImportHook = (
|
|
4952
4952
|
this: PluginContext,
|
|
4953
4953
|
specifier: string | AcornNode,
|
|
4954
4954
|
importer: string
|
|
4955
4955
|
) => ResolveIdResult;
|
|
4956
4956
|
|
|
4957
|
-
declare type ResolveFileUrlHook = (
|
|
4957
|
+
export declare type ResolveFileUrlHook = (
|
|
4958
4958
|
this: PluginContext,
|
|
4959
4959
|
options: {
|
|
4960
4960
|
assetReferenceId: string | null;
|
|
@@ -4968,16 +4968,16 @@ declare type ResolveFileUrlHook = (
|
|
|
4968
4968
|
}
|
|
4969
4969
|
) => string | null | void;
|
|
4970
4970
|
|
|
4971
|
-
declare type ResolveIdHook = (
|
|
4971
|
+
export declare type ResolveIdHook = (
|
|
4972
4972
|
this: PluginContext,
|
|
4973
4973
|
source: string,
|
|
4974
4974
|
importer: string | undefined,
|
|
4975
4975
|
options: { custom?: CustomPluginOptions; isEntry: boolean }
|
|
4976
4976
|
) => ResolveIdResult;
|
|
4977
4977
|
|
|
4978
|
-
declare type ResolveIdResult = string | false | null | void | PartialResolvedId;
|
|
4978
|
+
export declare type ResolveIdResult = string | false | null | void | PartialResolvedId;
|
|
4979
4979
|
|
|
4980
|
-
declare type ResolveImportMetaHook = (
|
|
4980
|
+
export declare type ResolveImportMetaHook = (
|
|
4981
4981
|
this: PluginContext,
|
|
4982
4982
|
prop: string | null,
|
|
4983
4983
|
options: { chunkId: string; format: InternalModuleFormat; moduleId: string }
|
|
@@ -5110,9 +5110,9 @@ declare namespace rollup {
|
|
|
5110
5110
|
};
|
|
5111
5111
|
}
|
|
5112
5112
|
|
|
5113
|
-
declare function rollup_2(options: RollupOptions): Promise<RollupBuild>;
|
|
5113
|
+
export declare function rollup_2(options: RollupOptions): Promise<RollupBuild>;
|
|
5114
5114
|
|
|
5115
|
-
declare interface RollupAwaitingEmitter<T extends { [event: string]: (...args: any) => any }>
|
|
5115
|
+
export declare interface RollupAwaitingEmitter<T extends { [event: string]: (...args: any) => any }>
|
|
5116
5116
|
extends TypedEventEmitter<T> {
|
|
5117
5117
|
close(): Promise<void>;
|
|
5118
5118
|
emitAndAwait<K extends keyof T>(event: K, ...args: Parameters<T[K]>): Promise<ReturnType<T[K]>[]>;
|
|
@@ -5130,7 +5130,7 @@ declare interface RollupAwaitingEmitter<T extends { [event: string]: (...args: a
|
|
|
5130
5130
|
removeAwaited(): this;
|
|
5131
5131
|
}
|
|
5132
5132
|
|
|
5133
|
-
declare interface RollupBuild {
|
|
5133
|
+
export declare interface RollupBuild {
|
|
5134
5134
|
cache: RollupCache | undefined;
|
|
5135
5135
|
close: () => Promise<void>;
|
|
5136
5136
|
closed: boolean;
|
|
@@ -5140,18 +5140,18 @@ declare interface RollupBuild {
|
|
|
5140
5140
|
write: (options: OutputOptions) => Promise<RollupOutput>;
|
|
5141
5141
|
}
|
|
5142
5142
|
|
|
5143
|
-
declare interface RollupCache {
|
|
5143
|
+
export declare interface RollupCache {
|
|
5144
5144
|
modules: ModuleJSON[];
|
|
5145
5145
|
plugins?: Record<string, SerializablePluginCache>;
|
|
5146
5146
|
}
|
|
5147
5147
|
|
|
5148
|
-
declare interface RollupError extends RollupLogProps {
|
|
5148
|
+
export declare interface RollupError extends RollupLogProps {
|
|
5149
5149
|
parserError?: Error;
|
|
5150
5150
|
stack?: string;
|
|
5151
5151
|
watchFiles?: string[];
|
|
5152
5152
|
}
|
|
5153
5153
|
|
|
5154
|
-
declare interface RollupLogProps {
|
|
5154
|
+
export declare interface RollupLogProps {
|
|
5155
5155
|
code?: string;
|
|
5156
5156
|
frame?: string;
|
|
5157
5157
|
hook?: string;
|
|
@@ -5169,16 +5169,16 @@ declare interface RollupLogProps {
|
|
|
5169
5169
|
url?: string;
|
|
5170
5170
|
}
|
|
5171
5171
|
|
|
5172
|
-
declare interface RollupOptions extends InputOptions {
|
|
5172
|
+
export declare interface RollupOptions extends InputOptions {
|
|
5173
5173
|
// This is included for compatibility with config files but ignored by rollup.rollup
|
|
5174
5174
|
output?: OutputOptions | OutputOptions[];
|
|
5175
5175
|
}
|
|
5176
5176
|
|
|
5177
|
-
declare interface RollupOutput {
|
|
5177
|
+
export declare interface RollupOutput {
|
|
5178
5178
|
output: [OutputChunk, ...(OutputChunk | OutputAsset)[]];
|
|
5179
5179
|
}
|
|
5180
5180
|
|
|
5181
|
-
declare interface RollupWarning extends RollupLogProps {
|
|
5181
|
+
export declare interface RollupWarning extends RollupLogProps {
|
|
5182
5182
|
chunkName?: string;
|
|
5183
5183
|
cycle?: string[];
|
|
5184
5184
|
exportName?: string;
|
|
@@ -5193,14 +5193,14 @@ declare interface RollupWarning extends RollupLogProps {
|
|
|
5193
5193
|
sources?: string[];
|
|
5194
5194
|
}
|
|
5195
5195
|
|
|
5196
|
-
declare type RollupWatcher = RollupAwaitingEmitter<{
|
|
5196
|
+
export declare type RollupWatcher = RollupAwaitingEmitter<{
|
|
5197
5197
|
change: (id: string, change: { event: ChangeEvent }) => void;
|
|
5198
5198
|
close: () => void;
|
|
5199
5199
|
event: (event: RollupWatcherEvent) => void;
|
|
5200
5200
|
restart: () => void;
|
|
5201
5201
|
}>;
|
|
5202
5202
|
|
|
5203
|
-
declare type RollupWatcherEvent =
|
|
5203
|
+
export declare type RollupWatcherEvent =
|
|
5204
5204
|
| { code: 'START' }
|
|
5205
5205
|
| { code: 'BUNDLE_START'; input?: InputOption; output: readonly string[] }
|
|
5206
5206
|
| {
|
|
@@ -5213,15 +5213,15 @@ declare type RollupWatcherEvent =
|
|
|
5213
5213
|
| { code: 'END' }
|
|
5214
5214
|
| { code: 'ERROR'; error: RollupError; result: RollupBuild | null };
|
|
5215
5215
|
|
|
5216
|
-
declare type RollupWatchHooks = 'onError' | 'onStart' | 'onBundleStart' | 'onBundleEnd' | 'onEnd';
|
|
5216
|
+
export declare type RollupWatchHooks = 'onError' | 'onStart' | 'onBundleStart' | 'onBundleEnd' | 'onEnd';
|
|
5217
5217
|
|
|
5218
|
-
declare interface RollupWatchOptions extends InputOptions {
|
|
5218
|
+
export declare interface RollupWatchOptions extends InputOptions {
|
|
5219
5219
|
output?: OutputOptions | OutputOptions[];
|
|
5220
5220
|
watch?: WatcherOptions | false;
|
|
5221
5221
|
}
|
|
5222
5222
|
|
|
5223
5223
|
/** 渲染纹理精灵帧的 userData */
|
|
5224
|
-
declare interface RtSpriteFrameAssetUserData {
|
|
5224
|
+
export declare interface RtSpriteFrameAssetUserData {
|
|
5225
5225
|
/** 图片 UUID 或数据库 URI */
|
|
5226
5226
|
imageUuidOrDatabaseUri: string;
|
|
5227
5227
|
/** 宽度 */
|
|
@@ -5246,7 +5246,7 @@ export declare class ScriptBuilder {
|
|
|
5246
5246
|
static outputImportMap(importMap: ImportMap, options: IImportMapOptions): Promise<void>;
|
|
5247
5247
|
}
|
|
5248
5248
|
|
|
5249
|
-
declare class ScriptBuilder_2 {
|
|
5249
|
+
export declare class ScriptBuilder_2 {
|
|
5250
5250
|
_scriptOptions: IScriptOptions;
|
|
5251
5251
|
_importMapOptions: ImportMapOptions;
|
|
5252
5252
|
scriptPackages: string[];
|
|
@@ -5269,11 +5269,11 @@ declare class ScriptBuilder_2 {
|
|
|
5269
5269
|
}
|
|
5270
5270
|
|
|
5271
5271
|
/** JavaScript 脚本模块的 userData */
|
|
5272
|
-
declare interface ScriptModuleUserData {
|
|
5272
|
+
export declare interface ScriptModuleUserData {
|
|
5273
5273
|
isPlugin: false;
|
|
5274
5274
|
}
|
|
5275
5275
|
|
|
5276
|
-
declare type SequentialPluginHooks =
|
|
5276
|
+
export declare type SequentialPluginHooks =
|
|
5277
5277
|
| 'augmentChunkHash'
|
|
5278
5278
|
| 'generateBundle'
|
|
5279
5279
|
| 'options'
|
|
@@ -5281,11 +5281,11 @@ declare type SequentialPluginHooks =
|
|
|
5281
5281
|
| 'renderChunk'
|
|
5282
5282
|
| 'transform';
|
|
5283
5283
|
|
|
5284
|
-
declare interface SerializablePluginCache {
|
|
5284
|
+
export declare interface SerializablePluginCache {
|
|
5285
5285
|
[key: string]: [number, any];
|
|
5286
5286
|
}
|
|
5287
5287
|
|
|
5288
|
-
declare interface SerializedAssetFinder {
|
|
5288
|
+
export declare interface SerializedAssetFinder {
|
|
5289
5289
|
meshes?: Array<string | null>;
|
|
5290
5290
|
animations?: Array<string | null>;
|
|
5291
5291
|
skeletons?: Array<string | null>;
|
|
@@ -5294,11 +5294,11 @@ declare interface SerializedAssetFinder {
|
|
|
5294
5294
|
scenes?: Array<string | null>;
|
|
5295
5295
|
}
|
|
5296
5296
|
|
|
5297
|
-
declare interface SerializedTimings {
|
|
5297
|
+
export declare interface SerializedTimings {
|
|
5298
5298
|
[label: string]: [number, number, number];
|
|
5299
5299
|
}
|
|
5300
5300
|
|
|
5301
|
-
declare interface SharedSettings {
|
|
5301
|
+
export declare interface SharedSettings {
|
|
5302
5302
|
useDefineForClassFields: boolean;
|
|
5303
5303
|
allowDeclareFields: boolean;
|
|
5304
5304
|
loose: boolean;
|
|
@@ -5314,7 +5314,7 @@ declare interface SharedSettings {
|
|
|
5314
5314
|
};
|
|
5315
5315
|
}
|
|
5316
5316
|
|
|
5317
|
-
declare type ShouldTransformCachedModuleHook = (
|
|
5317
|
+
export declare type ShouldTransformCachedModuleHook = (
|
|
5318
5318
|
this: PluginContext,
|
|
5319
5319
|
options: {
|
|
5320
5320
|
ast: AcornNode;
|
|
@@ -5327,12 +5327,12 @@ declare type ShouldTransformCachedModuleHook = (
|
|
|
5327
5327
|
}
|
|
5328
5328
|
) => boolean;
|
|
5329
5329
|
|
|
5330
|
-
declare interface SimpleInfo {
|
|
5330
|
+
export declare interface SimpleInfo {
|
|
5331
5331
|
time: number;
|
|
5332
5332
|
uuid?: string;
|
|
5333
5333
|
}
|
|
5334
5334
|
|
|
5335
|
-
declare interface SimplifyOptions {
|
|
5335
|
+
export declare interface SimplifyOptions {
|
|
5336
5336
|
// 压缩比例
|
|
5337
5337
|
targetRatio?: number;
|
|
5338
5338
|
// 防止破面
|
|
@@ -5343,13 +5343,13 @@ declare interface SimplifyOptions {
|
|
|
5343
5343
|
maxIterationCount?: number;
|
|
5344
5344
|
}
|
|
5345
5345
|
|
|
5346
|
-
declare interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
5346
|
+
export declare interface SourceDescription extends Partial<PartialNull<ModuleOptions>> {
|
|
5347
5347
|
ast?: AcornNode;
|
|
5348
5348
|
code: string;
|
|
5349
5349
|
map?: SourceMapInput;
|
|
5350
5350
|
}
|
|
5351
5351
|
|
|
5352
|
-
declare interface SourceMap {
|
|
5352
|
+
export declare interface SourceMap {
|
|
5353
5353
|
file: string;
|
|
5354
5354
|
mappings: string;
|
|
5355
5355
|
names: string[];
|
|
@@ -5360,26 +5360,26 @@ declare interface SourceMap {
|
|
|
5360
5360
|
toUrl(): string;
|
|
5361
5361
|
}
|
|
5362
5362
|
|
|
5363
|
-
declare type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };
|
|
5363
|
+
export declare type SourceMapInput = ExistingRawSourceMap | string | null | { mappings: '' };
|
|
5364
5364
|
|
|
5365
|
-
declare type SourcemapPathTransformOption = (
|
|
5365
|
+
export declare type SourcemapPathTransformOption = (
|
|
5366
5366
|
relativeSourcePath: string,
|
|
5367
5367
|
sourcemapPath: string
|
|
5368
5368
|
) => string;
|
|
5369
5369
|
|
|
5370
|
-
declare type SourceMapSegment =
|
|
5370
|
+
export declare type SourceMapSegment =
|
|
5371
5371
|
| [number]
|
|
5372
5372
|
| [number, number, number, number]
|
|
5373
5373
|
| [number, number, number, number, number];
|
|
5374
5374
|
|
|
5375
5375
|
/** Spine 资源的 userData */
|
|
5376
|
-
declare interface SpineAssetUserData {
|
|
5376
|
+
export declare interface SpineAssetUserData {
|
|
5377
5377
|
/** 图集资源的 UUID */
|
|
5378
5378
|
atlasUuid: string;
|
|
5379
5379
|
}
|
|
5380
5380
|
|
|
5381
5381
|
/** 精灵图集资源的 userData */
|
|
5382
|
-
declare interface SpriteAtlasAssetUserData {
|
|
5382
|
+
export declare interface SpriteAtlasAssetUserData {
|
|
5383
5383
|
/** 图集纹理名称 */
|
|
5384
5384
|
atlasTextureName: string;
|
|
5385
5385
|
/** 纹理 UUID */
|
|
@@ -5392,12 +5392,12 @@ declare interface SpriteAtlasAssetUserData {
|
|
|
5392
5392
|
format: number;
|
|
5393
5393
|
}
|
|
5394
5394
|
|
|
5395
|
-
declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
|
|
5395
|
+
export declare interface SpriteFrameAssetUserData extends SpriteFrameBaseAssetUserData {
|
|
5396
5396
|
isUuid?: boolean;
|
|
5397
5397
|
imageUuidOrDatabaseUri: string;
|
|
5398
5398
|
}
|
|
5399
5399
|
|
|
5400
|
-
declare interface SpriteFrameBaseAssetUserData {
|
|
5400
|
+
export declare interface SpriteFrameBaseAssetUserData {
|
|
5401
5401
|
trimType?: string;
|
|
5402
5402
|
trimThreshold: number;
|
|
5403
5403
|
rotated: boolean;
|
|
@@ -5421,7 +5421,7 @@ declare interface SpriteFrameBaseAssetUserData {
|
|
|
5421
5421
|
vertices: SpriteFrameVertices;
|
|
5422
5422
|
}
|
|
5423
5423
|
|
|
5424
|
-
declare class SpriteFrameInfo {
|
|
5424
|
+
export declare class SpriteFrameInfo {
|
|
5425
5425
|
name: string;
|
|
5426
5426
|
uuid: string;
|
|
5427
5427
|
imageUuid: string;
|
|
@@ -5449,7 +5449,7 @@ declare class SpriteFrameInfo {
|
|
|
5449
5449
|
toJSON(): any;
|
|
5450
5450
|
}
|
|
5451
5451
|
|
|
5452
|
-
declare interface SpriteFrameVertices {
|
|
5452
|
+
export declare interface SpriteFrameVertices {
|
|
5453
5453
|
rawPosition: number[];
|
|
5454
5454
|
indexes: number[];
|
|
5455
5455
|
uv: number[];
|
|
@@ -5463,7 +5463,7 @@ declare interface SpriteFrameVertices {
|
|
|
5463
5463
|
* Query any any stats of the engine.
|
|
5464
5464
|
* @group Merged Types
|
|
5465
5465
|
*/
|
|
5466
|
-
declare class StatsQuery {
|
|
5466
|
+
export declare class StatsQuery {
|
|
5467
5467
|
/**
|
|
5468
5468
|
* @param engine Path to the engine root.
|
|
5469
5469
|
*/
|
|
@@ -5558,7 +5558,7 @@ declare class StatsQuery {
|
|
|
5558
5558
|
*/
|
|
5559
5559
|
declare namespace StatsQuery {
|
|
5560
5560
|
namespace ConstantManager {
|
|
5561
|
-
type PlatformType = 'WEB_EDITOR' | 'WEB_MOBILE' | 'WEB_DESKTOP' | 'WECHAT' | 'WECHAT_MINI_PROGRAM' | 'BYTEDANCE' | '
|
|
5561
|
+
type PlatformType = 'WEB_EDITOR' | 'WEB_MOBILE' | 'WEB_DESKTOP' | 'WECHAT' | 'WECHAT_MINI_PROGRAM' | 'BYTEDANCE' | 'ALIPAY' | 'TAOBAO' | 'TAOBAO_MINIGAME' | 'OPPO' | 'VIVO' | 'HUAWEI' | 'HONOR' | 'COCOS_RUNTIME' | 'SUD' | 'SUDV2' | 'NATIVE_EDITOR' | 'ANDROID' | 'WINDOWS' | 'IOS' | 'MAC' | 'OHOS' | 'OPEN_HARMONY' | 'LINUX' | 'HTML5' | 'NATIVE' | 'NODEJS' | 'INVALID_PLATFORM';
|
|
5562
5562
|
type IPlatformConfig = { [key in PlatformType]: boolean };
|
|
5563
5563
|
interface IInternalFlagConfig {
|
|
5564
5564
|
SERVER_MODE: boolean;
|
|
@@ -5588,10 +5588,6 @@ declare namespace StatsQuery {
|
|
|
5588
5588
|
* An internal constant to indicate whether we're using ui skew module.
|
|
5589
5589
|
*/
|
|
5590
5590
|
USE_UI_SKEW: boolean;
|
|
5591
|
-
/**
|
|
5592
|
-
* An internal constant to indicate whether we're using sorting-2d module.
|
|
5593
|
-
*/
|
|
5594
|
-
USE_SORTING_2D: boolean;
|
|
5595
5591
|
}
|
|
5596
5592
|
interface IPublicFlagConfig {
|
|
5597
5593
|
DEBUG: boolean;
|
|
@@ -5639,15 +5635,15 @@ declare namespace StatsQuery {
|
|
|
5639
5635
|
}
|
|
5640
5636
|
}
|
|
5641
5637
|
|
|
5642
|
-
declare interface StoreInfo {
|
|
5638
|
+
export declare interface StoreInfo {
|
|
5643
5639
|
uuid: string;
|
|
5644
5640
|
mtime: number;
|
|
5645
5641
|
}
|
|
5646
5642
|
|
|
5647
5643
|
/** 支持创建的资源类型常量数组(用于 Zod enum 和 TypeScript type) */
|
|
5648
|
-
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'];
|
|
5644
|
+
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'];
|
|
5649
5645
|
|
|
5650
|
-
declare type SyncPluginHooks =
|
|
5646
|
+
export declare type SyncPluginHooks =
|
|
5651
5647
|
| 'augmentChunkHash'
|
|
5652
5648
|
| 'outputOptions'
|
|
5653
5649
|
| 'renderDynamicImport'
|
|
@@ -5655,7 +5651,7 @@ declare type SyncPluginHooks =
|
|
|
5655
5651
|
| 'resolveFileUrl'
|
|
5656
5652
|
| 'resolveImportMeta';
|
|
5657
5653
|
|
|
5658
|
-
declare enum TangentImportSetting {
|
|
5654
|
+
export declare enum TangentImportSetting {
|
|
5659
5655
|
/**
|
|
5660
5656
|
* 不在导出的网格中包含正切信息。
|
|
5661
5657
|
*/
|
|
@@ -5680,7 +5676,7 @@ export declare const enum TaskAddResult {
|
|
|
5680
5676
|
PARAM_ERROR = 2
|
|
5681
5677
|
}
|
|
5682
5678
|
|
|
5683
|
-
declare class TaskManager {
|
|
5679
|
+
export declare class TaskManager {
|
|
5684
5680
|
private static readonly tasks;
|
|
5685
5681
|
static readonly pluginTasks: Record<IPluginHookName, IPluginHookName>;
|
|
5686
5682
|
private static buildTaskMap;
|
|
@@ -5693,16 +5689,16 @@ declare class TaskManager {
|
|
|
5693
5689
|
activeCustomTask(name: string, taskNames: string[]): any[];
|
|
5694
5690
|
}
|
|
5695
5691
|
|
|
5696
|
-
declare type TaskType = 'dataTasks' | 'settingTasks' | 'buildTasks' | 'md5Tasks' | 'postprocessTasks' | string;
|
|
5692
|
+
export declare type TaskType = 'dataTasks' | 'settingTasks' | 'buildTasks' | 'md5Tasks' | 'postprocessTasks' | string;
|
|
5697
5693
|
|
|
5698
|
-
declare type Test = string;
|
|
5694
|
+
export declare type Test = string;
|
|
5699
5695
|
|
|
5700
|
-
declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
|
|
5696
|
+
export declare interface Texture2DAssetUserData extends TextureBaseAssetUserData {
|
|
5701
5697
|
isUuid?: boolean;
|
|
5702
5698
|
imageUuidOrDatabaseUri?: string;
|
|
5703
5699
|
}
|
|
5704
5700
|
|
|
5705
|
-
declare interface TextureBaseAssetUserData {
|
|
5701
|
+
export declare interface TextureBaseAssetUserData {
|
|
5706
5702
|
wrapModeS: WrapMode;
|
|
5707
5703
|
wrapModeT: WrapMode;
|
|
5708
5704
|
minfilter: Filter;
|
|
@@ -5719,7 +5715,7 @@ export declare interface TextureCompress {
|
|
|
5719
5715
|
run(): Promise<void>;
|
|
5720
5716
|
}
|
|
5721
5717
|
|
|
5722
|
-
declare class TextureCompress_2 extends EventEmitter_2 {
|
|
5718
|
+
export declare class TextureCompress_2 extends EventEmitter_2 {
|
|
5723
5719
|
_taskMap: Record<string, IImageTaskInfo>;
|
|
5724
5720
|
platform: string;
|
|
5725
5721
|
static overwriteFormats: Record<string, string>;
|
|
@@ -5812,7 +5808,7 @@ declare class TextureCompress_2 extends EventEmitter_2 {
|
|
|
5812
5808
|
compressImageByConfig(optionItem: ICompressConfig): Promise<void>;
|
|
5813
5809
|
}
|
|
5814
5810
|
|
|
5815
|
-
declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
5811
|
+
export declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
5816
5812
|
imageDatabaseUri?: string;
|
|
5817
5813
|
isRGBE: boolean;
|
|
5818
5814
|
|
|
@@ -5833,13 +5829,13 @@ declare interface TextureCubeAssetUserData extends TextureBaseAssetUserData {
|
|
|
5833
5829
|
bottom?: string;
|
|
5834
5830
|
}
|
|
5835
5831
|
|
|
5836
|
-
declare type TransformHook = (
|
|
5832
|
+
export declare type TransformHook = (
|
|
5837
5833
|
this: TransformPluginContext,
|
|
5838
5834
|
code: string,
|
|
5839
5835
|
id: string
|
|
5840
5836
|
) => TransformResult;
|
|
5841
5837
|
|
|
5842
|
-
declare interface TransformModuleJSON {
|
|
5838
|
+
export declare interface TransformModuleJSON {
|
|
5843
5839
|
ast?: AcornNode;
|
|
5844
5840
|
code: string;
|
|
5845
5841
|
// note if plugins use new this.cache to opt-out auto transform cache
|
|
@@ -5862,13 +5858,13 @@ export declare interface TransformOptions {
|
|
|
5862
5858
|
targets?: ITransformTarget;
|
|
5863
5859
|
}
|
|
5864
5860
|
|
|
5865
|
-
declare interface TransformPluginContext extends PluginContext {
|
|
5861
|
+
export declare interface TransformPluginContext extends PluginContext {
|
|
5866
5862
|
getCombinedSourcemap: () => SourceMap;
|
|
5867
5863
|
}
|
|
5868
5864
|
|
|
5869
|
-
declare type TransformResult = string | null | void | Partial<SourceDescription>;
|
|
5865
|
+
export declare type TransformResult = string | null | void | Partial<SourceDescription>;
|
|
5870
5866
|
|
|
5871
|
-
declare interface TreeshakingOptions
|
|
5867
|
+
export declare interface TreeshakingOptions
|
|
5872
5868
|
extends Partial<Omit<NormalizedTreeshakingOptions, 'moduleSideEffects'>> {
|
|
5873
5869
|
moduleSideEffects?: ModuleSideEffectsOption;
|
|
5874
5870
|
preset?: TreeshakingPreset;
|
|
@@ -5876,9 +5872,9 @@ declare interface TreeshakingOptions
|
|
|
5876
5872
|
pureExternalModules?: PureModulesOption;
|
|
5877
5873
|
}
|
|
5878
5874
|
|
|
5879
|
-
declare type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
|
|
5875
|
+
export declare type TreeshakingPreset = 'smallest' | 'safest' | 'recommended';
|
|
5880
5876
|
|
|
5881
|
-
declare interface TypedEventEmitter<T extends { [event: string]: (...args: any) => any }> {
|
|
5877
|
+
export declare interface TypedEventEmitter<T extends { [event: string]: (...args: any) => any }> {
|
|
5882
5878
|
addListener<K extends keyof T>(event: K, listener: T[K]): this;
|
|
5883
5879
|
emit<K extends keyof T>(event: K, ...args: Parameters<T[K]>): boolean;
|
|
5884
5880
|
eventNames(): Array<keyof T>;
|
|
@@ -5920,13 +5916,13 @@ export declare interface UserCompressConfig {
|
|
|
5920
5916
|
|
|
5921
5917
|
export declare type UUID = string;
|
|
5922
5918
|
|
|
5923
|
-
declare const VERSION: string;
|
|
5919
|
+
export declare const VERSION: string;
|
|
5924
5920
|
|
|
5925
5921
|
/**
|
|
5926
5922
|
* 虚拟的 asset 实例
|
|
5927
5923
|
* 没有对应的源文件都的都是虚拟 asset
|
|
5928
5924
|
*/
|
|
5929
|
-
declare class VirtualAsset {
|
|
5925
|
+
export declare class VirtualAsset {
|
|
5930
5926
|
versionCode: number;
|
|
5931
5927
|
_init: boolean;
|
|
5932
5928
|
importError: Error | any;
|
|
@@ -6068,22 +6064,22 @@ declare class VirtualAsset {
|
|
|
6068
6064
|
getSwapSpace<T>(): T;
|
|
6069
6065
|
}
|
|
6070
6066
|
|
|
6071
|
-
declare type WarningHandler = (warning: RollupWarning) => void;
|
|
6067
|
+
export declare type WarningHandler = (warning: RollupWarning) => void;
|
|
6072
6068
|
|
|
6073
|
-
declare type WarningHandlerWithDefault = (
|
|
6069
|
+
export declare type WarningHandlerWithDefault = (
|
|
6074
6070
|
warning: RollupWarning,
|
|
6075
6071
|
defaultHandler: WarningHandler
|
|
6076
6072
|
) => void;
|
|
6077
6073
|
|
|
6078
|
-
declare function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
|
|
6074
|
+
export declare function watch(config: RollupWatchOptions | RollupWatchOptions[]): RollupWatcher;
|
|
6079
6075
|
|
|
6080
|
-
declare type WatchChangeHook = (
|
|
6076
|
+
export declare type WatchChangeHook = (
|
|
6081
6077
|
this: PluginContext,
|
|
6082
6078
|
id: string,
|
|
6083
6079
|
change: { event: ChangeEvent }
|
|
6084
6080
|
) => void;
|
|
6085
6081
|
|
|
6086
|
-
declare interface WatcherOptions {
|
|
6082
|
+
export declare interface WatcherOptions {
|
|
6087
6083
|
buildDelay?: number;
|
|
6088
6084
|
chokidar?: ChokidarOptions;
|
|
6089
6085
|
clearScreen?: boolean;
|
|
@@ -6130,7 +6126,7 @@ export declare interface webMobileOptions {
|
|
|
6130
6126
|
embedWebDebugger: boolean;
|
|
6131
6127
|
}
|
|
6132
6128
|
|
|
6133
|
-
declare enum WebPlatform {
|
|
6129
|
+
export declare enum WebPlatform {
|
|
6134
6130
|
WEB_EDITOR = 0,
|
|
6135
6131
|
WEB_MOBILE = 1,
|
|
6136
6132
|
WEB_DESKTOP = 2,
|
|
@@ -6149,6 +6145,6 @@ export declare type windowsOptions = nativeOptions & {
|
|
|
6149
6145
|
vsVersion?: string;
|
|
6150
6146
|
};
|
|
6151
6147
|
|
|
6152
|
-
declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
|
|
6148
|
+
export declare type WrapMode = 'repeat' | 'clamp-to-edge' | 'mirrored-repeat';
|
|
6153
6149
|
|
|
6154
6150
|
export { };
|