@mastergo/plugin-typings 2.2.0 → 2.4.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 +19 -0
- package/dist/index.d.ts +11 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [2.4.0](https://github.com/mastergo-design/plugin-typings/compare/v2.3.0...v2.4.0) (2024-04-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* 自动布局补充字段 ([495e3a8](https://github.com/mastergo-design/plugin-typings/commit/495e3a8c7f208b81fad659230a092acb93b65c30))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# [2.3.0](https://github.com/mastergo-design/plugin-typings/compare/v2.2.0...v2.3.0) (2024-01-31)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* 团队库增加组件的cover和宽高 ([1eb2855](https://github.com/mastergo-design/plugin-typings/commit/1eb28555e1dd63b4c830f66ba7d21dfda471b613))
|
|
16
|
+
* 增加等比缩放系数 ([5afbaf4](https://github.com/mastergo-design/plugin-typings/commit/5afbaf45a9e587eb2a8c5b60fe4a5db111368746))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
1
20
|
# [2.2.0](https://github.com/mastergo-design/plugin-typings/compare/v2.0.0...v2.2.0) (2023-11-22)
|
|
2
21
|
|
|
3
22
|
|
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
|
|
|
@@ -689,11 +690,14 @@ declare global {
|
|
|
689
690
|
}
|
|
690
691
|
interface AutoLayout {
|
|
691
692
|
flexMode: 'NONE' | 'HORIZONTAL' | 'VERTICAL'
|
|
693
|
+
flexWrap: 'WRAP' | 'NO_WRAP'
|
|
692
694
|
itemSpacing: number
|
|
693
695
|
mainAxisAlignItems: 'FLEX_START' | 'FLEX_END' | 'CENTER' | 'SPACING_BETWEEN'
|
|
694
696
|
crossAxisAlignItems: 'FLEX_START' | 'FLEX_END' | 'CENTER'
|
|
695
697
|
mainAxisSizingMode: 'FIXED' | 'AUTO'
|
|
696
698
|
crossAxisSizingMode: 'FIXED' | 'AUTO'
|
|
699
|
+
crossAxisAlignContent: 'AUTO' | 'SPACE_BETWEEN'
|
|
700
|
+
crossAxisSpacing: number | null
|
|
697
701
|
strokesIncludedInLayout: boolean
|
|
698
702
|
itemReverseZIndex: boolean
|
|
699
703
|
paddingTop: number
|
|
@@ -1264,11 +1268,14 @@ declare global {
|
|
|
1264
1268
|
}
|
|
1265
1269
|
|
|
1266
1270
|
interface TeamLibraryComponent {
|
|
1267
|
-
readonly id: string
|
|
1268
|
-
readonly name: string
|
|
1269
|
-
readonly ukey: string
|
|
1270
|
-
readonly description: string
|
|
1271
|
+
readonly id: string
|
|
1272
|
+
readonly name: string
|
|
1273
|
+
readonly ukey: string
|
|
1274
|
+
readonly description: string
|
|
1271
1275
|
readonly type: "COMPONENT" | 'COMPONENT_SET'
|
|
1276
|
+
readonly cover: string
|
|
1277
|
+
readonly width: number
|
|
1278
|
+
readonly height: number
|
|
1272
1279
|
}
|
|
1273
1280
|
|
|
1274
1281
|
interface TeamLibraryStyle {
|