@mastergo/plugin-typings 2.8.0 → 2.8.2-beta.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/dist/index.d.ts +28 -13
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare global {
|
|
|
70
70
|
/**
|
|
71
71
|
* 自定义样式
|
|
72
72
|
*/
|
|
73
|
-
type TokenItem = TokenCommonItem | TokenTextItem;
|
|
73
|
+
type TokenItem = TokenCommonItem | TokenTextItem | TokenEffectItem;
|
|
74
74
|
type TokenCommonItem = {
|
|
75
75
|
id: string;
|
|
76
76
|
type: 'color' | 'padding' | 'border-radius' | 'border-width' | 'gap';
|
|
@@ -85,7 +85,7 @@ declare global {
|
|
|
85
85
|
*/
|
|
86
86
|
isMultiple?: boolean;
|
|
87
87
|
};
|
|
88
|
-
type TokenTextSubItemType = 'fontfamily' | 'fontstyle' | 'fontsize' | 'lineheight' | 'decoration' | 'letterspacing';
|
|
88
|
+
type TokenTextSubItemType = 'font' | 'fontfamily' | 'fontstyle' | 'fontsize' | 'lineheight' | 'decoration' | 'letterspacing';
|
|
89
89
|
|
|
90
90
|
type TokenTextItem = {
|
|
91
91
|
id: string;
|
|
@@ -93,6 +93,7 @@ declare global {
|
|
|
93
93
|
name: TokenName;
|
|
94
94
|
originName: string;
|
|
95
95
|
originAlias: string;
|
|
96
|
+
variable: TokenVariable;
|
|
96
97
|
textItems: Record<TokenTextSubItemType, TokenTextSubItem>;
|
|
97
98
|
};
|
|
98
99
|
|
|
@@ -102,6 +103,25 @@ declare global {
|
|
|
102
103
|
value: TokenValue;
|
|
103
104
|
};
|
|
104
105
|
|
|
106
|
+
type TokenEffectItem = {
|
|
107
|
+
id: string;
|
|
108
|
+
type: 'effect';
|
|
109
|
+
name: TokenName;
|
|
110
|
+
originName: string;
|
|
111
|
+
originAlias: string;
|
|
112
|
+
value: TokenValue;
|
|
113
|
+
variable: TokenVariable;
|
|
114
|
+
effectItems: Record<TokenEffectSubItemType, TokenEffectSubItem>;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
type TokenEffectSubItemType = 'shadow' | 'filter' | 'backdropfilter';
|
|
118
|
+
|
|
119
|
+
type TokenEffectSubItem = {
|
|
120
|
+
type: TokenEffectSubItemType;
|
|
121
|
+
name: TokenName;
|
|
122
|
+
value: TokenValue;
|
|
123
|
+
};
|
|
124
|
+
|
|
105
125
|
/**
|
|
106
126
|
* TODO: 安卓自定义样式
|
|
107
127
|
*/
|
|
@@ -1809,9 +1829,13 @@ declare global {
|
|
|
1809
1829
|
}
|
|
1810
1830
|
|
|
1811
1831
|
interface CornerMixin {
|
|
1812
|
-
// 待确认
|
|
1813
1832
|
cornerSmooth: number
|
|
1814
1833
|
cornerRadius: number | PluginAPI['mixed']
|
|
1834
|
+
|
|
1835
|
+
topLeftRadius: number
|
|
1836
|
+
topRightRadius: number
|
|
1837
|
+
bottomLeftRadius: number
|
|
1838
|
+
bottomRightRadius: number
|
|
1815
1839
|
}
|
|
1816
1840
|
|
|
1817
1841
|
interface DefaultShapeMixin
|
|
@@ -1829,7 +1853,6 @@ declare global {
|
|
|
1829
1853
|
ReactionMixin,
|
|
1830
1854
|
SceneNodeMixin,
|
|
1831
1855
|
ChildrenMixin,
|
|
1832
|
-
RectangleCornerMixin,
|
|
1833
1856
|
BlendMixin,
|
|
1834
1857
|
CornerMixin,
|
|
1835
1858
|
ConstraintMixin,
|
|
@@ -1894,13 +1917,6 @@ declare global {
|
|
|
1894
1917
|
|
|
1895
1918
|
type OverflowDirection = "NONE" | "HORIZONTAL" | "VERTICAL" | "BOTH"
|
|
1896
1919
|
|
|
1897
|
-
interface RectangleCornerMixin {
|
|
1898
|
-
topLeftRadius: number
|
|
1899
|
-
topRightRadius: number
|
|
1900
|
-
bottomLeftRadius: number
|
|
1901
|
-
bottomRightRadius: number
|
|
1902
|
-
}
|
|
1903
|
-
|
|
1904
1920
|
interface ReactionMixin {
|
|
1905
1921
|
reactions: ReadonlyArray<Reaction>
|
|
1906
1922
|
}
|
|
@@ -2003,8 +2019,7 @@ declare global {
|
|
|
2003
2019
|
extends DefaultShapeMixin,
|
|
2004
2020
|
ConstraintMixin,
|
|
2005
2021
|
CornerMixin,
|
|
2006
|
-
RectangleStrokeWeightMixin
|
|
2007
|
-
RectangleCornerMixin {
|
|
2022
|
+
RectangleStrokeWeightMixin {
|
|
2008
2023
|
readonly type: 'RECTANGLE'
|
|
2009
2024
|
clone(): RectangleNode
|
|
2010
2025
|
}
|