@cesdk/engine 1.10.0 → 1.11.0-preview.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.
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -438,17 +438,13 @@ export declare class BlockAPI {
|
|
|
438
438
|
/**
|
|
439
439
|
* Exports a design block as a video file of the given mime type.
|
|
440
440
|
* Note: The export will run across multiple iterations of the update loop. In each iteration a frame is scheduled for encoding.
|
|
441
|
-
* @param
|
|
442
|
-
* @param timeOffset - The time offset in seconds of the scene's timeline from which the video will start.
|
|
443
|
-
* @param duration - The duration in seconds of the final video.
|
|
441
|
+
* @param handle - The design block element to export. Currently, only the scene block is supported.
|
|
444
442
|
* @param mimeType - The mime type of the output video file.
|
|
445
|
-
* @param resolutionWidth - The target video width in pixel.
|
|
446
|
-
* @param resolutionHeight - The target video height in pixel.
|
|
447
|
-
* @param framerate - The target framerate in Hz.
|
|
448
443
|
* @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.
|
|
444
|
+
* @param options - The options for exporting the video
|
|
449
445
|
* @returns A promise that resolves with video blob or is rejected with an error.
|
|
450
446
|
*/
|
|
451
|
-
exportVideo(handle: DesignBlockId,
|
|
447
|
+
exportVideo(handle: DesignBlockId, mimeType: MimeType_2 | undefined, progressCallback: (numberOfRenderedFrames: number, numberOfEncodedFrames: number, totalNumberOfFrames: number) => void, options: VideoExportOptions): Promise<Blob>;
|
|
452
448
|
/**
|
|
453
449
|
* Loads existing blocks from the given string.
|
|
454
450
|
* The blocks are not attached by default and won't be visible until attached to a page or the scene.
|
|
@@ -768,7 +764,7 @@ export declare class BlockAPI {
|
|
|
768
764
|
/**
|
|
769
765
|
* Set a block's mode for its width.
|
|
770
766
|
* @param id - The block to update.
|
|
771
|
-
* @param mode - The width mode:
|
|
767
|
+
* @param mode - The width mode: Absolute, Percent or Auto.
|
|
772
768
|
*/
|
|
773
769
|
setWidthMode(id: DesignBlockId, mode: SizeMode): void;
|
|
774
770
|
/**
|
|
@@ -780,7 +776,7 @@ export declare class BlockAPI {
|
|
|
780
776
|
/**
|
|
781
777
|
* Set a block's mode for its height.
|
|
782
778
|
* @param id - The block to update.
|
|
783
|
-
* @param mode - The height mode:
|
|
779
|
+
* @param mode - The height mode: Absolute, Percent or Auto.
|
|
784
780
|
*/
|
|
785
781
|
setHeightMode(id: DesignBlockId, mode: SizeMode): void;
|
|
786
782
|
/**
|
|
@@ -1068,14 +1064,14 @@ export declare class BlockAPI {
|
|
|
1068
1064
|
* @param property - The name of the property to set.
|
|
1069
1065
|
* @param value - The enum value as string.
|
|
1070
1066
|
*/
|
|
1071
|
-
setEnum(id: DesignBlockId, property: string, value:
|
|
1067
|
+
setEnum<T extends string = string>(id: DesignBlockId, property: string, value: T): void;
|
|
1072
1068
|
/**
|
|
1073
1069
|
* Get the value of an enum property of the given design block.
|
|
1074
1070
|
* @param id - The block whose property should be queried.
|
|
1075
1071
|
* @param property - The name of the property to query.
|
|
1076
1072
|
* @returns The value as string.
|
|
1077
1073
|
*/
|
|
1078
|
-
getEnum(id: DesignBlockId, property: string):
|
|
1074
|
+
getEnum<T extends string = string>(id: DesignBlockId, property: string): T;
|
|
1079
1075
|
/**
|
|
1080
1076
|
* Query if the given block has crop properties.
|
|
1081
1077
|
* @param id - The block to query.
|
|
@@ -1607,6 +1603,69 @@ export declare class BlockAPI {
|
|
|
1607
1603
|
* @returns The drop shadow's clipping.
|
|
1608
1604
|
*/
|
|
1609
1605
|
getDropShadowClip(id: DesignBlockId): boolean;
|
|
1606
|
+
/**
|
|
1607
|
+
* Inserts the given text into the selected range of the text block.
|
|
1608
|
+
* @param block - The text block into which to insert the given text.
|
|
1609
|
+
* @param text - The text which should replace the selected range in the block.
|
|
1610
|
+
* @param from - The start index of the UTF-16 range that should be replaced.
|
|
1611
|
+
* If the value is negative, this will fall back to the start of the entire text range.
|
|
1612
|
+
* @param to - The UTF-16 index after the last grapheme that should be replaced by the inserted text.
|
|
1613
|
+
* If `from` and `to` are negative, a this will fall back to the end of the entire text range, so the entire text will be replaced.
|
|
1614
|
+
* If `to` is negative but `from` is greater than or equal to 0, the text will be inserted at the index defined by `from`.
|
|
1615
|
+
*/
|
|
1616
|
+
replaceText(id: DesignBlockId, text: string, from?: number, to?: number): void;
|
|
1617
|
+
/**
|
|
1618
|
+
* Removes selected range of text of the given text block.
|
|
1619
|
+
* @param block - The text block from which the selected text should be removed.
|
|
1620
|
+
* @param from - The start index of the UTF-16 range that should be removed.
|
|
1621
|
+
* If the value is negative, this will fall back to the start of the entire text range.
|
|
1622
|
+
* @param to - The UTF-16 index after the last grapheme that should be removed.
|
|
1623
|
+
* If the value is negative, this will fall back to the end of the entire text range.
|
|
1624
|
+
*/
|
|
1625
|
+
removeText(id: DesignBlockId, from?: number, to?: number): void;
|
|
1626
|
+
/**
|
|
1627
|
+
* Changes the color of the text in the selected range to the given color.
|
|
1628
|
+
* @param block - The text block whose color should be changed.
|
|
1629
|
+
* @param color - The new color of the selected text range.
|
|
1630
|
+
* @param from - The start index of the UTF-16 range whose color should be changed.
|
|
1631
|
+
* If the value is negative and the block is currently being edited, this will fall back to the start of the current cursor index / selected grapheme range.
|
|
1632
|
+
* If the value is negative and the block is not being edited, this will fall back to the start of the entire text range.
|
|
1633
|
+
* @param to - The UTF-16 index after the last grapheme whose color should be changed.
|
|
1634
|
+
* If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected grapheme range.
|
|
1635
|
+
* If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.
|
|
1636
|
+
*/
|
|
1637
|
+
setTextColor(id: DesignBlockId, color: RGBAColor | SpotColor, from?: number, to?: number): void;
|
|
1638
|
+
/**
|
|
1639
|
+
* Returns the ordered unique list of colors of the text in the selected range.
|
|
1640
|
+
* @param block - The text block whose colors should be returned.
|
|
1641
|
+
* @param from - The start index of the UTF-16 range whose colors should be returned.
|
|
1642
|
+
* If the value is negative, this will fall back to the start of the entire text range.
|
|
1643
|
+
* @param to - The UTF-16 index after the last grapheme whose colors should be returned.
|
|
1644
|
+
* If the value is negative, this will fall back to the end of the entire text range.
|
|
1645
|
+
*/
|
|
1646
|
+
getTextColors(id: DesignBlockId, from?: number, to?: number): Array<RGBAColor | SpotColor>;
|
|
1647
|
+
/**
|
|
1648
|
+
* Returns the ordered unique list of font weights of the text in the selected range.
|
|
1649
|
+
* @param block - The text block whose font weights should be returned.
|
|
1650
|
+
* @param from - The start index of the UTF-16 range whose font weights should be returned.
|
|
1651
|
+
* If the value is negative and the block is currently being edited, this will fall back to the start of the current cursor index / selected grapheme range.
|
|
1652
|
+
* If the value is negative and the block is not being edited, this will fall back to the start of the entire text range.
|
|
1653
|
+
* @param to - The UTF-16 index after the last grapheme whose font weights should be returned.
|
|
1654
|
+
* If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected grapheme range.
|
|
1655
|
+
* If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.
|
|
1656
|
+
*/
|
|
1657
|
+
getTextFontWeights(id: DesignBlockId, from?: number, to?: number): FontWeight[];
|
|
1658
|
+
/**
|
|
1659
|
+
* Returns the ordered unique list of font styles of the text in the selected range.
|
|
1660
|
+
* @param block - The text block whose font styles should be returned.
|
|
1661
|
+
* @param from - The start index of the UTF-16 range whose font weights should be returned.
|
|
1662
|
+
* If the value is negative and the block is currently being edited, this will fall back to the start of the current cursor index / selected grapheme range.
|
|
1663
|
+
* If the value is negative and the block is not being edited, this will fall back to the start of the entire text range.
|
|
1664
|
+
* @param to - The UTF-16 index after the last grapheme whose font styles should be returned.
|
|
1665
|
+
* If the value is negative and the block is currently being edited, this will fall back to the end of the current cursor index / selected grapheme range.
|
|
1666
|
+
* If the value is negative and the block is not being edited, this will fall back to the end of the entire text range.
|
|
1667
|
+
*/
|
|
1668
|
+
getTextFontStyles(id: DesignBlockId, from?: number, to?: number): FontStyle[];
|
|
1610
1669
|
/**
|
|
1611
1670
|
* Query if the given block has fill color properties.
|
|
1612
1671
|
* @param id - The block to query.
|
|
@@ -2199,15 +2258,15 @@ export { ConfigTypes }
|
|
|
2199
2258
|
export declare interface Configuration {
|
|
2200
2259
|
baseURL: string;
|
|
2201
2260
|
license?: string;
|
|
2202
|
-
|
|
2203
|
-
|
|
2261
|
+
featureFlags?: {
|
|
2262
|
+
[flag: string]: boolean | string;
|
|
2263
|
+
};
|
|
2204
2264
|
/**
|
|
2205
2265
|
* @deprecated Extensions have been superseded by AssetSources and should no longer be used.
|
|
2206
2266
|
*/
|
|
2207
2267
|
extensions: ConfigTypes.Extensions;
|
|
2208
2268
|
core: ConfigTypes.Core;
|
|
2209
2269
|
scene: ConfigTypes.Scene;
|
|
2210
|
-
page: ConfigTypes.Page;
|
|
2211
2270
|
assetSources: ConfigTypes.AssetSources;
|
|
2212
2271
|
presets: ConfigTypes.Presets;
|
|
2213
2272
|
variables: ConfigTypes.Variables;
|
|
@@ -2276,7 +2335,7 @@ declare class CreativeEngine {
|
|
|
2276
2335
|
* @param config - An optional configuration object.
|
|
2277
2336
|
* @returns An engine instance.
|
|
2278
2337
|
*/
|
|
2279
|
-
static init<C extends Partial<Configuration
|
|
2338
|
+
static init<C extends Partial<Configuration> & OldConfiguration>(config?: C): Promise<CreativeEngine & (C extends {
|
|
2280
2339
|
readonly canvas: any;
|
|
2281
2340
|
} ? {
|
|
2282
2341
|
readonly element: undefined;
|
|
@@ -2314,7 +2373,7 @@ declare class CreativeEngine {
|
|
|
2314
2373
|
* - `'ly.img.image.upload'` - Demo source to upload image assets
|
|
2315
2374
|
* - `'ly.img.audio'` - Sample audios
|
|
2316
2375
|
* - `'ly.img.audio.upload'` - Demo source to upload audio assets
|
|
2317
|
-
* - `'ly.img.video'` - Sample
|
|
2376
|
+
* - `'ly.img.video'` - Sample videos
|
|
2318
2377
|
* - `'ly.img.video.upload'` - Demo source to upload video assets
|
|
2319
2378
|
*
|
|
2320
2379
|
* @param excludeAssetSourceIds - A list of IDs, that will be ignored during load.
|
|
@@ -2383,8 +2442,11 @@ export declare enum DesignBlockType {
|
|
|
2383
2442
|
Group = "//ly.img.ubq/group"
|
|
2384
2443
|
}
|
|
2385
2444
|
|
|
2386
|
-
/**
|
|
2387
|
-
|
|
2445
|
+
/**
|
|
2446
|
+
* The scene layout determines how the layout stack should layout its pages.
|
|
2447
|
+
* @public
|
|
2448
|
+
*/
|
|
2449
|
+
export declare type DesignUnit = 'Pixel' | 'Millimeter' | 'Inch';
|
|
2388
2450
|
|
|
2389
2451
|
/**
|
|
2390
2452
|
* @public
|
|
@@ -2397,7 +2459,7 @@ export declare class EditorAPI {
|
|
|
2397
2459
|
* @param callback - This function is called at the end of the engine update, if the editor state has changed.
|
|
2398
2460
|
* @returns A method to unsubscribe.
|
|
2399
2461
|
*/
|
|
2400
|
-
onStateChanged(callback: () => void)
|
|
2462
|
+
onStateChanged: (callback: () => void) => (() => void);
|
|
2401
2463
|
/**
|
|
2402
2464
|
* Set the edit mode of the editor.
|
|
2403
2465
|
* An edit mode defines what type of content can currently be edited by the user.
|
|
@@ -2483,13 +2545,13 @@ export declare class EditorAPI {
|
|
|
2483
2545
|
* @param callback - This function is called at the end of the engine update, if the undo/redo history has been changed.
|
|
2484
2546
|
* @returns A method to unsubscribe
|
|
2485
2547
|
*/
|
|
2486
|
-
onHistoryUpdated(callback: () => void)
|
|
2548
|
+
onHistoryUpdated: (callback: () => void) => (() => void);
|
|
2487
2549
|
/**
|
|
2488
2550
|
* Subscribe to changes to the editor settings.
|
|
2489
2551
|
* @param callback - This function is called at the end of the engine update, if the editor settings have changed.
|
|
2490
2552
|
* @returns A method to unsubscribe.
|
|
2491
2553
|
*/
|
|
2492
|
-
onSettingsChanged(callback: () => void)
|
|
2554
|
+
onSettingsChanged: (callback: () => void) => (() => void);
|
|
2493
2555
|
/**
|
|
2494
2556
|
* Set a boolean setting.
|
|
2495
2557
|
* @param keypath - The settings keypath, e.g. `doubleClickToCropEnabled`
|
|
@@ -2657,7 +2719,7 @@ export declare class EventAPI {
|
|
|
2657
2719
|
* @param callback - The event callback. Events are bundled and sent at the end of each engine update.
|
|
2658
2720
|
* @returns A method to unsubscribe.
|
|
2659
2721
|
*/
|
|
2660
|
-
subscribe(blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void)
|
|
2722
|
+
subscribe: (blocks: DesignBlockId[], callback: (events: BlockEvent[]) => void) => (() => void);
|
|
2661
2723
|
}
|
|
2662
2724
|
|
|
2663
2725
|
/**
|
|
@@ -2807,6 +2869,9 @@ declare type HexColorString = string;
|
|
|
2807
2869
|
*/
|
|
2808
2870
|
export declare type HistoryId = number;
|
|
2809
2871
|
|
|
2872
|
+
/** @public */
|
|
2873
|
+
export declare type HorizontalTextAlignment = 'Left' | 'Right' | 'Center';
|
|
2874
|
+
|
|
2810
2875
|
/**
|
|
2811
2876
|
* A wrapper around a plain canvas
|
|
2812
2877
|
*
|
|
@@ -2862,7 +2927,38 @@ declare enum MimeType_2 {
|
|
|
2862
2927
|
}
|
|
2863
2928
|
export { MimeType_2 as MimeType }
|
|
2864
2929
|
|
|
2865
|
-
/**
|
|
2930
|
+
/**
|
|
2931
|
+
* Contains configuration keys that have been removed from the actual
|
|
2932
|
+
* configuration, but are still supported publicly
|
|
2933
|
+
* @public
|
|
2934
|
+
*/
|
|
2935
|
+
export declare interface OldConfiguration {
|
|
2936
|
+
/**
|
|
2937
|
+
* @deprecated This config key has been removed.
|
|
2938
|
+
* You can configure a role via `setSettingEnum('role', role)` in the
|
|
2939
|
+
* EditorAPI.
|
|
2940
|
+
*/
|
|
2941
|
+
role?: RoleString;
|
|
2942
|
+
/**
|
|
2943
|
+
* @deprecated This config key has been removed completely.
|
|
2944
|
+
* The settings that were configured here can be set via the
|
|
2945
|
+
* following EditorAPI settings:
|
|
2946
|
+
* - `setSettingBool('page/title/show', show)`
|
|
2947
|
+
* - `setSettingString('page/title/fontFileUri', uri)`
|
|
2948
|
+
* - `setSettingBool('page/title/dimOutOfPageAreas', dim)`
|
|
2949
|
+
*/
|
|
2950
|
+
page?: Page;
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
/**
|
|
2954
|
+
* @deprecated This type definition has been removed
|
|
2955
|
+
* The settings that were configured here can be set via the
|
|
2956
|
+
* following EditorAPI settings:
|
|
2957
|
+
* - `setSettingBool('page/title/show', show)`
|
|
2958
|
+
* - `setSettingString('page/title/fontFileUri', uri)`
|
|
2959
|
+
* - `setSettingBool('page/title/dimOutOfPageAreas', dim)`
|
|
2960
|
+
* @public
|
|
2961
|
+
*/
|
|
2866
2962
|
declare type Page = {
|
|
2867
2963
|
title: {
|
|
2868
2964
|
/**
|
|
@@ -2893,7 +2989,7 @@ export declare interface PageDuration {
|
|
|
2893
2989
|
declare type PageFormatDefinition = Preset & {
|
|
2894
2990
|
width: number;
|
|
2895
2991
|
height: number;
|
|
2896
|
-
unit:
|
|
2992
|
+
unit: 'px' | 'mm' | 'in';
|
|
2897
2993
|
fixedOrientation?: boolean;
|
|
2898
2994
|
};
|
|
2899
2995
|
|
|
@@ -3103,11 +3199,19 @@ export declare class SceneAPI {
|
|
|
3103
3199
|
* Fetching the image may take an arbitrary amount of time, so the scene isn't immediately
|
|
3104
3200
|
* available.
|
|
3105
3201
|
* @param url - The image URL.
|
|
3106
|
-
* @param dpi - The
|
|
3107
|
-
* @param pixelScaleFactor - The
|
|
3202
|
+
* @param dpi - The scene's DPI.
|
|
3203
|
+
* @param pixelScaleFactor - The display's pixel scale factor.
|
|
3108
3204
|
* @returns A promise that resolves with the scene ID on success or rejected with an error otherwise.
|
|
3109
3205
|
*/
|
|
3110
3206
|
createFromImage(url: string, dpi?: number, pixelScaleFactor?: number, sceneLayout?: SceneLayout, spacing?: number, spacingInScreenSpace?: boolean): Promise<DesignBlockId>;
|
|
3207
|
+
/**
|
|
3208
|
+
* Loads the given video and creates a scene with a single page showing the video.
|
|
3209
|
+
* Fetching the video may take an arbitrary amount of time, so the scene isn't immediately
|
|
3210
|
+
* available.
|
|
3211
|
+
* @param url - The video URL.
|
|
3212
|
+
* @returns A promise that resolves with the scene ID on success or rejected with an error otherwise.
|
|
3213
|
+
*/
|
|
3214
|
+
createFromVideo(url: string): Promise<DesignBlockId>;
|
|
3111
3215
|
/**
|
|
3112
3216
|
* Return the currently active scene.
|
|
3113
3217
|
* @returns The scene or null, if none was created yet.
|
|
@@ -3136,6 +3240,16 @@ export declare class SceneAPI {
|
|
|
3136
3240
|
* @returns The current mode of the scene.
|
|
3137
3241
|
*/
|
|
3138
3242
|
getMode(): SceneMode;
|
|
3243
|
+
/**
|
|
3244
|
+
* Converts all values of the current scene into the given design unit.
|
|
3245
|
+
* @param designUnit - The new design unit of the scene
|
|
3246
|
+
*/
|
|
3247
|
+
setDesignUnit(designUnit: DesignUnit): void;
|
|
3248
|
+
/**
|
|
3249
|
+
* Returns the design unit of the current scene.
|
|
3250
|
+
* @returns The current design unit.
|
|
3251
|
+
*/
|
|
3252
|
+
getDesignUnit(): DesignUnit;
|
|
3139
3253
|
/**
|
|
3140
3254
|
* Get the sorted list of pages in the scene.
|
|
3141
3255
|
* @returns The sorted list of pages in the scene.
|
|
@@ -3213,23 +3327,13 @@ export declare class SceneAPI {
|
|
|
3213
3327
|
* @returns A method to unsubscribe.
|
|
3214
3328
|
* @privateRemarks This will currently fire on _all_ changes to camera properties
|
|
3215
3329
|
*/
|
|
3216
|
-
onZoomLevelChanged(callback: () => void)
|
|
3330
|
+
onZoomLevelChanged: (callback: () => void) => (() => void);
|
|
3217
3331
|
/**
|
|
3218
3332
|
* Subscribe to changes to the active scene rendered by the engine.
|
|
3219
3333
|
* @param callback - This function is called at the end of the engine update, if the active scene has changed.
|
|
3220
3334
|
* @returns A method to unsubscribe.
|
|
3221
3335
|
*/
|
|
3222
|
-
onActiveChanged(callback: () => void)
|
|
3223
|
-
/**
|
|
3224
|
-
* Converts all values of the current scene into the given design unit.
|
|
3225
|
-
* @param designUnit - The new design unit of the scene
|
|
3226
|
-
*/
|
|
3227
|
-
unstable_setDesignUnit(designUnit: DesignUnit): void;
|
|
3228
|
-
/**
|
|
3229
|
-
* Returns the design unit of the current scene.
|
|
3230
|
-
* @returns The current design unit.
|
|
3231
|
-
*/
|
|
3232
|
-
unstable_getDesignUnit(): DesignUnit;
|
|
3336
|
+
onActiveChanged: (callback: () => void) => (() => void);
|
|
3233
3337
|
}
|
|
3234
3338
|
|
|
3235
3339
|
/**
|
|
@@ -3292,8 +3396,6 @@ declare type Source<T> = (handler: Handler<T>) => UnsubscribeFn;
|
|
|
3292
3396
|
/** @public */
|
|
3293
3397
|
export declare interface SpotColor {
|
|
3294
3398
|
name: string;
|
|
3295
|
-
rgbApproximation: RGBAColor;
|
|
3296
|
-
cmykApproximation: CMYKColor;
|
|
3297
3399
|
}
|
|
3298
3400
|
|
|
3299
3401
|
declare interface SpotColorLookup {
|
|
@@ -3414,6 +3516,59 @@ export declare interface Vec4 {
|
|
|
3414
3516
|
w: number;
|
|
3415
3517
|
}
|
|
3416
3518
|
|
|
3519
|
+
/** @public */
|
|
3520
|
+
export declare type VerticalTextAlignment = 'Top' | 'Bottom' | 'Center';
|
|
3521
|
+
|
|
3522
|
+
/**
|
|
3523
|
+
* @public
|
|
3524
|
+
*/
|
|
3525
|
+
export declare type VideoExportOptions = {
|
|
3526
|
+
/**
|
|
3527
|
+
* Determines the encoder feature set and in turn the quality, size and speed of the encoding process.
|
|
3528
|
+
*
|
|
3529
|
+
* @defaultValue 77 (Main)
|
|
3530
|
+
*/
|
|
3531
|
+
h264Profile?: number;
|
|
3532
|
+
/**
|
|
3533
|
+
* Controls the H.264 encoding level. This relates to parameters used by the encoder such as bit rate,
|
|
3534
|
+
* timings and motion vectors. Defined by the spec are levels 1.0 up to 6.2. To arrive at an integer value,
|
|
3535
|
+
* the level is multiplied by ten. E.g. to get level 5.2, pass a value of 52.
|
|
3536
|
+
*
|
|
3537
|
+
* @defaultValue 52
|
|
3538
|
+
*/
|
|
3539
|
+
h264Level?: number;
|
|
3540
|
+
/**
|
|
3541
|
+
* The time offset in seconds of the scene's timeline from which the video will start.
|
|
3542
|
+
*
|
|
3543
|
+
* @defaultValue 0
|
|
3544
|
+
*/
|
|
3545
|
+
timeOffset?: number;
|
|
3546
|
+
/**
|
|
3547
|
+
* The duration in seconds of the final video.
|
|
3548
|
+
*
|
|
3549
|
+
* @defaultValue The duration of the scene.
|
|
3550
|
+
*/
|
|
3551
|
+
duration?: number;
|
|
3552
|
+
/**
|
|
3553
|
+
* The target framerate of the exported video in Hz.
|
|
3554
|
+
*
|
|
3555
|
+
* @defaultValue 30
|
|
3556
|
+
*/
|
|
3557
|
+
framerate?: number;
|
|
3558
|
+
/**
|
|
3559
|
+
* An optional target width used in conjunction with target height.
|
|
3560
|
+
* If used, the block will be rendered large enough, that it fills the target
|
|
3561
|
+
* size entirely while maintaining its aspect ratio.
|
|
3562
|
+
*/
|
|
3563
|
+
targetWidth?: number;
|
|
3564
|
+
/**
|
|
3565
|
+
* An optional target height used in conjunction with target width.
|
|
3566
|
+
* If used, the block will be rendered large enough, that it fills the target
|
|
3567
|
+
* size entirely while maintaining its aspect ratio.
|
|
3568
|
+
*/
|
|
3569
|
+
targetHeight?: number;
|
|
3570
|
+
};
|
|
3571
|
+
|
|
3417
3572
|
/**
|
|
3418
3573
|
* Describes a rectangle on the screen
|
|
3419
3574
|
* - `x` and `y` indicate the position
|