ms-types 0.9.5 → 0.9.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.9.5",
3
+ "version": "0.9.6",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/pip.d.ts CHANGED
@@ -33,6 +33,12 @@ declare namespace pip {
33
33
  * @returns true代表尺寸已提交,false代表当前模式不允许设置或宽高无效
34
34
  */
35
35
  function setContentSize(width: number, height: number): boolean;
36
+ /**
37
+ * 设置日志模式显示文本的文字大小
38
+ * @param fontSize 日志字号,必须是有效数字
39
+ * @returns true代表日志文字大小已提交,false代表字号无效
40
+ */
41
+ function setLogFontSize(fontSize: number): boolean;
36
42
  /**
37
43
  * 设置自定义模式显示的纯文本
38
44
  * @param text 要显示的文本,支持换行
@@ -206,4 +206,13 @@ declare namespace tomatoOcr {
206
206
  * ```
207
207
  */
208
208
  function findTapPoints(data: string): string;
209
+
210
+ /**
211
+ * 释放 TomatoOCR SDK 已加载的 OCR 模型和内部资源
212
+ * @example
213
+ * ```typescript
214
+ * tomatoOcr.release();
215
+ * ```
216
+ */
217
+ function release(): void;
209
218
  }
@@ -37,6 +37,12 @@ declare namespace $悬浮窗 {
37
37
  * @returns true代表尺寸已提交,false代表当前模式不允许设置或宽高无效
38
38
  */
39
39
  function 设置内容尺寸(宽度: 数字, 高度: 数字): 布尔值;
40
+ /**
41
+ * 设置日志模式显示文本的文字大小
42
+ * @param 字号 日志字号,必须是有效数字
43
+ * @returns true代表日志文字大小已提交,false代表字号无效
44
+ */
45
+ function 设置日志文字大小(字号: 数字): 布尔值;
40
46
  /**
41
47
  * 设置自定义模式显示的纯文本
42
48
  * @param 文本 要显示的文本,支持换行