Skip to content

Commit

Permalink
fix: add TypeScript definition for paintMasks() (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
incanus committed May 17, 2022
1 parent 192058e commit 6edd169
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,20 @@ export declare class Image {
// extract
// floodFill
// paintLabels
// paintMasks
paintMasks(
masks: Image | Array<Image>,
options?: {
color?: Array<number> | string;
colors?: Array<Array<number>> | Array<string>;
randomColors?: boolean;
distinctColors?: boolean;
alpha?: number;
labels?: Array<string>;
labelsPosition?: Array<Array<number>>;
labelColor?: string;
labelFont?: string;
},
): Image;
// paintPoints
// paintPolyline
// paintPolylines
Expand Down

0 comments on commit 6edd169

Please sign in to comment.