1
- import { LetterSpacing } from "@design-sdk/figma-types " ;
1
+ import { LetterSpacing } from "../letter-spacing " ;
2
2
import { DimensionLength } from ".." ;
3
3
import { Color , Colors } from "../color" ;
4
4
import { FontStyle } from "../font-style" ;
5
5
import { FontWeight } from "../font-weight" ;
6
6
import { TextDecoration , TextDecorationStyle } from "../text-decoration" ;
7
+ import { TextShadow } from "../text-shadow" ;
7
8
import { ITextStyle as ITextStyle } from "./text-style.manifest" ;
8
9
export class TextStyle implements ITextStyle {
9
10
fontFamily : string ;
@@ -18,6 +19,7 @@ export class TextStyle implements ITextStyle {
18
19
letterSpacing : LetterSpacing ;
19
20
wordSpacing ?: number ;
20
21
lineHeight : DimensionLength ;
22
+ textShadow : TextShadow [ ] ;
21
23
22
24
constructor ( {
23
25
fontFamily,
@@ -32,6 +34,7 @@ export class TextStyle implements ITextStyle {
32
34
letterSpacing,
33
35
wordSpacing,
34
36
lineHeight,
37
+ textShadow,
35
38
} : ITextStyle ) {
36
39
this . fontFamily = fontFamily ;
37
40
this . fontWeight = fontWeight ;
@@ -45,5 +48,6 @@ export class TextStyle implements ITextStyle {
45
48
this . letterSpacing = letterSpacing ;
46
49
this . wordSpacing = wordSpacing ;
47
50
this . lineHeight = lineHeight ;
51
+ this . textShadow = textShadow ;
48
52
}
49
53
}
0 commit comments