Skip to content

Commit 7055a33

Browse files
committed
chore: Added missing type for getColorFilter
1 parent 0522ecc commit 7055a33

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/ui-canvas/canvas.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export class Paint extends ProxyClass {
9191
// public getFontSpacing(): number;
9292
public setXfermode(param0: PorterDuffXfermode): PorterDuffXfermode;
9393
public getXfermode(): PorterDuffXfermode;
94+
public getColorFilter(): ColorFilter;
9495
public setColorFilter(param0: ColorFilter): void;
9596
}
9697

src/ui-canvas/canvas.ios.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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,6 +1086,9 @@ export class Paint implements IPaint {
10891086
public getShader() {
10901087
return this.shader as any as IShader;
10911088
}
1089+
public getColorFilter() {
1090+
return this.colorFilter;
1091+
}
10921092
public setColorFilter(value: any) {
10931093
if (this.colorFilter) {
10941094
this.colorFilter.release();

0 commit comments

Comments
 (0)