@predy-js/render-interface 0.1.90-beta.8 → 0.1.90
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
@@ -9,9 +9,7 @@ import type { RenderPassInternal, RenderPassOptionsInternal } from './RenderPass
|
|
9
9
|
import type { RenderFrameInternal, RenderFrameInternalOptions } from './RenderFrameInternal';
|
10
10
|
import type { GPUCapability } from '../GPUCapability';
|
11
11
|
import type { TextureInternal, TextureInternalConstructOptions } from './TextureInternal';
|
12
|
-
import type { ImageBitmapCallback, ImageBitmapConstructor } from './ImageBitmapInternal';
|
13
12
|
import type { AndGLContext } from './AndGLContext';
|
14
|
-
import type { TypedArray } from '../type';
|
15
13
|
import type { MetalInternal } from './MetalInternal';
|
16
14
|
/**
|
17
15
|
* renderer 内部创建的对象,用来统计信息,排查资源泄漏的问题
|
@@ -68,11 +66,9 @@ export declare abstract class RendererInternal implements ResourceInternal {
|
|
68
66
|
abstract addRenderCompleteCallback(callback: (info: RendererInternalCompleteInfo) => void): number;
|
69
67
|
abstract removeRenderCompleteCallback(id: number): void;
|
70
68
|
/**
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* 获取错误信息,目前支持最大获取5条,
|
70
|
+
* 每次调用此函数后,清空错误队列
|
71
|
+
*/
|
74
72
|
abstract getErrors(): string[];
|
75
73
|
abstract resize(width: number, height: number): void;
|
76
|
-
abstract createImageBitmap(data: TypedArray | string, //图片文件的数据
|
77
|
-
options: ImageBitmapConstructor, callback: ImageBitmapCallback): void;
|
78
74
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@predy-js/render-interface",
|
3
|
-
"version": "0.1.90
|
3
|
+
"version": "0.1.90",
|
4
4
|
"license": "MIT",
|
5
5
|
"module": "./dist/index.mjs",
|
6
6
|
"main": "./dist/index.js",
|
@@ -45,13 +45,9 @@
|
|
45
45
|
"@types/chai-spies": "^1.0.3",
|
46
46
|
"@types/mocha": "^9.0.0",
|
47
47
|
"@types/webgl2": "0.0.6",
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.26.0",
|
49
|
-
"@typescript-eslint/parser": "^5.26.0",
|
50
48
|
"assert": "^2.0.0",
|
51
49
|
"chai": "^4.3.6",
|
52
50
|
"chai-spies": "^1.0.0",
|
53
|
-
"eslint": "^8.13.0",
|
54
|
-
"eslint-plugin-promise": "^5.2.0",
|
55
51
|
"husky": "^7.0.4",
|
56
52
|
"lint-staged": "^11.2.6",
|
57
53
|
"meshoptimizer": "^0.18.1"
|
@@ -9,9 +9,7 @@ import type { RenderPassInternal, RenderPassOptionsInternal } from './RenderPass
|
|
9
9
|
import type { RenderFrameInternal, RenderFrameInternalOptions } from './RenderFrameInternal';
|
10
10
|
import type { GPUCapability } from '../GPUCapability';
|
11
11
|
import type { TextureInternal, TextureInternalConstructOptions } from './TextureInternal';
|
12
|
-
import type { ImageBitmapCallback, ImageBitmapConstructor } from './ImageBitmapInternal';
|
13
12
|
import type { AndGLContext } from './AndGLContext';
|
14
|
-
import type { TypedArray } from '../type';
|
15
13
|
import type { MetalInternal } from './MetalInternal';
|
16
14
|
|
17
15
|
/**
|
@@ -83,7 +81,6 @@ export abstract class RendererInternal implements ResourceInternal {
|
|
83
81
|
abstract requestAnimationFrame (callback: FrameRequestCallback): number;
|
84
82
|
|
85
83
|
abstract cancelAnimationFrame (id: number): void;
|
86
|
-
|
87
84
|
/**
|
88
85
|
* 下一帧渲染完成后的回调,在调用removeRenderCompleteCallback前,不需要重复注册
|
89
86
|
*/
|
@@ -91,17 +88,11 @@ export abstract class RendererInternal implements ResourceInternal {
|
|
91
88
|
|
92
89
|
abstract removeRenderCompleteCallback (id: number): void;
|
93
90
|
/**
|
94
|
-
|
95
|
-
|
96
|
-
|
91
|
+
* 获取错误信息,目前支持最大获取5条,
|
92
|
+
* 每次调用此函数后,清空错误队列
|
93
|
+
*/
|
97
94
|
abstract getErrors (): string[];
|
98
95
|
|
99
96
|
abstract resize (width: number, height: number): void;
|
100
|
-
|
101
|
-
abstract createImageBitmap (
|
102
|
-
data: TypedArray | string, //图片文件的数据
|
103
|
-
options: ImageBitmapConstructor,
|
104
|
-
callback: ImageBitmapCallback
|
105
|
-
): void;
|
106
97
|
}
|
107
98
|
|