@cesdk/engine 1.63.0-nightly.20251016 → 1.63.0-nightly.20251018
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/core/{cesdk-v1.63.0-nightly.20251016-76HKYHP2.wasm → cesdk-v1.63.0-nightly.20251018-R6G6JPYJ.wasm} +0 -0
- package/assets/core/{worker-host-v1.63.0-nightly.20251016.js → worker-host-v1.63.0-nightly.20251018.js} +1 -1
- package/index.d.ts +39 -3
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.63.0-nightly.20251016-44YCFRT6.data → cesdk-v1.63.0-nightly.20251018-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -1132,6 +1132,7 @@ export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspe
|
|
|
1132
1132
|
* - 'duration': The duration in seconds of the final audio.
|
|
1133
1133
|
* - 'sampleRate': The sample rate of the exported audio.
|
|
1134
1134
|
* - 'numberOfChannels': The number of channels of the exported audio.
|
|
1135
|
+
* - 'skipEncoding': Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
|
|
1135
1136
|
*
|
|
1136
1137
|
* @public
|
|
1137
1138
|
*/
|
|
@@ -1170,6 +1171,16 @@ export declare type AudioExportOptions = {
|
|
|
1170
1171
|
* @defaultValue 2
|
|
1171
1172
|
*/
|
|
1172
1173
|
numberOfChannels?: number;
|
|
1174
|
+
/**
|
|
1175
|
+
* Skip encoding (audio data will be returned immediately even if not compatible with target MIME type).
|
|
1176
|
+
*
|
|
1177
|
+
* @defaultValue false
|
|
1178
|
+
*/
|
|
1179
|
+
skipEncoding?: boolean;
|
|
1180
|
+
/**
|
|
1181
|
+
* An AbortSignal that can be used to cancel the audio export operation.
|
|
1182
|
+
*/
|
|
1183
|
+
abortSignal?: AbortSignal;
|
|
1173
1184
|
};
|
|
1174
1185
|
|
|
1175
1186
|
/**
|
|
@@ -1178,10 +1189,11 @@ export declare type AudioExportOptions = {
|
|
|
1178
1189
|
* @categoryDescription Audio MIME Type
|
|
1179
1190
|
* Defines the possible audio MIME types used in the editor.
|
|
1180
1191
|
* - 'audio/wav': WAV audio format.
|
|
1192
|
+
* - 'audio/mp4': MP4 audio format.
|
|
1181
1193
|
*
|
|
1182
1194
|
* @public
|
|
1183
1195
|
*/
|
|
1184
|
-
export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav'>;
|
|
1196
|
+
export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav' | 'audio/mp4'>;
|
|
1185
1197
|
|
|
1186
1198
|
/**
|
|
1187
1199
|
* Information about a single audio track from a video.
|
|
@@ -1475,10 +1487,10 @@ export declare class BlockAPI {
|
|
|
1475
1487
|
* console.log(`Audio export progress: ${Math.round((encodedFrames / totalFrames) * 100)}%`);
|
|
1476
1488
|
* };
|
|
1477
1489
|
* const audioOptions = { duration: 10 };
|
|
1478
|
-
* const audioBlob = await engine.block.
|
|
1490
|
+
* const audioBlob = await engine.block.exportAudio(audioBlock, MimeType.Wav, progressTracker, audioOptions);
|
|
1479
1491
|
* ```
|
|
1480
1492
|
*/
|
|
1481
|
-
|
|
1493
|
+
exportAudio(handle: DesignBlockId, options?: AudioExportOptions): Promise<Blob>;
|
|
1482
1494
|
/**
|
|
1483
1495
|
* Loads blocks from a serialized string.
|
|
1484
1496
|
*
|
|
@@ -6865,6 +6877,18 @@ export declare class EditorAPI {
|
|
|
6865
6877
|
* @returns The URLs and sizes of transient resources.
|
|
6866
6878
|
*/
|
|
6867
6879
|
findAllTransientResources(): TransientResource[];
|
|
6880
|
+
/**
|
|
6881
|
+
* Get all media URIs referenced by blocks in the scene.
|
|
6882
|
+
*
|
|
6883
|
+
* Returns URIs from image fills, video fills, and audio blocks, including their source sets.
|
|
6884
|
+
* Only returns valid media URIs (http://, https://, file://), excluding transient resources
|
|
6885
|
+
* like buffer URIs. Useful for determining which media files are referenced by a scene
|
|
6886
|
+
* (e.g., for cleanup operations, CDN management, or file system tracking).
|
|
6887
|
+
*
|
|
6888
|
+
* @category Resource Management
|
|
6889
|
+
* @returns The URLs of all media resources referenced in the scene, deduplicated.
|
|
6890
|
+
*/
|
|
6891
|
+
findAllMediaURIs(): string[];
|
|
6868
6892
|
/**
|
|
6869
6893
|
* Provides the data of a resource at the given URL.
|
|
6870
6894
|
*
|
|
@@ -7464,6 +7488,7 @@ export declare function _mergeSources(...sources: Array<(listener: _Listener<any
|
|
|
7464
7488
|
* - 'image/webp': WebP image format.
|
|
7465
7489
|
* - 'image/x-tga': TGA image format.
|
|
7466
7490
|
* - 'audio/wav': WAV audio format.
|
|
7491
|
+
* - 'audio/mp4': MP4 audio format.
|
|
7467
7492
|
* - 'video/mp4': MP4 video format.
|
|
7468
7493
|
* - 'video/quicktime': QuickTime video format.
|
|
7469
7494
|
* - 'application/octet-stream': Binary data format.
|
|
@@ -7479,6 +7504,7 @@ declare const MimeType_2: {
|
|
|
7479
7504
|
readonly WebP: "image/webp";
|
|
7480
7505
|
readonly Tga: "image/x-tga";
|
|
7481
7506
|
readonly Wav: "audio/wav";
|
|
7507
|
+
readonly Mp4Audio: "audio/mp4";
|
|
7482
7508
|
readonly Mp4: "video/mp4";
|
|
7483
7509
|
readonly QuickTime: "video/quicktime";
|
|
7484
7510
|
readonly Binary: "application/octet-stream";
|
|
@@ -7496,6 +7522,7 @@ declare const MimeType_2: {
|
|
|
7496
7522
|
* - 'image/webp': WebP image format.
|
|
7497
7523
|
* - 'image/x-tga': TGA image format.
|
|
7498
7524
|
* - 'audio/wav': WAV audio format.
|
|
7525
|
+
* - 'audio/mp4': MP4 audio format.
|
|
7499
7526
|
* - 'video/mp4': MP4 video format.
|
|
7500
7527
|
* - 'video/quicktime': QuickTime video format.
|
|
7501
7528
|
* - 'application/octet-stream': Binary data format.
|
|
@@ -8498,6 +8525,14 @@ export declare interface Settings {
|
|
|
8498
8525
|
fallbackFontUri: string;
|
|
8499
8526
|
/** The supported MIME types for file uploads. */
|
|
8500
8527
|
'upload/supportedMimeTypes': string;
|
|
8528
|
+
/**
|
|
8529
|
+
* Web-only: Credentials mode for cross-origin fetch requests.
|
|
8530
|
+
* - "omit": Never send cookies
|
|
8531
|
+
* - "same-origin": Send cookies only for same-origin requests (default)
|
|
8532
|
+
* - "include": Always send cookies, even for cross-origin requests
|
|
8533
|
+
* Note: Only affects web platform. Ignored on native platforms.
|
|
8534
|
+
*/
|
|
8535
|
+
'web/fetchCredentials': 'omit' | 'same-origin' | 'include';
|
|
8501
8536
|
/** Scale-down limit for blocks in screen pixels when scaling with gizmos or touch gestures. */
|
|
8502
8537
|
'controlGizmo/blockScaleDownLimit': number;
|
|
8503
8538
|
/** The threshold distance in pixels for position snapping. */
|
|
@@ -8941,6 +8976,7 @@ export declare type TypefaceDefinition = {
|
|
|
8941
8976
|
export declare interface _UBQExportAudioOptions {
|
|
8942
8977
|
sampleRate: number;
|
|
8943
8978
|
numberOfChannels: number;
|
|
8979
|
+
skipEncoding?: boolean;
|
|
8944
8980
|
}
|
|
8945
8981
|
|
|
8946
8982
|
/**
|