@dicebear/core 5.1.0 → 5.1.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.
- package/lib/schema.js +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/utils/svg.js +1 -1
- package/package.json +3 -3
package/lib/schema.js
CHANGED
package/lib/types.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface Result extends ConverterResult {
|
|
|
12
12
|
extra: Record<string, unknown>;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
export type BackgroundType = 'solid' | '
|
|
15
|
+
export type BackgroundType = 'solid' | 'gradientLinear';
|
|
16
16
|
export interface Options {
|
|
17
17
|
seed?: string;
|
|
18
18
|
flip?: boolean;
|
package/lib/utils/svg.js
CHANGED
|
@@ -19,7 +19,7 @@ export function addBackground(result, primaryColor, secondaryColor, type, rotati
|
|
|
19
19
|
switch (type) {
|
|
20
20
|
case 'solid':
|
|
21
21
|
return solidBackground + result.body;
|
|
22
|
-
case '
|
|
22
|
+
case 'gradientLinear':
|
|
23
23
|
return (`<rect fill="url(#backgroundLinear)" width="${width}" height="${height}" x="${x}" y="${y}" />` +
|
|
24
24
|
`<defs>` +
|
|
25
25
|
`<linearGradient id="backgroundLinear" gradientTransform="rotate(${rotation} 0.5 0.5)">` +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/core",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "An avatar library for designers and developers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"avatar",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"test": "uvu tests"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@dicebear/converter": "^5.1.
|
|
35
|
+
"@dicebear/converter": "^5.1.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@tsconfig/recommended": "^1.0.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0c544971431b02f8783598b4f821a6341b9fff0a"
|
|
50
50
|
}
|