@mastergo/plugin-typings 2.2.0 → 2.3.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 +10 -0
- package/dist/index.d.ts +8 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
# [2.3.0](https://github.com/mastergo-design/plugin-typings/compare/v2.2.0...v2.3.0) (2024-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* 团队库增加组件的cover和宽高 ([1eb2855](https://github.com/mastergo-design/plugin-typings/commit/1eb28555e1dd63b4c830f66ba7d21dfda471b613))
|
|
7
|
+
* 增加等比缩放系数 ([5afbaf4](https://github.com/mastergo-design/plugin-typings/commit/5afbaf45a9e587eb2a8c5b60fe4a5db111368746))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
1
11
|
# [2.2.0](https://github.com/mastergo-design/plugin-typings/compare/v2.0.0...v2.2.0) (2023-11-22)
|
|
2
12
|
|
|
3
13
|
|
package/dist/index.d.ts
CHANGED
|
@@ -596,6 +596,7 @@ declare global {
|
|
|
596
596
|
alignSelf: 'STRETCH' | 'INHERIT' // applicable only inside auto-layout frames
|
|
597
597
|
flexGrow: 0 | 1 // applicable only inside auto-layout frames
|
|
598
598
|
rescale(scale: number, scaleOption?: ScaleOption): void
|
|
599
|
+
scaleFactor: number // The default value is 1
|
|
599
600
|
flip(direction: 'VERTICAL' | 'HORIZONTAL'): void
|
|
600
601
|
}
|
|
601
602
|
|
|
@@ -1264,11 +1265,14 @@ declare global {
|
|
|
1264
1265
|
}
|
|
1265
1266
|
|
|
1266
1267
|
interface TeamLibraryComponent {
|
|
1267
|
-
readonly id: string
|
|
1268
|
-
readonly name: string
|
|
1269
|
-
readonly ukey: string
|
|
1270
|
-
readonly description: string
|
|
1268
|
+
readonly id: string
|
|
1269
|
+
readonly name: string
|
|
1270
|
+
readonly ukey: string
|
|
1271
|
+
readonly description: string
|
|
1271
1272
|
readonly type: "COMPONENT" | 'COMPONENT_SET'
|
|
1273
|
+
readonly cover: string
|
|
1274
|
+
readonly width: number
|
|
1275
|
+
readonly height: number
|
|
1272
1276
|
}
|
|
1273
1277
|
|
|
1274
1278
|
interface TeamLibraryStyle {
|