@cesdk/node 1.35.0-rc.1 → 1.36.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.
|
Binary file
|
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -2834,6 +2834,14 @@ export declare class BlockAPI {
|
|
|
2834
2834
|
* @returns Subscription A handle to the subscription. Use it to unsubscribe when done.
|
|
2835
2835
|
*/
|
|
2836
2836
|
onStateChanged: (ids: DesignBlockId[], callback: (ids: DesignBlockId[]) => void) => (() => void);
|
|
2837
|
+
/**
|
|
2838
|
+
* Begins loading the resources of the given blocks and their children.
|
|
2839
|
+
* This function is useful for preloading resources before they are needed.
|
|
2840
|
+
* @param ids - The blocks whose resources should be loaded. The given blocks don't require to have resources and
|
|
2841
|
+
* can have children blocks (e.g. a scene block or a page block).
|
|
2842
|
+
* @returns A Promise that resolves once the resources have finished loading.
|
|
2843
|
+
*/
|
|
2844
|
+
forceLoadResources(ids: DesignBlockId[]): Promise<void>;
|
|
2837
2845
|
}
|
|
2838
2846
|
|
|
2839
2847
|
/** @public */
|
|
@@ -3140,6 +3148,7 @@ export declare class EditorAPI {
|
|
|
3140
3148
|
|
|
3141
3149
|
|
|
3142
3150
|
|
|
3151
|
+
|
|
3143
3152
|
/**
|
|
3144
3153
|
* Subscribe to changes to the editor state.
|
|
3145
3154
|
* @param callback - This function is called at the end of the engine update, if the editor state has changed.
|
|
@@ -3159,6 +3168,11 @@ export declare class EditorAPI {
|
|
|
3159
3168
|
* @returns "Transform", "Crop", "Text", "Playback", "Trim" or a custom value.
|
|
3160
3169
|
*/
|
|
3161
3170
|
getEditMode(): EditMode;
|
|
3171
|
+
/**
|
|
3172
|
+
* If an user interaction is happening, e.g., a resize edit with a drag handle or a touch gesture.
|
|
3173
|
+
* @returns True if an interaction is happening.
|
|
3174
|
+
*/
|
|
3175
|
+
unstable_isInteractionHappening(): boolean;
|
|
3162
3176
|
/**
|
|
3163
3177
|
* Get the type of cursor that should be displayed by the application.
|
|
3164
3178
|
* @returns The cursor type.
|