File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
apps/paper/src/Examples/API
packages/skia/src/skia/types/Paragraph Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
1111 Rect ,
1212 Skia ,
1313 TextDecoration ,
14+ TextDecorationStyle ,
1415 mix ,
1516 useFonts ,
1617} from "@shopify/react-native-skia" ;
@@ -92,8 +93,8 @@ export const Paragraphs = () => {
9293 ] ,
9394 decorationColor : Skia . Color ( "#00223A" ) ,
9495 decorationThickness : 2 ,
95- decoration : 1 ,
96- decorationStyle : TextDecoration . Overline ,
96+ decoration : TextDecoration . Underline ,
97+ decorationStyle : TextDecorationStyle . Dotted ,
9798 } ;
9899
99100 paragraphBuilder
Original file line number Diff line number Diff line change @@ -50,10 +50,10 @@ export enum TextBaseline {
5050export interface SkTextStyle {
5151 backgroundColor ?: SkColor ;
5252 color ?: SkColor ;
53- decoration ?: number ;
53+ decoration ?: TextDecoration ;
5454 decorationColor ?: SkColor ;
5555 decorationThickness ?: number ;
56- decorationStyle ?: TextDecoration ;
56+ decorationStyle ?: TextDecorationStyle ;
5757 fontFamilies ?: string [ ] ;
5858 fontFeatures ?: SkTextFontFeatures [ ] ;
5959 fontSize ?: number ;
You can’t perform that action at this time.
0 commit comments