File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ export class Paint extends ProxyClass {
91
91
// public getFontSpacing(): number;
92
92
public setXfermode ( param0 : PorterDuffXfermode ) : PorterDuffXfermode ;
93
93
public getXfermode ( ) : PorterDuffXfermode ;
94
- public setColorFilter ( param0 : ColorFilter ) : void ;
94
+ public getColorFilter ( ) : ColorFilter ;
95
+ public setColorFilter ( param0 : ColorFilter ) : ColorFilter ;
95
96
}
96
97
97
98
// export class StaticLayout {
Original file line number Diff line number Diff line change @@ -1046,9 +1046,6 @@ export class Paint implements IPaint {
1046
1046
public getStrokeJoin ( ) : Join {
1047
1047
return this . strokeJoin ;
1048
1048
}
1049
- public getColorFilter ( ) {
1050
- return this . colorFilter ;
1051
- }
1052
1049
public setStrokeWidth ( value : number ) : void {
1053
1050
this . strokeWidth = value ;
1054
1051
}
@@ -1089,11 +1086,16 @@ export class Paint implements IPaint {
1089
1086
public getShader ( ) {
1090
1087
return this . shader as any as IShader ;
1091
1088
}
1092
- public setColorFilter ( value : any ) {
1089
+ public getColorFilter ( ) {
1090
+ return this . colorFilter ;
1091
+ }
1092
+ public setColorFilter ( value : any ) : any {
1093
1093
if ( this . colorFilter ) {
1094
1094
this . colorFilter . release ( ) ;
1095
1095
}
1096
1096
this . colorFilter = value ;
1097
+
1098
+ return value ;
1097
1099
}
1098
1100
setFont ( font : Font ) {
1099
1101
if ( font === this . mFont ) {
You can’t perform that action at this time.
0 commit comments