@cesdk/engine 1.61.0-nightly.20250917 → 1.61.0-nightly.20250920
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.61.0-nightly.20250917-NZT4H3A5.wasm → cesdk-v1.61.0-nightly.20250920-5E3GKQNR.wasm} +0 -0
- package/assets/core/{worker-host-v1.61.0-nightly.20250917.js → worker-host-v1.61.0-nightly.20250920.js} +1 -1
- package/index.d.ts +101 -98
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.61.0-nightly.20250917-44YCFRT6.data → cesdk-v1.61.0-nightly.20250920-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -943,12 +943,11 @@ export declare interface AssetResult extends Asset {
|
|
|
943
943
|
* The `AssetResultCredits` interface provides a set of properties that describe the credits
|
|
944
944
|
* for an asset result, including the name and URL of the credits.
|
|
945
945
|
*
|
|
946
|
-
* @categoryDescription AssetResultCredits
|
|
947
946
|
* Methods for working with the credits of asset results.
|
|
948
947
|
*
|
|
949
948
|
* @public
|
|
950
949
|
*/
|
|
951
|
-
declare interface
|
|
950
|
+
export declare interface _AssetResultCredits {
|
|
952
951
|
name: string;
|
|
953
952
|
url: string;
|
|
954
953
|
}
|
|
@@ -959,12 +958,11 @@ declare interface AssetResultCredits {
|
|
|
959
958
|
* The `AssetResultLicense` interface provides a set of properties that describe the license
|
|
960
959
|
* for an asset result, including the name and URL of the license.
|
|
961
960
|
*
|
|
962
|
-
* @categoryDescription AssetResultLicense
|
|
963
961
|
* Methods for working with the license of asset results.
|
|
964
962
|
*
|
|
965
963
|
* @public
|
|
966
964
|
*/
|
|
967
|
-
declare interface
|
|
965
|
+
export declare interface _AssetResultLicense {
|
|
968
966
|
name: string;
|
|
969
967
|
url: string;
|
|
970
968
|
}
|
|
@@ -4742,7 +4740,7 @@ export declare class BlockAPI {
|
|
|
4742
4740
|
*
|
|
4743
4741
|
* @category Block Video
|
|
4744
4742
|
* @param id - The block whose trim should be updated.
|
|
4745
|
-
* @param offset - The new trim offset in seconds.
|
|
4743
|
+
* @param offset - The new trim offset, measured in timeline seconds (scaled by playback rate).
|
|
4746
4744
|
*/
|
|
4747
4745
|
setTrimOffset(id: DesignBlockId, offset: number): void;
|
|
4748
4746
|
/**
|
|
@@ -4945,6 +4943,23 @@ export declare class BlockAPI {
|
|
|
4945
4943
|
* @returns The volume, ranging from 0.0 to 1.0.
|
|
4946
4944
|
*/
|
|
4947
4945
|
getVolume(id: DesignBlockId): number;
|
|
4946
|
+
/**
|
|
4947
|
+
* Sets the playback speed multiplier of a block that supports playback control.
|
|
4948
|
+
* Note: This also adjusts the trim and duration of the block.
|
|
4949
|
+
*
|
|
4950
|
+
* @category Block Video
|
|
4951
|
+
* @param id - The block or video fill to update.
|
|
4952
|
+
* @param speed - The desired playback speed multiplier with a range of [0.25, 3.0].
|
|
4953
|
+
*/
|
|
4954
|
+
setPlaybackSpeed(id: DesignBlockId, speed: number): void;
|
|
4955
|
+
/**
|
|
4956
|
+
* Gets the playback speed multiplier of a block that supports playback control.
|
|
4957
|
+
*
|
|
4958
|
+
* @category Block Video
|
|
4959
|
+
* @param id - The block to query.
|
|
4960
|
+
* @returns The playback speed multiplier.
|
|
4961
|
+
*/
|
|
4962
|
+
getPlaybackSpeed(id: DesignBlockId): number;
|
|
4948
4963
|
/**
|
|
4949
4964
|
* Forces the loading of a block's audio/video resource.
|
|
4950
4965
|
*
|
|
@@ -6811,23 +6826,6 @@ export declare class EventAPI {
|
|
|
6811
6826
|
subscribe: (blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void) => (() => void);
|
|
6812
6827
|
}
|
|
6813
6828
|
|
|
6814
|
-
/**
|
|
6815
|
-
* Specifies options for exporting audio design blocks to various formats.
|
|
6816
|
-
*
|
|
6817
|
-
* The `ExportAudioOptions` interface provides a set of properties that control the
|
|
6818
|
-
* behavior and quality of the exported audio content. These options include settings
|
|
6819
|
-
* for sample rate and number of channels.
|
|
6820
|
-
*
|
|
6821
|
-
* @categoryDescription Export Audio Options
|
|
6822
|
-
* Methods for configuring export settings for audio design blocks.
|
|
6823
|
-
*
|
|
6824
|
-
* @public
|
|
6825
|
-
*/
|
|
6826
|
-
declare interface ExportAudioOptions {
|
|
6827
|
-
sampleRate: number;
|
|
6828
|
-
numberOfChannels: number;
|
|
6829
|
-
}
|
|
6830
|
-
|
|
6831
6829
|
/**
|
|
6832
6830
|
* Represents the options for exporting a design block.
|
|
6833
6831
|
*
|
|
@@ -6916,52 +6914,6 @@ export declare type ExportOptions = {
|
|
|
6916
6914
|
abortSignal?: AbortSignal;
|
|
6917
6915
|
};
|
|
6918
6916
|
|
|
6919
|
-
/**
|
|
6920
|
-
* Specifies options for exporting design blocks to various formats.
|
|
6921
|
-
*
|
|
6922
|
-
* The `ExportOptions` interface provides a set of properties that control the
|
|
6923
|
-
* behavior and quality of the exported content. These options include settings
|
|
6924
|
-
* for JPEG, WebP, PNG, and PDF exports, as well as options for resizing and
|
|
6925
|
-
* adding underlayers.
|
|
6926
|
-
*
|
|
6927
|
-
* @public
|
|
6928
|
-
*/
|
|
6929
|
-
declare interface ExportOptions_2 {
|
|
6930
|
-
jpegQuality: number;
|
|
6931
|
-
webpQuality: number;
|
|
6932
|
-
pngCompressionLevel: number;
|
|
6933
|
-
useTargetSize: boolean;
|
|
6934
|
-
targetWidth: number;
|
|
6935
|
-
targetHeight: number;
|
|
6936
|
-
exportPdfWithHighCompatibility: boolean;
|
|
6937
|
-
exportPdfWithUnderlayer: boolean;
|
|
6938
|
-
underlayerSpotColorName: string;
|
|
6939
|
-
underlayerOffset: number;
|
|
6940
|
-
}
|
|
6941
|
-
|
|
6942
|
-
/**
|
|
6943
|
-
* Specifies options for exporting video design blocks to various formats.
|
|
6944
|
-
*
|
|
6945
|
-
* The `ExportVideoOptions` interface provides a set of properties that control the
|
|
6946
|
-
* behavior and quality of the exported video content. These options include settings
|
|
6947
|
-
* for H.264 profile, level, framerate, video bitrate, audio bitrate, and resizing.
|
|
6948
|
-
*
|
|
6949
|
-
* @categoryDescription Export Video Options
|
|
6950
|
-
* Methods for configuring export settings for video design blocks.
|
|
6951
|
-
*
|
|
6952
|
-
* @public
|
|
6953
|
-
*/
|
|
6954
|
-
declare interface ExportVideoOptions {
|
|
6955
|
-
h264Profile: number;
|
|
6956
|
-
h264Level: number;
|
|
6957
|
-
framerate: number;
|
|
6958
|
-
videoBitrate: number;
|
|
6959
|
-
audioBitrate: number;
|
|
6960
|
-
useTargetSize: boolean;
|
|
6961
|
-
targetWidth: number;
|
|
6962
|
-
targetHeight: number;
|
|
6963
|
-
}
|
|
6964
|
-
|
|
6965
6917
|
/**
|
|
6966
6918
|
* The block type IDs for the fill blocks. These are the IDs used to create new fills
|
|
6967
6919
|
* using `cesdk.engine.block.createFill(id)`.
|
|
@@ -6992,12 +6944,11 @@ export declare type FillTypeShorthand = 'color' | 'gradient/linear' | 'gradient/
|
|
|
6992
6944
|
* the groups, the excluded groups, the locale, the sorting order, the sort key, and whether to
|
|
6993
6945
|
* sort active assets first.
|
|
6994
6946
|
*
|
|
6995
|
-
* @categoryDescription FindAssetsQuery
|
|
6996
6947
|
* Methods for working with queries for finding assets.
|
|
6997
6948
|
*
|
|
6998
6949
|
* @public
|
|
6999
6950
|
*/
|
|
7000
|
-
declare interface
|
|
6951
|
+
export declare interface _FindAssetsQuery {
|
|
7001
6952
|
perPage: number;
|
|
7002
6953
|
page: number;
|
|
7003
6954
|
query: string;
|
|
@@ -7016,12 +6967,11 @@ declare interface FindAssetsQuery {
|
|
|
7016
6967
|
* The `Flip` interface provides a set of properties that indicate whether the design block
|
|
7017
6968
|
* is flipped horizontally or vertically.
|
|
7018
6969
|
*
|
|
7019
|
-
* @categoryDescription Flip
|
|
7020
6970
|
* Methods for configuring the flip states of a design block.
|
|
7021
6971
|
*
|
|
7022
6972
|
* @public
|
|
7023
6973
|
*/
|
|
7024
|
-
declare interface
|
|
6974
|
+
export declare interface _Flip {
|
|
7025
6975
|
horizontal: boolean;
|
|
7026
6976
|
vertical: boolean;
|
|
7027
6977
|
}
|
|
@@ -7216,7 +7166,7 @@ export declare function isSpotColor(color: Color): color is SpotColor;
|
|
|
7216
7166
|
* e.g. `en`, `de`, etc.
|
|
7217
7167
|
* @public
|
|
7218
7168
|
*/
|
|
7219
|
-
declare type Locale = string;
|
|
7169
|
+
export declare type Locale = string;
|
|
7220
7170
|
|
|
7221
7171
|
/**
|
|
7222
7172
|
* Represents a logger function.
|
|
@@ -8330,7 +8280,6 @@ export declare interface Settings {
|
|
|
8330
8280
|
*
|
|
8331
8281
|
* @deprecated Use keyof Settings or extract the boolean keys from Settings instead.
|
|
8332
8282
|
* @public
|
|
8333
|
-
* @category Boolean Settings
|
|
8334
8283
|
*/
|
|
8335
8284
|
export declare type SettingsBool = {
|
|
8336
8285
|
[K in keyof Settings]: Settings[K] extends boolean ? K : never;
|
|
@@ -8341,7 +8290,6 @@ export declare type SettingsBool = {
|
|
|
8341
8290
|
*
|
|
8342
8291
|
* @deprecated Use keyof Settings or extract the color keys from Settings instead.
|
|
8343
8292
|
* @public
|
|
8344
|
-
* @category Color Settings
|
|
8345
8293
|
*/
|
|
8346
8294
|
export declare type SettingsColor = {
|
|
8347
8295
|
[K in keyof Settings]: Settings[K] extends Color ? K : never;
|
|
@@ -8352,7 +8300,6 @@ export declare type SettingsColor = {
|
|
|
8352
8300
|
*
|
|
8353
8301
|
* @public
|
|
8354
8302
|
* @deprecated Use SettingsColor instead.
|
|
8355
|
-
* @category Color Settings
|
|
8356
8303
|
*/
|
|
8357
8304
|
export declare type SettingsColorRGBA = SettingsColor;
|
|
8358
8305
|
|
|
@@ -8361,7 +8308,6 @@ export declare type SettingsColorRGBA = SettingsColor;
|
|
|
8361
8308
|
*
|
|
8362
8309
|
* @deprecated Use keyof Settings or extract the enum keys from Settings instead.
|
|
8363
8310
|
* @public
|
|
8364
|
-
* @category Enum Settings
|
|
8365
8311
|
*/
|
|
8366
8312
|
export declare type SettingsEnum = Pick<Settings, 'doubleClickSelectionMode' | 'touch/pinchAction' | 'touch/rotateAction' | 'camera/clamping/overshootMode'>;
|
|
8367
8313
|
|
|
@@ -8370,7 +8316,6 @@ export declare type SettingsEnum = Pick<Settings, 'doubleClickSelectionMode' | '
|
|
|
8370
8316
|
*
|
|
8371
8317
|
* @deprecated Use keyof Settings or extract the float keys from Settings instead.
|
|
8372
8318
|
* @public
|
|
8373
|
-
* @category Float Settings
|
|
8374
8319
|
*/
|
|
8375
8320
|
export declare type SettingsFloat = Exclude<{
|
|
8376
8321
|
[K in keyof Settings]: Settings[K] extends number ? K : never;
|
|
@@ -8380,7 +8325,6 @@ export declare type SettingsFloat = Exclude<{
|
|
|
8380
8325
|
* Represents the integer settings available in the editor.
|
|
8381
8326
|
*
|
|
8382
8327
|
* @public
|
|
8383
|
-
* @category Integer Settings
|
|
8384
8328
|
*/
|
|
8385
8329
|
export declare type SettingsInt = 'maxImageSize';
|
|
8386
8330
|
|
|
@@ -8389,7 +8333,6 @@ export declare type SettingsInt = 'maxImageSize';
|
|
|
8389
8333
|
*
|
|
8390
8334
|
* @deprecated Use keyof Settings or extract the string keys from Settings instead.
|
|
8391
8335
|
* @public
|
|
8392
|
-
* @category String Settings
|
|
8393
8336
|
*/
|
|
8394
8337
|
export declare type SettingsString = Exclude<{
|
|
8395
8338
|
[K in keyof Settings]: Settings[K] extends string ? K : never;
|
|
@@ -8498,23 +8441,6 @@ export declare type SplitOptions = {
|
|
|
8498
8441
|
selectNewBlock?: boolean;
|
|
8499
8442
|
};
|
|
8500
8443
|
|
|
8501
|
-
/**
|
|
8502
|
-
* Specifies options for configuring block split operations.
|
|
8503
|
-
*
|
|
8504
|
-
* The `SplitOptions` interface provides a set of properties that control the
|
|
8505
|
-
* behavior of the block splitting operation.
|
|
8506
|
-
*
|
|
8507
|
-
* @categoryDescription Split Options
|
|
8508
|
-
* Methods for configuring block split operations.
|
|
8509
|
-
*
|
|
8510
|
-
* @public
|
|
8511
|
-
*/
|
|
8512
|
-
declare interface SplitOptions_2 {
|
|
8513
|
-
attachToParent: boolean;
|
|
8514
|
-
createParentTrackIfNeeded: boolean;
|
|
8515
|
-
selectNewBlock: boolean;
|
|
8516
|
-
}
|
|
8517
|
-
|
|
8518
8444
|
/**
|
|
8519
8445
|
* Represents a spot color value.
|
|
8520
8446
|
*
|
|
@@ -8583,7 +8509,7 @@ export declare type StrokeStyle = 'Dashed' | 'DashedRound' | 'Dotted' | 'LongDas
|
|
|
8583
8509
|
*
|
|
8584
8510
|
* @public
|
|
8585
8511
|
*/
|
|
8586
|
-
declare type
|
|
8512
|
+
export declare type _Subscription = number;
|
|
8587
8513
|
|
|
8588
8514
|
/**
|
|
8589
8515
|
* Checks if the current browser supports necessary technologies to match our supported browsers
|
|
@@ -8694,6 +8620,83 @@ export declare type TypefaceDefinition = {
|
|
|
8694
8620
|
}[];
|
|
8695
8621
|
};
|
|
8696
8622
|
|
|
8623
|
+
/**
|
|
8624
|
+
* Specifies options for exporting audio design blocks to various formats.
|
|
8625
|
+
*
|
|
8626
|
+
* The `UBQExportAudioOptions` interface provides a set of properties that control the
|
|
8627
|
+
* behavior and quality of the exported audio content. These options include settings
|
|
8628
|
+
* for sample rate and number of channels.
|
|
8629
|
+
*
|
|
8630
|
+
* Methods for configuring export settings for audio design blocks.
|
|
8631
|
+
*
|
|
8632
|
+
* @public
|
|
8633
|
+
*/
|
|
8634
|
+
export declare interface _UBQExportAudioOptions {
|
|
8635
|
+
sampleRate: number;
|
|
8636
|
+
numberOfChannels: number;
|
|
8637
|
+
}
|
|
8638
|
+
|
|
8639
|
+
/**
|
|
8640
|
+
* Specifies options for exporting design blocks to various formats.
|
|
8641
|
+
*
|
|
8642
|
+
* The `UBQExportOptions` interface provides a set of properties that control the
|
|
8643
|
+
* behavior and quality of the exported content. These options include settings
|
|
8644
|
+
* for JPEG, WebP, PNG, and PDF exports, as well as options for resizing and
|
|
8645
|
+
* adding underlayers.
|
|
8646
|
+
*
|
|
8647
|
+
* @public
|
|
8648
|
+
*/
|
|
8649
|
+
export declare interface _UBQExportOptions {
|
|
8650
|
+
jpegQuality: number;
|
|
8651
|
+
webpQuality: number;
|
|
8652
|
+
pngCompressionLevel: number;
|
|
8653
|
+
useTargetSize: boolean;
|
|
8654
|
+
targetWidth: number;
|
|
8655
|
+
targetHeight: number;
|
|
8656
|
+
exportPdfWithHighCompatibility: boolean;
|
|
8657
|
+
exportPdfWithUnderlayer: boolean;
|
|
8658
|
+
underlayerSpotColorName: string;
|
|
8659
|
+
underlayerOffset: number;
|
|
8660
|
+
}
|
|
8661
|
+
|
|
8662
|
+
/**
|
|
8663
|
+
* Specifies options for exporting video design blocks to various formats.
|
|
8664
|
+
*
|
|
8665
|
+
* The `UBQExportVideoOptions` interface provides a set of properties that control the
|
|
8666
|
+
* behavior and quality of the exported video content. These options include settings
|
|
8667
|
+
* for H.264 profile, level, framerate, video bitrate, audio bitrate, and resizing.
|
|
8668
|
+
*
|
|
8669
|
+
* Methods for configuring export settings for video design blocks.
|
|
8670
|
+
*
|
|
8671
|
+
* @public
|
|
8672
|
+
*/
|
|
8673
|
+
export declare interface _UBQExportVideoOptions {
|
|
8674
|
+
h264Profile: number;
|
|
8675
|
+
h264Level: number;
|
|
8676
|
+
framerate: number;
|
|
8677
|
+
videoBitrate: number;
|
|
8678
|
+
audioBitrate: number;
|
|
8679
|
+
useTargetSize: boolean;
|
|
8680
|
+
targetWidth: number;
|
|
8681
|
+
targetHeight: number;
|
|
8682
|
+
}
|
|
8683
|
+
|
|
8684
|
+
/**
|
|
8685
|
+
* Specifies options for configuring block split operations.
|
|
8686
|
+
*
|
|
8687
|
+
* The `UBQSplitOptions` interface provides a set of properties that control the
|
|
8688
|
+
* behavior of the block splitting operation.
|
|
8689
|
+
*
|
|
8690
|
+
* Methods for configuring block split operations.
|
|
8691
|
+
*
|
|
8692
|
+
* @public
|
|
8693
|
+
*/
|
|
8694
|
+
export declare interface _UBQSplitOptions {
|
|
8695
|
+
attachToParent: boolean;
|
|
8696
|
+
createParentTrackIfNeeded: boolean;
|
|
8697
|
+
selectNewBlock: boolean;
|
|
8698
|
+
}
|
|
8699
|
+
|
|
8697
8700
|
/**
|
|
8698
8701
|
* @public Manage text variables within design templates.
|
|
8699
8702
|
*
|