-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove "@cocos/build-engine" module, its functionality was moved to "@cocos/ccbuild". #16755
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Interface Check Report! WARNING this pull request has changed these public interfaces:
@@ -4226,9 +4226,9 @@
* @param attributeName @en Attribute name @zh 属性名称
* @returns @en Return null if not found or can't read, otherwise, will create a large enough typed array to contain all data of the attribute,
* the array type will match the data type of the attribute. @zh 读取失败返回 null, 否则返回对应的类型数组
*/
- readAttribute(primitiveIndex: number, attributeName: gfx.AttributeName): __private._types_globals__TypedArray | null;
+ readAttribute(primitiveIndex: number, attributeName: gfx.AttributeName): __private.__types_globals__TypedArray | null;
/**
* @en Read the requested attribute of the given sub mesh and fill into the given buffer.
* @zh 读取子网格的指定属性到目标缓冲区中。
* @param primitiveIndex @en Sub mesh index @zh 子网格索引
@@ -4800,14 +4800,14 @@
/**
* @en Shadow projection mode.
* @zh 阴影投射方式。
*/
- export type ShadowCastingMode = __private._types_globals__EnumAlias<typeof __private._cocos_3d_framework_mesh_renderer__ModelShadowCastingMode>;
+ export type ShadowCastingMode = __private.__types_globals__EnumAlias<typeof __private._cocos_3d_framework_mesh_renderer__ModelShadowCastingMode>;
/**
* @en Shadow receive mode.
* @zh 阴影接收方式。
*/
- export type ShadowReceivingMode = __private._types_globals__EnumAlias<typeof __private._cocos_3d_framework_mesh_renderer__ModelShadowReceivingMode>;
+ export type ShadowReceivingMode = __private.__types_globals__EnumAlias<typeof __private._cocos_3d_framework_mesh_renderer__ModelShadowReceivingMode>;
}
/**
* @en The directional light component, only one real time directional light is permitted in one scene, it act as the main light of the scene.
* @zh 平行光源组件,一个场景只允许存在一个实时的平行光源,作为场景的主光源存在。
@@ -5016,10 +5016,10 @@
protected _detachFromScene(): void;
protected _onUpdateReceiveDirLight(): void;
}
export namespace Light {
- export type Type = __private._types_globals__EnumAlias<typeof renderer.scene.LightType>;
- export type PhotometricTerm = __private._types_globals__EnumAlias<typeof __private._cocos_3d_lights_light_component__PhotometricTerm>;
+ export type Type = __private.__types_globals__EnumAlias<typeof renderer.scene.LightType>;
+ export type PhotometricTerm = __private.__types_globals__EnumAlias<typeof __private._cocos_3d_lights_light_component__PhotometricTerm>;
}
/**
* @en The sphere light component, multiple sphere lights can be added to one scene.
* @zh 球面光源组件,场景中可以添加多个球面光源。
@@ -6600,9 +6600,9 @@
* @zh 附加一段组件路径。
* @param constructor @en The constructor of the component. @zh 组件的构造函数。
* @returns `this`
*/
- toComponent<T extends Component>(constructor: __private._types_globals__Constructor<T> | string): TrackPath;
+ toComponent<T extends Component>(constructor: __private.__types_globals__Constructor<T> | string): TrackPath;
/**
* @internal Reserved for backward compatibility. DO NOT USE IT IN YOUR CODE.
*/
toCustomized(resolver: __private._cocos_animation_tracks_track__CustomizedTrackPathResolver): TrackPath;
@@ -6818,9 +6818,9 @@
export function isPropertyPath(path: TargetPath): path is PropertyPath;
/**
* @deprecated Since V3.3, use [[TrackPath]] instead.
*/
- export function isCustomPath<T extends ICustomTargetPath>(path: TargetPath, constructor: __private._types_globals__Constructor<T>): path is T;
+ export function isCustomPath<T extends ICustomTargetPath>(path: TargetPath, constructor: __private.__types_globals__Constructor<T>): path is T;
/**
* @deprecated Since V3.3, use [[TrackPath]] instead.
*/
export type PropertyPath = string | number;
@@ -7602,9 +7602,9 @@
get playing(): boolean;
}
export class AudioPCMDataView {
constructor(arrayBufferView: __private._pal_audio_type__AudioBufferView, normalizeFactor: number);
- constructor(arrayBuffer: ArrayBuffer, Ctor: __private._types_globals__Constructor<__private._pal_audio_type__AudioBufferView>, normalizeFactor: number);
+ constructor(arrayBuffer: ArrayBuffer, Ctor: __private.__types_globals__Constructor<__private._pal_audio_type__AudioBufferView>, normalizeFactor: number);
get length(): number;
getData(offset: number): number;
}
/**
@@ -8197,9 +8197,9 @@
* @param depth The target depth.
* @param mips The target mip levels.
*/
export function FormatSurfaceSize(format: Format, width: number, height: number, depth: number, mips: number): number;
- export function getTypedArrayConstructor(info: FormatInfo): __private._types_globals__TypedArrayConstructor;
+ export function getTypedArrayConstructor(info: FormatInfo): __private.__types_globals__TypedArrayConstructor;
export function formatAlignment(format: Format): FormatAlignment;
export function alignTo(size: number, alignment: number): number;
/**
* ========================= !DO NOT CHANGE THE FOLLOWING SECTION MANUALLY! =========================
@@ -11385,9 +11385,9 @@
protected _updateWorldBoundDescriptors(subModelIndex: number, descriptorSet: gfx.DescriptorSet): void;
}
export interface IInstancedAttributeBlock {
buffer: Uint8Array;
- views: __private._types_globals__TypedArray[];
+ views: __private.__types_globals__TypedArray[];
attributes: gfx.Attribute[];
}
/**
* @en A sub part of the model, it describes how to render a specific sub mesh.
@@ -12934,9 +12934,9 @@
passIndex: number;
defines: MacroRecord;
stateOverrides?: PassOverrides;
}
- export type PassOverrides = __private._types_globals__RecursivePartial<EffectAsset.IPassStates>;
+ export type PassOverrides = __private.__types_globals__RecursivePartial<EffectAsset.IPassStates>;
export interface IMacroPatch {
name: string;
value: boolean | number | string;
}
@@ -13572,9 +13572,9 @@
}
export const CameraVisFlags: {};
export const VisibilityFlags: {};
}
- export type Constructor<T = unknown> = __private._types_globals__Constructor<T>;
+ export type Constructor<T = unknown> = __private.__types_globals__Constructor<T>;
export namespace math {
export namespace bits {
/**
* @en Returns -1, 0, +1 depending on sign of x.
@@ -13862,15 +13862,15 @@
* @en Converts the given vector to an array
* @zh 向量转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, v: IVec2Like, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, v: IVec2Like, ofs?: number): Out;
/**
* @en Converts the given array to a vector
* @zh 数组转向量
* @param ofs Array Start Offset
*/
- static fromArray<Out extends IVec2Like>(out: Out, arr: __private._types_globals__IWritableArrayLike<number>, ofs?: number): Out;
+ static fromArray<Out extends IVec2Like>(out: Out, arr: __private.__types_globals__IWritableArrayLike<number>, ofs?: number): Out;
/**
* @en Check the equality of the two given vectors
* @zh 向量等价判断
*/
@@ -14355,15 +14355,15 @@
* @en Converts the given vector to an array
* @zh 向量转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, v: IVec3Like, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, v: IVec3Like, ofs?: number): Out;
/**
* @en Converts the given array to a vector
* @zh 数组转向量
* @param ofs Array Start Offset
*/
- static fromArray<Out extends IVec3Like>(out: Out, arr: __private._types_globals__IWritableArrayLike<number>, ofs?: number): Out;
+ static fromArray<Out extends IVec3Like>(out: Out, arr: __private.__types_globals__IWritableArrayLike<number>, ofs?: number): Out;
/**
* @en Check the equality of the two given vectors
* @zh 向量等价判断
*/
@@ -14807,15 +14807,15 @@
* @en Converts the given vector to an array
* @zh 向量转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, v: IVec4Like, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, v: IVec4Like, ofs?: number): Out;
/**
* @en Converts the given array to a vector
* @zh 数组转向量
* @param ofs Array Start Offset
*/
- static fromArray<Out extends IVec4Like>(out: Out, arr: __private._types_globals__IWritableArrayLike<number>, ofs?: number): Out;
+ static fromArray<Out extends IVec4Like>(out: Out, arr: __private.__types_globals__IWritableArrayLike<number>, ofs?: number): Out;
/**
* @en Check the equality of the two given vectors
* @zh 向量等价判断
*/
@@ -15253,15 +15253,15 @@
* @en Converts quaternion to an array
* @zh 四元数转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, q: IQuatLike, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, q: IQuatLike, ofs?: number): Out;
/**
* @en Array to a quaternion
* @zh 数组转四元数
* @param ofs Array Start Offset
*/
- static fromArray(out: IQuatLike, arr: __private._types_globals__IWritableArrayLike<number>, ofs?: number): IQuatLike;
+ static fromArray(out: IQuatLike, arr: __private.__types_globals__IWritableArrayLike<number>, ofs?: number): IQuatLike;
/**
* @en Check whether two quaternions are equal
* @zh 四元数等价判断
*/
@@ -15495,15 +15495,15 @@
* @en Transform a matrix object to a flat array
* @zh 矩阵转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, m: IMat3Like, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, m: IMat3Like, ofs?: number): Out;
/**
* @en Generates or sets a matrix with a flat array
* @zh 数组转矩阵
* @param ofs Array Start Offset
*/
- static fromArray<Out extends IMat3Like>(out: Out, arr: __private._types_globals__IWritableArrayLike<number>, ofs?: number): Out;
+ static fromArray<Out extends IMat3Like>(out: Out, arr: __private.__types_globals__IWritableArrayLike<number>, ofs?: number): Out;
/**
* @en Adds two matrices and save the results to out matrix
* @zh 逐元素矩阵加法
*/
@@ -16012,15 +16012,15 @@
* @en Transform a matrix object to a flat array
* @zh 矩阵转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, m: IMat4Like, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, m: IMat4Like, ofs?: number): Out;
/**
* @en Generates or sets a matrix with a flat array
* @zh 数组转矩阵
* @param ofs Array Start Offset
*/
- static fromArray<Out extends IMat4Like>(out: Out, arr: __private._types_globals__IWritableArrayLike<number>, ofs?: number): Out;
+ static fromArray<Out extends IMat4Like>(out: Out, arr: __private.__types_globals__IWritableArrayLike<number>, ofs?: number): Out;
/**
* @en Adds two matrices and save the results to out matrix
* @zh 逐元素矩阵加法
*/
@@ -16855,15 +16855,15 @@
* @en Convert a color object to a RGBA array, and save the results to out color.
* @zh 颜色转数组
* @param ofs Array Start Offset
*/
- static toArray<Out extends __private._types_globals__IWritableArrayLike<number>>(out: Out, a: IColorLike, ofs?: number): Out;
+ static toArray<Out extends __private.__types_globals__IWritableArrayLike<number>>(out: Out, a: IColorLike, ofs?: number): Out;
/**
* @en Sets the given color with RGBA values in an array, and save the results to out color.
* @zh 数组转颜色
* @param ofs Array Start Offset
*/
- static fromArray<Out extends IColorLike>(arr: __private._types_globals__IWritableArrayLike<number>, out: Out, ofs?: number): Out;
+ static fromArray<Out extends IColorLike>(arr: __private.__types_globals__IWritableArrayLike<number>, out: Out, ofs?: number): Out;
/**
* @zh 从无符号 32 位整数构造颜色,高 8 位为 alpha 通道,次高 8 位为蓝色通道,次低 8 位为绿色通道,低 8 位为红色通道。
* @en Construct color from a unsigned 32 bit integer, the highest 8 bits is for alpha channel, the second highest 8 bits is for blue channel,
* the second lowest 8 bits is for green channel, and the lowest 8 bits if for red channel.
@@ -17596,8 +17596,18 @@
indexOf(val: T): number;
}
}
export namespace geometry {
+ /**
+ * 几何工具模块
+ * @module geometry
+ */
+ /**
+ * @en
+ * The enum type of basic geometry.
+ * @zh
+ * 形状的类型值。
+ */
export const enums: {
SHAPE_RAY: number;
SHAPE_LINE: number;
SHAPE_SPHERE: number;
@@ -17676,18 +17686,18 @@
raySphere: (ray: Ray, sphere: Sphere) => number;
rayAABB: (ray: Ray, aabb: AABB) => number;
rayOBB: (ray: Ray, obb: OBB) => number;
rayPlane: (ray: Ray, plane: Plane) => number;
- rayTriangle: (ray: Ray, triangle: Triangle, doubleSided?: boolean | undefined) => number;
+ rayTriangle: (ray: Ray, triangle: Triangle, doubleSided?: boolean) => number;
rayCapsule: (ray: Ray, capsule: Capsule) => number;
- raySubMesh: (ray: Ray, submesh: RenderingSubMesh, options?: IRaySubMeshOptions | undefined) => number;
- rayMesh: (ray: Ray, mesh: Mesh, options?: IRayMeshOptions | undefined) => number;
- rayModel: (r: Ray, model: renderer.scene.Model, options?: IRayMeshOptions | undefined) => number;
+ raySubMesh: (ray: Ray, submesh: RenderingSubMesh, options?: IRaySubMeshOptions) => number;
+ rayMesh: (ray: Ray, mesh: Mesh, options?: IRayMeshOptions) => number;
+ rayModel: (r: Ray, model: renderer.scene.Model, options?: IRayModelOptions) => number;
lineSphere: typeof __private._cocos_core_geometry_intersect__lineSphere;
lineAABB: typeof __private._cocos_core_geometry_intersect__lineAABB;
lineOBB: typeof __private._cocos_core_geometry_intersect__lineOBB;
linePlane: (line: Line, plane: Plane) => number;
- lineTriangle: (line: Line, triangle: Triangle, outPt?: math.Vec3 | undefined) => number;
+ lineTriangle: (line: Line, triangle: Triangle, outPt?: math.Vec3) => number;
sphereWithSphere: (sphere0: Sphere, sphere1: Sphere) => boolean;
sphereAABB: (sphere: Sphere, aabb: AABB) => boolean;
sphereOBB: (sphere: Sphere, obb: OBB) => boolean;
spherePlane: (sphere: Sphere, plane: Plane) => number;
@@ -19877,11 +19887,11 @@
getSuper: typeof getSuper;
isChildClassOf: typeof isChildClassOf;
clear: typeof clear;
value: (object: Record<string | number, any>, propertyName: string, value_: any, writable?: boolean | undefined, enumerable?: boolean | undefined) => void;
- getset: (object: Record<string | number, any>, propertyName: string, getter: __private._types_globals__Getter, setter?: boolean | __private._types_globals__Setter | undefined, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
- get: (object: Record<string | number, any>, propertyName: string, getter: __private._types_globals__Getter, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
- set: (object: Record<string | number, any>, propertyName: string, setter: __private._types_globals__Setter, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
+ getset: (object: Record<string | number, any>, propertyName: string, getter: __private.__types_globals__Getter, setter?: boolean | __private.__types_globals__Setter | undefined, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
+ get: (object: Record<string | number, any>, propertyName: string, getter: __private.__types_globals__Getter, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
+ set: (object: Record<string | number, any>, propertyName: string, setter: __private.__types_globals__Setter, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
unregisterClass: typeof unregisterClass;
getClassName: typeof getClassName;
setClassName: typeof setClassName;
setClassAlias: typeof setClassAlias;
@@ -19905,9 +19915,9 @@
* ```
*
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
- _registeredClassNames: Record<string, __private._types_globals__Constructor<unknown>>;
+ _registeredClassNames: Record<string, __private.__types_globals__Constructor<unknown>>;
/**
* @en All classes registered in the engine, indexed by ID.
* @zh 引擎中已注册的所有类型,通过 ID 进行索引。
* @example
@@ -19924,18 +19934,18 @@
* ```
*
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
- _registeredClassIds: Record<string, __private._types_globals__Constructor<unknown>>;
+ _registeredClassIds: Record<string, __private.__types_globals__Constructor<unknown>>;
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
_getClassId: typeof _getClassId;
getClassId: typeof getClassId;
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
- _setClassId: (id: string, constructor: __private._types_globals__Constructor<unknown>) => void;
+ _setClassId: (id: string, constructor: __private.__types_globals__Constructor<unknown>) => void;
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
_getClassById: typeof _getClassById;
@@ -20144,9 +20154,9 @@
* @param superclass @en Super class to check. @zh 父类类型。
* @return @en True if sub class is child of super class, or they are the same type. False else.
* @zh 如果子类类型是父类类型的子类,或者二者是相同类型,那么返回 true,否则返回 false。
*/
- export function isChildClassOf<T extends __private._types_globals__Constructor>(subclass: unknown, superclass: T): subclass is T;
+ export function isChildClassOf<T extends __private.__types_globals__Constructor>(subclass: unknown, superclass: T): subclass is T;
export function isChildClassOf(subclass: unknown, superclass: unknown): boolean;
/**
* @en Removes all enumerable properties from a object.
* @zh 移除对象中所有可枚举属性.
@@ -20159,9 +20169,9 @@
* @zh 通过指定的名称手动注册类型
* @param className @en Class name to register. @zh 注册的类名。
* @param constructor @en Constructor to register. @zh 注册的构造函数。
*/
- export function setClassName(className: string, constructor: __private._types_globals__Constructor): void;
+ export function setClassName(className: string, constructor: __private.__types_globals__Constructor): void;
/**
* @en Sets an alias for a class.
* After executing `setClassAlias(target, alias)`, `alias` will be a single way short cut for class `target`.
* `js.getClassByName(alias)` and `getClassById(alias)` will return `target`. But `js.getClassName(target)`
@@ -20172,9 +20182,9 @@
* @param target @en Constructor of a class to set an alias. @zh 设置别名的类的构造函数。
* @param alias @en Alias to set. The name shall not have been set as class name or alias of another class.
* @zh 类的别名。别名不能重复,也不能是已有类的名字。
*/
- export function setClassAlias(target: __private._types_globals__Constructor, alias: string): void;
+ export function setClassAlias(target: __private.__types_globals__Constructor, alias: string): void;
/**
* @en
* Unregister some classes from engine.
* If you don't need a registered class anymore, you should unregister the class or engine will keep its reference.
@@ -20193,25 +20203,25 @@
* @return constructor
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
* Please use `getClassById()` instead.
*/
- export function _getClassById(classId: any): __private._types_globals__Constructor<unknown>;
+ export function _getClassById(classId: any): __private.__types_globals__Constructor<unknown>;
/**
* @en Gets the registered class by id.
* @zh 通过 id 获取已注册的类型。
* @param classId @en The class id used to get class. @zh 获取类的 id。
* @returns @en The constructor of the registered class. @zh 注册的类构造函数。
*/
- export function getClassById(classId: any): __private._types_globals__Constructor<unknown>;
+ export function getClassById(classId: any): __private.__types_globals__Constructor<unknown>;
/**
* @en
* Gets the registered class by class name.
* @zh
* 通过类名获取已注册的类型。
* @param classname @en The class name used to get class. @zh 获取类的类名。
* @returns @en The constructor of the registered class. @zh 注册的类构造函数。
*/
- export function getClassByName(classname: any): __private._types_globals__Constructor<unknown>;
+ export function getClassByName(classname: any): __private.__types_globals__Constructor<unknown>;
/**
* @en
* Get class id of the object
* @zh
@@ -20245,9 +20255,9 @@
* @zh 要添加的属性值,或者取代现有属性的新值。
* @param writable @en If the property is writable. @zh 属性是否可写。
* @param enumerable @en If the property is enumerable. @zh 属性是否可枚举。
*/
- export const value: (object: Record<string | number, any>, propertyName: string, value_: any, writable?: boolean | undefined, enumerable?: boolean | undefined) => void;
+ export const value: (object: Record<string | number, any>, propertyName: string, value_: any, writable?: boolean, enumerable?: boolean) => void;
/**
* @en A helper function to add or modify `get`, `set`, `enumerable` or `configurable` of a property.
* @zh 添加或修改属性的 `get`, `set`, `enumerable` 或者 `configurable`。
* @param object @en The object to add or modify attributes. @zh 要添加或者修改属性的对象。
@@ -20256,9 +20266,9 @@
* @param setter @en The setter of a property. @zh 属性的设置函数。
* @param enumerable @en If the property is enumerable. @zh 属性是否可列举。
* @param configurable @en If the property is configurable. @zh 属性是否可配置。
*/
- export const getset: (object: Record<string | number, any>, propertyName: string, getter: __private._types_globals__Getter, setter?: boolean | __private._types_globals__Setter | undefined, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
+ export const getset: (object: Record<string | number, any>, propertyName: string, getter: __private.__types_globals__Getter, setter?: __private.__types_globals__Setter | boolean, enumerable?: boolean, configurable?: boolean) => void;
/**
* @en A helper function to add or modify `get`, `enumerable` or `configurable` of a property.
* @zh 添加或修改属性的 `get`, `enumerable` 或者 `configurable`。
* @param object @en The object to add or modify attributes. @zh 要添加或者修改属性的对象。
@@ -20266,9 +20276,9 @@
* @param getter @en The getter of a property. @zh 属性的获取函数。
* @param enumerable @en If the property is enumerable. @zh 属性是否可列举。
* @param configurable @en If the property is configurable. @zh 属性是否可配置。
*/
- export const get: (object: Record<string | number, any>, propertyName: string, getter: __private._types_globals__Getter, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
+ export const get: (object: Record<string | number, any>, propertyName: string, getter: __private.__types_globals__Getter, enumerable?: boolean, configurable?: boolean) => void;
/**
* @en A helper function to add or modify `get`, `enumerable` or `configurable` of a property.
* @zh 添加或修改属性的 `get`, `enumerable` 或者 `configurable`。
* @param object @en The object to add or modify attributes. @zh 要添加或者修改属性的对象。
@@ -20276,17 +20286,17 @@
* @param setter @en The setter of a property. @zh 属性的设置函数。
* @param enumerable @en If the property is enumerable. @zh 属性是否可列举。
* @param configurable @en If the property is configurable. @zh 属性是否可配置。
*/
- export const set: (object: Record<string | number, any>, propertyName: string, setter: __private._types_globals__Setter, enumerable?: boolean | undefined, configurable?: boolean | undefined) => void;
+ export const set: (object: Record<string | number, any>, propertyName: string, setter: __private.__types_globals__Setter, enumerable?: boolean, configurable?: boolean) => void;
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
- export const _idToClass: Record<string, __private._types_globals__Constructor>;
+ export const _idToClass: Record<string, __private.__types_globals__Constructor>;
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
- export const _nameToClass: Record<string, __private._types_globals__Constructor>;
+ export const _nameToClass: Record<string, __private.__types_globals__Constructor>;
/**
* @en
* Register the class by specified id, if its classname is not defined, the class name will also be set.
* @zh
@@ -20295,9 +20305,9 @@
* @param classId
* @param constructor
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
- export const _setClassId: (id: string, constructor: __private._types_globals__Constructor) => void;
+ export const _setClassId: (id: string, constructor: __private.__types_globals__Constructor) => void;
}
export namespace misc {
/**
* @en Inserts a new element into a map. All values corresponding to the same key are stored in an array.
@@ -21739,9 +21749,9 @@
* Platform related feature enum type.
* @zh
* 平台相关的特性枚举类型。
*/
- export type Feature = __private._types_globals__EnumAlias<typeof __private._pal_system_info_enum_type_feature__Feature>;
+ export type Feature = __private.__types_globals__EnumAlias<typeof __private._pal_system_info_enum_type_feature__Feature>;
}
export interface ISchedulable {
id?: string;
uuid?: string;
@@ -21885,9 +21895,9 @@
* 如果需要取消 update 定时器,请使用 unscheduleUpdate()。
* @param callback @en The callback to be unscheduled @zh 被取消调度的回调。
* @param target @en The target bound to the callback. @zh 回调所绑定的目标对象。
*/
- unschedule(callback: __private._types_globals__AnyFunction, target: ISchedulable): void;
+ unschedule(callback: __private.__types_globals__AnyFunction, target: ISchedulable): void;
/**
* @en Unschedule the update callback for a given target.
* @zh 取消指定对象的 update 定时器。
* @param target The target to be unscheduled.
@@ -21930,9 +21940,9 @@
* @param callback @en The callback to check. @zh 指定检测的回调。
* @param target @en The target of the callback. @zh 回调的目标对象。
* @returns @en True if the specified callback is invoked, false if not. @zh 返回true如果指定回调被调用, 否则返回false。
*/
- isScheduled(callback: __private._types_globals__AnyFunction, target: ISchedulable): boolean;
+ isScheduled(callback: __private.__types_globals__AnyFunction, target: ISchedulable): boolean;
/**
* @en
* Pause all selectors from all targets.
* You should NEVER call this method, unless you know what you are doing.
@@ -24136,11 +24146,11 @@
* @internal
* @param node The node.
*/
protected static _setScene(node: Node): void;
- protected static _findComponent<T extends Component>(node: Node, constructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): T | null;
- protected static _findComponents<T extends Component>(node: Node, constructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>, components: Component[]): void;
- protected static _findChildComponent<T extends Component>(children: Node[], constructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): T | null;
+ protected static _findComponent<T extends Component>(node: Node, constructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): T | null;
+ protected static _findComponents<T extends Component>(node: Node, constructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>, components: Component[]): void;
+ protected static _findChildComponent<T extends Component>(children: Node[], constructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): T | null;
protected static _findChildComponents(children: Node[], constructor: any, components: any): void;
protected _parent: this | null;
protected _children: this[];
protected _active: boolean;
@@ -24315,9 +24325,9 @@
* // get sprite component.
* var sprite = node.getComponent(Sprite);
* ```
*/
- getComponent<T extends Component>(classConstructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): T | null;
+ getComponent<T extends Component>(classConstructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): T | null;
/**
* @en
* Returns the component of supplied type if the node has one attached, null if it doesn't.
* You can also get component in the node by passing in the name of the script.
@@ -24336,9 +24346,9 @@
* @en Returns all components of given type in the node.
* @zh 返回节点上指定类型的所有组件。
* @param classConstructor The class of the target component
*/
- getComponents<T extends Component>(classConstructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): T[];
+ getComponents<T extends Component>(classConstructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): T[];
/**
* @en Returns all components of given type in the node.
* @zh 返回节点上指定类型的所有组件。
* @param className The class name of the target component
@@ -24352,9 +24362,9 @@
* ```
* var sprite = node.getComponentInChildren(Sprite);
* ```
*/
- getComponentInChildren<T extends Component>(classConstructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): T | null;
+ getComponentInChildren<T extends Component>(classConstructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): T | null;
/**
* @en Returns the component of given type in any of its children using depth first search.
* @zh 递归查找所有子节点中第一个匹配指定类型的组件。
* @param className The class name of the target component
@@ -24372,9 +24382,9 @@
* ```
* var sprites = node.getComponentsInChildren(Sprite);
* ```
*/
- getComponentsInChildren<T extends Component>(classConstructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): T[];
+ getComponentsInChildren<T extends Component>(classConstructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): T[];
/**
* @en Returns all components of given type in self or any of its children.
* @zh 递归查找自身或所有子节点中指定类型的组件
* @param className The class name of the target component
@@ -24393,9 +24403,9 @@
* ```
* var sprite = node.addComponent(Sprite);
* ```
*/
- addComponent<T extends Component>(classConstructor: __private._types_globals__Constructor<T>): T;
+ addComponent<T extends Component>(classConstructor: __private.__types_globals__Constructor<T>): T;
/**
* @en Adds a component class to the node. You can also add component to node by passing in the name of the script.
* @zh 向节点添加一个指定类型的组件类,你还可以通过传入脚本的名称来添加组件。
* @param className The class name of the component to add
@@ -24419,9 +24429,9 @@
* ```
* node.removeComponent(Sprite);
* ```
*/
- removeComponent<T extends Component>(classConstructor: __private._types_globals__Constructor<T> | __private._types_globals__AbstractedConstructor<T>): void;
+ removeComponent<T extends Component>(classConstructor: __private.__types_globals__Constructor<T> | __private.__types_globals__AbstractedConstructor<T>): void;
/**
* @en
* Removes a component identified by the given name or removes the component object given.
* You can also use component.destroy() if you already have the reference.
@@ -24477,9 +24487,9 @@
* node.on(NodeEventType.TOUCH_MOVE, callback, this);
* node.on(NodeEventType.TOUCH_END, callback, this);
* ```
*/
- on(type: string | NodeEventType, callback: __private._types_globals__AnyFunction, target?: unknown, useCapture?: any): void;
+ on(type: string | NodeEventType, callback: __private.__types_globals__AnyFunction, target?: unknown, useCapture?: any): void;
/**
* @en
* Removes the callback previously registered with the same type, callback, target and or useCapture.
* This method is merely an alias to removeEventListener.
@@ -24494,9 +24504,9 @@
* this.node.off(NodeEventType.TOUCH_START, this.memberFunction, this);
* node.off(NodeEventType.TOUCH_START, callback, this.node);
* ```
*/
- off(type: string, callback?: __private._types_globals__AnyFunction, target?: unknown, useCapture?: any): void;
+ off(type: string, callback?: __private.__types_globals__AnyFunction, target?: unknown, useCapture?: any): void;
/**
* @en
* Register an callback of a specific event type on the Node,
* the callback will remove itself after the first time it is triggered.
@@ -24507,9 +24517,9 @@
* @param callback - The callback that will be invoked when the event is dispatched.
* The callback is ignored if it is a duplicate (the callbacks are unique).
* @param target - The target (this object) to invoke the callback, can be null
*/
- once(type: string, callback: __private._types_globals__AnyFunction, target?: unknown, useCapture?: any): void;
+ once(type: string, callback: __private.__types_globals__AnyFunction, target?: unknown, useCapture?: any): void;
/**
* @en
* Trigger an event directly with the event name and necessary arguments.
* @zh
@@ -24542,9 +24552,9 @@
* @param callback - The callback function of the event listener, if absent all event listeners for the given type will be removed
* @param target - The callback callee of the event listener
* @return True if a callback of the specified type is registered; false otherwise.
*/
- hasEventListener(type: string, callback?: __private._types_globals__AnyFunction, target?: unknown): any;
+ hasEventListener(type: string, callback?: __private.__types_globals__AnyFunction, target?: unknown): any;
/**
* @en Removes all callbacks previously registered with the same target.
* @zh 移除目标上的所有注册事件。
* @param target - The target to be searched for all related callbacks
@@ -24580,9 +24590,9 @@
* 检查节点已经包含对应的组件,如果没有,则抛出异常
* @param constructor Constructor of the component.
* @throws If one or more component of same type have been existed in this node.
*/
- protected _checkMultipleComp?<T extends Component>(constructor: __private._types_globals__Constructor<T>): void;
+ protected _checkMultipleComp?<T extends Component>(constructor: __private.__types_globals__Constructor<T>): void;
/**
* @en Event types emitted by Node
* @zh 节点可能发出的事件类型
*/
@@ -25165,10 +25175,10 @@
*/
static layerToName(bitNum: number): string;
}
export namespace Layers {
- export type Enum = __private._types_globals__EnumAlias<typeof Layers.Enum>;
- export type BitMask = __private._types_globals__EnumAlias<typeof Layers.BitMask>;
+ export type Enum = __private.__types_globals__EnumAlias<typeof Layers.Enum>;
+ export type BitMask = __private.__types_globals__EnumAlias<typeof Layers.BitMask>;
}
/**
* @en
* The EventHandler class sets the event callback in the scene.
@@ -25369,9 +25379,9 @@
* import { Sprite } from 'cc';
* const sprite = node.addComponent(Sprite);
* ```
*/
- addComponent<T extends Component>(classConstructor: __private._types_globals__Constructor<T>): T | null;
+ addComponent<T extends Component>(classConstructor: __private.__types_globals__Constructor<T>): T | null;
/**
* @en Adds a component class to the node. You can also add component to node by passing in the name of the script.
* @zh 向节点添加一个指定类型的组件类,你还可以通过传入脚本的名称来添加组件。
* @param className A string for the class name of the component
@@ -25395,9 +25405,9 @@
* // get sprite component.
* var sprite = node.getComponent(Sprite);
* ```
*/
- getComponent<T extends Component>(classConstructor: __private._types_globals__Constructor<T>): T | null;
+ getComponent<T extends Component>(classConstructor: __private.__types_globals__Constructor<T>): T | null;
/**
* @en
* Returns the component of supplied type if the node has one attached, null if it doesn't.<br/>
* You can also get component in the node by passing in the name of the script.
@@ -25421,9 +25431,9 @@
* import { Sprite } from 'cc';
* const sprites = node.getComponents(Sprite);
* ```
*/
- getComponents<T extends Component>(classConstructor: __private._types_globals__Constructor<T>): T[];
+ getComponents<T extends Component>(classConstructor: __private.__types_globals__Constructor<T>): T[];
/**
* @en Returns all components of supplied type in the node.
* @zh 返回节点上指定类型的所有组件。
* @param className A string for the class name of the components
@@ -25442,9 +25452,9 @@
* import { Sprite } from 'cc';
* const sprite = node.getComponentInChildren(Sprite);
* ```
*/
- getComponentInChildren<T extends Component>(classConstructor: __private._types_globals__Constructor<T>): T | null;
+ getComponentInChildren<T extends Component>(classConstructor: __private.__types_globals__Constructor<T>): T | null;
/**
* @en Returns the component of supplied type in any of its children using depth first search.
* @zh 递归查找所有子节点中第一个匹配指定类型的组件。
* @param className A string for the class name of the component
@@ -25463,9 +25473,9 @@
* import { Sprite } from 'cc';
* const sprites = node.getComponentsInChildren(Sprite);
* ```
*/
- getComponentsInChildren<T extends Component>(classConstructor: __private._types_globals__Constructor<T>): T[];
+ getComponentsInChildren<T extends Component>(classConstructor: __private.__types_globals__Constructor<T>): T[];
/**
* @en Returns all components of supplied type in self or any of its children.
* @zh 递归查找自身或所有子节点中指定类型的组件。
* @param className A string for the class name of the components
@@ -27046,14 +27056,14 @@
/**
* @internal
*/
export namespace Camera {
- export type ProjectionType = __private._types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__ProjectionType>;
- export type FOVAxis = __private._types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__FOVAxis>;
- export type ClearFlag = __private._types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__ClearFlag>;
- export type Aperture = __private._types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__Aperture>;
- export type Shutter = __private._types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__Shutter>;
- export type ISO = __private._types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__ISO>;
+ export type ProjectionType = __private.__types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__ProjectionType>;
+ export type FOVAxis = __private.__types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__FOVAxis>;
+ export type ClearFlag = __private.__types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__ClearFlag>;
+ export type Aperture = __private.__types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__Aperture>;
+ export type Shutter = __private.__types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__Shutter>;
+ export type ISO = __private.__types_globals__EnumAlias<typeof __private._cocos_misc_camera_component__ISO>;
}
/**
* @en Base class for all rendering components containing model.
* @zh 所有包含 model 的渲染组件基类。
@@ -27172,9 +27182,9 @@
* @zh
* 包含无法加载的原始组件的临时回退。
*/
export class MissingScript extends Component {
- static safeFindClass(id: string): __private._types_globals__Constructor<unknown> | undefined;
+ static safeFindClass(id: string): __private.__types_globals__Constructor<unknown> | undefined;
/**
* @deprecated since v3.5.0, this is an engine private interface that will be removed in the future.
*/
_$erialized: null;
@@ -28239,9 +28249,9 @@
*/
uuidTypeList: string[];
static pool: js.Pool<Details>;
assignAssetsBy: (getter: (uuid: string, options: {
- type: __private._types_globals__Constructor<Asset>;
+ type: __private.__types_globals__Constructor<Asset>;
owner: Record<string, unknown>;
prop: string;
}) => Asset) => void;
/**
@@ -28294,9 +28304,8 @@
*/
export function instantiate<T>(original: T): T;
export namespace instantiate {
export var _clone: typeof __private._cocos_serialization_instantiate__doInstantiate;
- export var _clone: typeof __private._cocos_serialization_instantiate__doInstantiate;
}
/**
* @en
* Base class for handling assets used in Creator.<br/>
@@ -30684,9 +30693,9 @@
* @example
* const info = bundle.getInfoWithPath('image/a', Texture2D);
*
*/
- getInfoWithPath(path: string, type?: __private._types_globals__Constructor<Asset> | null): __private._cocos_asset_asset_manager_config__IAddressableInfo | null;
+ getInfoWithPath(path: string, type?: __private.__types_globals__Constructor<Asset> | null): __private._cocos_asset_asset_manager_config__IAddressableInfo | null;
/**
* @en
* Gets all asset's info within specific folder.
*
@@ -30703,9 +30712,9 @@
* @example
* const infos = [];
* bundle.getDirWithPath('images', Texture2D, infos);
*/
- getDirWithPath(path: string, type?: __private._types_globals__Constructor<Asset> | null, out?: __private._cocos_asset_asset_manager_config__IAddressableInfo[]): __private._cocos_asset_asset_manager_config__IAddressableInfo[];
+ getDirWithPath(path: string, type?: __private.__types_globals__Constructor<Asset> | null, out?: __private._cocos_asset_asset_manager_config__IAddressableInfo[]): __private._cocos_asset_asset_manager_config__IAddressableInfo[];
/**
* @en
* Get asset's information with uuid.
*
@@ -30787,16 +30796,16 @@
* // load the sprite frame (${project}/assets/some/xxx/bundle2/imgs/cocos.png) from bundle2 folder
* bundle2.load('imgs/cocos', SpriteFrame, null, (err, spriteFrame) => console.log(err));
*
*/
- load<T extends Asset>(paths: string, type: __private._types_globals__Constructor<T> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T) => void) | null): void;
- load<T extends Asset>(paths: string[], type: __private._types_globals__Constructor<T> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T[]) => void) | null): void;
+ load<T extends Asset>(paths: string, type: __private.__types_globals__Constructor<T> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T) => void) | null): void;
+ load<T extends Asset>(paths: string[], type: __private.__types_globals__Constructor<T> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T[]) => void) | null): void;
load<T extends Asset>(paths: string, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T) => void) | null): void;
load<T extends Asset>(paths: string[], onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T[]) => void) | null): void;
load<T extends Asset>(paths: string, onComplete?: ((err: Error | null, data: T) => void) | null): void;
load<T extends Asset>(paths: string[], onComplete?: ((err: Error | null, data: T[]) => void) | null): void;
- load<T extends Asset>(paths: string, type: __private._types_globals__Constructor<T> | null, onComplete?: ((err: Error | null, data: T) => void) | null): void;
- load<T extends Asset>(paths: string[], type: __private._types_globals__Constructor<T> | null, onComplete?: ((err: Error | null, data: T[]) => void) | null): void;
+ load<T extends Asset>(paths: string, type: __private.__types_globals__Constructor<T> | null, onComplete?: ((err: Error | null, data: T) => void) | null): void;
+ load<T extends Asset>(paths: string[], type: __private.__types_globals__Constructor<T> | null, onComplete?: ((err: Error | null, data: T[]) => void) | null): void;
/**
* @en
* Preloads the asset within this bundle by the path which is relative to bundle's path.
* After calling this method, you still need to finish loading by calling [[Bundle.load]].
@@ -30844,12 +30853,12 @@
* // wait for while
* bundle2.load('imgs/cocos', SpriteFrame, (err, spriteFrame) => {});
*
*/
- preload(paths: string | string[], type: __private._types_globals__Constructor<Asset> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: RequestItem[]) => void) | null): void;
+ preload(paths: string | string[], type: __private.__types_globals__Constructor<Asset> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: RequestItem[]) => void) | null): void;
preload(paths: string | string[], onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: RequestItem[]) => void) | null): void;
preload(paths: string | string[], onComplete?: ((err: Error | null, data: RequestItem[]) => void) | null): void;
- preload(paths: string | string[], type: __private._types_globals__Constructor<Asset> | null, onComplete?: ((err: Error | null, data: RequestItem[]) => void) | null): void;
+ preload(paths: string | string[], type: __private.__types_globals__Constructor<Asset> | null, onComplete?: ((err: Error | null, data: RequestItem[]) => void) | null): void;
/**
* @en
* Loads all assets under a folder inside the bundle folder.<br>
* <br>
@@ -30890,12 +30899,12 @@
* // load all sprite frame (${project}/assets/some/xxx/bundle2/skills/) from bundle2 folder
* bundle2.loadDir('skills', SpriteFrame, null, (err, spriteFrames) => console.log(err));
*
*/
- loadDir<T extends Asset>(dir: string, type: __private._types_globals__Constructor<T> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T[]) => void) | null): void;
+ loadDir<T extends Asset>(dir: string, type: __private.__types_globals__Constructor<T> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T[]) => void) | null): void;
loadDir<T extends Asset>(dir: string, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: T[]) => void) | null): void;
loadDir<T extends Asset>(dir: string, onComplete?: ((err: Error | null, data: T[]) => void) | null): void;
- loadDir<T extends Asset>(dir: string, type: __private._types_globals__Constructor<T> | null, onComplete?: ((err: Error | null, data: T[]) => void) | null): void;
+ loadDir<T extends Asset>(dir: string, type: __private.__types_globals__Constructor<T> | null, onComplete?: ((err: Error | null, data: T[]) => void) | null): void;
/**
* @en
* Preloads all assets under a folder inside the bundle folder.<br> After calling this method, you still need to
* finish loading by calling [[Bundle.loadDir]].
@@ -30937,12 +30946,12 @@
* bundle2.preloadDir('skills', SpriteFrame);
* // wait for while
* bundle2.loadDir('skills', SpriteFrame, (err, spriteFrames) => {});
*/
- preloadDir(dir: string, type: __private._types_globals__Constructor<Asset> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: RequestItem[]) => void) | null): void;
+ preloadDir(dir: string, type: __private.__types_globals__Constructor<Asset> | null, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: RequestItem[]) => void) | null): void;
preloadDir(dir: string, onProgress: ((finished: number, total: number, item: RequestItem) => void) | null, onComplete: ((err: Error | null, data: RequestItem[]) => void) | null): void;
preloadDir(dir: string, onComplete?: ((err: Error | null, data: RequestItem[]) => void) | null): void;
- preloadDir(dir: string, type: __private._types_globals__Constructor<Asset> | null, onComplete?: ((err: Error | null, data: RequestItem[]) => void) | null): void;
+ preloadDir(dir: string, type: __private.__types_globals__Constructor<Asset> | null, onComplete?: ((err: Error | null, data: RequestItem[]) => void) | null): void;
/**
* @en
* Loads the scene asset within this bundle by its name.
*
@@ -31042,9 +31051,9 @@
*
* @example
* bundle1.get('music/hit', AudioClip);
*/
- get<T extends Asset>(path: string, type?: __private._types_globals__Constructor<T> | null): T | null;
+ get<T extends Asset>(path: string, type?: __private.__types_globals__Constructor<T> | null): T | null;
/**
* @en
* Releases the asset loaded by [[load]] or [[loadDir]].
* and it's dependencies. Refer to [[AssetManager.releaseAsset]] for detailed information.
@@ -31066,9 +31075,9 @@
* // release a texture which is no longer need
* bundle1.release('misc/character/cocos');
*
*/
- release(path: string, type?: __private._types_globals__Constructor<Asset> | null): void;
+ release(path: string, type?: __private.__types_globals__Constructor<Asset> | null): void;
/**
* @en
* Release all assets within this bundle. Refer to [[AssetManager.releaseAll]] for detailed information.
*
@@ -31655,10 +31664,10 @@
* log('Result should be a sprite frame: ' + (spriteFrame instanceof SpriteFrame));
* });
*
*/
- loadRes<T extends Asset>(url: string, type: __private._types_globals__Constructor<T>, progressCallback: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T>): any;
- loadRes<T extends Asset>(url: string, type: __private._types_globals__Constructor<T>, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T>): any;
+ loadRes<T extends Asset>(url: string, type: __private.__types_globals__Constructor<T>, progressCallback: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T>): any;
+ loadRes<T extends Asset>(url: string, type: __private.__types_globals__Constructor<T>, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T>): any;
loadRes<T extends Asset>(url: string, progressCallback: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T>): any;
loadRes<T extends Asset>(url: string, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T>): any;
/**
* @en This method is like [[loadRes]] except that it accepts array of url.
@@ -31691,9 +31700,9 @@
* // ...
* });
* ```
*/
- loadResArray<T extends Asset>(urls: string[], type?: __private._types_globals__Constructor<T>, progressCallback?: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback?: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T[]>): void;
+ loadResArray<T extends Asset>(urls: string[], type?: __private.__types_globals__Constructor<T>, progressCallback?: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback?: __private._cocos_asset_asset_manager_deprecated__LoadCompleteCallback<T[]>): void;
/**
* @en
* Load all assets in a folder inside the "assets/resources" folder of your project.<br>
* <br>
@@ -31740,10 +31749,10 @@
* let url = urls[0];
* });
* ```
*/
- loadResDir<T extends Asset>(url: string, type: __private._types_globals__Constructor<T>, progressCallback: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadDirCompleteCallback<T>): any;
- loadResDir<T extends Asset>(url: string, type: __private._types_globals__Constructor<T>, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadDirCompleteCallback<T>): any;
+ loadResDir<T extends Asset>(url: string, type: __private.__types_globals__Constructor<T>, progressCallback: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadDirCompleteCallback<T>): any;
+ loadResDir<T extends Asset>(url: string, type: __private.__types_globals__Constructor<T>, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadDirCompleteCallback<T>): any;
loadResDir<T extends Asset>(url: string, progressCallback: __private._cocos_asset_asset_manager_deprecated__LoadProgressCallback, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadDirCompleteCallback<T>): any;
loadResDir<T extends Asset>(url: string, completeCallback: __private._cocos_asset_asset_manager_deprecated__LoadDirCompleteCallback<T>): any;
/**
* @en
@@ -31760,9 +31769,9 @@
* @param url
* @param type - Only asset of type will be returned if this argument is supplied.
* @deprecated since v3.0 loader.getRes is deprecated, please use resources.get instead
*/
- getRes<T extends Asset>(url: string, type?: __private._types_globals__Constructor<T>): T | null;
+ getRes<T extends Asset>(url: string, type?: __private.__types_globals__Constructor<T>): T | null;
/**
* @en Get total resources count in loader.
* @zh 获取加载的总资源数量
* @deprecated since v3.0 loader.getResCount is deprecated, please use assetManager.assets.count instead
@@ -31924,9 +31933,9 @@
* @param type If type is provided, the asset for correspond type will be returned
*
* @deprecated since v3.0 loader.releaseRes is deprecated, please use assetManager.releaseRes instead
*/
- releaseRes(res: string, type?: __private._types_globals__Constructor<Asset>): void;
+ releaseRes(res: string, type?: __private.__types_globals__Constructor<Asset>): void;
/**
*
* @en Resource all assets. Refer to [[release]] for detailed informations.
* @zh 释放所有资源。详细信息请参考 [[release]]
@@ -33862,9 +33871,9 @@
*/
setAccelerometerInterval(intervalInMileSeconds: number): void;
}
export namespace Input {
- export type EventType = __private._types_globals__EnumAlias<typeof __private._cocos_input_types_event_enum__InputEventType>;
+ export type EventType = __private.__types_globals__EnumAlias<typeof __private._cocos_input_types_event_enum__InputEventType>;
}
/**
* @module cc
*/
@@ -33940,9 +33949,9 @@
/**
* @en The event type supported by SystemEvent and Node events
* @zh SystemEvent 支持的事件类型以及节点事件类型
*/
- export type EventType = __private._types_globals__EnumAlias<typeof SystemEventType>;
+ export type EventType = __private.__types_globals__EnumAlias<typeof SystemEventType>;
}
/**
* @zh 该对象提供由原生绑定出来的 JavaScript 接口。
* 注意:全局作用域下的 `jsb` 对象已经废弃,我们更推荐使用由 `cc` 模块下导出的 `native` 对象。
@@ -34517,9 +34526,9 @@
* @param outLengthHint @en It is assumed to be the needed room to allocate the inflated buffer, which is optional. @zh 预计解压后的数据长度,可选。
*
* @return @en The deflated buffer. @zh 解压后的数据缓存区
*/
- function inflateMemory(input: string | ArrayBuffer | __private._types_globals__TypedArray, outLengthHint?: number): ArrayBuffer | null;
+ function inflateMemory(input: string | ArrayBuffer | __private.__types_globals__TypedArray, outLengthHint?: number): ArrayBuffer | null;
/**
* @en Inflates a GZip file into memory.
* @zh 将 GZip 压缩文件解压缩到内存中。
*
@@ -34544,9 +34553,9 @@
* @param buffer @en The buffer. @zh 数据缓存区
*
* @return @en True is GZip format. false is not. @zh 返回true表示是 GZip 格式,否则不是。
*/
- function isGZipBuffer(buffer: string | ArrayBuffer | __private._types_globals__TypedArray): boolean;
+ function isGZipBuffer(buffer: string | ArrayBuffer | __private.__types_globals__TypedArray): boolean;
/**
* @en Inflates a CCZ file into memory.
* @zh 将 CCZ 格式压缩文件解压缩到内存中。
*
@@ -34561,9 +34570,9 @@
* @param buffer @en The buffer. @zh 数据缓存区
*
* @return @en The deflated buffer. @zh 解压后的数据缓存区
*/
- function inflateCCZBuffer(buffer: string | ArrayBuffer | __private._types_globals__TypedArray): ArrayBuffer | null;
+ function inflateCCZBuffer(buffer: string | ArrayBuffer | __private.__types_globals__TypedArray): ArrayBuffer | null;
/**
* @en Test a file is a CCZ format file or not.
* @zh 判断一个文件是否是 CCZ 格式。
*
@@ -34577,9 +34586,9 @@
* @ param @en The buffer. @zh 数据缓存区
*
* @return @en True is CCZ format. false is not. @zh 返回true表示是 CCZ 格式,否则不是。
*/
- function isCCZBuffer(buffer: string | ArrayBuffer | __private._types_globals__TypedArray): boolean;
+ function isCCZBuffer(buffer: string | ArrayBuffer | __private.__types_globals__TypedArray): boolean;
/**
* @en
* Sets the pvr.ccz encryption key parts separately for added security.
*
@@ -40305,9 +40314,9 @@
* @default dragonBones.AnimationFadeOutMode.All
* @version DragonBones 5.0
* @language zh_CN
*/
- fadeOutMode: AnimationFadeOutMode;
+ fadeOutMode: __private.__node_modules_cocos_dragonbones_js_out_dragonBones__AnimationFadeOutMode;
/**
* @private
*/
fadeOutTweenType: TweenType;
@@ -42565,9 +42574,9 @@
* </pre>
* @version DragonBones 4.5
* @language zh_CN
*/
- fadeIn(animationName: string, fadeInTime?: number, playTimes?: number, layer?: number, group?: string | null, fadeOutMode?: AnimationFadeOutMode): AnimationState | null;
+ fadeIn(animationName: string, fadeInTime?: number, playTimes?: number, layer?: number, group?: string | null, fadeOutMode?: __private.__node_modules_cocos_dragonbones_js_out_dragonBones__AnimationFadeOutMode): AnimationState | null;
/**
* - Play a specific animation from the specific time.
* @param animationName - The name of animation data.
* @param time - The start time point of playing. (In seconds)
@@ -42822,9 +42831,9 @@
* - 已废弃,请参考 {@link #play()} {@link #fadeIn()}。
* @deprecated
* @language zh_CN
*/
- gotoAndPlay(animationName: string, fadeInTime?: number, duration?: number, playTimes?: number, layer?: number, group?: string | null, fadeOutMode?: AnimationFadeOutMode, pauseFadeOut?: boolean, pauseFadeIn?: boolean): AnimationState | null;
+ gotoAndPlay(animationName: string, fadeInTime?: number, duration?: number, playTimes?: number, layer?: number, group?: string | null, fadeOutMode?: __private.__node_modules_cocos_dragonbones_js_out_dragonBones__AnimationFadeOutMode, pauseFadeOut?: boolean, pauseFadeIn?: boolean): AnimationState | null;
/**
* - Deprecated, please refer to {@link #gotoAndStopByTime()}.
* @deprecated
* @language en_US
@@ -48446,10 +48455,10 @@
protected onDisable(): void;
protected onDestroy(): void;
}
export namespace Collider {
- export type Type = __private._types_globals__EnumAlias<typeof EColliderType>;
- export type Axis = __private._types_globals__EnumAlias<typeof EAxisDirection>;
+ export type Type = __private.__types_globals__EnumAlias<typeof EColliderType>;
+ export type Axis = __private.__types_globals__EnumAlias<typeof EAxisDirection>;
}
/**
* @en
* Box collider component.
@@ -48708,9 +48717,9 @@
constructor();
updateVertices(): void;
}
export namespace SimplexCollider {
- export type ESimplexType = __private._types_globals__EnumAlias<typeof physics.ESimplexType>;
+ export type ESimplexType = __private.__types_globals__EnumAlias<typeof physics.ESimplexType>;
}
/**
* @en
* Plane collider component.
@@ -48797,9 +48806,9 @@
protected onDisable(): void;
protected onDestroy(): void;
}
export namespace Constraint {
- export type Type = __private._types_globals__EnumAlias<typeof EConstraintType>;
+ export type Type = __private.__types_globals__EnumAlias<typeof EConstraintType>;
}
/**
* @en Hinge constraint.
* It keeps the local rotation axes of two rigid bodies aligned,
@@ -49375,9 +49384,9 @@
*/
removeMask(v: number): void;
}
export namespace RigidBody {
- export type Type = __private._types_globals__EnumAlias<typeof ERigidBodyType>;
+ export type Type = __private.__types_globals__EnumAlias<typeof ERigidBodyType>;
}
/**
* @en
* Physics materials.
@@ -49796,9 +49805,9 @@
* @param radiusBottom @en Radius of bottom plane. @zh 底部半径。
* @param height @en The cylinder height. @zh 圆柱的高
* @param opts @en The optional creation parameters of the cylinder. @zh 圆柱参数选项。
*/
- export function cylinder(radiusTop?: number, radiusBottom?: number, height?: number, opts?: __private._types_globals__RecursivePartial<__private._cocos_primitive_cylinder__ICylinderOptions>): primitives.IGeometry;
+ export function cylinder(radiusTop?: number, radiusBottom?: number, height?: number, opts?: __private.__types_globals__RecursivePartial<__private._cocos_primitive_cylinder__ICylinderOptions>): primitives.IGeometry;
export const VEC3_0: math.Vec3;
export const TriggerEventObject: {
type: TriggerEventType;
selfCollider: Collider | null;
@@ -50235,9 +50244,9 @@
* @param radius @zh 圆锥半径。 @en The radius of cone
* @param height @zh 圆锥高度。 @en The height of cone
* @param opts @zh 圆锥参数选项。@en The optional creation parameters of the cone
*/
- export function cone(radius?: number, height?: number, opts?: __private._types_globals__RecursivePartial<__private._cocos_primitive_cone__IConeOptions>): IGeometry;
+ export function cone(radius?: number, height?: number, opts?: __private.__types_globals__RecursivePartial<__private._cocos_primitive_cone__IConeOptions>): IGeometry;
/**
* @en
* This function generates a plane on XOZ plane with positive Y direction.
* @zh
@@ -50260,9 +50269,9 @@
* 生成一个球。
* @param radius @en The radius. @zh 球半径。
* @param options @en The sphere creation options. @zh 参数选项。
*/
- export function sphere(radius?: number, opts?: __private._types_globals__RecursivePartial<__private._cocos_primitive_sphere__ISphereOptions>): IGeometry;
+ export function sphere(radius?: number, opts?: __private.__types_globals__RecursivePartial<__private._cocos_primitive_sphere__ISphereOptions>): IGeometry;
/**
* @en
* Generate a torus with radius 0.4, tube 0.1 and centered at origin.
* @zh
@@ -50270,9 +50279,9 @@
* @param radius @zh 环面半径。@en The radius fo torus
* @param tube @zh 管形大小。@en The radius of tube
* @param opts @zh 参数选项。@en The optional creation parameters of the torus
*/
- export function torus(radius?: number, tube?: number, opts?: __private._types_globals__RecursivePartial<__private._cocos_primitive_torus__ITorusOptions>): {
+ export function torus(radius?: number, tube?: number, opts?: __private.__types_globals__RecursivePartial<__private._cocos_primitive_torus__ITorusOptions>): {
positions: number[];
normals: number[];
uvs: number[];
indices: number[];
@@ -50288,9 +50297,9 @@
* @param radiusTop @zh 顶部半径。 @en The radius of top sphere
* @param radiusBottom @zh 底部半径。@en The radius of bottom sphere
* @param opts @zh 胶囊体参数选项。@en The optional creation parameters of the capsule
*/
- export function capsule(radiusTop?: number, radiusBottom?: number, height?: number, opts?: __private._types_globals__RecursivePartial<__private._cocos_primitive_capsule__ICapsuteOptions>): {
+ export function capsule(radiusTop?: number, radiusBottom?: number, height?: number, opts?: __private.__types_globals__RecursivePartial<__private._cocos_primitive_capsule__ICapsuteOptions>): {
positions: number[];
normals: number[];
uvs: number[];
indices: number[];
@@ -50305,9 +50314,9 @@
* @zh
* 生成一个圆,其半径是单位1,中心点在原点。
* @param options @zh 参数选项。 @en The optional creation parameters of the circle
*/
- export function circle(options?: __private._types_globals__RecursivePartial<__private._cocos_primitive_circle__ICircleOptions> | __private._cocos_primitive_circle__ICircleOptions): IGeometry;
+ export function circle(options?: __private.__types_globals__RecursivePartial<__private._cocos_primitive_circle__ICircleOptions> | __private._cocos_primitive_circle__ICircleOptions): IGeometry;
/**
* @en
* Translate the geometry.
* @zh
@@ -50362,9 +50371,9 @@
* Apply the options to default.
* @zh
* 应用默认的几何参数选项。
*/
- export function applyDefaultGeometryOptions<GeometryOptions = IGeometryOptions>(options?: __private._types_globals__RecursivePartial<IGeometryOptions>): GeometryOptions;
+ export function applyDefaultGeometryOptions<GeometryOptions = IGeometryOptions>(options?: __private.__types_globals__RecursivePartial<IGeometryOptions>): GeometryOptions;
/**
* @en
* The definition of the parameter for building a primitive geometry.
* @zh
@@ -50650,9 +50659,9 @@
*/
onLoaded(): void;
}
export namespace Primitive {
- export type PrimitiveType = __private._types_globals__EnumAlias<typeof __private._cocos_primitive_primitive__PrimitiveType>;
+ export type PrimitiveType = __private.__types_globals__EnumAlias<typeof __private._cocos_primitive_primitive__PrimitiveType>;
}
export class Profiler extends System {
constructor();
init(): void;
@@ -53823,11 +53832,11 @@
* @class TiledLayer
* @extends Component
*/
export class TiledLayer extends UIRenderer {
- protected _userNodeGrid: __private._types_globals__SafeRecord<number, {
+ protected _userNodeGrid: __private.__types_globals__SafeRecord<number, {
count: number;
- } & __private._types_globals__SafeRecord<number, {
+ } & __private.__types_globals__SafeRecord<number, {
count: number;
list: (TiledUserNodeData | null)[];
}>>;
protected _userNodeMap: {
@@ -53879,9 +53888,9 @@
tiles: __private._cocos_tiledmap_tiled_types__MixedGID[];
vertices: SafeArray<{
minCol: number;
maxCol: number;
- } & __private._types_globals__SafeRecord<number, {
+ } & __private.__types_globals__SafeRecord<number, {
left: number;
bottom: number;
index: number;
}>>;
@@ -56706,9 +56715,9 @@
protected _unregisterOldParentEvents(oldParent: Node): void;
protected _setDirtyByMode(): void;
}
export namespace Widget {
- export type AlignMode = __private._types_globals__EnumAlias<typeof __private._cocos_ui_widget__AlignMode>;
+ export type AlignMode = __private.__types_globals__EnumAlias<typeof __private._cocos_ui_widget__AlignMode>;
}
/**
* @en
* The PageView control.
@@ -57230,9 +57239,9 @@
add(widget: Widget): void;
remove(widget: Widget): void;
onResized(): void;
refreshWidgetOnResized(node: Node): void;
- updateOffsetsToStayPut(widget: Widget, e?: __private._cocos_ui_widget__AlignFlags | undefined): void;
+ updateOffsetsToStayPut(widget: Widget, e?: __private._cocos_ui_widget__AlignFlags): void;
updateAlignment: typeof __private._cocos_ui_widget_manager__updateAlignment;
AlignMode: typeof __private._cocos_ui_widget__AlignMode;
AlignFlags: typeof __private._cocos_ui_widget__AlignFlags;
};
@@ -58675,9 +58684,9 @@
protected createMotionEval(motion: _Motion): _editor_src_marionette_preview__MotionEvalRecord | null;
protected doEvaluate(_evaluationContext: ____private._cocos_animation_marionette_animation_graph_context__AnimationGraphEvaluationContext): _cocos_animation_core_pose__Pose | null;
}
export const _cocos_serialization_deserialize_symbols__onAfterDeserializedTag: unique symbol;
- export type _types_globals__Constructor<T = unknown> = new (...args: any[]) => T;
+ export type __types_globals__Constructor<T = unknown> = new (...args: any[]) => T;
export type _editor_src_marionette_pose_graph_editor_api__Constructor<T = unknown> = new (...args: any[]) => T;
export interface _editor_src_marionette_pose_graph_editor_api__PoseGraphOutputNodeCopyInfo {
editorExtras: ____private._cocos_animation_marionette_pose_graph_graph_output_node__PoseGraphOutputNode[typeof editorExtrasTag];
}
@@ -59400,15 +59409,15 @@
* @deprecated since v3.3
*/
dpadCenter: number;
};
- export type _types_globals__TypedArray = Uint8Array | Uint8ClampedArray | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;
+ export type __types_globals__TypedArray = Uint8Array | Uint8ClampedArray | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array;
export class _cocos_2d_renderer_native_2d__NativeUIMeshBuffer {
get vData(): Float32Array;
set vData(val: Float32Array);
get iData(): Uint16Array;
set iData(val: Uint16Array);
- syncSharedBufferToNative(data: _types_globals__TypedArray): any;
+ syncSharedBufferToNative(data: __types_globals__TypedArray): any;
initialize(attrs: gfx.Attribute[]): any;
reset(): any;
destroy(): any;
setDirty(): any;
@@ -60000,10 +60009,10 @@
set model(model: renderer.scene.Model | null);
get subNode(): Node;
set subNode(node: Node);
changeMeshBuffer(): any;
- setRender2dBufferToNative(data: _types_globals__TypedArray): any;
- syncSharedBufferToNative(data: _types_globals__TypedArray): any;
+ setRender2dBufferToNative(data: __types_globals__TypedArray): any;
+ syncSharedBufferToNative(data: __types_globals__TypedArray): any;
getAttrSharedBufferForJS(): ArrayBufferLike;
}
export class _cocos_2d_renderer_native_2d__NativeRenderEntity {
constructor(type: number);
@@ -60662,9 +60671,9 @@
* @zh 开启阴影投射。
*/
ON: number;
};
- export type _types_globals__EnumAlias<EnumT> = EnumT[keyof EnumT];
+ export type __types_globals__EnumAlias<EnumT> = EnumT[keyof EnumT];
/**
* @en Shadow receive mode.
* @zh 阴影接收方式。
*/
@@ -61841,9 +61850,9 @@
protected _hash: number;
constructor(info: Readonly<gfx.BufferBarrierInfo>, hash: number);
static computeHash(info: Readonly<gfx.BufferBarrierInfo>): number;
}
- export type _types_globals__TypedArrayConstructor = Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int8ArrayConstructor | Uint16ArrayConstructor | Int16ArrayConstructor | Uint32ArrayConstructor | Int32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor;
+ export type __types_globals__TypedArrayConstructor = Uint8ArrayConstructor | Uint8ClampedArrayConstructor | Int8ArrayConstructor | Uint16ArrayConstructor | Int16ArrayConstructor | Uint32ArrayConstructor | Int32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor;
/**
* @engineInternal
*/
export class _cocos_core_data_gc_object__GCObject {
@@ -61916,10 +61925,10 @@
* @param key The shader cache key, if already known
*/
getGFXShader(device: gfx.Device, name: string, defines: renderer.MacroRecord, pipeline: _cocos_rendering_custom_pipeline__PipelineRuntime, key?: string): gfx.Shader;
}
- export type _types_globals__RecursivePartial<T> = {
- [P in keyof T]?: T[P] extends Array<infer U> ? Array<_types_globals__RecursivePartial<U>> : T[P] extends ReadonlyArray<infer V> ? ReadonlyArray<_types_globals__RecursivePartial<V>> : _types_globals__RecursivePartial<T[P]>;
+ export type __types_globals__RecursivePartial<T> = {
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<__types_globals__RecursivePartial<U>> : T[P] extends ReadonlyArray<infer V> ? ReadonlyArray<__types_globals__RecursivePartial<V>> : __types_globals__RecursivePartial<T[P]>;
};
export interface _cocos_render_scene_core_pass__IPassDynamics {
[type: number]: {
dirty: boolean;
@@ -61954,9 +61963,9 @@
getBuffer(handle: _cocos_render_scene_core_memory_pools__IHandle<P>): _cocos_render_scene_core_memory_pools__BufferArrayType;
getTypedArray<K extends E[keyof E]>(handle: _cocos_render_scene_core_memory_pools__IHandle<P>, element: K): _cocos_render_scene_core_memory_pools__BufferArrayType;
free(handle: _cocos_render_scene_core_memory_pools__IHandle<P>): void;
}
- export interface _types_globals__IWritableArrayLike<T> {
+ export interface __types_globals__IWritableArrayLike<T> {
readonly length: number;
[index: number]: T;
}
export abstract class _cocos_core_memop_scalable_container__ScalableContainer {
@@ -62055,10 +62064,10 @@
value: EnumT[keyof EnumT];
}
}
export type _cocos_core_utils_pool__CleanUpFunction<T> = (value: T) => boolean | void;
- export type _types_globals__Getter = () => any;
- export type _types_globals__Setter = (value: any) => void;
+ export type __types_globals__Getter = () => any;
+ export type __types_globals__Setter = (value: any) => void;
export type _cocos_core_platform_debug__StringSubstitution = number | string;
export interface _cocos_core_utils_x_deprecated__IReplacement {
/** Deprecated property name. */
name: string;
@@ -62236,23 +62245,107 @@
}
namespace _cocos_core_data_utils_attribute {
export const DELIMETER = "$_$";
export function createAttrsSingle(owner: Object, superAttrs?: any): any;
+ /**
+ * @param subclass Should not have '__attrs__'.
+ */
export function createAttrs(subclass: any): any;
+ /**
+ * Tag the class with any meta attributes, then return all current attributes assigned to it.
+ * This function holds only the attributes, not their implementations.
+ * @param constructor The class or instance. If instance, the attribute will be dynamic and only available for the specified instance.
+ * @param propertyName The name of the property or function, used to retrieve the attributes.
+ * @private
+ */
export function attr(constructor: any, propertyName: string): {
[attributeName: string]: any;
};
+ /**
+ * Returns a read-only meta-object.
+ */
export function getClassAttrs(constructor: any): any;
export function setClassAttr(ctor: any, propName: any, key: any, value: any): void;
export class PrimitiveType<T> {
name: string;
default: T;
constructor(name: string, defaultValue: T);
toString(): string;
}
+ /**
+ * @en
+ * Indicates that the editor should treat this property or array element as an Integer value.
+ * @zh
+ * 指定编辑器以整数形式对待该属性或数组元素。
+ * @example
+ * ```ts
+ * import { CCInteger, _decorator } from "cc";
+ *
+ * // in the class definition:
+ *
+ * @_decorator.property({type: CCInteger})
+ * count = 0;
+ *
+ * @_decorator.property({type: [CCInteger]})
+ * array = [];
+ * ```
+ */
export const CCInteger: _cocos_core_data_utils_attribute__PrimitiveType<number>;
+ /**
+ * @en
+ * Indicates that the editor should treat this property or array element as a Float value.
+ * @zh
+ * 指定编辑器以浮点数形式对待该属性或数组元素。
+ * @example
+ * ```ts
+ * import { CCFloat, _decorator } from "cc";
+ *
+ * // in the class definition:
+ *
+ * @_decorator.property({type: CCFloat})
+ * x = 0;
+ *
+ * @_decorator.property({type: [CCFloat]})
+ * array = [];
+ * ```
+ */
export const CCFloat: _cocos_core_data_utils_attribute__PrimitiveType<number>;
+ /**
+ * @en
+ * Indicates that the editor should treat this property or array element as a Boolean value.
+ * @zh
+ * 指定编辑器以布尔值形式对待该属性或数组元素。
+ *
+ * @example
+ * ```ts
+ * import { CCBoolean, _decorator } from "cc";
+ * // in the class definition
+ * @_decorator.property({type: CCBoolean})
+ * isTrue = false;
+ *
+ * @_decorator.property({type: [CCBoolean]})
+ * array = [];
+ * ```
+ */
export const CCBoolean: _cocos_core_data_utils_attribute__PrimitiveType<boolean>;
+ /**
+ * @en
+ * Indicates that the editor should treat this property or array element as a String value.
+ * @zh
+ * 指定编辑器以字符串形式对待该属性或数组元素。
+ * @example
+ * ```ts
+ * import { CCString, _decorator } from "cc";
+ *
+ * // in the class definition
+ *
+ * @_decorator.property({type: CCString})
+ * name = '';
+ *
+ * @_decorator.property({type: [CCString]})
+ * array = [];
+ * ```
+ */
export const CCString: _cocos_core_data_utils_attribute__PrimitiveType<string>;
export function getTypeChecker_ET(type: string, attributeName: string): (constructor: Function, mainPropertyName: string) => void;
export function getObjTypeChecker_ET(typeCtor: any): (classCtor: any, mainPropName: any) => void;
}
@@ -62271,9 +62364,9 @@
* @param constructor The constructor of the class.
* @returns Judge result.
* @engineInternal
*/
- export function _cocos_core_data_class__isCCClassOrFastDefined<T>(constructor: _types_globals__Constructor<T>): boolean;
+ export function _cocos_core_data_class__isCCClassOrFastDefined<T>(constructor: __types_globals__Constructor<T>): boolean;
export enum _cocos_core_data_utils_compact_value_type_array__StorageUnit {
Uint8 = 0,
Uint16 = 1,
Uint32 = 2,
@@ -62708,9 +62801,9 @@
* Alias of `Function` but suppress eslint warning.
* Please avoid using it and explicitly specify function signatures as possible.
*/
// eslint-disable-next-line @typescript-eslint/ban-types
- export type _types_globals__AnyFunction = Function;
+ export type __types_globals__AnyFunction = Function;
/**
* @en
* The parameter describing a real keyframe value.
* In the case of partial keyframe value,
@@ -63317,12 +63410,12 @@
MARK_LIST_DIRTY = 2
}
/// <reference types="./@types/globals" />
export class _cocos_core_event_callbacks_invoker__CallbackInfo {
- callback: _types_globals__AnyFunction;
+ callback: __types_globals__AnyFunction;
target: unknown | undefined;
once: boolean;
- set(callback: _types_globals__AnyFunction, target?: unknown, once?: boolean): void;
+ set(callback: __types_globals__AnyFunction, target?: unknown, once?: boolean): void;
reset(): void;
check(): boolean;
}
/**
@@ -63338,9 +63431,9 @@
* @en Remove the event listeners with the given callback from the list
*
* @param cb - The callback to be removed
*/
- removeByCallback(cb: _types_globals__AnyFunction): void;
+ removeByCallback(cb: __types_globals__AnyFunction): void;
/**
* @zh 从列表中移除与指定目标相同调用者的事件。
* @en Remove the event listeners with the given target from the list
* @param target
@@ -63391,17 +63484,17 @@
* @param callback - Callback function when event triggered
* @param target - Callback callee
* @param once - Whether invoke the callback only once (and remove it)
*/
- on(key: EventTypeClass, callback: _types_globals__AnyFunction, target?: unknown, once?: boolean): _types_globals__AnyFunction;
+ on(key: EventTypeClass, callback: __types_globals__AnyFunction, target?: unknown, once?: boolean): __types_globals__AnyFunction;
/**
* @zh 检查指定事件是否已注册回调。
* @en Checks whether there is correspond event listener registered on the given event
* @param key - Event type
* @param callback - Callback function when event triggered
* @param target - Callback callee
*/
- hasEventListener(key: EventTypeClass, callback?: _types_globals__AnyFunction, target?: unknown): boolean;
+ hasEventListener(key: EventTypeClass, callback?: __types_globals__AnyFunction, target?: unknown): boolean;
/**
* @zh 移除在特定事件类型中注册的所有回调或在某个目标中注册的所有回调。
* @en Removes all callbacks registered in a certain event type or all callbacks registered with a certain target
* @param keyOrTarget - The event type or target with which the listeners will be removed
@@ -63413,9 +63506,9 @@
* @param key - Event type
* @param callback - The callback function of the event listener, if absent all event listeners for the given type will be removed
* @param target - The callback callee of the event listener
*/
- off(key: EventTypeClass, callback?: _types_globals__AnyFunction, target?: unknown): void;
+ off(key: EventTypeClass, callback?: __types_globals__AnyFunction, target?: unknown): void;
/**
* @zh 派发一个指定事件,并传递需要的参数
* @en Trigger an event directly with the event name and necessary arguments.
* @param key - event type
@@ -63565,9 +63658,9 @@
export class _cocos_scene_graph_node_event_processor__NodeEventProcessor {
/**
* @internal
*/
- static _maskComp: _types_globals__Constructor<Component> | null;
+ static _maskComp: __types_globals__Constructor<Component> | null;
/**
* @internal
*/
static callbacksInvoker: _cocos_core_event_callbacks_invoker__CallbacksInvoker<_cocos_scene_graph_node_event_processor__DispatcherEventType>;
@@ -63620,15 +63713,15 @@
*/
setEnabled(value: boolean, recursive?: boolean): void;
reattach(): void;
destroy(): void;
- on(type: NodeEventType, callback: _types_globals__AnyFunction, target?: unknown, useCapture?: boolean): _types_globals__AnyFunction;
- once(type: NodeEventType, callback: _types_globals__AnyFunction, target?: unknown, useCapture?: boolean): _types_globals__AnyFunction;
- off(type: NodeEventType, callback?: _types_globals__AnyFunction, target?: unknown, useCapture?: boolean): void;
+ on(type: NodeEventType, callback: __types_globals__AnyFunction, target?: unknown, useCapture?: boolean): __types_globals__AnyFunction;
+ once(type: NodeEventType, callback: __types_globals__AnyFunction, target?: unknown, useCapture?: boolean): __types_globals__AnyFunction;
+ off(type: NodeEventType, callback?: __types_globals__AnyFunction, target?: unknown, useCapture?: boolean): void;
targetOff(target: unknown): void;
emit(type: _cocos_input_types_event_enum__SystemEventTypeUnion, arg0?: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any): void;
dispatchEvent(event: Event): void;
- hasEventListener(type: _cocos_input_types_event_enum__SystemEventTypeUnion, callback?: _types_globals__AnyFunction, target?: unknown): boolean;
+ hasEventListener(type: _cocos_input_types_event_enum__SystemEventTypeUnion, callback?: __types_globals__AnyFunction, target?: unknown): boolean;
/**
* @zh
* 获得所提供的事件类型在目标捕获阶段监听的所有目标。
* 捕获阶段包括从根节点到目标节点的过程。
@@ -63649,9 +63742,9 @@
*/
getBubblingTargets(type: string, targets: Node[]): void;
onUpdatingSiblingIndex(): void;
}
- export type _types_globals__AbstractedConstructor<T = unknown> = new (...args: any[]) => T;
+ export type __types_globals__AbstractedConstructor<T = unknown> = new (...args: any[]) => T;
/**
* @en Node's UI properties abstraction
* @zh 节点上 UI 相关的属性抽象类
*/
@@ -63932,9 +64025,9 @@
reset(result: Details, classFinder: _cocos_serialization_deserialize_dynamic__ClassFinder, reportMissingClass: _cocos_serialization_deserialize_dynamic__ReportMissingClass, customEnv: unknown, ignoreEditorOnly: unknown): void;
clear(): void;
deserialize(serializedData: _cocos_serialization_deserialize_dynamic__SerializedData | CCON): any;
}
- export type _cocos_serialization_deserialize_dynamic__CompiledDeserializeFn = (deserializer: _cocos_serialization_deserialize_dynamic___Deserializer, object: Record<string, unknown>, deserialized: Record<string, unknown>, constructor: _types_globals__AnyFunction) => void;
+ export type _cocos_serialization_deserialize_dynamic__CompiledDeserializeFn = (deserializer: _cocos_serialization_deserialize_dynamic___Deserializer, object: Record<string, unknown>, deserialized: Record<string, unknown>, constructor: __types_globals__AnyFunction) => void;
export interface _cocos_serialization_deserialize__CCClassConstructor<T> extends _cocos_serialization_deserialize__Ctor<T> {
__values__: string[];
__deserialize__?: _cocos_serialization_deserialize_dynamic__CompiledDeserializeFn;
}
@@ -64486,15 +64579,71 @@
*/
destroy(): void;
}
namespace _cocos_asset_asset_manager_helper {
+ /**
+ * @en
+ * Extracts uuid from url.
+ *
+ * @zh
+ * 从 url 中提取 uuid。
+ *
+ * @param url @en The url to be converted. @zh 待转换的 url。
+ * @returns @en The uuid extracted from url. @zh url 转换为的 uuid。
+ *
+ * @example
+ * var url = 'res/import/fc/fc991dd7-0033-4b80-9d41-c8a86a702e59.json';
+ * var uuid = getUuidFromURL(url); // fc991dd7-0033-4b80-9d41-c8a86a702e59
+ */
export function getUuidFromURL(url: string): string;
+ /**
+ * @en
+ * Transforms uuid to url.
+ *
+ * @zh
+ * 转换 uuid 为 url。
+ *
+ * @param uuid @en The uuid of asset. @zh 资源的 uuid。
+ * @param options @en Some optional parameters. @zh 一些可选参数。
+ * @param options.isNative @en Indicates whether the path you want is a native resource path. @zh 需要转换的路径是否是原生资源路径。
+ * @param options.nativeExt @en Extension of the native resource path, it is required when isNative is true. @zh 原生资源路径的扩展名,如果 `isNative` 为 true,则需要。
+ * @returns @en The url converted from uuid. @zh 从 uuid 转换而来的 url.
+ *
+ * @example
+ * // json path, 'assets/main/import/fc/fc991dd7-0033-4b80-9d41-c8a86a702e59.json';
+ * var url = getUrlWithUuid('fcmR3XADNLgJ1ByKhqcC5Z', {isNative: false});
+ *
+ * // png path, 'assets/main/native/fc/fc991dd7-0033-4b80-9d41-c8a86a702e59.png';
+ * var url = getUrlWithUuid('fcmR3XADNLgJ1ByKhqcC5Z', {isNative: true, nativeExt: '.png'});
+ *
+ */
export function getUrlWithUuid(uuid: string, options?: {
[k: string]: any;
isNative: boolean;
nativeExt?: string;
} | null): string;
+ /**
+ * @en
+ * Checks if the type of asset is scene.
+ *
+ * @zh
+ * 检查资源类型是否是场景。
+ *
+ * @param asset @en The asset to be checked. @zh 待检查的资源。
+ * @returns @en Whether or not the asset is a SceneAsset. @zh 此资源是否是场景资源。
+ *
+ */
export function isScene(asset: any): boolean;
+ /**
+ * @en
+ * Normalizes url, strip './' and '/'.
+ *
+ * @zh
+ * 标准化 url ,去除 './' 和 '/'。
+ *
+ * @param url @en The url to be normalized. @zh 待标准化的 url。
+ * @returns @en The normalized url. @zh 标准化后的 url。
+ */
export function normalize(url: string): string;
export function transform(input: string | string[] | Record<string, any> | Array<Record<string, any>>, options?: Record<string, any> | null): string | string[];
}
export type _cocos_asset_asset_manager_pack_manager__Unpacker = (packUuid: string[], data: any, options: Record<string, any>, onComplete: ((err: Error | null, data?: any) => void)) => void;
@@ -64695,9 +64844,9 @@
/**
* @en The type of the asset.
* @zh 此资源的类型。
*/
- ctor: _types_globals__Constructor<Asset>;
+ ctor: __types_globals__Constructor<Asset>;
}
/**
* @en Information about the scene asset.
* @zh 场景资源的相关信息。
@@ -65313,27 +65462,120 @@
}
export interface _cocos_dragon_bones_ArmatureDisplay__BoneIndex extends Number {
_any: number;
}
- export interface _types_webGLextras__EXT_color_buffer_half_float {
+ /**
+ * - Animation fade out mode.
+ * @version DragonBones 4.5
+ * @language en_US
+ */
+ /**
+ * - 动画淡出模式。
+ * @version DragonBones 4.5
+ * @language zh_CN
+ */
+ export enum __node_modules_cocos_dragonbones_js_out_dragonBones__AnimationFadeOutMode {
+ /**
+ * - Do not fade out of any animation states.
+ * @language en_US
+ */
+ /**
+ * - 不淡出任何的动画状态。
+ * @language zh_CN
+ */
+ None = 0,
+ /**
+ * - Fade out the animation states of the same layer.
+ * @language en_US
+ */
+ /**
+ * - 淡出同层的动画状态。
+ * @language zh_CN
+ */
+ SameLayer = 1,
+ /**
+ * - Fade out the animation states of the same group.
+ * @language en_US
+ */
+ /**
+ * - 淡出同组的动画状态。
+ * @language zh_CN
+ */
+ SameGroup = 2,
+ /**
+ * - Fade out the animation states of the same layer and group.
+ * @language en_US
+ */
+ /**
+ * - 淡出同层并且同组的动画状态。
+ * @language zh_CN
+ */
+ SameLayerAndGroup = 3,
+ /**
+ * - Fade out of all animation states.
+ * @language en_US
+ */
+ /**
+ * - 淡出所有的动画状态。
+ * @language zh_CN
+ */
+ All = 4,
+ /**
+ * - Does not replace the animation state with the same name.
+ * @language en_US
+ */
+ /**
+ * - 不替换同名的动画状态。
+ * @language zh_CN
+ */
+ Single = 5
+ }
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_half_float {
+ readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
+ readonly RGB16F_EXT: GLenum;
readonly RGBA16F_EXT: GLenum;
+ readonly UNSIGNED_NORMALIZED_EXT: GLenum;
+ }
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_half_float {
+ readonly RGBA16F_EXT: GLenum;
readonly RGB16F_EXT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
- export interface _types_webGLextras__WEBGL_multi_draw {
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_multi_draw {
+ multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
+ multiDrawArraysWEBGL(mode: GLenum, firstsList: Int32Array | GLint[], firstsOffset: GLuint, countsList: Int32Array | GLsizei[], countsOffset: GLuint, drawcount: GLsizei): void;
+ multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, instanceCountsList: Int32Array | GLsizei[], instanceCountsOffset: GLuint, drawcount: GLsizei): void;
+ multiDrawElementsWEBGL(mode: GLenum, countsList: Int32Array | GLsizei[], countsOffset: GLuint, type: GLenum, offsetsList: Int32Array | GLsizei[], offsetsOffset: GLuint, drawcount: GLsizei): void;
+ }
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_multi_draw {
multiDrawArraysWEBGL(mode: GLenum, firstsList: GLint[] | Int32Array, firstsOffset: GLuint, countsList: GLsizei[] | Int32Array, countsOffset: GLuint, drawCount: GLsizei): void;
multiDrawElementsWEBGL(mode: GLenum, countsList: GLint[] | Int32Array, countsOffset: GLuint, type: GLenum, offsetsList: GLsizei[] | Int32Array, OffsetsOffset: GLuint, drawCount: GLsizei): void;
multiDrawArraysInstancedWEBGL(mode: GLenum, firstsList: GLint[] | Int32Array, firstsOffset: GLuint, countsList: GLsizei[] | Int32Array, countsOffset: GLuint, instanceCountsList: GLsizei[] | Int32Array, instanceCountsOffset: GLuint, drawCount: GLsizei): void;
multiDrawElementsInstancedWEBGL(mode: GLenum, countsList: GLint[] | Int32Array, countsOffset: GLuint, type: GLenum, offsetsList: GLsizei[] | Int32Array, OffsetsOffset: GLuint, instanceCountsList: GLsizei[] | Int32Array, instanceCountsOffset: GLuint, drawCount: GLsizei): void;
}
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc1 {
+ readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
+ }
// note that ETC1 is not supported with the compressedTexSubImage2D() method
- export interface _types_webGLextras__WEBGL_compressed_texture_etc1 {
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
}
- export interface _types_webGLextras__WEBGL_compressed_texture_etc {
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: GLenum;
+ readonly COMPRESSED_RG11_EAC: GLenum;
+ readonly COMPRESSED_RGB8_ETC2: GLenum;
+ readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
+ readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
+ readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
+ readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
+ readonly COMPRESSED_SRGB8_ETC2: GLenum;
+ readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
+ }
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc {
+ readonly COMPRESSED_R11_EAC: GLenum;
+ readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
readonly COMPRESSED_RG11_EAC: GLenum;
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
readonly COMPRESSED_RGB8_ETC2: GLenum;
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
@@ -65341,9 +65583,9 @@
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
}
- export interface _types_webGLextras__WEBGL_compressed_texture_pvrtc {
+ export interface __types_webGLextras__WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
@@ -65354,14 +65596,14 @@
EXT_frag_depth: EXT_frag_depth | null;
EXT_shader_texture_lod: EXT_shader_texture_lod | null;
EXT_sRGB: EXT_sRGB | null;
OES_vertex_array_object: OES_vertex_array_object | null;
- EXT_color_buffer_half_float: _types_webGLextras__EXT_color_buffer_half_float | null;
- WEBGL_multi_draw: _types_webGLextras__WEBGL_multi_draw | null;
+ EXT_color_buffer_half_float: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_half_float | null;
+ WEBGL_multi_draw: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_multi_draw | null;
WEBGL_color_buffer_float: WEBGL_color_buffer_float | null;
- WEBGL_compressed_texture_etc1: _types_webGLextras__WEBGL_compressed_texture_etc1 | null;
- WEBGL_compressed_texture_etc: _types_webGLextras__WEBGL_compressed_texture_etc | null;
- WEBGL_compressed_texture_pvrtc: _types_webGLextras__WEBGL_compressed_texture_pvrtc | null;
+ WEBGL_compressed_texture_etc1: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc1 | null;
+ WEBGL_compressed_texture_etc: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc | null;
+ WEBGL_compressed_texture_pvrtc: __types_webGLextras__WEBGL_compressed_texture_pvrtc | null;
WEBGL_compressed_texture_astc: WEBGL_compressed_texture_astc | null;
WEBGL_compressed_texture_s3tc: WEBGL_compressed_texture_s3tc | null;
WEBGL_compressed_texture_s3tc_srgb: WEBGL_compressed_texture_s3tc_srgb | null;
WEBGL_debug_shaders: WEBGL_debug_shaders | null;
@@ -65446,18 +65688,20 @@
constructor();
destroy(): void;
draw(gpuTextureSrc: _cocos_gfx_webgl_webgl_gpu_objects__IWebGLGPUTexture, gpuTextureDst: _cocos_gfx_webgl_webgl_gpu_objects__IWebGLGPUTexture, regions: gfx.TextureBlit[], filter: gfx.Filter): void;
}
- export interface _types_webGL2extras__EXT_color_buffer_float {
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_float {
}
+ export interface __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_float {
+ }
export interface _cocos_gfx_webgl2_webgl2_define__IWebGL2Extensions {
EXT_texture_filter_anisotropic: EXT_texture_filter_anisotropic | null;
- EXT_color_buffer_half_float: _types_webGLextras__EXT_color_buffer_half_float | null;
- EXT_color_buffer_float: _types_webGL2extras__EXT_color_buffer_float | null;
- WEBGL_multi_draw: _types_webGLextras__WEBGL_multi_draw | null;
- WEBGL_compressed_texture_etc1: _types_webGLextras__WEBGL_compressed_texture_etc1 | null;
- WEBGL_compressed_texture_etc: _types_webGLextras__WEBGL_compressed_texture_etc | null;
- WEBGL_compressed_texture_pvrtc: _types_webGLextras__WEBGL_compressed_texture_pvrtc | null;
+ EXT_color_buffer_half_float: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_half_float | null;
+ EXT_color_buffer_float: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__EXT_color_buffer_float | null;
+ WEBGL_multi_draw: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_multi_draw | null;
+ WEBGL_compressed_texture_etc1: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc1 | null;
+ WEBGL_compressed_texture_etc: __node_modules_cocos_ccbuild_node_modules_typescript_lib_libdom__WEBGL_compressed_texture_etc | null;
+ WEBGL_compressed_texture_pvrtc: __types_webGLextras__WEBGL_compressed_texture_pvrtc | null;
WEBGL_compressed_texture_astc: WEBGL_compressed_texture_astc | null;
WEBGL_compressed_texture_s3tc: WEBGL_compressed_texture_s3tc | null;
WEBGL_compressed_texture_s3tc_srgb: WEBGL_compressed_texture_s3tc_srgb | null;
WEBGL_debug_shaders: WEBGL_debug_shaders | null;
@@ -66572,13 +66816,32 @@
updateIA(count: number): void;
beforeRender(): void;
}
namespace _cocos_physics_2d_framework_utils_polygon_separator {
+ /**
+ * @en
+ * Decompose the polygon into several smaller non-concave polygon.
+ * If the polygon is already convex, it will return the original polygon, unless it is over Settings.MaxPolygonVertices.
+ * Precondition: Counter Clockwise polygon
+ * @zh
+ * 使用Mark Bayazit算法将输入多边形拆分成多个凸多边形。如果输入多边形是凸多边形,将返回原多边形。要求输入多边形是逆时针的。
+ * @param polygon @en one polygon. @zh 一个多边形。
+ * @return @en polygon array. @zh 多边形数组。
+ */
export function ConvexPartition(vertices: math.IVec2Like[]): math.IVec2Like[][];
export function ForceCounterClockWise(vertices: any): void;
export function IsCounterClockWise(vertices: any): boolean;
}
namespace _cocos_physics_2d_framework_utils_polygon_partition {
+ /**
+ * @en
+ * Decompose the polygon into several convex polygon using Hertel-Mehlhorn algorithm.
+ * If the polygon is already convex, it will return the original polygon.
+ * @zh
+ * 使用Hertel-Mehlhorn算法将输入多边形拆分成多个凸多边形。如果输入多边形是凸多边形,将返回原多边形。
+ * @param polygon @en one polygon. @zh 一个多边形。
+ * @return @en polygon array. @zh 多边形数组。
+ */
export function ConvexPartition(polygon: math.IVec2Like[]): math.IVec2Like[][] | null;
}
export type _cocos_physics_2d_framework_physics_selector__IPhysicsEngineId = "builtin" | "box2d" | "box2d-wasm" | string;
export interface _cocos_physics_2d_framework_physics_selector__IPhysicsWrapperObject {
@@ -67155,25 +67418,25 @@
setRadius(value: number): void;
setHeight(value: number): void;
}
export interface _cocos_physics_framework_physics_selector__IPhysicsWrapperObject {
- PhysicsWorld?: _types_globals__Constructor<_cocos_physics_spec_i_physics_world__IPhysicsWorld>;
- RigidBody?: _types_globals__Constructor<_cocos_physics_spec_i_rigid_body__IRigidBody>;
- BoxCharacterController?: _types_globals__Constructor<_cocos_physics_spec_i_character_controller__IBoxCharacterController>;
- CapsuleCharacterController?: _types_globals__Constructor<_cocos_physics_spec_i_character_controller__ICapsuleCharacterController>;
- BoxShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__IBoxShape>;
- SphereShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ISphereShape>;
- CapsuleShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ICapsuleShape>;
- TrimeshShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ITrimeshShape>;
- CylinderShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ICylinderShape>;
- ConeShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__IConeShape>;
- TerrainShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ITerrainShape>;
- SimplexShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ISimplexShape>;
- PlaneShape?: _types_globals__Constructor<_cocos_physics_spec_i_physics_shape__IPlaneShape>;
- PointToPointConstraint?: _types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IPointToPointConstraint>;
- HingeConstraint?: _types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IHingeConstraint>;
- FixedConstraint?: _types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IFixedConstraint>;
- ConfigurableConstraint?: _types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IConfigurableConstraint>;
+ PhysicsWorld?: __types_globals__Constructor<_cocos_physics_spec_i_physics_world__IPhysicsWorld>;
+ RigidBody?: __types_globals__Constructor<_cocos_physics_spec_i_rigid_body__IRigidBody>;
+ BoxCharacterController?: __types_globals__Constructor<_cocos_physics_spec_i_character_controller__IBoxCharacterController>;
+ CapsuleCharacterController?: __types_globals__Constructor<_cocos_physics_spec_i_character_controller__ICapsuleCharacterController>;
+ BoxShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__IBoxShape>;
+ SphereShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ISphereShape>;
+ CapsuleShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ICapsuleShape>;
+ TrimeshShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ITrimeshShape>;
+ CylinderShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ICylinderShape>;
+ ConeShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__IConeShape>;
+ TerrainShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ITerrainShape>;
+ SimplexShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__ISimplexShape>;
+ PlaneShape?: __types_globals__Constructor<_cocos_physics_spec_i_physics_shape__IPlaneShape>;
+ PointToPointConstraint?: __types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IPointToPointConstraint>;
+ HingeConstraint?: __types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IHingeConstraint>;
+ FixedConstraint?: __types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IFixedConstraint>;
+ ConfigurableConstraint?: __types_globals__Constructor<_cocos_physics_spec_i_physics_constraint__IConfigurableConstraint>;
}
export interface _cocos_physics_framework_physics_selector__IPhysicsBackend {
[key: string]: _cocos_physics_framework_physics_selector__IPhysicsWrapperObject;
}
@@ -67240,9 +67503,9 @@
* The definition of the parameter for building a box.
* @zh
* 立方体参数选项。
*/
- export interface _cocos_primitive_box__IBoxOptions extends _types_globals__RecursivePartial<primitives.IGeometryOptions> {
+ export interface _cocos_primitive_box__IBoxOptions extends __types_globals__RecursivePartial<primitives.IGeometryOptions> {
/**
* @en
* Box extent on X-axis.
* @zh
@@ -67291,9 +67554,9 @@
* The definition of the parameter for building a plane.
* @zh
* 平面参数选项。
*/
- export interface _cocos_primitive_plane__IPlaneOptions extends _types_globals__RecursivePartial<primitives.IGeometryOptions> {
+ export interface _cocos_primitive_plane__IPlaneOptions extends __types_globals__RecursivePartial<primitives.IGeometryOptions> {
/**
* Plane extent on X-axis.
*/
width: number;
@@ -68382,9 +68645,9 @@
/**
* To provide a safe Record type, if you want to enable checking index access on Object, please use SafeRecord instead of Record.
* we provide this type because we don't want to enable `noUncheckedIndexedAccess` in tsconfig.json for it's noisy for a lot of code.
*/
- export type _types_globals__SafeRecord<T extends (string | number | symbol), K> = Record<T, K | undefined>;
+ export type __types_globals__SafeRecord<T extends (string | number | symbol), K> = Record<T, K | undefined>;
export interface _cocos_tiledmap_tiled_layer__TiledSubNodeData {
subNodes: (null | TiledUserNodeData)[];
}
export type _cocos_tiledmap_tiled_layer__TiledDataArray = (TiledRenderData | _cocos_tiledmap_tiled_layer__TiledSubNodeData)[];
|
minggo
approved these changes
Feb 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Re: #16754
cocos/cocos-ccbuild#59
cocos/cocos-ccbuild#58
Changelog
Continuous Integration
This pull request:
Compatibility Check
This pull request: