@predy-js/render-interface 0.1.78-beta.2 → 0.1.79
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
@@ -26,6 +26,11 @@ export interface PredyNativeInternal {
|
|
26
26
|
options: ImageBitmapConstructor, callback: ImageBitmapCallback): void;
|
27
27
|
getDefaultGPUCapability(): GPUCapability;
|
28
28
|
requestWithCache(options: PredyRequestOptions, callback: PredyRequestCallback): void;
|
29
|
+
/**
|
30
|
+
* decode utf8 text from data
|
31
|
+
* @param data
|
32
|
+
*/
|
33
|
+
decodeText(data: Uint8Array): string;
|
29
34
|
/**
|
30
35
|
* 将图片绘制到画布上,同时替换文案,绘制的顺序如下
|
31
36
|
* 创建template.size尺寸的画布, 接下来的绘制均应用 template.offset
|
package/package.json
CHANGED
@@ -35,6 +35,11 @@ export interface PredyNativeInternal {
|
|
35
35
|
|
36
36
|
requestWithCache (options: PredyRequestOptions, callback: PredyRequestCallback): void,
|
37
37
|
|
38
|
+
/**
|
39
|
+
* decode utf8 text from data
|
40
|
+
* @param data
|
41
|
+
*/
|
42
|
+
decodeText(data: Uint8Array): string,
|
38
43
|
/**
|
39
44
|
* 将图片绘制到画布上,同时替换文案,绘制的顺序如下
|
40
45
|
* 创建template.size尺寸的画布, 接下来的绘制均应用 template.offset
|