@mastergo/plugin-typings 1.9.0 → 1.10.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,13 @@
1
+ # [1.10.0](https://github.com/mastergo-design/plugin-typings/compare/v1.9.0...v1.10.0) (2022-12-01)
2
+
3
+
4
+ ### Features
5
+
6
+ * 文字分段样式增加fontWeight字重字段 ([3619b51](https://github.com/mastergo-design/plugin-typings/commit/3619b518fcd8cbd137df5fa0387bc8162fb53940))
7
+ * 文字新增百分比行高 ([a560491](https://github.com/mastergo-design/plugin-typings/commit/a560491b9fb146184fdce13d48b6eb58be4b6949))
8
+
9
+
10
+
1
11
  # [1.9.0](https://github.com/mastergo-design/plugin-typings/compare/v1.8.0...v1.9.0) (2022-11-24)
2
12
 
3
13
 
package/dist/index.d.ts CHANGED
@@ -227,6 +227,7 @@ declare global {
227
227
  lineHeight: LineHeight
228
228
  textDecoration: TextDecoration
229
229
  textCase: TextCase
230
+ fontWeight: number
230
231
  }
231
232
  fills: Paint[]
232
233
  }
@@ -399,10 +400,14 @@ declare global {
399
400
  readonly unit: 'PIXELS' | 'PERCENT'
400
401
  }
401
402
 
402
- type LineHeight = {
403
- readonly value: number
404
- readonly unit: 'PIXELS'
405
- }
403
+ type LineHeight =
404
+ | {
405
+ readonly value: number
406
+ readonly unit: 'PIXELS' | 'PERCENT'
407
+ }
408
+ | {
409
+ readonly unit: 'AUTO'
410
+ }
406
411
 
407
412
  type BlendMode =
408
413
  | 'NORMAL'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastergo/plugin-typings",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "MasterGo插件API声明文件",
5
5
  "main": "",
6
6
  "types": "dist/index.d.ts",