@cesdk/engine 1.29.0-rc.0 → 1.30.0-rc.0
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.29.0-rc.0-5ZLJJT2B.wasm → cesdk-v1.30.0-rc.0-4RFGEZPB.wasm} +0 -0
- package/assets/core/{worker-host-v1.29.0-rc.0-AK3FX7LU.js → worker-host-v1.30.0-rc.0-OJA67OVC.js} +1 -1
- package/index.d.ts +54 -5
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.29.0-rc.0-46BMFTP2.data → cesdk-v1.30.0-rc.0-46BMFTP2.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -391,6 +391,36 @@ export declare interface AssetsQueryResult<T extends AssetResult = AssetResult>
|
|
|
391
391
|
|
|
392
392
|
declare type _AssetsQueryResult = AssetsQueryResult;
|
|
393
393
|
|
|
394
|
+
/**
|
|
395
|
+
* @public
|
|
396
|
+
*/
|
|
397
|
+
export declare type AudioExportOptions = {
|
|
398
|
+
/**
|
|
399
|
+
* The time offset in seconds relative to the target block.
|
|
400
|
+
*
|
|
401
|
+
* @defaultValue 0
|
|
402
|
+
*/
|
|
403
|
+
timeOffset?: number;
|
|
404
|
+
/**
|
|
405
|
+
* The duration in seconds of the final audio.
|
|
406
|
+
*
|
|
407
|
+
* @defaultValue The duration of the block.
|
|
408
|
+
*/
|
|
409
|
+
duration?: number;
|
|
410
|
+
/**
|
|
411
|
+
* The sample rate of the exported audio.
|
|
412
|
+
*
|
|
413
|
+
* @defaultValue 48000
|
|
414
|
+
*/
|
|
415
|
+
sampleRate?: number;
|
|
416
|
+
/**
|
|
417
|
+
* The number of channels of the exported audio.
|
|
418
|
+
*
|
|
419
|
+
* @defaultValue 2
|
|
420
|
+
*/
|
|
421
|
+
numberOfChannels?: number;
|
|
422
|
+
};
|
|
423
|
+
|
|
394
424
|
/**
|
|
395
425
|
* @public
|
|
396
426
|
*/
|
|
@@ -429,10 +459,19 @@ export declare class BlockAPI {
|
|
|
429
459
|
* @param handle - The design block element to export. Currently, only page blocks are supported.
|
|
430
460
|
* @param mimeType - The mime type of the output video file.
|
|
431
461
|
* @param progressCallback - A callback which reports on the progress of the export. It informs the receiver of the current frame index, which currently gets exported and the total frame count.
|
|
432
|
-
* @param options - The options for exporting the video
|
|
433
|
-
* @returns A promise that resolves with video blob or is rejected with an error.
|
|
462
|
+
* @param options - The options for exporting the video.
|
|
463
|
+
* @returns A promise that resolves with a video blob or is rejected with an error.
|
|
434
464
|
*/
|
|
435
465
|
exportVideo(handle: DesignBlockId, mimeType: MimeType_2 | undefined, progressCallback: (numberOfRenderedFrames: number, numberOfEncodedFrames: number, totalNumberOfFrames: number) => void, options: VideoExportOptions): Promise<Blob>;
|
|
466
|
+
/**
|
|
467
|
+
* Exports a design block as an audio file of the given mime type.
|
|
468
|
+
* @param handle - The design block element to export. Currently, only audio blocks are supported.
|
|
469
|
+
* @param mimeType - The mime type of the output audio file.
|
|
470
|
+
* @param progressCallback - A callback which reports on the progress of the export.
|
|
471
|
+
* @param options - The options for exporting the audio.
|
|
472
|
+
* @returns A promise that resolves with an audio blob or is rejected with an error.
|
|
473
|
+
*/
|
|
474
|
+
unstable_exportAudio(handle: DesignBlockId, mimeType: MimeType_2 | undefined, progressCallback: (numberOfRenderedFrames: number, numberOfEncodedFrames: number, totalNumberOfFrames: number) => void, options: AudioExportOptions): Promise<Blob>;
|
|
436
475
|
/**
|
|
437
476
|
* Loads existing blocks from the given string.
|
|
438
477
|
* The blocks are not attached by default and won't be visible until attached to a page or the scene.
|
|
@@ -3447,9 +3486,12 @@ export declare class EditorAPI {
|
|
|
3447
3486
|
* This function can be called more than once. Subsequent calls will overwrite previous calls.
|
|
3448
3487
|
* To remove a previously set resolver, pass the value `null`.
|
|
3449
3488
|
* The given function must return an absolute path with a scheme.
|
|
3450
|
-
* @param resolver - Custom resolution function.
|
|
3489
|
+
* @param resolver - Custom resolution function. The resolution function
|
|
3490
|
+
* should not reference variables outside of its scope.
|
|
3491
|
+
* It receives the default URI resolver as its second argument
|
|
3451
3492
|
*/
|
|
3452
|
-
setURIResolver(resolver: (URI: string) => string): void;
|
|
3493
|
+
setURIResolver(resolver: (URI: string, defaultURIResolver: (URI: string) => string) => string): void;
|
|
3494
|
+
|
|
3453
3495
|
/**
|
|
3454
3496
|
* This is the default implementation for the URI resolver.
|
|
3455
3497
|
* It resolves the given path relative to the `basePath` setting.
|
|
@@ -3633,6 +3675,12 @@ export declare class EventAPI {
|
|
|
3633
3675
|
subscribe: (blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void) => (() => void);
|
|
3634
3676
|
}
|
|
3635
3677
|
|
|
3678
|
+
/** @public */
|
|
3679
|
+
declare interface ExportAudioOptions {
|
|
3680
|
+
sampleRate: number;
|
|
3681
|
+
numberOfChannels: number;
|
|
3682
|
+
}
|
|
3683
|
+
|
|
3636
3684
|
/**
|
|
3637
3685
|
* @public
|
|
3638
3686
|
*/
|
|
@@ -3884,6 +3932,7 @@ declare enum MimeType_2 {
|
|
|
3884
3932
|
Jpeg = "image/jpeg",
|
|
3885
3933
|
WebP = "image/webp",
|
|
3886
3934
|
Tga = "image/x-tga",
|
|
3935
|
+
Wav = "audio/wav",
|
|
3887
3936
|
Mp4 = "video/mp4",
|
|
3888
3937
|
QuickTime = "video/quicktime",
|
|
3889
3938
|
Binary = "application/octet-stream",
|
|
@@ -4343,7 +4392,7 @@ export declare type SceneMode = 'Design' | 'Video';
|
|
|
4343
4392
|
export declare type Scope = 'text/edit' | 'text/character' | 'fill/change' | 'fill/changeType' | 'stroke/change' | 'shape/change' | 'layer/move' | 'layer/resize' | 'layer/rotate' | 'layer/flip' | 'layer/crop' | 'layer/opacity' | 'layer/blendMode' | 'layer/visibility' | 'layer/clipping' | 'appearance/adjustments' | 'appearance/filter' | 'appearance/effect' | 'appearance/blur' | 'appearance/shadow' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
|
|
4344
4393
|
|
|
4345
4394
|
/** @public */
|
|
4346
|
-
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'checkScopesInAPIs' | 'page/dimOutOfPageAreas' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
|
|
4395
|
+
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'checkScopesInAPIs' | 'page/dimOutOfPageAreas' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning';
|
|
4347
4396
|
|
|
4348
4397
|
/** @public
|
|
4349
4398
|
*/
|