File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 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 {
9191 // public getFontSpacing(): number;
9292 public setXfermode ( param0 : PorterDuffXfermode ) : PorterDuffXfermode ;
9393 public getXfermode ( ) : PorterDuffXfermode ;
94- public setColorFilter ( param0 : ColorFilter ) : void ;
94+ public getColorFilter ( ) : ColorFilter ;
95+ public setColorFilter ( param0 : ColorFilter ) : ColorFilter ;
9596}
9697
9798// export class StaticLayout {
Original file line number Diff line number Diff line change @@ -1046,9 +1046,6 @@ export class Paint implements IPaint {
10461046 public getStrokeJoin ( ) : Join {
10471047 return this . strokeJoin ;
10481048 }
1049- public getColorFilter ( ) {
1050- return this . colorFilter ;
1051- }
10521049 public setStrokeWidth ( value : number ) : void {
10531050 this . strokeWidth = value ;
10541051 }
@@ -1089,11 +1086,16 @@ export class Paint implements IPaint {
10891086 public getShader ( ) {
10901087 return this . shader as any as IShader ;
10911088 }
1092- public setColorFilter ( value : any ) {
1089+ public getColorFilter ( ) {
1090+ return this . colorFilter ;
1091+ }
1092+ public setColorFilter ( value : any ) : any {
10931093 if ( this . colorFilter ) {
10941094 this . colorFilter . release ( ) ;
10951095 }
10961096 this . colorFilter = value ;
1097+
1098+ return value ;
10971099 }
10981100 setFont ( font : Font ) {
10991101 if ( font === this . mFont ) {
You can’t perform that action at this time.
0 commit comments