@dicebear/croodles 7.0.0 → 8.0.0-rc.0
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/LICENSE +1 -1
- package/README.md +2 -2
- package/lib/components/eyes.js +6 -5
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/schema.js +20 -0
- package/lib/types.d.ts +2 -0
- package/lib/utils/getColors.js +3 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -5,7 +5,7 @@ Licenses
|
|
|
5
5
|
Applies to all design files in this package.
|
|
6
6
|
|
|
7
7
|
Source: Croodles - Doodle your face (https://www.figma.com/community/file/966199982810283152)
|
|
8
|
-
Designer: vijay verma (https://
|
|
8
|
+
Designer: vijay verma (https://vjy.me/)
|
|
9
9
|
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
|
|
10
10
|
|
|
11
11
|
# Code
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Croodles</h1>
|
|
2
2
|
<p align="center">
|
|
3
3
|
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
|
|
4
|
-
<a href="https://www.figma.com/community/file/966199982810283152">Croodles - Doodle your face</a> by <a href="https://
|
|
4
|
+
<a href="https://www.figma.com/community/file/966199982810283152">Croodles - Doodle your face</a> by <a href="https://vjy.me/">vijay verma</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
7
7
|
<p align="center">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
The avatar style is based on <a href="https://www.figma.com/community/file/966199982810283152">Croodles - Doodle your face</a> by
|
|
19
|
-
<a href="https://
|
|
19
|
+
<a href="https://vjy.me/">vijay verma</a>, licensed under
|
|
20
20
|
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. / Remix of the original.
|
|
21
21
|
</p>
|
|
22
22
|
<p align="center">
|
package/lib/components/eyes.js
CHANGED
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
5
|
* File: https://www.figma.com/file/ZHPv3t2L6Asuuql9ND4q1L
|
|
6
6
|
*/
|
|
7
|
+
import { escape } from '@dicebear/core';
|
|
7
8
|
export const eyes = {
|
|
8
9
|
'variant16': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M30.5 41.3c-5.1.3-8.2-4-9.2-6C27 30 35.5 33 39.1 35c-.7 2-3.4 6-8.6 6.3Z"/><path d="M28.6 37.2c.8.5 2.7 1.1 4-.8 1.6-2.4-2.4-5-3.7-3.8-1 1-.6 2.4-.2 3M90.7 35.2c1-.4 2.6-1.8 1.6-4-1.2-2.8-5.8-.8-5.5 1 .3 1.5 1.9 2 2.6 2"/><path d="M90.7 38.8c-5 1.2-9-2.8-9.8-5.5 4.6-6 15-3.5 17.6-1.3-.4 2-2.8 5.7-7.8 6.8ZM17.3 21c5.5-1.1 18.3-1.5 25.2 5.1M75.6 25.7c3.3-5.4 14.2-11.2 22-7.6"/></g>`,
|
|
9
|
-
'variant15': (components, colors) => `<g stroke
|
|
10
|
-
'variant14': (components, colors) => `<g stroke
|
|
11
|
-
'variant13': (components, colors) => `<g stroke
|
|
10
|
+
'variant15': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M25.5 18.2c1.7-1.3 6.1-2.6 11.3-1.9 4.5.6 6.4 2.3 7.7 4.3M73 20c2-2.8 5.8-3.3 8.2-3.4 2.4-.2 5 0 7.2.6" stroke="#000"/><path d="m4 20.6 13.7 8.5M48.2 33A31.5 31.5 0 0 1 68.7 31M96.9 28.8c2.5-1.3 10.6-8.8 13.1-10.6M18.1 29.7c-.3 3.7-.4 13.1 4.4 16.6 4.7 3.5 23.5-.3 25.2-1 1.7-.5 1.7-7.7-.9-14.3-2.1-5.5-20.5-3.7-28-2.3" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="M70.5 28c6-2.7 22-1 25 0 3.7 1 4.1 10.3 3.8 13.7C98.9 45 78.8 45 74 44.9c-3.7-.1-4.9-11.6-4-16.5" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="M33.4 32.3c-.4.2-1 1-.8 1.9.4 1 3.4 2.5 3.5.8.1-1.7-.4-2.3-1.2-1.6M81.6 31.2c-.6.6-1.7 1.8-1 2.3 1 .7 4.3 2.3 4 0-.2-1.8-1.1-1.7-1.5-1.4l-.8.8" stroke="#000"/></g>`,
|
|
11
|
+
'variant14': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20.8 12.3c1.7-1.3 6.2-2.6 11.3-2 4.5.7 6.4 2.3 7.7 4.3M72.9 14.2c2-3 5.7-3.7 8-4 2.4-.2 5.1-.2 7.3.4" stroke="#000"/><path d="m4 21.2 13.7 6.5M48.2 31.5a31.5 31.5 0 0 1 20.5-1.8M96.9 27.3a193 193 0 0 0 13.1-8.6M24.6 49.9c-5-3.1-10.5-15.7-5.9-22.7 5.3-7.8 23.8-8.7 28.1 2.4 2.6 6.5 1.6 12.7 1 14.3-1.9 4.5-10.3 13.9-23.2 6ZM95.5 26.5c-5.6-8-21-8.3-25.4.4-1.9 3.7-3 14.2 4.4 20.2 3.8 3 18 8.2 22.8-5.2 2.2-6.3.4-12.2-1.8-15.4Z" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="M34.4 29.8c-.4.2-1.1 1-.8 1.8.4 1.2 3.4 2.5 3.5.9.1-1.7-.5-2.3-1.2-1.6M81 27.7c-.6.5-1.7 1.8-1 2.3 1 .6 4.2 2.3 4 0-.3-1.9-1.1-1.7-1.5-1.4l-.9.7" stroke="#000"/></g>`,
|
|
12
|
+
'variant13': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M26.8 19.1c1.3 1.2 4.7 2.4 8.6 1.7 3.5-.5 5-2 6-3.9M70 16.1c2 2.6 5.4 3.4 7.6 3.6 2.2 0 5-.8 7.2-2" stroke="#000"/><path d="M4 20.5 17.7 29M48.2 32.8A31.5 31.5 0 0 1 68.7 31M96.9 28.7c2.5-1.4 10.6-7.8 13.1-9.7" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="M22.6 46c-8.3-3.1-7.6-11.4-3.7-17.2 3-3.8 22.8-2.2 27.2 1.8 4.2 3.8 2.3 11.8-1.8 14.3-3.4 2-16.2 3.1-21.7 1ZM94.4 26.7c-3.6-1.2-18.2-1-24 2.6-3.8 2.5-6.5 14.7 3.6 16 4.6.7 14.9 0 18.7-1.8 8.2-3.9 6.8-15.2 1.7-16.8Z" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="M29.7 35.3c1-2 3.2-2.6 4.1-2.6 3.1 0 4 1.3 4.7 2.1M78 35.3c1-2 3.1-2.6 4-2.6 3.2 0 4 1.3 4.7 2.1" stroke="#000"/></g>`,
|
|
12
13
|
'variant12': (components, colors) => `<path d="M33 35.6c-1.8-1.7.5-4.4 2.5-3.4 2.5 1.3 3.4 4.3 1.2 6.5s-7.2.8-7.5-4.5c-.3-5.3 6.5-9.2 10-3 3.3 6.3 2.2 11.9-5.2 11.9-5.1 0-7.3-3.6-7.9-7-1-6.7 2.5-13.6 9.7-12 4.5 1 9.7 4 8.8 13.3-1 9.3-6 10.3-12.3 9.2-7.7-1.3-9.8-8.2-7.3-16M78.5 35.6c-1.9-1.7.4-4.4 2.4-3.4 2.5 1.3 3.4 4.3 1.2 6.5-2.1 2.2-7.1.8-7.5-4.5-.3-5.3 6.5-9.2 10-3 3.3 6.3 2.2 11.9-5.2 11.9-5.1 0-7.3-3.6-7.8-7-1-6.7 2.4-13.6 9.7-12 4.4 1 9.6 4 8.7 13.3-1 9.3-6 10.3-12.3 9.2-7.7-1.3-9.8-8.2-7.3-16M29.8 15.9c3 2.2 8.8 2.6 12 1M72.2 16.8c3.6 1 9.2-.3 11.8-2.8" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
13
14
|
'variant11': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M36.8 29v-.2c0-.8-.7-1.5-1.5-1.4-1.4 0-3.5.5-5.3 1.4a7.8 7.8 0 0 0-4.3 5.4c-.5 3 0 5.3 1 6.9 1 1.5 2.4 2.3 3.1 2.7a13.6 13.6 0 0 0 5.4.6c1.2 0 2.5-.4 3.6-1.1 1.1-.8 2-2 2.3-3.6a12 12 0 0 0-.7-7 7 7 0 0 0-3-3.6l-.6-.1Zm-7.3 4a4.1 4.1 0 0 0-.9 2.2l.4-1 .5-1.1Zm1.3 4.4-.1.3.2.2v-.5Zm3-2.1v.5-.5Zm-1.8-3c.7-.2 1.6.1 2 .9l-.8.3.7-.3a4.6 4.6 0 0 1 .1.2 6.9 6.9 0 0 1 .4 1.5c0 .3 0 .8-.2 1.2-.5 1-1.4 1.3-2 1.3-.8 0-2-.2-2.4-1.4a2 2 0 0 1 0-1.5 2 2 0 0 1 1-1l.3-.2c.1-.4.4-.7.9-1Zm-.6 2.8ZM86 27V27c0-.9-.7-1.5-1.6-1.4-1.3 0-3.4.4-5.2 1.4a7.8 7.8 0 0 0-4.3 5.4c-.6 3 0 5.2 1 6.8 1 1.6 2.4 2.4 3.1 2.8a13.6 13.6 0 0 0 5.4.6c1.2-.1 2.5-.4 3.6-1.2 1.1-.7 2-2 2.3-3.6a12 12 0 0 0-.7-6.9 7 7 0 0 0-3-3.6l-.6-.1Zm-7.4 4.1a4.1 4.1 0 0 0-.8 2.1l.4-1c0-.4.2-.7.4-1Zm1.4 4.4-.2.3.3.2-.1-.5Zm3-2.1-.1.2v.2l.1-.4Zm.9 4a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-2.7-7c.7-.3 1.6 0 2 .8l-.8.4.7-.4a4.6 4.6 0 0 1 .1.3 6.8 6.8 0 0 1 .4 1.5c0 .2 0 .7-.3 1.2-.4 1-1.3 1.3-2 1.3s-1.8-.3-2.3-1.4a2 2 0 0 1 0-1.5 2 2 0 0 1 1-1l.3-.2c.1-.4.4-.8.9-1Zm-.6 2.8Z" fill="#000"/><path d="M27.5 21.8c1-1.3 3.8-3.4 6-2M78 18c1-1.3 4.2-1.4 4.7 0" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
14
|
-
'variant10': (components, colors) => `<g stroke
|
|
15
|
-
'variant09': (components, colors) => `<g stroke
|
|
15
|
+
'variant10': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20.4 39.8c2.2-3.1 9-8.4 19-4" stroke="#000"/><path d="M29 35.3c-1 .5-2.8 2.1-1.6 4.5 1.5 3 6.5.5 6-1.5-.4-1.6-2.1-2-3-2M17 24.6C21.8 23 33.2 21 40 27M71.4 24.6c4.8-1.7 16.2-3.6 23 2.3" stroke="#000"/><path d="M68 28c6.4-.8 24.3 1.6 27 3.2 3 1.8 3.5 15.2 1.2 21.6-1.2 3.2-13.3 6.7-23.8 0-7.5-4.7-5.9-18.8-5-23.7" stroke="${escape.xml(`${colors.eyepatch}`)}"/><path d="M70.6 31c-.7 1.9-1.8 8.5-2.5 10.8l5-10.2c-.7 3.2-3.5 14.2-3.3 15.2.3 1.2 5.9-15.3 6.5-15.2.6 0-4.4 16.9-4.4 17.9s5.8-17.2 6.7-17.2c.9 0-4.4 17.9-3.8 18.8.6.9 5.2-17.3 6-18.2C81.4 32 76.1 53 77 53c.8 0 6.1-21 6.9-19 .7 2-5.1 22-3.2 20.3 2-1.6 5.6-21.8 7-20.3 1.5 1.5-4.4 20.8-3.2 20.3C85.8 53.8 90 35 90.6 35c.6 0-2.4 20.8-1.8 19.4l5-19.4c.3-1.2 0 3 0 6.9-.1 3-2.2 10.5-2.5 12.5l4.4-14.6c0 2.3 0 7.6-.3 10.1-.3 2.6-.8 3.7-1 4M6 3a253.7 253.7 0 0 0 58.6 26c3 .8 28 4.5 32 2.3 3.3-1.7 11.2-14 13-16" stroke="${escape.xml(`${colors.eyepatch}`)}"/></g>`,
|
|
16
|
+
'variant09': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M23.2 17.6c1.6.8 6 1.7 11.2 1.3 4.5-.4 6.5-1.5 7.8-2.9M75.2 15c2.1 1.9 5.9 2.3 8.3 2.3 2.3.1 5 0 7.1-.4" stroke="#000"/><path d="M4 18.5 17.7 26M48.2 29.8A31.5 31.5 0 0 1 68.7 28M96.9 25.6c2.5-1.3 10.6-7.7 13.1-9.6M18.1 26.6c-.3 3.7-1.7 15.6 0 17.6 2.6 3 27.8-1 29.5-1.5 1.6-.6 2-8.8-.5-15.4-2.2-5.5-20.8-3.1-28.4-1.8" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="m19.5 31.9 2.8-5.4c-.8 3.3-3 11-2.8 12 .3 1.2 5.7-12.6 6.3-12.6.6.1-4.5 16-4.5 17s6-17 6.9-17c.9 0-4.2 15.6-3.6 16.5.6 1 5.4-16 6.2-16.9.7-.9-4.3 18.2-3.4 18.1.8 0 6.1-21 6.9-19 .7 2-4.9 21.2-3 19.5 2-1.6 5.4-21 6.8-19.5 1.4 1.5-3.6 20-2.4 19.5 1.3-.5 4.6-17.6 5.2-17.6.6 0-1 17.1-.5 17.1s3.3-14 3.7-15.1c.3-1.2 1-.5 1 3.4-.1 3-1.3 9-1.6 11l3-7.6M70.8 33l2.8-7c-.8 3.3-2.3 10-2 10.9.2 1.2 5-11.5 5.5-11.4.6 0-3.5 13.1-3.5 14 0 1 5-14 5.9-14 .9 0-3.6 14.8-3 15.7.6.9 4.8-15.3 5.6-16.2.7-.9-4.3 18.2-3.4 18.1.8 0 6.1-21 6.9-19 .7 2-5.1 20.7-3.2 19 2-1.6 5.6-20.5 7-19 1.4 1.5-3.6 20-2.4 19.6C88.3 43 91.6 26 92.2 26c.6 0-1 17-.5 17s2.7-12.7 3-13.9c.4-1.1 1.3-.5 1.2 3.3 0 3.1-.8 7.9-1.1 9.9l3-7.6" stroke="${escape.xml(`${colors.glasses}`)}"/><path d="M70.5 24.8c6-2.7 22.2-1 25.2 0 3.8 1.1 3.6 14.7 3.3 18-.4 3.4-22.1.2-26.8 0-3.7-.1-3-12.7-2.1-17.6" stroke="${escape.xml(`${colors.glasses}`)}"/></g>`,
|
|
16
17
|
'variant08': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M34.8 27.8c3.3.6 11-.1 14.7-7.9M65.2 15c.5 2.7 2.7 8.5 7.4 10.8 4.6 2.3 8.8 2.3 10.3 2M21.2 40.5a134 134 0 0 1 27.1-5M21 42.7c6.8-1.3 20.5-4.5 25.2-5.2M67.3 34.8c7.1-1.3 22.3 2.4 26.3 4.1"/><path d="M66.7 35.2c7.1-1.2 20.6 3.7 24.6 5.5"/><path d="M66.5 36.1c7-1.3 21.6 4.9 25.6 6.7"/><path d="M66.5 37.5c7-1.3 21.6 5 25.6 6.9M25 41.3c6.5-2.3 20.5-6.6 24-5.2M24 45c6.6-2.3 20.3-6.2 24-7"/></g>`,
|
|
17
18
|
'variant07': (components, colors) => `<path d="M35.5 48c-.7-.6-5.1-2.3-7.4-6.2-2.3-3.8-2.5-7.7 0-9.3 1.6-1.2 5.1.6 7.4 2.2M36.4 34c1.5-1.6 4.1-3 6.7-1.6 1.8 1 1.6 7.1 0 9.4-1.2 1.9-5.2 5-6.7 6M77.7 33.3c-2.2-2.1-7.1-5.4-9.2-1.7-2.6 4.6 5.6 13 10.2 14.8M79.8 47c2.2-1.7 7-5.4 7.8-6.6 1-1.5 2.8-8 0-10.6-2.8-2.6-8.6 1-8.6 5.2M26 18.3c.6-1.4 3-4.2 7-3.7 5.2.6 6.2 1.5 7.4 3.7M72.2 16.2c.5-1.7 3-4.8 8.2-4 5.2.6 7 3.5 7.3 4.9" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
18
19
|
'variant06': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M42.8 24c-6.4.3-17.8 3.1-17.8 11.4C25 47.8 34.7 50 38.2 50c3 0 9.2-1.6 11.5-4 2.3-2.6 3.2-12.6 1.6-15.8-1.1-2.2-3.2-5-7-5"/><path d="M30.7 32.3c-.4 0-1.2.2-1 .9.3.6 1.4.5 1.6 0 .3-.6-.2-1.8-.2-1.8M78.6 42c.3.6.5.4.7 0"/><path d="M80.3 30.4c-3 .8-8.6 3.8-7.4 9.9 1.3 6 5.8 7.7 10.4 6.4 4.5-1.4 7-7.6 6.4-10.3-1-3.4-5.7-6-9.4-5M28.7 16.7c2.1 1.6 8 4.3 14.3 2.4 6.3-2 11.2-7.5 12.8-10.1M78.9 14.5c-1 1 .2 4.7 2.4 5.5 2.2.9 3.6 1.5 5.8 1.5"/></g>`,
|
package/lib/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* Design "Croodles - Doodle your face" by vijay verma licensed under CC BY 4.0. / Remix of the original.
|
|
14
14
|
* Source: https://www.figma.com/community/file/966199982810283152
|
|
15
|
-
* Homepage: https://
|
|
15
|
+
* Homepage: https://vjy.me/
|
|
16
16
|
* License: https://creativecommons.org/licenses/by/4.0/
|
|
17
17
|
*/
|
|
18
18
|
import type { StyleCreate, StyleMeta } from '@dicebear/core';
|
package/lib/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export const meta = {
|
|
|
10
10
|
title: 'Croodles - Doodle your face',
|
|
11
11
|
creator: 'vijay verma',
|
|
12
12
|
source: 'https://www.figma.com/community/file/966199982810283152',
|
|
13
|
-
homepage: 'https://
|
|
13
|
+
homepage: 'https://vjy.me/',
|
|
14
14
|
license: {
|
|
15
15
|
name: 'CC BY 4.0',
|
|
16
16
|
url: 'https://creativecommons.org/licenses/by/4.0/',
|
package/lib/schema.js
CHANGED
|
@@ -43,6 +43,16 @@ export const schema = {
|
|
|
43
43
|
"maximum": 100,
|
|
44
44
|
"default": 10
|
|
45
45
|
},
|
|
46
|
+
"eyepatchColor": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
|
|
51
|
+
},
|
|
52
|
+
"default": [
|
|
53
|
+
"000000"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
46
56
|
"eyes": {
|
|
47
57
|
"type": "array",
|
|
48
58
|
"items": {
|
|
@@ -111,6 +121,16 @@ export const schema = {
|
|
|
111
121
|
"variant01"
|
|
112
122
|
]
|
|
113
123
|
},
|
|
124
|
+
"glassesColor": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"items": {
|
|
127
|
+
"type": "string",
|
|
128
|
+
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
|
|
129
|
+
},
|
|
130
|
+
"default": [
|
|
131
|
+
"000000"
|
|
132
|
+
]
|
|
133
|
+
},
|
|
114
134
|
"mouth": {
|
|
115
135
|
"type": "array",
|
|
116
136
|
"items": {
|
package/lib/types.d.ts
CHANGED
|
@@ -16,6 +16,8 @@ export interface Options {
|
|
|
16
16
|
eyes?: ('variant16' | 'variant15' | 'variant14' | 'variant13' | 'variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
|
|
17
17
|
topColor?: string[];
|
|
18
18
|
baseColor?: string[];
|
|
19
|
+
glassesColor?: string[];
|
|
20
|
+
eyepatchColor?: string[];
|
|
19
21
|
}
|
|
20
22
|
export type ColorPickCollection = Record<string, string>;
|
|
21
23
|
export type ComponentGroup = Record<string, ComponentGroupItem>;
|
package/lib/utils/getColors.js
CHANGED
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { convertColor } from './convertColor.js';
|
|
8
8
|
export function getColors({ prng, options }) {
|
|
9
|
-
var _a, _b;
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
10
|
return {
|
|
11
11
|
'top': convertColor(prng.pick((_a = options.topColor) !== null && _a !== void 0 ? _a : [], 'transparent')),
|
|
12
12
|
'base': convertColor(prng.pick((_b = options.baseColor) !== null && _b !== void 0 ? _b : [], 'transparent')),
|
|
13
|
+
'glasses': convertColor(prng.pick((_c = options.glassesColor) !== null && _c !== void 0 ? _c : [], 'transparent')),
|
|
14
|
+
'eyepatch': convertColor(prng.pick((_d = options.eyepatchColor) !== null && _d !== void 0 ? _d : [], 'transparent')),
|
|
13
15
|
};
|
|
14
16
|
}
|
|
15
17
|
;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/croodles",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-rc.0",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"test": "uvu tests"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@dicebear/core": "
|
|
32
|
+
"@dicebear/core": "8.0.0-rc.0",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.2",
|
|
34
34
|
"del-cli": "^5.0.0",
|
|
35
35
|
"typescript": "^5.1.6",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "46efe92668f9efd1eb8cd956617586439f870d19"
|
|
48
48
|
}
|