@cesdk/node 1.76.0-nightly.20260511 → 1.76.0-nightly.20260512
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.76.0-nightly.20260511-3VVYC655.wasm → cesdk-v1.76.0-nightly.20260512-T45ABY6Q.wasm} +0 -0
- package/index.d.ts +91 -5
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.76.0-nightly.20260511-MLEZSZ4D.data → cesdk-v1.76.0-nightly.20260512-MLEZSZ4D.data} +0 -0
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -2619,6 +2619,60 @@ export declare class BlockAPI {
|
|
|
2619
2619
|
* @returns The current mode: 'Crop', 'Cover' or 'Contain'.
|
|
2620
2620
|
*/
|
|
2621
2621
|
getContentFillMode(id: DesignBlockId): ContentFillMode;
|
|
2622
|
+
/**
|
|
2623
|
+
* Sets the horizontal alignment of the content fill within a block.
|
|
2624
|
+
*
|
|
2625
|
+
* Only affects 'Contain' and 'Cover' fill modes; has no visible effect in 'Crop' mode,
|
|
2626
|
+
* where the user positions the content explicitly.
|
|
2627
|
+
*
|
|
2628
|
+
* ```javascript
|
|
2629
|
+
* engine.block.setContentFillHorizontalAlignment(image, 'Left');
|
|
2630
|
+
* ```
|
|
2631
|
+
*
|
|
2632
|
+
* @category Block Fills
|
|
2633
|
+
* @param id - The block to update.
|
|
2634
|
+
* @param alignment - The horizontal alignment: 'Left', 'Center' or 'Right'.
|
|
2635
|
+
*/
|
|
2636
|
+
setContentFillHorizontalAlignment(id: DesignBlockId, alignment: HorizontalContentFillAlignment): void;
|
|
2637
|
+
/**
|
|
2638
|
+
* Gets the horizontal alignment of the content fill within a block.
|
|
2639
|
+
*
|
|
2640
|
+
* ```javascript
|
|
2641
|
+
* engine.block.getContentFillHorizontalAlignment(image);
|
|
2642
|
+
* ```
|
|
2643
|
+
*
|
|
2644
|
+
* @category Block Fills
|
|
2645
|
+
* @param id - The block to query.
|
|
2646
|
+
* @returns The current alignment: 'Left', 'Center' or 'Right'.
|
|
2647
|
+
*/
|
|
2648
|
+
getContentFillHorizontalAlignment(id: DesignBlockId): HorizontalContentFillAlignment;
|
|
2649
|
+
/**
|
|
2650
|
+
* Sets the vertical alignment of the content fill within a block.
|
|
2651
|
+
*
|
|
2652
|
+
* Only affects 'Contain' and 'Cover' fill modes; has no visible effect in 'Crop' mode,
|
|
2653
|
+
* where the user positions the content explicitly.
|
|
2654
|
+
*
|
|
2655
|
+
* ```javascript
|
|
2656
|
+
* engine.block.setContentFillVerticalAlignment(image, 'Top');
|
|
2657
|
+
* ```
|
|
2658
|
+
*
|
|
2659
|
+
* @category Block Fills
|
|
2660
|
+
* @param id - The block to update.
|
|
2661
|
+
* @param alignment - The vertical alignment: 'Top', 'Center' or 'Bottom'.
|
|
2662
|
+
*/
|
|
2663
|
+
setContentFillVerticalAlignment(id: DesignBlockId, alignment: VerticalContentFillAlignment): void;
|
|
2664
|
+
/**
|
|
2665
|
+
* Gets the vertical alignment of the content fill within a block.
|
|
2666
|
+
*
|
|
2667
|
+
* ```javascript
|
|
2668
|
+
* engine.block.getContentFillVerticalAlignment(image);
|
|
2669
|
+
* ```
|
|
2670
|
+
*
|
|
2671
|
+
* @category Block Fills
|
|
2672
|
+
* @param id - The block to query.
|
|
2673
|
+
* @returns The current alignment: 'Top', 'Center' or 'Bottom'.
|
|
2674
|
+
*/
|
|
2675
|
+
getContentFillVerticalAlignment(id: DesignBlockId): VerticalContentFillAlignment;
|
|
2622
2676
|
/**
|
|
2623
2677
|
* Duplicates a block and its children.
|
|
2624
2678
|
*
|
|
@@ -6835,19 +6889,27 @@ export declare class EditorAPI {
|
|
|
6835
6889
|
/**
|
|
6836
6890
|
* Subscribe to undo/redo history changes.
|
|
6837
6891
|
*
|
|
6892
|
+
* The callback receives a {@link HistoryUpdate} describing what kind of update happened so consumers can
|
|
6893
|
+
* distinguish a real change to the active history's snapshots (e.g. an edit, undo, or redo) from a pure activation
|
|
6894
|
+
* via `setActiveHistory`.
|
|
6895
|
+
*
|
|
6838
6896
|
* ```javascript
|
|
6839
|
-
* const unsubscribe = engine.editor.onHistoryUpdated(() => {
|
|
6897
|
+
* const unsubscribe = engine.editor.onHistoryUpdated((kind) => {
|
|
6898
|
+
* if (kind === 'Activated') {
|
|
6899
|
+
* // The active history was switched; no scene change happened on this event.
|
|
6900
|
+
* return;
|
|
6901
|
+
* }
|
|
6840
6902
|
* const canUndo = engine.editor.canUndo();
|
|
6841
6903
|
* const canRedo = engine.editor.canRedo();
|
|
6842
|
-
* console.log(
|
|
6843
|
-
* })
|
|
6904
|
+
* console.log('History updated', { canUndo, canRedo });
|
|
6905
|
+
* });
|
|
6844
6906
|
* ```
|
|
6845
6907
|
*
|
|
6846
6908
|
* @category Event Subscriptions
|
|
6847
|
-
* @param callback - Function called when the undo/redo history changes.
|
|
6909
|
+
* @param callback - Function called when the undo/redo history changes. The argument describes the kind of update.
|
|
6848
6910
|
* @returns A method to unsubscribe from the event.
|
|
6849
6911
|
*/
|
|
6850
|
-
onHistoryUpdated: (callback: () => void) => (() => void);
|
|
6912
|
+
onHistoryUpdated: (callback: (kind: HistoryUpdate) => void) => (() => void);
|
|
6851
6913
|
/**
|
|
6852
6914
|
* Subscribe to editor settings changes.
|
|
6853
6915
|
*
|
|
@@ -7991,9 +8053,27 @@ export declare type HexColorString = string;
|
|
|
7991
8053
|
*/
|
|
7992
8054
|
export declare type HistoryId = number;
|
|
7993
8055
|
|
|
8056
|
+
/**
|
|
8057
|
+
* Describes the kind of update that triggered an `onHistoryUpdated` callback.
|
|
8058
|
+
*
|
|
8059
|
+
* - `Updated`: The active history's snapshots changed: a new snapshot was added (e.g. after an edit), or undo/redo
|
|
8060
|
+
* was applied. The scene state changed as a direct consequence.
|
|
8061
|
+
* - `Activated`: A different history buffer was activated via `setActiveHistory`. The undo/redo stack visible to the
|
|
8062
|
+
* user changed, but no new snapshot was created and no undo/redo was applied as part of this event.
|
|
8063
|
+
*
|
|
8064
|
+
* @public
|
|
8065
|
+
*/
|
|
8066
|
+
export declare type HistoryUpdate = 'Updated' | 'Activated';
|
|
8067
|
+
|
|
7994
8068
|
/** @public */
|
|
7995
8069
|
export declare type HorizontalBlockAlignment = TextHorizontalAlignment;
|
|
7996
8070
|
|
|
8071
|
+
/** @public */
|
|
8072
|
+
export declare type HorizontalContentFillAlignment = (typeof HorizontalContentFillAlignmentValues)[number];
|
|
8073
|
+
|
|
8074
|
+
/** @public */
|
|
8075
|
+
export declare const HorizontalContentFillAlignmentValues: readonly ["Left", "Center", "Right"];
|
|
8076
|
+
|
|
7997
8077
|
/**
|
|
7998
8078
|
* Represents the image MIME types used in the editor.
|
|
7999
8079
|
*
|
|
@@ -9894,6 +9974,12 @@ export declare interface Vec3 {
|
|
|
9894
9974
|
/** @public */
|
|
9895
9975
|
export declare type VerticalBlockAlignment = TextVerticalAlignment;
|
|
9896
9976
|
|
|
9977
|
+
/** @public */
|
|
9978
|
+
export declare type VerticalContentFillAlignment = (typeof VerticalContentFillAlignmentValues)[number];
|
|
9979
|
+
|
|
9980
|
+
/** @public */
|
|
9981
|
+
export declare const VerticalContentFillAlignmentValues: readonly ["Top", "Center", "Bottom"];
|
|
9982
|
+
|
|
9897
9983
|
/**
|
|
9898
9984
|
* Represents the options for exporting a video.
|
|
9899
9985
|
*
|