Skip to content

Commit

Permalink
fix(image): dataUri is not random (#2316)
Browse files Browse the repository at this point in the history
Co-authored-by: ST-DDT <ST-DDT@gmx.de>
  • Loading branch information
OmkarPednekar and ST-DDT committed Sep 17, 2023
1 parent 82b779d commit a7d25fa
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 76 deletions.
8 changes: 4 additions & 4 deletions src/modules/image/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class ImageModule {
* @param options Options for generating a data uri.
* @param options.width The width of the image. Defaults to `640`.
* @param options.height The height of the image. Defaults to `480`.
* @param options.color The color of the image. Defaults to `grey`.
* @param options.color The color of the image. Must be a color supported by svg. Defaults to a random color.
* @param options.type The type of the image. Defaults to `'svg-uri'`.
*
* @example
Expand All @@ -377,9 +377,9 @@ export class ImageModule {
*/
height?: number;
/**
* The color of the image.
* The color of the image. Must be a color supported by svg.
*
* @default 'grey'
* @default faker.color.rgb()
*/
color?: string;
/**
Expand All @@ -394,7 +394,7 @@ export class ImageModule {
const {
width = 640,
height = 480,
color = 'grey',
color = this.faker.color.rgb(),
type = 'svg-uri',
} = options;

Expand Down
Loading

0 comments on commit a7d25fa

Please sign in to comment.