@predy-js/render-interface 0.3.4-beta.16 → 0.3.4-beta.17

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.4-beta.16
5
+ * Version: v0.3.4-beta.17
6
6
  */
7
7
 
8
8
  // https://github.com/greggman/webgl-memory/blob/main/src/texture-utils.js
@@ -94,7 +94,7 @@ export declare class EventSystem {
94
94
  /**
95
95
  * 添加事件监听
96
96
  */
97
- addEventListener: (type: string, handler: EventHandlerFunction) => void;
97
+ addEventListener: (type: string, handler: EventHandlerFunction) => () => void;
98
98
  /**
99
99
  * 移除事件监听
100
100
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@predy-js/render-interface",
3
- "version": "0.3.4-beta.16",
3
+ "version": "0.3.4-beta.17",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -123,7 +123,7 @@ export declare class EventSystem {
123
123
  /**
124
124
  * 添加事件监听
125
125
  */
126
- addEventListener: (type: string, handler: EventHandlerFunction) => void;
126
+ addEventListener: (type: string, handler: EventHandlerFunction) => () => void;
127
127
 
128
128
  /**
129
129
  * 移除事件监听