image-js 0.34.0 → 0.34.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +14 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -145,7 +145,20 @@ export declare class Image {
145
145
  // extract
146
146
  // floodFill
147
147
  // paintLabels
148
- // paintMasks
148
+ paintMasks(
149
+ masks: Image | Array<Image>,
150
+ options?: {
151
+ color?: Array<number> | string;
152
+ colors?: Array<Array<number>> | Array<string>;
153
+ randomColors?: boolean;
154
+ distinctColors?: boolean;
155
+ alpha?: number;
156
+ labels?: Array<string>;
157
+ labelsPosition?: Array<Array<number>>;
158
+ labelColor?: string;
159
+ labelFont?: string;
160
+ },
161
+ ): Image;
149
162
  // paintPoints
150
163
  // paintPolyline
151
164
  // paintPolylines
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "image-js",
3
- "version": "0.34.0",
3
+ "version": "0.34.1",
4
4
  "description": "Image processing and manipulation in JavaScript",
5
5
  "keywords": [
6
6
  "image",