@cesdk/cesdk-js 1.65.0-nightly.20251119 → 1.65.0-nightly.20251120
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.65.0-nightly.20251119-DEFWQJRH.wasm → cesdk-v1.65.0-nightly.20251120-EVNA7RJL.wasm} +0 -0
- package/assets/core/{worker-host-v1.65.0-nightly.20251119.js → worker-host-v1.65.0-nightly.20251120.js} +1 -1
- package/assets/ui/stylesheets/cesdk.css +1 -1
- package/cesdk.umd.js +1 -1
- package/index.d.ts +35 -8
- package/index.js +1 -1
- package/package.json +2 -2
- /package/assets/core/{cesdk-v1.65.0-nightly.20251119-44YCFRT6.data → cesdk-v1.65.0-nightly.20251120-44YCFRT6.data} +0 -0
package/index.d.ts
CHANGED
|
@@ -2722,23 +2722,48 @@ declare class CreativeEditorSDK {
|
|
|
2722
2722
|
* Load an encoded scene from the provided string.
|
|
2723
2723
|
* @category Scene Loading
|
|
2724
2724
|
* @param scene - A string starting with UBQ1 and containing the encoded scene.
|
|
2725
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
2725
2726
|
* @returns a promise which resolves if the scene was successfully loaded.
|
|
2726
2727
|
*/
|
|
2727
|
-
loadFromString(scene: string): Promise<number>;
|
|
2728
|
+
loadFromString(scene: string, overrideEditorConfig?: boolean): Promise<number>;
|
|
2728
2729
|
/**
|
|
2729
2730
|
* Load the scene stored in the file at the given URL.
|
|
2730
2731
|
* @category Scene Loading
|
|
2731
2732
|
* @param url - The url to fetch to acquire the scene string.
|
|
2733
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
2732
2734
|
* @returns a promise which resolves if the scene was successfully loaded.
|
|
2733
2735
|
*/
|
|
2734
|
-
loadFromURL(url: string): Promise<number>;
|
|
2736
|
+
loadFromURL(url: string, overrideEditorConfig?: boolean): Promise<number>;
|
|
2735
2737
|
/**
|
|
2736
|
-
*
|
|
2737
|
-
* @category Scene
|
|
2738
|
-
* @param url - The
|
|
2738
|
+
* Load a previously archived scene from the URL to the scene file.
|
|
2739
|
+
* @category Scene Loading
|
|
2740
|
+
* @param url - The URL of the scene archive file.
|
|
2741
|
+
* @param overrideEditorConfig - Whether to override editor configuration with settings and data from the scene file. Defaults to false.
|
|
2739
2742
|
* @returns a promise which resolves if the scene was successfully loaded.
|
|
2740
2743
|
*/
|
|
2741
|
-
|
|
2744
|
+
loadFromArchiveURL(url: string, overrideEditorConfig?: boolean): Promise<number>;
|
|
2745
|
+
/**
|
|
2746
|
+
* Loads the given image and creates a scene with a single page showing the image.
|
|
2747
|
+
*
|
|
2748
|
+
* Fetching the image may take an arbitrary amount of time, so the scene isn't immediately available.
|
|
2749
|
+
*
|
|
2750
|
+
* @category Scene Creation
|
|
2751
|
+
* @param url - The image URL.
|
|
2752
|
+
* @param dpi - The scene's DPI. Defaults to 300.
|
|
2753
|
+
* @param pixelScaleFactor - The display's pixel scale factor. Defaults to 1.
|
|
2754
|
+
* @param sceneLayout - The layout of the scene. Defaults to 'Free'.
|
|
2755
|
+
* @param spacing - Spacing between pages. Defaults to 0.
|
|
2756
|
+
* @param spacingInScreenSpace - Whether spacing is in screen space. Defaults to false.
|
|
2757
|
+
* @returns a promise which resolves if the scene was successfully created.
|
|
2758
|
+
*/
|
|
2759
|
+
createFromImage(url: string, dpi?: number, pixelScaleFactor?: number, sceneLayout?: SceneLayout, spacing?: number, spacingInScreenSpace?: boolean): Promise<number>;
|
|
2760
|
+
/**
|
|
2761
|
+
* Create a scene from the provided video.
|
|
2762
|
+
* @category Scene Creation
|
|
2763
|
+
* @param url - The url of the video
|
|
2764
|
+
* @returns a promise which resolves if the scene was successfully created.
|
|
2765
|
+
*/
|
|
2766
|
+
createFromVideo(url: string): Promise<number>;
|
|
2742
2767
|
/**
|
|
2743
2768
|
* Disable the warning logged when no scene is available.
|
|
2744
2769
|
*
|
|
@@ -4676,7 +4701,7 @@ export declare interface RegisteredActions {
|
|
|
4676
4701
|
*/
|
|
4677
4702
|
/** Action for zooming to a specific block */
|
|
4678
4703
|
'zoom.toBlock': ZoomToBlockAction;
|
|
4679
|
-
/** Action for zooming to
|
|
4704
|
+
/** Action for zooming to a page (current, first, last, or by index) with optional padding */
|
|
4680
4705
|
'zoom.toPage': ZoomToPageAction;
|
|
4681
4706
|
/** Action for zooming to the current selection */
|
|
4682
4707
|
'zoom.toSelection': ZoomToSelectionAction;
|
|
@@ -7091,10 +7116,12 @@ export declare type ZoomToLevelAction = (level: number, options?: {
|
|
|
7091
7116
|
}) => void | Promise<void>;
|
|
7092
7117
|
|
|
7093
7118
|
/**
|
|
7094
|
-
* Action function for zooming to
|
|
7119
|
+
* Action function for zooming to a page with optional padding
|
|
7095
7120
|
* @public
|
|
7096
7121
|
*/
|
|
7097
7122
|
export declare type ZoomToPageAction = (options?: {
|
|
7123
|
+
/** The page to zoom to - 'current' (default), 'first', 'last', or a numeric page index (0-based) */
|
|
7124
|
+
page?: 'current' | 'first' | 'last' | number;
|
|
7098
7125
|
/** Padding configuration around the block */
|
|
7099
7126
|
padding?: number | {
|
|
7100
7127
|
x?: number;
|