@cesdk/node 1.9.0-preview.2 → 1.9.0-preview.3
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
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -1907,6 +1907,13 @@ export declare interface Configuration {
|
|
|
1907
1907
|
* If not configured the fallback font is used.
|
|
1908
1908
|
*/
|
|
1909
1909
|
defaultFont?: string;
|
|
1910
|
+
/**
|
|
1911
|
+
* By default the engine tries to create a webgl2 context. If this fails it
|
|
1912
|
+
* falls back to trying to create a webgl1 context. If this configuration
|
|
1913
|
+
* option is set to true, it will no longer try to create a webgl2 context
|
|
1914
|
+
* and always create a webgl1 context.
|
|
1915
|
+
*/
|
|
1916
|
+
forceWebGL1?: boolean;
|
|
1910
1917
|
}
|
|
1911
1918
|
|
|
1912
1919
|
/**
|
|
@@ -2543,7 +2550,7 @@ export declare class SceneAPI {
|
|
|
2543
2550
|
* Create a new design scene, along with its own camera.
|
|
2544
2551
|
* @returns The scene's handle.
|
|
2545
2552
|
*/
|
|
2546
|
-
create(): DesignBlockId;
|
|
2553
|
+
create(sceneLayout?: SceneLayout): DesignBlockId;
|
|
2547
2554
|
/**
|
|
2548
2555
|
* Create a new scene in video mode, along with its own camera and page stack.
|
|
2549
2556
|
* @returns The scene's handle.
|
|
@@ -2558,7 +2565,7 @@ export declare class SceneAPI {
|
|
|
2558
2565
|
* @param pixelScaleFactor - The displays pixel scale factor.
|
|
2559
2566
|
* @returns A promise that resolves with the scene ID on success or rejected with an error otherwise.
|
|
2560
2567
|
*/
|
|
2561
|
-
createFromImage(url: string, dpi?: number, pixelScaleFactor?: number): Promise<DesignBlockId>;
|
|
2568
|
+
createFromImage(url: string, dpi?: number, pixelScaleFactor?: number, sceneLayout?: SceneLayout, spacing?: number, spacingInScreenSpace?: boolean): Promise<DesignBlockId>;
|
|
2562
2569
|
/**
|
|
2563
2570
|
* Return the currently active scene.
|
|
2564
2571
|
* @returns The scene or null, if none was created yet.
|
|
@@ -2613,7 +2620,7 @@ export declare class SceneAPI {
|
|
|
2613
2620
|
* @returns A method to unsubscribe.
|
|
2614
2621
|
* @privateRemarks This will currently fire on _all_ changes to camera properties
|
|
2615
2622
|
*/
|
|
2616
|
-
onZoomLevelChanged(callback: (
|
|
2623
|
+
onZoomLevelChanged(callback: () => void): () => void;
|
|
2617
2624
|
/**
|
|
2618
2625
|
* Converts all values of the current scene into the given design unit.
|
|
2619
2626
|
* @param designUnit - The new design unit of the scene
|
|
@@ -2626,6 +2633,9 @@ export declare class SceneAPI {
|
|
|
2626
2633
|
unstable_getDesignUnit(): DesignUnit;
|
|
2627
2634
|
}
|
|
2628
2635
|
|
|
2636
|
+
/** @public */
|
|
2637
|
+
export declare type SceneLayout = 'Free' | 'VerticalStack' | 'HorizontalStack' | 'DepthStack';
|
|
2638
|
+
|
|
2629
2639
|
/** @public */
|
|
2630
2640
|
export declare interface Size2 {
|
|
2631
2641
|
width: number;
|