@predy-js/render-interface 0.3.0-beta.239 → 0.3.0-beta.240

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/dist/statistic.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Name: @predy-js/render-interface
3
3
  * Description: undefined
4
4
  * Author: undefined
5
- * Version: v0.3.0-beta.239
5
+ * Version: v0.3.0-beta.240
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -80,6 +80,11 @@ export interface PredyNativeInternal {
80
80
  * @param method
81
81
  */
82
82
  inflateData(data: Uint8Array, method: DataCompressMethod): Uint8Array | undefined;
83
+ /**
84
+ * 恢复当前的主JSContext,多个JSContext执行的时候会发生抢占,
85
+ * 调用此函数后,当前的JSContext会被恢复
86
+ */
87
+ restoreJSContext(): boolean;
83
88
  }
84
89
  type renderSDFImageCallback = (img: SDFImage) => void;
85
90
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.3.0-beta.239",
3
+ "version": "0.3.0-beta.240",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -103,6 +103,12 @@ export interface PredyNativeInternal {
103
103
  * @param method
104
104
  */
105
105
  inflateData(data: Uint8Array, method: DataCompressMethod): Uint8Array | undefined,
106
+
107
+ /**
108
+ * 恢复当前的主JSContext,多个JSContext执行的时候会发生抢占,
109
+ * 调用此函数后,当前的JSContext会被恢复
110
+ */
111
+ restoreJSContext(): boolean,
106
112
  }
107
113
 
108
114
  type renderSDFImageCallback = (img: SDFImage) => void;