Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(image): dataUri is not random #2316

Merged
merged 23 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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