@mastergo/plugin-typings 1.13.0 → 1.14.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # [1.14.0](https://github.com/mastergo-design/plugin-typings/compare/v1.13.0...v1.14.0) (2023-02-07)
2
+
3
+
4
+ ### Features
5
+
6
+ * 增加异步导出接口exportAsync ([5327398](https://github.com/mastergo-design/plugin-typings/commit/532739851e5e0cc82ac0acbdc7195f7a780b354e))
7
+
8
+
9
+
1
10
  # [1.13.0](https://github.com/mastergo-design/plugin-typings/compare/v1.12.0...v1.13.0) (2023-01-12)
2
11
 
3
12
 
package/dist/index.d.ts CHANGED
@@ -186,6 +186,7 @@ declare global {
186
186
  interface ExportMixin {
187
187
  exportSettings: ReadonlyArray<ExportSettings>
188
188
  export(settings?: ExportSettings): Uint8Array | string // Defaults to PNG format
189
+ exportAsync(settings?: ExportSettings): Promise<Uint8Array | string>
189
190
  }
190
191
 
191
192
  interface NotifyOptions {
@@ -194,8 +195,8 @@ declare global {
194
195
  }
195
196
 
196
197
  interface UIViewport extends Bound {
197
- headerHeight: number
198
- visible: boolean
198
+ readonly headerHeight: number
199
+ readonly visible: boolean
199
200
  }
200
201
 
201
202
  interface UIAPI {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "1.13.0",
3
+ "version": "1.14.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",