@cesdk/engine 1.57.0-nightly.20250721 → 1.57.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.57.0-nightly.20250721-UOUJU5XU.wasm → cesdk-v1.57.0-rc.0-QLZZJUAO.wasm} +0 -0
- package/assets/core/{worker-host-v1.57.0-nightly.20250721.js → worker-host-v1.57.0-rc.0.js} +1 -1
- package/index.d.ts +916 -76
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.57.0-nightly.20250721-44YCFRT6.data → cesdk-v1.57.0-rc.0-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -115,7 +115,17 @@ export declare type AnimationTypeLonghand = `//ly.img.ubq/animation/${AnimationT
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AnimationTypeShorthand = 'slide' | 'pan' | 'fade' | 'blur' | 'grow' | 'zoom' | 'pop' | 'wipe' | 'baseline' | 'crop_zoom' | 'spin' | 'spin_loop' | 'fade_loop' | 'blur_loop' | 'pulsating_loop' | 'breathing_loop' | 'jump_loop' | 'squeeze_loop' | 'sway_loop' | 'typewriter_text' | 'block_swipe_text' | 'spread_text' | 'merge_text' | 'ken_burns';
|
|
117
117
|
|
|
118
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* Represents the application MIME types used in the editor.
|
|
120
|
+
*
|
|
121
|
+
* @categoryDescription Application MIME Type
|
|
122
|
+
* Defines the possible application MIME types used in the editor.
|
|
123
|
+
* - 'application/octet-stream': Binary data format.
|
|
124
|
+
* - 'application/pdf': PDF document format.
|
|
125
|
+
* - 'application/zip': ZIP archive format.
|
|
126
|
+
*
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
119
129
|
export declare type ApplicationMimeType = Extract<MimeType_2, 'application/octet-stream' | 'application/pdf' | 'application/zip'>;
|
|
120
130
|
|
|
121
131
|
/**
|
|
@@ -259,6 +269,13 @@ export declare class AssetAPI {
|
|
|
259
269
|
* @param applyAssetToBlock - An optional callback that can be used to override the default behavior of applying an asset result to a given block.
|
|
260
270
|
*/
|
|
261
271
|
addLocalSource(id: string, supportedMimeTypes?: string[], applyAsset?: (asset: CompleteAssetResult) => Promise<DesignBlockId | undefined>, applyAssetToBlock?: (asset: CompleteAssetResult, block: DesignBlockId) => Promise<void>): void;
|
|
272
|
+
/**
|
|
273
|
+
* Creates a new local asset source from a JSON string containing asset definitions.
|
|
274
|
+
* @param contentJSON - The JSON string containing the asset definitions.
|
|
275
|
+
* @param basePath - An optional base path with which \{\{base_url\}\} strings in the assets should be replaced. If no value is provided, settings.basePath is used.
|
|
276
|
+
* @returns The ID of the newly created asset source or an error if that could not be created.
|
|
277
|
+
*/
|
|
278
|
+
addLocalAssetSourceFromJSONString(contentJSON: string, basePath?: string): Promise<string>;
|
|
262
279
|
/**
|
|
263
280
|
* Remove a registered asset source.
|
|
264
281
|
*
|
|
@@ -848,13 +865,33 @@ export declare interface AssetResult extends Asset {
|
|
|
848
865
|
};
|
|
849
866
|
}
|
|
850
867
|
|
|
851
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* Represents the credits for an asset result.
|
|
870
|
+
*
|
|
871
|
+
* The `AssetResultCredits` interface provides a set of properties that describe the credits
|
|
872
|
+
* for an asset result, including the name and URL of the credits.
|
|
873
|
+
*
|
|
874
|
+
* @categoryDescription AssetResultCredits
|
|
875
|
+
* Methods for working with the credits of asset results.
|
|
876
|
+
*
|
|
877
|
+
* @public
|
|
878
|
+
*/
|
|
852
879
|
declare interface AssetResultCredits {
|
|
853
880
|
name: string;
|
|
854
881
|
url: string;
|
|
855
882
|
}
|
|
856
883
|
|
|
857
|
-
/**
|
|
884
|
+
/**
|
|
885
|
+
* Represents the license for an asset result.
|
|
886
|
+
*
|
|
887
|
+
* The `AssetResultLicense` interface provides a set of properties that describe the license
|
|
888
|
+
* for an asset result, including the name and URL of the license.
|
|
889
|
+
*
|
|
890
|
+
* @categoryDescription AssetResultLicense
|
|
891
|
+
* Methods for working with the license of asset results.
|
|
892
|
+
*
|
|
893
|
+
* @public
|
|
894
|
+
*/
|
|
858
895
|
declare interface AssetResultLicense {
|
|
859
896
|
name: string;
|
|
860
897
|
url: string;
|
|
@@ -979,6 +1016,17 @@ export declare interface AssetStringProperty {
|
|
|
979
1016
|
export declare type AssetTransformPreset = AssetFixedAspectRatio | AssetFreeAspectRatio | AssetFixedSize;
|
|
980
1017
|
|
|
981
1018
|
/**
|
|
1019
|
+
* Represents the options for exporting audio.
|
|
1020
|
+
*
|
|
1021
|
+
* @categoryDescription Audio Export Options
|
|
1022
|
+
* Defines the possible options for exporting audio.
|
|
1023
|
+
* - 'mimeType': The MIME type of the output audio file.
|
|
1024
|
+
* - 'onProgress': A callback which reports on the progress of the export.
|
|
1025
|
+
* - 'timeOffset': The time offset in seconds relative to the target block.
|
|
1026
|
+
* - 'duration': The duration in seconds of the final audio.
|
|
1027
|
+
* - 'sampleRate': The sample rate of the exported audio.
|
|
1028
|
+
* - 'numberOfChannels': The number of channels of the exported audio.
|
|
1029
|
+
*
|
|
982
1030
|
* @public
|
|
983
1031
|
*/
|
|
984
1032
|
export declare type AudioExportOptions = {
|
|
@@ -1018,10 +1066,50 @@ export declare type AudioExportOptions = {
|
|
|
1018
1066
|
numberOfChannels?: number;
|
|
1019
1067
|
};
|
|
1020
1068
|
|
|
1021
|
-
/**
|
|
1069
|
+
/**
|
|
1070
|
+
* Represents the audio MIME types used in the editor.
|
|
1071
|
+
*
|
|
1072
|
+
* @categoryDescription Audio MIME Type
|
|
1073
|
+
* Defines the possible audio MIME types used in the editor.
|
|
1074
|
+
* - 'audio/wav': WAV audio format.
|
|
1075
|
+
*
|
|
1076
|
+
* @public
|
|
1077
|
+
*/
|
|
1022
1078
|
export declare type AudioMimeType = Extract<MimeType_2, 'audio/wav'>;
|
|
1023
1079
|
|
|
1024
1080
|
/**
|
|
1081
|
+
* Represents the blend mode of a layer or effect.
|
|
1082
|
+
*
|
|
1083
|
+
* @categoryDescription Blend Mode
|
|
1084
|
+
* Defines the possible blend modes for a layer or effect.
|
|
1085
|
+
* - 'PassThrough': The layer or effect is not blended and is rendered as is.
|
|
1086
|
+
* - 'Normal': The layer or effect is blended normally.
|
|
1087
|
+
* - 'Darken': The layer or effect is blended to darken the underlying content.
|
|
1088
|
+
* - 'Multiply': The layer or effect is blended to multiply the underlying content.
|
|
1089
|
+
* - 'ColorBurn': The layer or effect is blended to burn the underlying content.
|
|
1090
|
+
* - 'LinearBurn': The layer or effect is blended to linearly burn the underlying content.
|
|
1091
|
+
* - 'DarkenColor': The layer or effect is blended to darken the underlying content based on color.
|
|
1092
|
+
* - 'Lighten': The layer or effect is blended to lighten the underlying content.
|
|
1093
|
+
* - 'Screen': The layer or effect is blended to screen the underlying content.
|
|
1094
|
+
* - 'ColorDodge': The layer or effect is blended to dodge the underlying content.
|
|
1095
|
+
* - 'LinearDodge': The layer or effect is blended to linearly dodge the underlying content.
|
|
1096
|
+
* - 'LightenColor': The layer or effect is blended to lighten the underlying content based on color.
|
|
1097
|
+
* - 'Overlay': The layer or effect is blended to overlay the underlying content.
|
|
1098
|
+
* - 'SoftLight': The layer or effect is blended to soft light the underlying content.
|
|
1099
|
+
* - 'HardLight': The layer or effect is blended to hard light the underlying content.
|
|
1100
|
+
* - 'VividLight': The layer or effect is blended to vivid light the underlying content.
|
|
1101
|
+
* - 'LinearLight': The layer or effect is blended to linearly light the underlying content.
|
|
1102
|
+
* - 'PinLight': The layer or effect is blended to pin light the underlying content.
|
|
1103
|
+
* - 'HardMix': The layer or effect is blended to hard mix the underlying content.
|
|
1104
|
+
* - 'Difference': The layer or effect is blended to difference the underlying content.
|
|
1105
|
+
* - 'Exclusion': The layer or effect is blended to exclude the underlying content.
|
|
1106
|
+
* - 'Subtract': The layer or effect is blended to subtract the underlying content.
|
|
1107
|
+
* - 'Divide': The layer or effect is blended to divide the underlying content.
|
|
1108
|
+
* - 'Hue': The layer or effect is blended to hue the underlying content.
|
|
1109
|
+
* - 'Saturation': The layer or effect is blended to saturate the underlying content.
|
|
1110
|
+
* - 'Color': The layer or effect is blended to color the underlying content.
|
|
1111
|
+
* - 'Luminosity': The layer or effect is blended to luminosity the underlying content.
|
|
1112
|
+
*
|
|
1025
1113
|
* @public
|
|
1026
1114
|
*/
|
|
1027
1115
|
export declare type BlendMode = 'PassThrough' | 'Normal' | 'Darken' | 'Multiply' | 'ColorBurn' | 'LinearBurn' | 'DarkenColor' | 'Lighten' | 'Screen' | 'ColorDodge' | 'LinearDodge' | 'LightenColor' | 'Overlay' | 'SoftLight' | 'HardLight' | 'VividLight' | 'LinearLight' | 'PinLight' | 'HardMix' | 'Difference' | 'Exclusion' | 'Subtract' | 'Divide' | 'Hue' | 'Saturation' | 'Color' | 'Luminosity';
|
|
@@ -1092,6 +1180,8 @@ export declare type BlendMode = 'PassThrough' | 'Normal' | 'Darken' | 'Multiply'
|
|
|
1092
1180
|
* Manage permissions and capabilities per block.
|
|
1093
1181
|
* @categoryDescription Block Animations
|
|
1094
1182
|
* Create and manage animations and timeline-based effects.
|
|
1183
|
+
* @categoryDescription Helper
|
|
1184
|
+
* Convenient high-level functions that combine multiple operations into single, easy-to-use methods for common tasks like adding media, applying effects, and positioning blocks.
|
|
1095
1185
|
*/
|
|
1096
1186
|
export declare class BlockAPI {
|
|
1097
1187
|
#private;
|
|
@@ -1985,6 +2075,8 @@ export declare class BlockAPI {
|
|
|
1985
2075
|
getHeightMode(id: DesignBlockId): SizeMode;
|
|
1986
2076
|
/**
|
|
1987
2077
|
* Update a block's size.
|
|
2078
|
+
*
|
|
2079
|
+
* @category Helper
|
|
1988
2080
|
* @param id - The block to update.
|
|
1989
2081
|
* @param width - The new width of the block.
|
|
1990
2082
|
* @param height - The new height of the block.
|
|
@@ -1998,6 +2090,8 @@ export declare class BlockAPI {
|
|
|
1998
2090
|
}): void;
|
|
1999
2091
|
/**
|
|
2000
2092
|
* Update a block's position.
|
|
2093
|
+
*
|
|
2094
|
+
* @category Helper
|
|
2001
2095
|
* @param id - The block to update.
|
|
2002
2096
|
* @param x - The new x position of the block.
|
|
2003
2097
|
* @param y - The new y position of the block.
|
|
@@ -4847,6 +4941,7 @@ export declare class BlockAPI {
|
|
|
4847
4941
|
* Adds an image to the current page. The image will be automatically loaded
|
|
4848
4942
|
* and sized appropriately. In Video mode, timeline and animation options can be applied.
|
|
4849
4943
|
*
|
|
4944
|
+
* @category Helper
|
|
4850
4945
|
* @param url - URL or path to the image file
|
|
4851
4946
|
* @param options - Configuration options for the image
|
|
4852
4947
|
* @returns Promise that resolves to the ID of the created image block
|
|
@@ -4858,6 +4953,7 @@ export declare class BlockAPI {
|
|
|
4858
4953
|
* according to the provided parameters. Timeline and animation effects can be applied.
|
|
4859
4954
|
* Only works in Video mode, not in Design mode.
|
|
4860
4955
|
*
|
|
4956
|
+
* @category Helper
|
|
4861
4957
|
* @param url - URL or path to the video file
|
|
4862
4958
|
* @param width - Width of the video in scene design units
|
|
4863
4959
|
* @param height - Height of the video in scene design units
|
|
@@ -4869,6 +4965,7 @@ export declare class BlockAPI {
|
|
|
4869
4965
|
/**
|
|
4870
4966
|
* Applies an animation to a block.
|
|
4871
4967
|
*
|
|
4968
|
+
* @category Helper
|
|
4872
4969
|
* @param block - The ID of the block to apply the animation to
|
|
4873
4970
|
* @param animation - The animation configuration options
|
|
4874
4971
|
*/
|
|
@@ -4876,6 +4973,7 @@ export declare class BlockAPI {
|
|
|
4876
4973
|
/**
|
|
4877
4974
|
* Applies a drop shadow effect to any block.
|
|
4878
4975
|
*
|
|
4976
|
+
* @category Helper
|
|
4879
4977
|
* @param block - The ID of the block to apply the shadow to
|
|
4880
4978
|
* @param options - Shadow configuration options. If not provided, enables shadow with default settings
|
|
4881
4979
|
*/
|
|
@@ -4884,6 +4982,7 @@ export declare class BlockAPI {
|
|
|
4884
4982
|
* Generates a thumbnail image of the scene at a specific time.
|
|
4885
4983
|
* Only works in Video mode, not in Design mode.
|
|
4886
4984
|
*
|
|
4985
|
+
* @category Helper
|
|
4887
4986
|
* @param height - Height of the thumbnail in scene design units (maximum 512)
|
|
4888
4987
|
* @param time - Time position in seconds to capture the thumbnail
|
|
4889
4988
|
* @returns Promise that resolves to a Blob containing the PNG thumbnail image
|
|
@@ -4895,6 +4994,7 @@ export declare class BlockAPI {
|
|
|
4895
4994
|
* The background track is the track that determines the page duration.
|
|
4896
4995
|
* Only works in Video mode, not in Design mode.
|
|
4897
4996
|
*
|
|
4997
|
+
* @category Helper
|
|
4898
4998
|
* @returns The ID of the background track, or null if none exists
|
|
4899
4999
|
* @throws Error if called in Design mode
|
|
4900
5000
|
*/
|
|
@@ -4905,35 +5005,86 @@ export declare class BlockAPI {
|
|
|
4905
5005
|
* certain elements to be part of the background layer.
|
|
4906
5006
|
* The background track is the track that determines the page duration.
|
|
4907
5007
|
*
|
|
5008
|
+
* @category Helper
|
|
4908
5009
|
* @param block - The ID of the block to move to the background track
|
|
4909
5010
|
* @throws Error if no background track is found
|
|
4910
5011
|
*/
|
|
4911
5012
|
moveToBackgroundTrack(block: DesignBlockId): void;
|
|
4912
5013
|
}
|
|
4913
5014
|
|
|
4914
|
-
/**
|
|
5015
|
+
/**
|
|
5016
|
+
* Represents an event related to a design block.
|
|
5017
|
+
*
|
|
5018
|
+
* The `BlockEvent` interface provides a set of properties that describe an event related to
|
|
5019
|
+
* a design block, including the block ID and the type of event.
|
|
5020
|
+
*
|
|
5021
|
+
* @categoryDescription BlockEvent
|
|
5022
|
+
* Methods for working with events related to design blocks.
|
|
5023
|
+
*
|
|
5024
|
+
* @public
|
|
5025
|
+
*/
|
|
4915
5026
|
export declare interface BlockEvent {
|
|
4916
5027
|
block: DesignBlockId;
|
|
4917
5028
|
type: 'Created' | 'Updated' | 'Destroyed';
|
|
4918
5029
|
}
|
|
4919
5030
|
|
|
4920
|
-
/**
|
|
5031
|
+
/**
|
|
5032
|
+
* Represents the state of a design block.
|
|
5033
|
+
*
|
|
5034
|
+
* The `BlockState` type is a union of the `BlockStateError`, `BlockStatePending`, and
|
|
5035
|
+
* `BlockStateReady` interfaces, which describe the possible states of a design block.
|
|
5036
|
+
*
|
|
5037
|
+
* @categoryDescription BlockState
|
|
5038
|
+
* Methods for working with the state of design blocks.
|
|
5039
|
+
*
|
|
5040
|
+
* @public
|
|
5041
|
+
*/
|
|
4921
5042
|
export declare type BlockState = BlockStateError | BlockStatePending | BlockStateReady;
|
|
4922
5043
|
|
|
4923
|
-
/**
|
|
5044
|
+
/**
|
|
5045
|
+
* Represents an error state for a design block.
|
|
5046
|
+
*
|
|
5047
|
+
* The `BlockStateError` interface provides a set of properties that describe an error state
|
|
5048
|
+
* for a design block, including the type of error and a description of the error.
|
|
5049
|
+
*
|
|
5050
|
+
* @categoryDescription BlockStateError
|
|
5051
|
+
* Methods for working with error states for design blocks.
|
|
5052
|
+
*
|
|
5053
|
+
* @public
|
|
5054
|
+
*/
|
|
4924
5055
|
export declare interface BlockStateError {
|
|
4925
5056
|
type: 'Error';
|
|
4926
5057
|
error: 'AudioDecoding' | 'ImageDecoding' | 'FileFetch' | 'Unknown' | 'VideoDecoding';
|
|
4927
5058
|
}
|
|
4928
5059
|
|
|
4929
|
-
/**
|
|
5060
|
+
/**
|
|
5061
|
+
* Represents a pending state for a design block.
|
|
5062
|
+
*
|
|
5063
|
+
* The `BlockStatePending` interface provides a set of properties that describe a pending
|
|
5064
|
+
* state for a design block, including the type of state and the progress of the operation.
|
|
5065
|
+
*
|
|
5066
|
+
* @categoryDescription BlockStatePending
|
|
5067
|
+
* Methods for working with pending states for design blocks.
|
|
5068
|
+
*
|
|
5069
|
+
* @public
|
|
5070
|
+
*/
|
|
4930
5071
|
export declare interface BlockStatePending {
|
|
4931
5072
|
type: 'Pending';
|
|
4932
5073
|
/** Expected range is [0, 1] */
|
|
4933
5074
|
progress: number;
|
|
4934
5075
|
}
|
|
4935
5076
|
|
|
4936
|
-
/**
|
|
5077
|
+
/**
|
|
5078
|
+
* Represents a ready state for a design block.
|
|
5079
|
+
*
|
|
5080
|
+
* The `BlockStateReady` interface provides a set of properties that describe a ready state
|
|
5081
|
+
* for a design block, including the type of state.
|
|
5082
|
+
*
|
|
5083
|
+
* @categoryDescription BlockStateReady
|
|
5084
|
+
* Methods for working with ready states for design blocks.
|
|
5085
|
+
*
|
|
5086
|
+
* @public
|
|
5087
|
+
*/
|
|
4937
5088
|
export declare interface BlockStateReady {
|
|
4938
5089
|
type: 'Ready';
|
|
4939
5090
|
}
|
|
@@ -4974,13 +5125,30 @@ export declare type BlurTypeLonghand = `//ly.img.ubq/blur/${BlurTypeShorthand}`;
|
|
|
4974
5125
|
export declare type BlurTypeShorthand = 'uniform' | 'linear' | 'mirrored' | 'radial';
|
|
4975
5126
|
|
|
4976
5127
|
/**
|
|
4977
|
-
*
|
|
5128
|
+
* Represents the names of boolean operations.
|
|
5129
|
+
*
|
|
5130
|
+
* @categoryDescription Boolean Operation
|
|
5131
|
+
* Defines the possible boolean operations.
|
|
5132
|
+
* - 'Difference': The difference between two shapes.
|
|
5133
|
+
* - 'Intersection': The intersection of two shapes.
|
|
5134
|
+
* - 'Union': The union of two shapes.
|
|
5135
|
+
* - 'XOR': The exclusive OR of two shapes.
|
|
4978
5136
|
*
|
|
4979
5137
|
* @public
|
|
4980
5138
|
*/
|
|
4981
5139
|
export declare type BooleanOperation = 'Difference' | 'Intersection' | 'Union' | 'XOR';
|
|
4982
5140
|
|
|
4983
|
-
/**
|
|
5141
|
+
/**
|
|
5142
|
+
* Represents a buffer of data.
|
|
5143
|
+
*
|
|
5144
|
+
* The `Buffer` interface provides a set of properties that describe a buffer of data,
|
|
5145
|
+
* including a handle and the buffer itself.
|
|
5146
|
+
*
|
|
5147
|
+
* @categoryDescription Buffer
|
|
5148
|
+
* Methods for working with buffers of data.
|
|
5149
|
+
*
|
|
5150
|
+
* @public
|
|
5151
|
+
*/
|
|
4984
5152
|
export declare interface Buffer {
|
|
4985
5153
|
handle: string;
|
|
4986
5154
|
buffer: Uint8Array;
|
|
@@ -5005,12 +5173,29 @@ export declare function checkVideoExportSupport(): Promise<void>;
|
|
|
5005
5173
|
export declare function checkVideoSupport(): void;
|
|
5006
5174
|
|
|
5007
5175
|
/**
|
|
5176
|
+
* Represents a color in the CMYK color space.
|
|
5177
|
+
*
|
|
5178
|
+
* The `CMYK` type is a tuple that contains four numbers representing the cyan, magenta,
|
|
5179
|
+
* yellow, and black components of the color.
|
|
5180
|
+
*
|
|
5181
|
+
* @categoryDescription CMYK
|
|
5182
|
+
* Methods for working with colors in the CMYK color space.
|
|
5183
|
+
*
|
|
5008
5184
|
* @public
|
|
5009
5185
|
*/
|
|
5010
5186
|
export declare type CMYK = [c: number, m: number, y: number, k: number];
|
|
5011
5187
|
|
|
5012
5188
|
/**
|
|
5013
|
-
*
|
|
5189
|
+
* Represents a CMYK color value.
|
|
5190
|
+
*
|
|
5191
|
+
* @categoryDescription CMYK Color
|
|
5192
|
+
* Defines a CMYK color value with components between 0 and 1.
|
|
5193
|
+
* - 'c': The cyan component.
|
|
5194
|
+
* - 'm': The magenta component.
|
|
5195
|
+
* - 'y': The yellow component.
|
|
5196
|
+
* - 'k': The black component.
|
|
5197
|
+
* - 'tint': The tint factor.
|
|
5198
|
+
*
|
|
5014
5199
|
* @public
|
|
5015
5200
|
*/
|
|
5016
5201
|
export declare interface CMYKColor {
|
|
@@ -5027,12 +5212,27 @@ export declare interface CMYKColor {
|
|
|
5027
5212
|
}
|
|
5028
5213
|
|
|
5029
5214
|
/**
|
|
5030
|
-
*
|
|
5215
|
+
* Represents all color types supported by the engine.
|
|
5216
|
+
*
|
|
5217
|
+
* @categoryDescription Color
|
|
5218
|
+
* Defines all color types supported by the engine.
|
|
5219
|
+
* - 'RGBAColor': An RGBA color value.
|
|
5220
|
+
* - 'CMYKColor': A CMYK color value.
|
|
5221
|
+
* - 'SpotColor': A spot color value.
|
|
5222
|
+
*
|
|
5031
5223
|
* @public
|
|
5032
5224
|
*/
|
|
5033
5225
|
export declare type Color = RGBAColor | CMYKColor | SpotColor;
|
|
5034
5226
|
|
|
5035
5227
|
/**
|
|
5228
|
+
* Represents the color space used in the editor.
|
|
5229
|
+
*
|
|
5230
|
+
* @categoryDescription Color Space
|
|
5231
|
+
* Defines the possible color spaces used in the editor.
|
|
5232
|
+
* - 'sRGB': The sRGB color space.
|
|
5233
|
+
* - 'CMYK': The CMYK color space.
|
|
5234
|
+
* - 'SpotColor': The spot color space.
|
|
5235
|
+
*
|
|
5036
5236
|
* @public
|
|
5037
5237
|
*/
|
|
5038
5238
|
export declare type ColorSpace = 'sRGB' | 'CMYK' | 'SpotColor';
|
|
@@ -5055,7 +5255,19 @@ export declare interface CompleteAssetResult extends AssetResult {
|
|
|
5055
5255
|
active: boolean;
|
|
5056
5256
|
}
|
|
5057
5257
|
|
|
5058
|
-
/**
|
|
5258
|
+
/**
|
|
5259
|
+
* Specifies the configuration for the Creative Editor SDK.
|
|
5260
|
+
*
|
|
5261
|
+
* The `Configuration` interface provides a set of properties that control the behavior
|
|
5262
|
+
* and settings of the editor. These options include settings for the base URL, license,
|
|
5263
|
+
* user ID, core settings, logger, feature flags, presets, force WebGL1, audio output,
|
|
5264
|
+
* and role.
|
|
5265
|
+
*
|
|
5266
|
+
* @categoryDescription Configuration
|
|
5267
|
+
* Methods for configuring the settings of the Creative Editor SDK.
|
|
5268
|
+
*
|
|
5269
|
+
* @public
|
|
5270
|
+
*/
|
|
5059
5271
|
export declare interface Configuration {
|
|
5060
5272
|
baseURL: string;
|
|
5061
5273
|
license: string;
|
|
@@ -5098,9 +5310,14 @@ export declare interface Configuration {
|
|
|
5098
5310
|
}
|
|
5099
5311
|
|
|
5100
5312
|
/**
|
|
5101
|
-
*
|
|
5102
|
-
*
|
|
5103
|
-
*
|
|
5313
|
+
* Represents the mode for filling content within a block.
|
|
5314
|
+
*
|
|
5315
|
+
* The `ContentFillMode` type provides a set of values that control the mode for
|
|
5316
|
+
* filling content within a block. These options include settings for cropping,
|
|
5317
|
+
* covering, and containing the content.
|
|
5318
|
+
*
|
|
5319
|
+
* @categoryDescription ContentFillMode
|
|
5320
|
+
* Methods for configuring the mode for filling content within a block.
|
|
5104
5321
|
*
|
|
5105
5322
|
* @public
|
|
5106
5323
|
*/
|
|
@@ -5323,16 +5540,49 @@ export declare interface CursorEvent extends CustomEvent<string> {
|
|
|
5323
5540
|
}
|
|
5324
5541
|
|
|
5325
5542
|
/**
|
|
5543
|
+
* Represents the operation performed on a cutout.
|
|
5544
|
+
*
|
|
5545
|
+
* @categoryDescription Cutout Operation
|
|
5546
|
+
* Defines the possible operations for a cutout.
|
|
5547
|
+
* - 'Difference': The difference between two shapes.
|
|
5548
|
+
* - 'Intersection': The intersection of two shapes.
|
|
5549
|
+
* - 'Union': The union of two shapes.
|
|
5550
|
+
* - 'XOR': The exclusive OR of two shapes.
|
|
5551
|
+
*
|
|
5326
5552
|
* @public
|
|
5327
5553
|
*/
|
|
5328
5554
|
export declare type CutoutOperation = 'Difference' | 'Intersection' | 'Union' | 'XOR';
|
|
5329
5555
|
|
|
5330
5556
|
/**
|
|
5557
|
+
* Represents the type of a cutout.
|
|
5558
|
+
*
|
|
5559
|
+
* @categoryDescription Cutout Type
|
|
5560
|
+
* Defines the possible types for a cutout.
|
|
5561
|
+
* - 'Solid': A solid cutout.
|
|
5562
|
+
* - 'Dashed': A dashed cutout.
|
|
5563
|
+
*
|
|
5331
5564
|
* @public
|
|
5332
5565
|
*/
|
|
5333
5566
|
export declare type CutoutType = 'Solid' | 'Dashed';
|
|
5334
5567
|
|
|
5335
5568
|
/**
|
|
5569
|
+
* Represents the default asset source IDs used in the editor.
|
|
5570
|
+
*
|
|
5571
|
+
* @categoryDescription Default Asset Source ID
|
|
5572
|
+
* Defines the possible default asset source IDs used in the editor.
|
|
5573
|
+
* - 'ly.img.sticker': Asset source for stickers.
|
|
5574
|
+
* - 'ly.img.vectorpath': Asset source for vector paths.
|
|
5575
|
+
* - 'ly.img.colors.defaultPalette': Asset source for the default color palette.
|
|
5576
|
+
* - 'ly.img.filter.lut': Asset source for LUT filters.
|
|
5577
|
+
* - 'ly.img.filter.duotone': Asset source for duotone filters.
|
|
5578
|
+
* - 'ly.img.effect': Asset source for effects.
|
|
5579
|
+
* - 'ly.img.blur': Asset source for blur effects.
|
|
5580
|
+
* - 'ly.img.typeface': Asset source for typefaces.
|
|
5581
|
+
* - 'ly.img.page.presets': Asset source for page presets.
|
|
5582
|
+
* - 'ly.img.page.presets.video': Asset source for video page presets.
|
|
5583
|
+
* - 'ly.img.crop.presets': Asset source for crop presets.
|
|
5584
|
+
* - 'ly.img.captionPresets': Asset source for caption presets.
|
|
5585
|
+
*
|
|
5336
5586
|
* @public
|
|
5337
5587
|
*/
|
|
5338
5588
|
export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath' | 'ly.img.colors.defaultPalette' | 'ly.img.filter.lut' | 'ly.img.filter.duotone' | 'ly.img.effect' | 'ly.img.blur' | 'ly.img.typeface' | 'ly.img.page.presets' | 'ly.img.page.presets.video' | 'ly.img.crop.presets' | 'ly.img.captionPresets';
|
|
@@ -5341,6 +5591,20 @@ export declare type DefaultAssetSourceId = 'ly.img.sticker' | 'ly.img.vectorpath
|
|
|
5341
5591
|
export declare function defaultLogger(message: string, level?: LogLevel): void;
|
|
5342
5592
|
|
|
5343
5593
|
/**
|
|
5594
|
+
* Represents the default demo asset source IDs used in the editor.
|
|
5595
|
+
*
|
|
5596
|
+
* @categoryDescription Default Demo Asset Source ID
|
|
5597
|
+
* Defines the possible default demo asset source IDs used in the editor.
|
|
5598
|
+
* - 'ly.img.template': Asset source for templates.
|
|
5599
|
+
* - 'ly.img.image.upload': Asset source for uploading images.
|
|
5600
|
+
* - 'ly.img.video.upload': Asset source for uploading videos.
|
|
5601
|
+
* - 'ly.img.audio.upload': Asset source for uploading audio.
|
|
5602
|
+
* - 'ly.img.image': Asset source for images.
|
|
5603
|
+
* - 'ly.img.video': Asset source for videos.
|
|
5604
|
+
* - 'ly.img.video.template': Asset source for video templates.
|
|
5605
|
+
* - 'ly.img.audio': Asset source for audio.
|
|
5606
|
+
* - 'ly.img.textComponents': Asset source for text components.
|
|
5607
|
+
*
|
|
5344
5608
|
* @public
|
|
5345
5609
|
*/
|
|
5346
5610
|
export declare type DemoAssetSourceId = 'ly.img.template' | 'ly.img.image.upload' | 'ly.img.video.upload' | 'ly.img.audio.upload' | 'ly.img.image' | 'ly.img.video' | 'ly.img.video.template' | 'ly.img.audio' | 'ly.img.textComponents';
|
|
@@ -5402,7 +5666,20 @@ export declare type DropShadowOptions = {
|
|
|
5402
5666
|
};
|
|
5403
5667
|
};
|
|
5404
5668
|
|
|
5405
|
-
/**
|
|
5669
|
+
/**
|
|
5670
|
+
* Represents the current edit mode of the editor.
|
|
5671
|
+
*
|
|
5672
|
+
* @categoryDescription Edit Mode
|
|
5673
|
+
* Defines the possible edit modes of the editor.
|
|
5674
|
+
* - 'Transform': The mode for transforming blocks (e.g., resizing, rotating).
|
|
5675
|
+
* - 'Crop': The mode for cropping images.
|
|
5676
|
+
* - 'Text': The mode for editing text.
|
|
5677
|
+
* - 'Playback': The mode for playing back animations or videos.
|
|
5678
|
+
* - 'Trim': The mode for trimming video or audio.
|
|
5679
|
+
* - 'Custom': A custom edit mode defined by the user.
|
|
5680
|
+
*
|
|
5681
|
+
* @public
|
|
5682
|
+
*/
|
|
5406
5683
|
export declare type EditMode = 'Transform' | 'Crop' | 'Text' | 'Playback' | 'Trim' | (string & {});
|
|
5407
5684
|
|
|
5408
5685
|
/**
|
|
@@ -6197,14 +6474,32 @@ export declare type EffectTypeLonghand = `//ly.img.ubq/effect/${EffectTypeShorth
|
|
|
6197
6474
|
*/
|
|
6198
6475
|
export declare type EffectTypeShorthand = 'adjustments' | 'cross_cut' | 'dot_pattern' | 'duotone_filter' | 'extrude_blur' | 'glow' | 'green_screen' | 'half_tone' | 'linocut' | 'liquid' | 'lut_filter' | 'mirror' | 'outliner' | 'pixelize' | 'posterize' | 'radial_pixel' | 'recolor' | 'sharpie' | 'shifter' | 'tilt_shift' | 'tv_glitch' | 'vignette';
|
|
6199
6476
|
|
|
6200
|
-
/**
|
|
6477
|
+
/**
|
|
6478
|
+
* Represents an engine plugin.
|
|
6479
|
+
*
|
|
6480
|
+
* @categoryDescription Engine Plugin
|
|
6481
|
+
* Defines the structure of an engine plugin, including its name, version, and initialization function.
|
|
6482
|
+
* - 'name': The name of the plugin.
|
|
6483
|
+
* - 'version': The version of the plugin.
|
|
6484
|
+
* - 'initialize': The function to initialize the plugin with the provided context.
|
|
6485
|
+
*
|
|
6486
|
+
* @public
|
|
6487
|
+
*/
|
|
6201
6488
|
export declare interface EnginePlugin {
|
|
6202
6489
|
name: string;
|
|
6203
6490
|
version: string;
|
|
6204
6491
|
initialize: (context: EnginePluginContext) => void;
|
|
6205
6492
|
}
|
|
6206
6493
|
|
|
6207
|
-
/**
|
|
6494
|
+
/**
|
|
6495
|
+
* Represents the context for an engine plugin.
|
|
6496
|
+
*
|
|
6497
|
+
* @categoryDescription Engine Plugin Context
|
|
6498
|
+
* Defines the context provided to an engine plugin, including APIs for assets, blocks, scenes, editor, events, and variables.
|
|
6499
|
+
* - 'engine': The engine instance containing APIs for asset, block, scene, editor, event, and variable management.
|
|
6500
|
+
*
|
|
6501
|
+
* @public
|
|
6502
|
+
*/
|
|
6208
6503
|
export declare type EnginePluginContext = {
|
|
6209
6504
|
engine: {
|
|
6210
6505
|
asset: AssetAPI;
|
|
@@ -6241,13 +6536,41 @@ export declare class EventAPI {
|
|
|
6241
6536
|
subscribe: (blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void) => (() => void);
|
|
6242
6537
|
}
|
|
6243
6538
|
|
|
6244
|
-
/**
|
|
6539
|
+
/**
|
|
6540
|
+
* Specifies options for exporting audio design blocks to various formats.
|
|
6541
|
+
*
|
|
6542
|
+
* The `ExportAudioOptions` interface provides a set of properties that control the
|
|
6543
|
+
* behavior and quality of the exported audio content. These options include settings
|
|
6544
|
+
* for sample rate and number of channels.
|
|
6545
|
+
*
|
|
6546
|
+
* @categoryDescription Export Audio Options
|
|
6547
|
+
* Methods for configuring export settings for audio design blocks.
|
|
6548
|
+
*
|
|
6549
|
+
* @public
|
|
6550
|
+
*/
|
|
6245
6551
|
declare interface ExportAudioOptions {
|
|
6246
6552
|
sampleRate: number;
|
|
6247
6553
|
numberOfChannels: number;
|
|
6248
6554
|
}
|
|
6249
6555
|
|
|
6250
6556
|
/**
|
|
6557
|
+
* Represents the options for exporting a design block.
|
|
6558
|
+
*
|
|
6559
|
+
* @categoryDescription Export Options
|
|
6560
|
+
* Defines the possible options for exporting a design block.
|
|
6561
|
+
* - 'mimeType': The MIME type of the output file.
|
|
6562
|
+
* - 'pngCompressionLevel': The PNG compression level to use, when exporting to PNG.
|
|
6563
|
+
* - 'jpegQuality': The JPEG quality to use when encoding to JPEG.
|
|
6564
|
+
* - 'webpQuality': The WebP quality to use when encoding to WebP.
|
|
6565
|
+
* - 'targetWidth': An optional target width used in conjunction with target height.
|
|
6566
|
+
* - 'targetHeight': An optional target height used in conjunction with target width.
|
|
6567
|
+
* - 'exportPdfWithHighCompatibility': Export the PDF document with a higher compatibility to different PDF
|
|
6568
|
+
viewers.
|
|
6569
|
+
* - 'exportPdfWithUnderlayer': Export the PDF document with an underlayer.
|
|
6570
|
+
* - 'underlayerSpotColorName': The name of the spot color to be used for the underlayer's fill.
|
|
6571
|
+
* - 'underlayerOffset': The adjustment in size of the shape of the underlayer.
|
|
6572
|
+
* - 'abortSignal': An abort signal that can be used to cancel the export.
|
|
6573
|
+
*
|
|
6251
6574
|
* @public
|
|
6252
6575
|
*/
|
|
6253
6576
|
export declare type ExportOptions = {
|
|
@@ -6319,7 +6642,19 @@ export declare type ExportOptions = {
|
|
|
6319
6642
|
abortSignal?: AbortSignal;
|
|
6320
6643
|
};
|
|
6321
6644
|
|
|
6322
|
-
/**
|
|
6645
|
+
/**
|
|
6646
|
+
* Specifies options for exporting design blocks to various formats.
|
|
6647
|
+
*
|
|
6648
|
+
* The `ExportOptions` interface provides a set of properties that control the
|
|
6649
|
+
* behavior and quality of the exported content. These options include settings
|
|
6650
|
+
* for JPEG, WebP, PNG, and PDF exports, as well as options for resizing and
|
|
6651
|
+
* adding underlayers.
|
|
6652
|
+
*
|
|
6653
|
+
* @categoryDescription Export Options
|
|
6654
|
+
* Methods for configuring export settings for design blocks.
|
|
6655
|
+
*
|
|
6656
|
+
* @public
|
|
6657
|
+
*/
|
|
6323
6658
|
declare interface ExportOptions_2 {
|
|
6324
6659
|
jpegQuality: number;
|
|
6325
6660
|
webpQuality: number;
|
|
@@ -6333,7 +6668,18 @@ declare interface ExportOptions_2 {
|
|
|
6333
6668
|
underlayerOffset: number;
|
|
6334
6669
|
}
|
|
6335
6670
|
|
|
6336
|
-
/**
|
|
6671
|
+
/**
|
|
6672
|
+
* Specifies options for exporting video design blocks to various formats.
|
|
6673
|
+
*
|
|
6674
|
+
* The `ExportVideoOptions` interface provides a set of properties that control the
|
|
6675
|
+
* behavior and quality of the exported video content. These options include settings
|
|
6676
|
+
* for H.264 profile, level, framerate, video bitrate, audio bitrate, and resizing.
|
|
6677
|
+
*
|
|
6678
|
+
* @categoryDescription Export Video Options
|
|
6679
|
+
* Methods for configuring export settings for video design blocks.
|
|
6680
|
+
*
|
|
6681
|
+
* @public
|
|
6682
|
+
*/
|
|
6337
6683
|
declare interface ExportVideoOptions {
|
|
6338
6684
|
h264Profile: number;
|
|
6339
6685
|
h264Level: number;
|
|
@@ -6367,7 +6713,19 @@ export declare type FillTypeLonghand = `//ly.img.ubq/fill/${FillTypeShorthand}`;
|
|
|
6367
6713
|
*/
|
|
6368
6714
|
export declare type FillTypeShorthand = 'color' | 'gradient/linear' | 'gradient/radial' | 'gradient/conical' | 'image' | 'video' | 'pixelStream';
|
|
6369
6715
|
|
|
6370
|
-
/**
|
|
6716
|
+
/**
|
|
6717
|
+
* Represents a query for finding assets.
|
|
6718
|
+
*
|
|
6719
|
+
* The `FindAssetsQuery` interface provides a set of properties that describe a query for finding
|
|
6720
|
+
* assets, including the number of assets per page, the page number, the query string, the tags,
|
|
6721
|
+
* the groups, the excluded groups, the locale, the sorting order, the sort key, and whether to
|
|
6722
|
+
* sort active assets first.
|
|
6723
|
+
*
|
|
6724
|
+
* @categoryDescription FindAssetsQuery
|
|
6725
|
+
* Methods for working with queries for finding assets.
|
|
6726
|
+
*
|
|
6727
|
+
* @public
|
|
6728
|
+
*/
|
|
6371
6729
|
declare interface FindAssetsQuery {
|
|
6372
6730
|
perPage: number;
|
|
6373
6731
|
page: number;
|
|
@@ -6381,13 +6739,33 @@ declare interface FindAssetsQuery {
|
|
|
6381
6739
|
sortActiveFirst: boolean;
|
|
6382
6740
|
}
|
|
6383
6741
|
|
|
6384
|
-
/**
|
|
6742
|
+
/**
|
|
6743
|
+
* Specifies the horizontal and vertical flip states of a design block.
|
|
6744
|
+
*
|
|
6745
|
+
* The `Flip` interface provides a set of properties that indicate whether the design block
|
|
6746
|
+
* is flipped horizontally or vertically.
|
|
6747
|
+
*
|
|
6748
|
+
* @categoryDescription Flip
|
|
6749
|
+
* Methods for configuring the flip states of a design block.
|
|
6750
|
+
*
|
|
6751
|
+
* @public
|
|
6752
|
+
*/
|
|
6385
6753
|
declare interface Flip {
|
|
6386
6754
|
horizontal: boolean;
|
|
6387
6755
|
vertical: boolean;
|
|
6388
6756
|
}
|
|
6389
6757
|
|
|
6390
|
-
/**
|
|
6758
|
+
/**
|
|
6759
|
+
* Represents a font.
|
|
6760
|
+
*
|
|
6761
|
+
* The Font interface defines the structure of a font within the Creative Editor SDK.
|
|
6762
|
+
* It includes properties for the uri, subFamily, weight, and style.
|
|
6763
|
+
*
|
|
6764
|
+
* @categoryDescription Fonts
|
|
6765
|
+
* Methods for managing fonts within the editor.
|
|
6766
|
+
*
|
|
6767
|
+
* @public
|
|
6768
|
+
*/
|
|
6391
6769
|
export declare interface Font {
|
|
6392
6770
|
uri: string;
|
|
6393
6771
|
subFamily: string;
|
|
@@ -6395,13 +6773,42 @@ export declare interface Font {
|
|
|
6395
6773
|
style?: FontStyle;
|
|
6396
6774
|
}
|
|
6397
6775
|
|
|
6398
|
-
/**
|
|
6776
|
+
/**
|
|
6777
|
+
* Represents the style of a font.
|
|
6778
|
+
*
|
|
6779
|
+
* The FontStyle type defines the possible styles of a font within the Creative Editor SDK.
|
|
6780
|
+
* Each style corresponds to a different appearance, allowing for flexibility in how fonts are styled.
|
|
6781
|
+
*
|
|
6782
|
+
* @categoryDescription Fonts
|
|
6783
|
+
* Methods for managing font styles within the editor.
|
|
6784
|
+
*
|
|
6785
|
+
* @public
|
|
6786
|
+
*/
|
|
6399
6787
|
export declare type FontStyle = 'normal' | 'italic';
|
|
6400
6788
|
|
|
6401
|
-
/**
|
|
6789
|
+
/**
|
|
6790
|
+
* Represents the weight of a font.
|
|
6791
|
+
*
|
|
6792
|
+
* The FontWeight type defines the possible weights of a font within the Creative Editor SDK.
|
|
6793
|
+
* Each weight corresponds to a different thickness, allowing for flexibility in how fonts are styled.
|
|
6794
|
+
*
|
|
6795
|
+
* @categoryDescription Fonts
|
|
6796
|
+
* Methods for managing font weights within the editor.
|
|
6797
|
+
*
|
|
6798
|
+
* @public
|
|
6799
|
+
*/
|
|
6402
6800
|
export declare type FontWeight = 'thin' | 'extraLight' | 'light' | 'normal' | 'medium' | 'semiBold' | 'bold' | 'extraBold' | 'heavy';
|
|
6403
6801
|
|
|
6404
|
-
/**
|
|
6802
|
+
/**
|
|
6803
|
+
* Represents a gradient color stop.
|
|
6804
|
+
*
|
|
6805
|
+
* @categoryDescription Gradient Color Stop
|
|
6806
|
+
* Defines a gradient color stop with a color and a stop position.
|
|
6807
|
+
* - 'color': The color value.
|
|
6808
|
+
* - 'stop': The relative position of the color within the gradient in the range [0, 1].
|
|
6809
|
+
*
|
|
6810
|
+
* @public
|
|
6811
|
+
*/
|
|
6405
6812
|
export declare interface GradientColorStop {
|
|
6406
6813
|
/** A color value within a gradient. */
|
|
6407
6814
|
color: Color;
|
|
@@ -6410,6 +6817,14 @@ export declare interface GradientColorStop {
|
|
|
6410
6817
|
}
|
|
6411
6818
|
|
|
6412
6819
|
/**
|
|
6820
|
+
* Represents a gradient stop in the RGBA color space.
|
|
6821
|
+
*
|
|
6822
|
+
* The `GradientstopRGBA` type is a tuple that contains five numbers representing the stop
|
|
6823
|
+
* position and the red, green, blue, and alpha components of the color.
|
|
6824
|
+
*
|
|
6825
|
+
* @categoryDescription GradientstopRGBA
|
|
6826
|
+
* Methods for working with gradient stops in the RGBA color space.
|
|
6827
|
+
*
|
|
6413
6828
|
* @public
|
|
6414
6829
|
*/
|
|
6415
6830
|
export declare type GradientstopRGBA = [
|
|
@@ -6421,8 +6836,13 @@ a: number
|
|
|
6421
6836
|
];
|
|
6422
6837
|
|
|
6423
6838
|
/**
|
|
6424
|
-
*
|
|
6425
|
-
*
|
|
6839
|
+
* Represents a hexadecimal color value (RGB or RGBA) that starts with a '#'.
|
|
6840
|
+
*
|
|
6841
|
+
* @categoryDescription Hex Color String
|
|
6842
|
+
* Defines a hexadecimal color value that starts with a '#'.
|
|
6843
|
+
* - '#6686FF': A hexadecimal color value for RGB.
|
|
6844
|
+
* - '#6686FFFF': A hexadecimal color value for RGBA.
|
|
6845
|
+
*
|
|
6426
6846
|
* @public
|
|
6427
6847
|
*/
|
|
6428
6848
|
export declare type HexColorString = string;
|
|
@@ -6434,9 +6854,14 @@ export declare type HexColorString = string;
|
|
|
6434
6854
|
export declare type HistoryId = number;
|
|
6435
6855
|
|
|
6436
6856
|
/**
|
|
6437
|
-
*
|
|
6438
|
-
*
|
|
6439
|
-
*
|
|
6857
|
+
* Represents the horizontal alignment of blocks.
|
|
6858
|
+
*
|
|
6859
|
+
* The `HorizontalBlockAlignment` type provides a set of values that control the
|
|
6860
|
+
* horizontal alignment of blocks. These options include settings for aligning
|
|
6861
|
+
* blocks to the left, right, or center.
|
|
6862
|
+
*
|
|
6863
|
+
* @categoryDescription HorizontalBlockAlignment
|
|
6864
|
+
* Methods for configuring the horizontal alignment of blocks.
|
|
6440
6865
|
*
|
|
6441
6866
|
* @public
|
|
6442
6867
|
*/
|
|
@@ -6475,23 +6900,46 @@ export declare interface HTMLCreativeEngineCanvasElement extends HTMLElement {
|
|
|
6475
6900
|
clear(): void;
|
|
6476
6901
|
}
|
|
6477
6902
|
|
|
6478
|
-
/**
|
|
6903
|
+
/**
|
|
6904
|
+
* Represents the image MIME types used in the editor.
|
|
6905
|
+
*
|
|
6906
|
+
* @categoryDescription Image MIME Type
|
|
6907
|
+
* Defines the possible image MIME types used in the editor.
|
|
6908
|
+
* - 'image/png': PNG image format.
|
|
6909
|
+
* - 'image/jpeg': JPEG image format.
|
|
6910
|
+
* - 'image/webp': WebP image format.
|
|
6911
|
+
* - 'image/x-tga': TGA image format.
|
|
6912
|
+
*
|
|
6913
|
+
* @public
|
|
6914
|
+
*/
|
|
6479
6915
|
export declare type ImageMimeType = Extract<MimeType_2, 'image/png' | 'image/jpeg' | 'image/webp' | 'image/x-tga'>;
|
|
6480
6916
|
|
|
6481
6917
|
/**
|
|
6482
|
-
* Type guard for {@link CMYKColor}
|
|
6918
|
+
* Type guard for {@link CMYKColor}.
|
|
6919
|
+
*
|
|
6920
|
+
* @categoryDescription Type Guard
|
|
6921
|
+
* Defines a type guard for CMYKColor.
|
|
6922
|
+
*
|
|
6483
6923
|
* @public
|
|
6484
6924
|
*/
|
|
6485
6925
|
export declare function isCMYKColor(color: Color): color is CMYKColor;
|
|
6486
6926
|
|
|
6487
6927
|
/**
|
|
6488
|
-
* Type guard for {@link RGBAColor}
|
|
6928
|
+
* Type guard for {@link RGBAColor}.
|
|
6929
|
+
*
|
|
6930
|
+
* @categoryDescription Type Guard
|
|
6931
|
+
* Defines a type guard for RGBAColor.
|
|
6932
|
+
*
|
|
6489
6933
|
* @public
|
|
6490
6934
|
*/
|
|
6491
6935
|
export declare function isRGBAColor(color: Color): color is RGBAColor;
|
|
6492
6936
|
|
|
6493
6937
|
/**
|
|
6494
|
-
* Type guard for {@link SpotColor}
|
|
6938
|
+
* Type guard for {@link SpotColor}.
|
|
6939
|
+
*
|
|
6940
|
+
* @categoryDescription Type Guard
|
|
6941
|
+
* Defines a type guard for SpotColor.
|
|
6942
|
+
*
|
|
6495
6943
|
* @public
|
|
6496
6944
|
*/
|
|
6497
6945
|
export declare function isSpotColor(color: Color): color is SpotColor;
|
|
@@ -6502,15 +6950,45 @@ export declare function isSpotColor(color: Color): color is SpotColor;
|
|
|
6502
6950
|
*/
|
|
6503
6951
|
declare type Locale = string;
|
|
6504
6952
|
|
|
6505
|
-
/**
|
|
6953
|
+
/**
|
|
6954
|
+
* Represents a logger function.
|
|
6955
|
+
*
|
|
6956
|
+
* The Logger interface defines the structure of a logger function within the Creative Editor SDK.
|
|
6957
|
+
* It includes a method for logging messages with an optional log level.
|
|
6958
|
+
*
|
|
6959
|
+
* @categoryDescription Logging
|
|
6960
|
+
* Methods for managing logging within the editor.
|
|
6961
|
+
*
|
|
6962
|
+
* @public
|
|
6963
|
+
*/
|
|
6506
6964
|
export declare interface Logger {
|
|
6507
6965
|
(message: string, level?: LogLevel): void;
|
|
6508
6966
|
}
|
|
6509
6967
|
|
|
6510
|
-
/**
|
|
6968
|
+
/**
|
|
6969
|
+
* Provides logging functionality for the Creative Editor SDK.
|
|
6970
|
+
*
|
|
6971
|
+
* The `Logger` interface and associated types define a standardized way to log messages
|
|
6972
|
+
* at different severity levels within the SDK. This allows developers to track the
|
|
6973
|
+
* behavior of the editor, diagnose issues, and understand the flow of operations.
|
|
6974
|
+
*
|
|
6975
|
+
* @categoryDescription Logging
|
|
6976
|
+
* Methods for managing logging within the editor.
|
|
6977
|
+
*
|
|
6978
|
+
* @public
|
|
6979
|
+
*/
|
|
6511
6980
|
export declare type LogLevel = 'Info' | 'Warning' | 'Error';
|
|
6512
6981
|
|
|
6513
6982
|
/**
|
|
6983
|
+
* Provides a set of predefined log levels for the Creative Editor SDK.
|
|
6984
|
+
*
|
|
6985
|
+
* The `LogLevel` object contains constants representing different severity levels
|
|
6986
|
+
* for logging messages. These levels can be used to categorize log messages based
|
|
6987
|
+
* on their importance and urgency.
|
|
6988
|
+
*
|
|
6989
|
+
* @categoryDescription Logging
|
|
6990
|
+
* Methods for managing logging within the editor.
|
|
6991
|
+
*
|
|
6514
6992
|
* @public
|
|
6515
6993
|
* @deprecated Specifying log levels via `LogLevel.Info` has been deprecated.
|
|
6516
6994
|
* Please use the desired LogLevel string directly.
|
|
@@ -6522,9 +7000,24 @@ export declare const LogLevel: {
|
|
|
6522
7000
|
};
|
|
6523
7001
|
|
|
6524
7002
|
/**
|
|
7003
|
+
* Represents the MIME types used in the editor.
|
|
7004
|
+
*
|
|
7005
|
+
* @categoryDescription MIME Type
|
|
7006
|
+
* Defines the possible MIME types used in the editor.
|
|
7007
|
+
* - 'image/png': PNG image format.
|
|
7008
|
+
* - 'image/jpeg': JPEG image format.
|
|
7009
|
+
* - 'image/webp': WebP image format.
|
|
7010
|
+
* - 'image/x-tga': TGA image format.
|
|
7011
|
+
* - 'audio/wav': WAV audio format.
|
|
7012
|
+
* - 'video/mp4': MP4 video format.
|
|
7013
|
+
* - 'video/quicktime': QuickTime video format.
|
|
7014
|
+
* - 'application/octet-stream': Binary data format.
|
|
7015
|
+
* - 'application/pdf': PDF document format.
|
|
7016
|
+
* - 'application/zip': ZIP archive format.
|
|
7017
|
+
*
|
|
6525
7018
|
* @public
|
|
6526
|
-
* @deprecated Use
|
|
6527
|
-
|
|
7019
|
+
* @deprecated Use the `MimeType` string literal types instead.
|
|
7020
|
+
*/
|
|
6528
7021
|
declare const MimeType_2: {
|
|
6529
7022
|
readonly Png: "image/png";
|
|
6530
7023
|
readonly Jpeg: "image/jpeg";
|
|
@@ -6538,7 +7031,24 @@ declare const MimeType_2: {
|
|
|
6538
7031
|
readonly Zip: "application/zip";
|
|
6539
7032
|
};
|
|
6540
7033
|
|
|
6541
|
-
/**
|
|
7034
|
+
/**
|
|
7035
|
+
* Represents the MIME types used in the editor.
|
|
7036
|
+
*
|
|
7037
|
+
* @categoryDescription MIME Type
|
|
7038
|
+
* Defines the possible MIME types used in the editor.
|
|
7039
|
+
* - 'image/png': PNG image format.
|
|
7040
|
+
* - 'image/jpeg': JPEG image format.
|
|
7041
|
+
* - 'image/webp': WebP image format.
|
|
7042
|
+
* - 'image/x-tga': TGA image format.
|
|
7043
|
+
* - 'audio/wav': WAV audio format.
|
|
7044
|
+
* - 'video/mp4': MP4 video format.
|
|
7045
|
+
* - 'video/quicktime': QuickTime video format.
|
|
7046
|
+
* - 'application/octet-stream': Binary data format.
|
|
7047
|
+
* - 'application/pdf': PDF document format.
|
|
7048
|
+
* - 'application/zip': ZIP archive format.
|
|
7049
|
+
*
|
|
7050
|
+
* @public
|
|
7051
|
+
*/
|
|
6542
7052
|
declare type MimeType_2 = (typeof MimeType_2)[keyof typeof MimeType_2];
|
|
6543
7053
|
export { MimeType_2 as MimeType }
|
|
6544
7054
|
|
|
@@ -6583,22 +7093,43 @@ export declare interface PageDuration {
|
|
|
6583
7093
|
}
|
|
6584
7094
|
|
|
6585
7095
|
/**
|
|
6586
|
-
*
|
|
6587
|
-
*
|
|
7096
|
+
* Represents a color definition for the custom color palette.
|
|
7097
|
+
*
|
|
7098
|
+
* @categoryDescription Palette Color
|
|
7099
|
+
* Defines a color definition for the custom color palette.
|
|
7100
|
+
* - 'HexColorString': A hexadecimal color value.
|
|
7101
|
+
* - 'RGBColor': An RGB color value.
|
|
7102
|
+
* - 'RGBAColor': An RGBA color value.
|
|
7103
|
+
* - 'SpotColor': A spot color value.
|
|
7104
|
+
*
|
|
6588
7105
|
* @public
|
|
6589
7106
|
*/
|
|
6590
7107
|
export declare type PaletteColor = HexColorString | RGBColor | RGBAColor | SpotColor;
|
|
6591
7108
|
|
|
6592
7109
|
/**
|
|
6593
|
-
*
|
|
6594
|
-
*
|
|
6595
|
-
*
|
|
7110
|
+
* Represents the mode for positioning blocks.
|
|
7111
|
+
*
|
|
7112
|
+
* The `PositionMode` type provides a set of values that control the mode for
|
|
7113
|
+
* positioning blocks. These options include settings for absolute positioning,
|
|
7114
|
+
* percentage-based positioning, and automatic positioning.
|
|
7115
|
+
*
|
|
7116
|
+
* @categoryDescription PositionMode
|
|
7117
|
+
* Methods for configuring the mode for positioning blocks.
|
|
6596
7118
|
*
|
|
6597
7119
|
* @public
|
|
6598
7120
|
*/
|
|
6599
7121
|
export declare type PositionMode = 'Absolute' | 'Percent' | 'Auto';
|
|
6600
7122
|
|
|
6601
|
-
/**
|
|
7123
|
+
/**
|
|
7124
|
+
* Represents the various types of properties that can be associated with design blocks.
|
|
7125
|
+
* Each type corresponds to a different kind of data that can be used to define the properties
|
|
7126
|
+
* of a design block within the system.
|
|
7127
|
+
*
|
|
7128
|
+
* @categoryDescription Property Types
|
|
7129
|
+
* Defines the different types of properties that can be used to describe design blocks.
|
|
7130
|
+
*
|
|
7131
|
+
* @public
|
|
7132
|
+
*/
|
|
6602
7133
|
export declare type PropertyType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum' | 'Struct' | 'Double' | 'SourceSet';
|
|
6603
7134
|
|
|
6604
7135
|
/**
|
|
@@ -6697,12 +7228,28 @@ export declare interface RefocusEvent extends CustomEvent<EventTarget | null> {
|
|
|
6697
7228
|
}
|
|
6698
7229
|
|
|
6699
7230
|
/**
|
|
7231
|
+
* Represents a color in the RGBA color space.
|
|
7232
|
+
*
|
|
7233
|
+
* The `RGBA` type is a tuple that contains four numbers representing the red, green,
|
|
7234
|
+
* blue, and alpha components of the color.
|
|
7235
|
+
*
|
|
7236
|
+
* @categoryDescription RGBA
|
|
7237
|
+
* Methods for working with colors in the RGBA color space.
|
|
7238
|
+
*
|
|
6700
7239
|
* @public
|
|
6701
7240
|
*/
|
|
6702
7241
|
export declare type RGBA = [r: number, g: number, b: number, a: number];
|
|
6703
7242
|
|
|
6704
7243
|
/**
|
|
6705
|
-
*
|
|
7244
|
+
* Represents an RGBA color value.
|
|
7245
|
+
*
|
|
7246
|
+
* @categoryDescription RGBA Color
|
|
7247
|
+
* Defines an RGBA color value with components between 0 and 1.
|
|
7248
|
+
* - 'r': The red component.
|
|
7249
|
+
* - 'g': The green component.
|
|
7250
|
+
* - 'b': The blue component.
|
|
7251
|
+
* - 'a': The alpha component.
|
|
7252
|
+
*
|
|
6706
7253
|
* @public
|
|
6707
7254
|
*/
|
|
6708
7255
|
export declare interface RGBAColor {
|
|
@@ -6717,7 +7264,14 @@ export declare interface RGBAColor {
|
|
|
6717
7264
|
}
|
|
6718
7265
|
|
|
6719
7266
|
/**
|
|
6720
|
-
*
|
|
7267
|
+
* Represents an RGB color value.
|
|
7268
|
+
*
|
|
7269
|
+
* @categoryDescription RGB Color
|
|
7270
|
+
* Defines an RGB color value with components between 0 and 1.
|
|
7271
|
+
* - 'r': The red component.
|
|
7272
|
+
* - 'g': The green component.
|
|
7273
|
+
* - 'b': The blue component.
|
|
7274
|
+
*
|
|
6721
7275
|
* @public
|
|
6722
7276
|
*/
|
|
6723
7277
|
export declare interface RGBColor {
|
|
@@ -6729,7 +7283,17 @@ export declare interface RGBColor {
|
|
|
6729
7283
|
b: number;
|
|
6730
7284
|
}
|
|
6731
7285
|
|
|
6732
|
-
/**
|
|
7286
|
+
/**
|
|
7287
|
+
* Represents a role string.
|
|
7288
|
+
*
|
|
7289
|
+
* The RoleString type defines the possible roles within the Creative Editor SDK.
|
|
7290
|
+
* Each role corresponds to a different level of access and permissions, allowing for flexibility in how users are managed.
|
|
7291
|
+
*
|
|
7292
|
+
* @categoryDescription Roles
|
|
7293
|
+
* Methods for managing roles within the editor.
|
|
7294
|
+
*
|
|
7295
|
+
* @public
|
|
7296
|
+
*/
|
|
6733
7297
|
export declare type RoleString = 'Creator' | 'Adopter' | 'Viewer' | 'Presenter';
|
|
6734
7298
|
|
|
6735
7299
|
/**
|
|
@@ -7289,23 +7853,130 @@ export declare type SceneLayout = 'Free' | 'VerticalStack' | 'HorizontalStack' |
|
|
|
7289
7853
|
export declare type SceneMode = 'Design' | 'Video';
|
|
7290
7854
|
|
|
7291
7855
|
/**
|
|
7856
|
+
* @public
|
|
7857
|
+
* Represents the various scopes that define the capabilities and permissions
|
|
7858
|
+
* within the Creative Editor SDK. Each scope corresponds to a specific
|
|
7859
|
+
* functionality or action that can be performed within the editor.
|
|
7860
|
+
*
|
|
7861
|
+
* The `Scope` type is used to control access to different features and operations,
|
|
7862
|
+
* allowing for fine-grained control over what actions are permitted.
|
|
7863
|
+
*
|
|
7864
|
+
* @categoryDescription Scopes
|
|
7865
|
+
* Defines the various scopes that control the capabilities and permissions
|
|
7866
|
+
* within the Creative Editor SDK.
|
|
7867
|
+
*
|
|
7292
7868
|
* @public
|
|
7293
7869
|
*/
|
|
7294
7870
|
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' | 'appearance/animation' | 'lifecycle/destroy' | 'lifecycle/duplicate' | 'editor/add' | 'editor/select';
|
|
7295
7871
|
|
|
7296
|
-
/**
|
|
7872
|
+
/**
|
|
7873
|
+
* Represents the boolean settings available in the editor.
|
|
7874
|
+
*
|
|
7875
|
+
* @categoryDescription Boolean Settings
|
|
7876
|
+
* Defines the possible boolean settings in the editor.
|
|
7877
|
+
* - 'controlGizmo/showCropHandles': Show crop handles in the control gizmo.
|
|
7878
|
+
* - 'controlGizmo/showCropScaleHandles': Show crop scale handles in the control gizmo.
|
|
7879
|
+
* - 'controlGizmo/showMoveHandles': Show move handles in the control gizmo.
|
|
7880
|
+
* - 'controlGizmo/showResizeHandles': Show resize handles in the control gizmo.
|
|
7881
|
+
* - 'controlGizmo/showRotateHandles': Show rotate handles in the control gizmo.
|
|
7882
|
+
* - 'controlGizmo/showScaleHandles': Show scale handles in the control gizmo.
|
|
7883
|
+
* - 'doubleClickToCropEnabled': Enable double-click to crop.
|
|
7884
|
+
* - 'features/singlePageModeEnabled': Enable single page mode.
|
|
7885
|
+
* - 'features/pageCarouselEnabled': Enable page carousel.
|
|
7886
|
+
* - 'features/transformEditsRetainCoverMode': Retain cover mode during transform edits.
|
|
7887
|
+
* - 'mouse/enableScroll': Enable mouse scroll.
|
|
7888
|
+
* - 'mouse/enableZoom': Enable mouse zoom.
|
|
7889
|
+
* - 'page/allowCropInteraction': Allow crop interaction on pages.
|
|
7890
|
+
* - 'page/allowMoveInteraction': Allow move interaction on pages.
|
|
7891
|
+
* - 'page/allowResizeInteraction': Allow resize interaction on pages.
|
|
7892
|
+
* - 'page/allowRotateInteraction': Allow rotate interaction on pages.
|
|
7893
|
+
* - 'page/dimOutOfPageAreas': Dim out-of-page areas.
|
|
7894
|
+
* - 'page/restrictResizeInteractionToFixedAspectRatio': Restrict resize interaction to fixed aspect ratio.
|
|
7895
|
+
* - 'page/moveChildrenWhenCroppingFill': Move children when cropping fill.
|
|
7896
|
+
* - 'page/title/appendPageName': Append page name to the title.
|
|
7897
|
+
* - 'page/title/show': Show page title.
|
|
7898
|
+
* - 'page/title/showOnSinglePage': Show page title on single page.
|
|
7899
|
+
* - 'page/title/showPageTitleTemplate': Show page title template.
|
|
7900
|
+
* - 'placeholderControls/showButton': Show button in placeholder controls.
|
|
7901
|
+
* - 'placeholderControls/showOverlay': Show overlay in placeholder controls.
|
|
7902
|
+
* - 'blockAnimations/enabled': Enable block animations.
|
|
7903
|
+
* - 'showBuildVersion': Show build version.
|
|
7904
|
+
* - 'touch/dragStartCanSelect': Allow drag start to select.
|
|
7905
|
+
* - 'touch/singlePointPanning': Enable single-point panning.
|
|
7906
|
+
* - 'useSystemFontFallback': Use system font fallback.
|
|
7907
|
+
* - 'forceSystemEmojis': Force system emojis.
|
|
7908
|
+
*
|
|
7909
|
+
* @public
|
|
7910
|
+
*/
|
|
7297
7911
|
export declare type SettingsBool = 'controlGizmo/showCropHandles' | 'controlGizmo/showCropScaleHandles' | 'controlGizmo/showMoveHandles' | 'controlGizmo/showResizeHandles' | 'controlGizmo/showRotateHandles' | 'controlGizmo/showScaleHandles' | 'doubleClickToCropEnabled' | 'features/singlePageModeEnabled' | 'features/pageCarouselEnabled' | 'features/transformEditsRetainCoverMode' | 'mouse/enableScroll' | 'mouse/enableZoom' | 'page/allowCropInteraction' | 'page/allowMoveInteraction' | 'page/allowResizeInteraction' | 'page/allowRotateInteraction' | 'page/dimOutOfPageAreas' | 'page/restrictResizeInteractionToFixedAspectRatio' | 'page/moveChildrenWhenCroppingFill' | 'page/title/appendPageName' | 'page/title/show' | 'page/title/showOnSinglePage' | 'page/title/showPageTitleTemplate' | 'placeholderControls/showButton' | 'placeholderControls/showOverlay' | 'blockAnimations/enabled' | 'showBuildVersion' | 'touch/dragStartCanSelect' | 'touch/singlePointPanning' | 'useSystemFontFallback' | 'forceSystemEmojis';
|
|
7298
7912
|
|
|
7299
|
-
/**
|
|
7913
|
+
/**
|
|
7914
|
+
* Represents the color settings available in the editor.
|
|
7915
|
+
*
|
|
7916
|
+
* @categoryDescription Color Settings
|
|
7917
|
+
* Defines the possible color settings in the editor.
|
|
7918
|
+
* - 'borderOutlineColor': The color of the border outline.
|
|
7919
|
+
* - 'clearColor': The clear color.
|
|
7920
|
+
* - 'colorMaskingSettings/maskColor': The color used for masking.
|
|
7921
|
+
* - 'cropOverlayColor': The color of the crop overlay.
|
|
7922
|
+
* - 'errorStateColor': The color indicating an error state.
|
|
7923
|
+
* - 'highlightColor': The highlight color.
|
|
7924
|
+
* - 'page/innerBorderColor': The color of the inner border of the page.
|
|
7925
|
+
* - 'page/marginFillColor': The color of the margin fill.
|
|
7926
|
+
* - 'page/marginFrameColor': The color of the margin frame.
|
|
7927
|
+
* - 'page/outerBorderColor': The color of the outer border of the page.
|
|
7928
|
+
* - 'page/title/color': The color of the page title.
|
|
7929
|
+
* - 'placeholderHighlightColor': The highlight color for placeholders.
|
|
7930
|
+
* - 'progressColor': The color indicating progress.
|
|
7931
|
+
* - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
|
|
7932
|
+
* - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
|
|
7933
|
+
* - 'snappingGuideColor': The color of the snapping guide.
|
|
7934
|
+
* - 'textVariableHighlightColor': The highlight color for text variables.
|
|
7935
|
+
*
|
|
7936
|
+
* @public
|
|
7300
7937
|
*/
|
|
7301
7938
|
export declare type SettingsColor = 'borderOutlineColor' | 'clearColor' | 'colorMaskingSettings/maskColor' | 'cropOverlayColor' | 'errorStateColor' | 'highlightColor' | 'page/innerBorderColor' | 'page/marginFillColor' | 'page/marginFrameColor' | 'page/outerBorderColor' | 'page/title/color' | 'placeholderHighlightColor' | 'progressColor' | 'rotationSnappingGuideColor' | 'ruleOfThirdsLineColor' | 'snappingGuideColor' | 'textVariableHighlightColor';
|
|
7302
7939
|
|
|
7303
|
-
/**
|
|
7940
|
+
/**
|
|
7941
|
+
* Represents the color settings available in the editor.
|
|
7942
|
+
*
|
|
7943
|
+
* @categoryDescription Color Settings
|
|
7944
|
+
* Defines the possible color settings in the editor.
|
|
7945
|
+
* - 'borderOutlineColor': The color of the border outline.
|
|
7946
|
+
* - 'clearColor': The clear color.
|
|
7947
|
+
* - 'colorMaskingSettings/maskColor': The color used for masking.
|
|
7948
|
+
* - 'cropOverlayColor': The color of the crop overlay.
|
|
7949
|
+
* - 'errorStateColor': The color indicating an error state.
|
|
7950
|
+
* - 'highlightColor': The highlight color.
|
|
7951
|
+
* - 'page/innerBorderColor': The color of the inner border of the page.
|
|
7952
|
+
* - 'page/marginFillColor': The color of the margin fill.
|
|
7953
|
+
* - 'page/marginFrameColor': The color of the margin frame.
|
|
7954
|
+
* - 'page/outerBorderColor': The color of the outer border of the page.
|
|
7955
|
+
* - 'page/title/color': The color of the page title.
|
|
7956
|
+
* - 'placeholderHighlightColor': The highlight color for placeholders.
|
|
7957
|
+
* - 'progressColor': The color indicating progress.
|
|
7958
|
+
* - 'rotationSnappingGuideColor': The color of the rotation snapping guide.
|
|
7959
|
+
* - 'ruleOfThirdsLineColor': The color of the rule of thirds lines.
|
|
7960
|
+
* - 'snappingGuideColor': The color of the snapping guide.
|
|
7961
|
+
* - 'textVariableHighlightColor': The highlight color for text variables.
|
|
7962
|
+
*
|
|
7963
|
+
* @public
|
|
7304
7964
|
* @deprecated Use SettingsColor instead.
|
|
7305
7965
|
*/
|
|
7306
7966
|
export declare type SettingsColorRGBA = SettingsColor;
|
|
7307
7967
|
|
|
7308
|
-
/**
|
|
7968
|
+
/**
|
|
7969
|
+
* Represents the enum settings available in the editor.
|
|
7970
|
+
*
|
|
7971
|
+
* @categoryDescription Enum Settings
|
|
7972
|
+
* Defines the possible enum settings in the editor.
|
|
7973
|
+
* - 'doubleClickSelectionMode': The mode for double-click selection.
|
|
7974
|
+
* - 'touch/pinchAction': The action for pinch gestures.
|
|
7975
|
+
* - 'touch/rotateAction': The action for rotate gestures.
|
|
7976
|
+
* - 'camera/clamping/overshootMode': The mode for camera clamping overshoot.
|
|
7977
|
+
*
|
|
7978
|
+
* @public
|
|
7979
|
+
*/
|
|
7309
7980
|
export declare type SettingsEnum = {
|
|
7310
7981
|
doubleClickSelectionMode: 'Direct' | 'Hierarchical';
|
|
7311
7982
|
'touch/pinchAction': 'None' | 'Zoom' | 'Scale';
|
|
@@ -7313,13 +7984,50 @@ export declare type SettingsEnum = {
|
|
|
7313
7984
|
'camera/clamping/overshootMode': 'Center' | 'Reverse';
|
|
7314
7985
|
};
|
|
7315
7986
|
|
|
7316
|
-
/**
|
|
7987
|
+
/**
|
|
7988
|
+
* Represents the float settings available in the editor.
|
|
7989
|
+
*
|
|
7990
|
+
* @categoryDescription Float Settings
|
|
7991
|
+
* Defines the possible float settings in the editor.
|
|
7992
|
+
* - 'controlGizmo/blockScaleDownLimit': The scale down limit for the control gizmo block.
|
|
7993
|
+
* - 'positionSnappingThreshold': The threshold for position snapping.
|
|
7994
|
+
* - 'rotationSnappingThreshold': The threshold for rotation snapping.
|
|
7995
|
+
*
|
|
7996
|
+
* @public
|
|
7997
|
+
*/
|
|
7317
7998
|
export declare type SettingsFloat = 'controlGizmo/blockScaleDownLimit' | 'positionSnappingThreshold' | 'rotationSnappingThreshold';
|
|
7318
7999
|
|
|
7319
|
-
/**
|
|
8000
|
+
/**
|
|
8001
|
+
* Represents the string settings available in the editor.
|
|
8002
|
+
*
|
|
8003
|
+
* @categoryDescription String Settings
|
|
8004
|
+
* Defines the possible string settings in the editor.
|
|
8005
|
+
* - 'basePath': The base path for resources.
|
|
8006
|
+
* - 'defaultEmojiFontFileUri': The default URI for the emoji font file.
|
|
8007
|
+
* - 'defaultFontFileUri': The default URI for the font file.
|
|
8008
|
+
* - 'license': The license key.
|
|
8009
|
+
* - 'page/title/fontFileUri': The URI for the page title font file.
|
|
8010
|
+
* - 'page/title/separator': The separator for the page title.
|
|
8011
|
+
* - 'fallbackFontUri': The URI for the fallback font.
|
|
8012
|
+
*
|
|
8013
|
+
* @public
|
|
8014
|
+
*/
|
|
7320
8015
|
export declare type SettingsString = 'basePath' | 'defaultEmojiFontFileUri' | 'defaultFontFileUri' | 'license' | 'page/title/fontFileUri' | 'page/title/separator' | 'fallbackFontUri';
|
|
7321
8016
|
|
|
7322
|
-
/**
|
|
8017
|
+
/**
|
|
8018
|
+
* Represents the type of a setting.
|
|
8019
|
+
*
|
|
8020
|
+
* @categoryDescription Setting Type
|
|
8021
|
+
* Defines the possible types for a setting.
|
|
8022
|
+
* - 'Bool': A boolean setting.
|
|
8023
|
+
* - 'Int': An integer setting.
|
|
8024
|
+
* - 'Float': A float setting.
|
|
8025
|
+
* - 'String': A string setting.
|
|
8026
|
+
* - 'Color': A color setting.
|
|
8027
|
+
* - 'Enum': An enum setting.
|
|
8028
|
+
*
|
|
8029
|
+
* @public
|
|
8030
|
+
*/
|
|
7323
8031
|
export declare type SettingType = 'Bool' | 'Int' | 'Float' | 'String' | 'Color' | 'Enum';
|
|
7324
8032
|
|
|
7325
8033
|
/**
|
|
@@ -7351,9 +8059,14 @@ export declare interface Size2 {
|
|
|
7351
8059
|
}
|
|
7352
8060
|
|
|
7353
8061
|
/**
|
|
7354
|
-
*
|
|
7355
|
-
*
|
|
7356
|
-
*
|
|
8062
|
+
* Represents the mode for sizing blocks.
|
|
8063
|
+
*
|
|
8064
|
+
* The `SizeMode` type provides a set of values that control the mode for sizing
|
|
8065
|
+
* blocks. These options include settings for absolute sizing, percentage-based
|
|
8066
|
+
* sizing, and automatic sizing.
|
|
8067
|
+
*
|
|
8068
|
+
* @categoryDescription SizeMode
|
|
8069
|
+
* Methods for configuring the mode for sizing blocks.
|
|
7357
8070
|
*
|
|
7358
8071
|
* @public
|
|
7359
8072
|
*/
|
|
@@ -7376,23 +8089,75 @@ export declare interface Source {
|
|
|
7376
8089
|
height: number;
|
|
7377
8090
|
}
|
|
7378
8091
|
|
|
7379
|
-
/**
|
|
8092
|
+
/**
|
|
8093
|
+
* Represents a spot color value.
|
|
8094
|
+
*
|
|
8095
|
+
* @categoryDescription Spot Color
|
|
8096
|
+
* Defines a spot color value with a name, tint, and external reference.
|
|
8097
|
+
* - 'name': The name of the spot color.
|
|
8098
|
+
* - 'tint': The tint factor.
|
|
8099
|
+
* - 'externalReference': The external reference of the spot color.
|
|
8100
|
+
*
|
|
8101
|
+
* @public
|
|
8102
|
+
*/
|
|
7380
8103
|
export declare interface SpotColor {
|
|
7381
8104
|
name: string;
|
|
7382
8105
|
tint: number;
|
|
7383
8106
|
externalReference: string;
|
|
7384
8107
|
}
|
|
7385
8108
|
|
|
7386
|
-
/**
|
|
8109
|
+
/**
|
|
8110
|
+
* Represents the corner geometry of a stroke.
|
|
8111
|
+
*
|
|
8112
|
+
* @categoryDescription Stroke Corner Geometry
|
|
8113
|
+
* Defines the possible corner geometries for a stroke.
|
|
8114
|
+
* - 'Bevel': A beveled corner.
|
|
8115
|
+
* - 'Miter': A mitered corner.
|
|
8116
|
+
* - 'Round': A rounded corner.
|
|
8117
|
+
*
|
|
8118
|
+
* @public
|
|
8119
|
+
*/
|
|
7387
8120
|
export declare type StrokeCornerGeometry = 'Bevel' | 'Miter' | 'Round';
|
|
7388
8121
|
|
|
7389
|
-
/**
|
|
8122
|
+
/**
|
|
8123
|
+
* Represents the position of a stroke relative to the shape's boundary.
|
|
8124
|
+
*
|
|
8125
|
+
* @categoryDescription Stroke Position
|
|
8126
|
+
* Defines the possible positions for a stroke relative to the shape's boundary.
|
|
8127
|
+
* - 'Center': The stroke is centered on the shape's boundary.
|
|
8128
|
+
* - 'Inner': The stroke is inside the shape's boundary.
|
|
8129
|
+
* - 'Outer': The stroke is outside the shape's boundary.
|
|
8130
|
+
*
|
|
8131
|
+
* @public
|
|
8132
|
+
*/
|
|
7390
8133
|
export declare type StrokePosition = 'Center' | 'Inner' | 'Outer';
|
|
7391
8134
|
|
|
7392
|
-
/**
|
|
8135
|
+
/**
|
|
8136
|
+
* Represents the style of a stroke.
|
|
8137
|
+
*
|
|
8138
|
+
* @categoryDescription Stroke Style
|
|
8139
|
+
* Defines the possible styles for a stroke.
|
|
8140
|
+
* - 'Dashed': A dashed line stroke.
|
|
8141
|
+
* - 'DashedRound': A dashed line stroke with rounded ends.
|
|
8142
|
+
* - 'Dotted': A dotted line stroke.
|
|
8143
|
+
* - 'LongDashed': A long dashed line stroke.
|
|
8144
|
+
* - 'LongDashedRound': A long dashed line stroke with rounded ends.
|
|
8145
|
+
* - 'Solid': A solid line stroke.
|
|
8146
|
+
*
|
|
8147
|
+
* @public
|
|
8148
|
+
*/
|
|
7393
8149
|
export declare type StrokeStyle = 'Dashed' | 'DashedRound' | 'Dotted' | 'LongDashed' | 'LongDashedRound' | 'Solid';
|
|
7394
8150
|
|
|
7395
|
-
/**
|
|
8151
|
+
/**
|
|
8152
|
+
* Represents a subscription to an event.
|
|
8153
|
+
*
|
|
8154
|
+
* The `Subscription` type is a number that uniquely identifies a subscription to an event.
|
|
8155
|
+
*
|
|
8156
|
+
* @categoryDescription Subscription
|
|
8157
|
+
* Methods for working with subscriptions to events.
|
|
8158
|
+
*
|
|
8159
|
+
* @public
|
|
8160
|
+
*/
|
|
7396
8161
|
declare type Subscription = number;
|
|
7397
8162
|
|
|
7398
8163
|
/**
|
|
@@ -7423,17 +8188,46 @@ export declare function supportsVideoExport(): Promise<boolean>;
|
|
|
7423
8188
|
export declare function supportsWasm(): boolean;
|
|
7424
8189
|
|
|
7425
8190
|
/**
|
|
8191
|
+
* Represents the text case of a text block.
|
|
8192
|
+
*
|
|
8193
|
+
* @categoryDescription Text Case
|
|
8194
|
+
* Defines the possible text cases for a text block.
|
|
8195
|
+
* - 'Normal': The text is in its normal case.
|
|
8196
|
+
* - 'Uppercase': The text is in uppercase.
|
|
8197
|
+
* - 'Lowercase': The text is in lowercase.
|
|
8198
|
+
* - 'Titlecase': The text is in title case.
|
|
8199
|
+
*
|
|
7426
8200
|
* @public
|
|
7427
8201
|
*/
|
|
7428
8202
|
export declare type TextCase = 'Normal' | 'Uppercase' | 'Lowercase' | 'Titlecase';
|
|
7429
8203
|
|
|
7430
|
-
/**
|
|
8204
|
+
/**
|
|
8205
|
+
* Represents a transient resource.
|
|
8206
|
+
*
|
|
8207
|
+
* The `TransientResource` interface provides a set of properties that describe a transient
|
|
8208
|
+
* resource, including a URI and the size of the resource.
|
|
8209
|
+
*
|
|
8210
|
+
* @categoryDescription TransientResource
|
|
8211
|
+
* Methods for working with transient resources.
|
|
8212
|
+
*
|
|
8213
|
+
* @public
|
|
8214
|
+
*/
|
|
7431
8215
|
export declare interface TransientResource {
|
|
7432
8216
|
uri: string;
|
|
7433
8217
|
size: number;
|
|
7434
8218
|
}
|
|
7435
8219
|
|
|
7436
|
-
/**
|
|
8220
|
+
/**
|
|
8221
|
+
* Represents a typeface.
|
|
8222
|
+
*
|
|
8223
|
+
* The Typeface interface defines the structure of a typeface within the Creative Editor SDK.
|
|
8224
|
+
* It includes properties for the name and fonts.
|
|
8225
|
+
*
|
|
8226
|
+
* @categoryDescription Fonts
|
|
8227
|
+
* Methods for managing typefaces within the editor.
|
|
8228
|
+
*
|
|
8229
|
+
* @public
|
|
8230
|
+
*/
|
|
7437
8231
|
export declare interface Typeface {
|
|
7438
8232
|
/** The unique name of this typeface */
|
|
7439
8233
|
name: string;
|
|
@@ -7442,7 +8236,16 @@ export declare interface Typeface {
|
|
|
7442
8236
|
}
|
|
7443
8237
|
|
|
7444
8238
|
/**
|
|
8239
|
+
* Represents a typeface definition used in the editor.
|
|
8240
|
+
*
|
|
7445
8241
|
* @deprecated This type definition is not used anymore and will be removed.
|
|
8242
|
+
*
|
|
8243
|
+
* @categoryDescription Typeface Definition
|
|
8244
|
+
* Defines the structure of a typeface definition, including metadata, family name, and font details.
|
|
8245
|
+
* - 'meta': Optional metadata for the typeface, including default status, library, and categories.
|
|
8246
|
+
* - 'family': The name of the typeface family.
|
|
8247
|
+
* - 'fonts': An array of font definitions, each containing a font URL, weight, and style.
|
|
8248
|
+
*
|
|
7446
8249
|
* @public
|
|
7447
8250
|
*/
|
|
7448
8251
|
export declare type TypefaceDefinition = {
|
|
@@ -7527,9 +8330,14 @@ export declare interface Vec3 {
|
|
|
7527
8330
|
}
|
|
7528
8331
|
|
|
7529
8332
|
/**
|
|
7530
|
-
*
|
|
7531
|
-
*
|
|
7532
|
-
*
|
|
8333
|
+
* Represents the vertical alignment of blocks.
|
|
8334
|
+
*
|
|
8335
|
+
* The `VerticalBlockAlignment` type provides a set of values that control the
|
|
8336
|
+
* vertical alignment of blocks. These options include settings for aligning
|
|
8337
|
+
* blocks to the top, bottom, or center.
|
|
8338
|
+
*
|
|
8339
|
+
* @categoryDescription VerticalBlockAlignment
|
|
8340
|
+
* Methods for configuring the vertical alignment of blocks.
|
|
7533
8341
|
*
|
|
7534
8342
|
* @public
|
|
7535
8343
|
*/
|
|
@@ -7542,6 +8350,24 @@ export declare type VerticalBlockAlignment = 'Top' | 'Bottom' | 'Center';
|
|
|
7542
8350
|
export declare type VerticalTextAlignment = 'Top' | 'Bottom' | 'Center';
|
|
7543
8351
|
|
|
7544
8352
|
/**
|
|
8353
|
+
* Represents the options for exporting a video.
|
|
8354
|
+
*
|
|
8355
|
+
* @categoryDescription Video Export Options
|
|
8356
|
+
* Defines the possible options for exporting a video.
|
|
8357
|
+
* - 'mimeType': The MIME type of the output video file.
|
|
8358
|
+
* - 'onProgress': A callback which reports on the progress of the export.
|
|
8359
|
+
* - 'h264Profile': Determines the encoder feature set and in turn the quality, size and speed of the
|
|
8360
|
+
encoding process.
|
|
8361
|
+
* - 'h264Level': Controls the H.264 encoding level.
|
|
8362
|
+
* - 'videoBitrate': The video bitrate in bits per second.
|
|
8363
|
+
* - 'audioBitrate': The audio bitrate in bits per second.
|
|
8364
|
+
* - 'timeOffset': The time offset in seconds of the scene's timeline from which the video will start.
|
|
8365
|
+
* - 'duration': The duration in seconds of the final video.
|
|
8366
|
+
* - 'framerate': The target framerate of the exported video in Hz.
|
|
8367
|
+
* - 'targetWidth': An optional target width used in conjunction with target height.
|
|
8368
|
+
* - 'targetHeight': An optional target height used in conjunction with target width.
|
|
8369
|
+
* - 'abortSignal': An abort signal that can be used to cancel the export.
|
|
8370
|
+
*
|
|
7545
8371
|
* @public
|
|
7546
8372
|
*/
|
|
7547
8373
|
export declare type VideoExportOptions = {
|
|
@@ -7615,13 +8441,27 @@ export declare type VideoExportOptions = {
|
|
|
7615
8441
|
abortSignal?: AbortSignal;
|
|
7616
8442
|
};
|
|
7617
8443
|
|
|
7618
|
-
/**
|
|
8444
|
+
/**
|
|
8445
|
+
* Represents the video MIME types used in the editor.
|
|
8446
|
+
*
|
|
8447
|
+
* @categoryDescription Video MIME Type
|
|
8448
|
+
* Defines the possible video MIME types used in the editor.
|
|
8449
|
+
* - 'video/mp4': MP4 video format.
|
|
8450
|
+
* - 'video/quicktime': QuickTime video format.
|
|
8451
|
+
*
|
|
8452
|
+
* @public
|
|
8453
|
+
*/
|
|
7619
8454
|
export declare type VideoMimeType = Extract<MimeType_2, 'video/mp4' | 'video/quicktime'>;
|
|
7620
8455
|
|
|
7621
8456
|
/**
|
|
7622
|
-
* Describes a rectangle on the screen
|
|
7623
|
-
*
|
|
7624
|
-
*
|
|
8457
|
+
* Describes a rectangle on the screen.
|
|
8458
|
+
*
|
|
8459
|
+
* The `XYWH` type is a tuple that contains four numbers representing the x and y coordinates
|
|
8460
|
+
* of the top-left corner of the rectangle, as well as the width and height of the rectangle.
|
|
8461
|
+
*
|
|
8462
|
+
* @categoryDescription XYWH
|
|
8463
|
+
* Methods for working with rectangles on the screen.
|
|
8464
|
+
*
|
|
7625
8465
|
* @public
|
|
7626
8466
|
*/
|
|
7627
8467
|
export declare type XYWH = [x: number, y: number, w: number, h: number];
|