@cesdk/engine 1.35.0-rc.0 → 1.35.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.
- package/assets/core/{cesdk-v1.35.0-rc.0-C7UB4FY7.wasm → cesdk-v1.35.0-PCEVZVGD.wasm} +0 -0
- package/assets/core/{worker-host-v1.35.0-rc.0.js → worker-host-v1.35.0.js} +1 -1
- package/index.d.ts +8 -0
- package/index.js +1 -1
- package/package.json +1 -1
- /package/assets/core/{cesdk-v1.35.0-rc.0-46BMFTP2.data → cesdk-v1.35.0-46BMFTP2.data} +0 -0
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 */
|