@dicebear/big-ears-neutral 5.0.0-beta.5 → 5.0.0-beta.7
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 +14 -1
- package/README.md +17 -5
- package/lib/components/cheek.d.ts +1 -1
- package/lib/components/cheek.js +1 -1
- package/lib/components/eyes.d.ts +1 -1
- package/lib/components/eyes.js +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/mouth.d.ts +1 -1
- package/lib/components/mouth.js +1 -1
- package/lib/components/nose.d.ts +1 -1
- package/lib/components/nose.js +1 -1
- package/lib/hooks/onPostCreate.d.ts +2 -2
- package/lib/hooks/onPostCreate.js +1 -1
- package/lib/hooks/onPreCreate.d.ts +2 -2
- package/lib/hooks/onPreCreate.js +1 -1
- package/lib/index.d.ts +17 -3
- package/lib/index.js +31 -15
- package/lib/schema.d.ts +1 -1
- package/lib/schema.js +1 -1
- package/lib/types.d.ts +7 -7
- package/lib/types.js +1 -1
- package/lib/utils/getColors.d.ts +2 -2
- package/lib/utils/getColors.js +1 -1
- package/lib/utils/getComponents.d.ts +2 -2
- package/lib/utils/getComponents.js +1 -1
- package/lib/utils/pickComponent.d.ts +2 -2
- package/lib/utils/pickComponent.js +1 -1
- package/package.json +3 -3
- package/lib/core.d.ts +0 -9
- package/lib/core.js +0 -39
package/LICENSE
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
+
Licenses
|
|
2
|
+
--------
|
|
3
|
+
|
|
4
|
+
# Design
|
|
5
|
+
Applies to all design files in this package.
|
|
6
|
+
|
|
7
|
+
Source: Face Generator (https://www.figma.com/community/file/986078800058673824)
|
|
8
|
+
Designer: The Visual Team (https://thevisual.team/)
|
|
9
|
+
License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
|
|
10
|
+
|
|
11
|
+
# Code
|
|
12
|
+
Applies to all non-design files in this package.
|
|
13
|
+
|
|
1
14
|
MIT License
|
|
2
15
|
|
|
3
|
-
Copyright (c)
|
|
16
|
+
Copyright (c) 2023 Florian Körner
|
|
4
17
|
|
|
5
18
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
19
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
<h1 align="center"><img src="
|
|
1
|
+
<h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Big Ears - Neutral</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/986078800058673824">Face Generator</a>
|
|
5
|
-
by <a href="https://thevisual.team/">The Visual Team</a>
|
|
4
|
+
<a href="https://www.figma.com/community/file/986078800058673824">Face Generator</a> by <a href="https://thevisual.team/">The Visual Team</a>
|
|
6
5
|
</p>
|
|
7
6
|
|
|
8
7
|
<p align="center">
|
|
9
|
-
|
|
10
|
-
<
|
|
8
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Mimi" width="64" />
|
|
9
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Sasha" width="64" />
|
|
10
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Lilly" width="64" />
|
|
11
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Tigger" width="64" />
|
|
12
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Bella" width="64" />
|
|
13
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Zoe" width="64" />
|
|
14
|
+
<img src="https://api.dicebear.com/5.x/big-ears-neutral/svg?seed=Kitty" width="64" />
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
The avatar style is based on <a href="https://www.figma.com/community/file/986078800058673824">Face Generator</a> by
|
|
19
|
+
<a href="https://thevisual.team/">The Visual Team</a>, licensed under
|
|
20
|
+
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. / Remix of the original.
|
|
21
|
+
</p>
|
|
22
|
+
<p align="center">
|
|
11
23
|
See <a href="https://dicebear.com/licenses">license overview</a> for more information.
|
|
12
24
|
</p>
|
|
13
25
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const cheek: ComponentGroup;
|
package/lib/components/cheek.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export const cheek = {
|
|
8
8
|
'variant06': (components, colors) => `<g fill="#F88888"><rect x="21" y="16" width="43.4" height="43.4" rx="21.7"/><rect x="194" y="16" width="43.4" height="43.4" rx="21.7"/></g>`,
|
package/lib/components/eyes.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const eyes: ComponentGroup;
|
package/lib/components/eyes.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export const eyes = {
|
|
8
8
|
'variant32': (components, colors) => `<g stroke="#000" stroke-linecap="round"><path d="M68 60.1c4.3-3.3 11-10 23.8-10.1a30 30 0 0 1 21.8 10.1" stroke-width="8.3"/><path d="M68 97.1c4.3-3.3 11-10 23.8-10.1a30 30 0 0 1 21.8 10.1" stroke-width="4.1"/><path d="M177 60.1c4.3-3.3 11-10 23.8-10.1a30 30 0 0 1 21.8 10.1" stroke-width="8.3"/><path d="M177 97.1c4.3-3.3 11-10 23.8-10.1a30 30 0 0 1 21.8 10.1" stroke-width="4.1"/></g>`,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export { mouth } from './mouth.js';
|
|
8
8
|
export { eyes } from './eyes.js';
|
package/lib/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export { mouth } from './mouth.js';
|
|
8
8
|
export { eyes } from './eyes.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const mouth: ComponentGroup;
|
package/lib/components/mouth.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export const mouth = {
|
|
8
8
|
'variant0708': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M-1.7 8c1.5-.2 2.9.9 3 2.4.8 5.2 8.4 18.8 37.2 20.2a2.7 2.7 0 1 1-.2 5.4C7.9 34.5-3 19.7-4 11c-.2-1.4.9-2.8 2.3-3Z" fill="#000"/>`,
|
package/lib/components/nose.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const nose: ComponentGroup;
|
package/lib/components/nose.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export const nose = {
|
|
8
8
|
'variant12': (components, colors) => `<path d="M22.6 34.4a17 17 0 1 0 32.6 0 16.9 16.9 0 0 1-32.6 0Z" fill="#000" fill-opacity=".2"/>`,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import { Prng, StyleOptions } from "@dicebear/core";
|
|
8
8
|
import { Options, ColorPickCollection, ComponentPickCollection } from "../types.js";
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: StyleOptions<Options>;
|
|
12
12
|
components: ComponentPickCollection;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export function onPostCreate({ prng, options, components, colors }) {
|
|
8
8
|
// Write your modifications here
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import { Prng, StyleOptions } from "@dicebear/core";
|
|
8
8
|
import { Options } from "../types.js";
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: StyleOptions<Options>;
|
|
12
12
|
};
|
package/lib/hooks/onPreCreate.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export function onPreCreate({ prng, options }) {
|
|
8
8
|
// Write your modifications here
|
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,22 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/*!
|
|
8
|
+
* Big Ears - Neutral (@dicebear/big-ears-neutral)
|
|
9
|
+
*
|
|
10
|
+
* Code licensed under MIT License.
|
|
11
|
+
* Copyright (c) 2023 Florian Körner
|
|
12
|
+
*
|
|
13
|
+
* Design "Face Generator" by The Visual Team licensed under CC BY 4.0. / Remix of the original.
|
|
14
|
+
* Source: https://www.figma.com/community/file/986078800058673824
|
|
15
|
+
* Homepage: https://thevisual.team/
|
|
16
|
+
* License: https://creativecommons.org/licenses/by/4.0/
|
|
17
|
+
*/
|
|
18
|
+
import type { StyleCreate, StyleMeta } from '@dicebear/core';
|
|
19
|
+
import type { Options } from './types.js';
|
|
20
|
+
export declare const meta: StyleMeta;
|
|
21
|
+
export declare const create: StyleCreate<Options>;
|
|
22
|
+
export { schema } from './schema.js';
|
|
9
23
|
export type { Options } from './types.js';
|
package/lib/index.js
CHANGED
|
@@ -2,19 +2,35 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
import { getComponents } from './utils/getComponents.js';
|
|
8
|
+
import { getColors } from './utils/getColors.js';
|
|
9
|
+
import { onPreCreate } from './hooks/onPreCreate.js';
|
|
10
|
+
import { onPostCreate } from './hooks/onPostCreate.js';
|
|
11
|
+
export const meta = {
|
|
12
|
+
title: 'Face Generator',
|
|
13
|
+
creator: 'The Visual Team',
|
|
14
|
+
source: 'https://www.figma.com/community/file/986078800058673824',
|
|
15
|
+
homepage: 'https://thevisual.team/',
|
|
16
|
+
license: {
|
|
17
|
+
name: 'CC BY 4.0',
|
|
18
|
+
url: 'https://creativecommons.org/licenses/by/4.0/',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const create = ({ prng, options }) => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
23
|
+
onPreCreate({ prng, options });
|
|
24
|
+
const components = getComponents({ prng, options });
|
|
25
|
+
const colors = getColors({ prng, options });
|
|
26
|
+
onPostCreate({ prng, options, components, colors });
|
|
27
|
+
return {
|
|
28
|
+
attributes: {
|
|
29
|
+
viewBox: '0 0 210 210',
|
|
30
|
+
fill: 'none',
|
|
31
|
+
'shape-rendering': 'auto'
|
|
32
|
+
},
|
|
33
|
+
body: `<g transform="translate(86.8 138.9) scale(.71856)">${(_b = (_a = components.mouth) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(2 11) scale(.71856)">${(_d = (_c = components.eyes) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(15 89.2) scale(.71856)">${(_f = (_e = components.cheek) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(80.3 79.8) scale(.71856)">${(_h = (_g = components.nose) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g>`,
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export { schema } from './schema.js';
|
package/lib/schema.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { StyleSchema } from '@dicebear/core';
|
|
8
8
|
export declare const schema: StyleSchema;
|
package/lib/schema.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export const schema = {
|
|
8
8
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
package/lib/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export interface Options {
|
|
8
8
|
mouth?: ('variant0708' | 'variant0707' | 'variant0706' | 'variant0705' | 'variant0704' | 'variant0703' | 'variant0702' | 'variant0701' | 'variant0405' | 'variant0605' | 'variant0604' | 'variant0603' | 'variant0602' | 'variant0601' | 'variant0505' | 'variant0504' | 'variant0503' | 'variant0502' | 'variant0501' | 'variant0404' | 'variant0403' | 'variant0402' | 'variant0401' | 'variant0305' | 'variant0304' | 'variant0303' | 'variant0302' | 'variant0301' | 'variant0205' | 'variant0204' | 'variant0203' | 'variant0202' | 'variant0201' | 'variant0105' | 'variant0104' | 'variant0103' | 'variant0102' | 'variant0101')[];
|
|
@@ -12,12 +12,12 @@ export interface Options {
|
|
|
12
12
|
nose?: ('variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
|
|
13
13
|
backgroundColor?: string[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
15
|
+
export type ColorPickCollection = Record<string, string>;
|
|
16
|
+
export type ComponentGroup = Record<string, ComponentGroupItem>;
|
|
17
|
+
export type ComponentGroupCollection = Record<string, ComponentGroup>;
|
|
18
|
+
export type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
|
|
19
|
+
export type ComponentPickCollection = Record<string, ComponentPick>;
|
|
20
|
+
export type ComponentPick = {
|
|
21
21
|
name: string;
|
|
22
22
|
value: ComponentGroupItem;
|
|
23
23
|
} | undefined;
|
package/lib/types.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export {};
|
package/lib/utils/getColors.d.ts
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { Options, ColorPickCollection } from '../types.js';
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: Options;
|
|
12
12
|
};
|
package/lib/utils/getColors.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
export function getColors({ prng, options }) {
|
|
8
8
|
return {};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { Options, ComponentPickCollection } from '../types.js';
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: Options;
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import { pickComponent } from './pickComponent.js';
|
|
8
8
|
export function getComponents({ prng, options }) {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { ComponentPick } from '../types.js';
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
group: string;
|
|
12
12
|
values?: string[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
3
|
*
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
5
|
+
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6
|
|
6
6
|
*/
|
|
7
7
|
import * as components from '../components/index.js';
|
|
8
8
|
export function pickComponent({ prng, group, values = [] }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/big-ears-neutral",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.7",
|
|
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": "^5.0.0-beta.
|
|
32
|
+
"@dicebear/core": "^5.0.0-beta.7",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.1",
|
|
34
34
|
"del-cli": "^4.0.1",
|
|
35
35
|
"typescript": "^4.6.3",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6864a0fec66652d8740f6feb2d99dc7a118ebd79"
|
|
48
48
|
}
|
package/lib/core.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
|
-
*
|
|
4
|
-
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6/%40dicebear%2Fbig-ears?node-id=205%3A130
|
|
6
|
-
*/
|
|
7
|
-
import type { Style } from '@dicebear/core';
|
|
8
|
-
import type { Options } from './types.js';
|
|
9
|
-
export declare const style: Style<Options>;
|
package/lib/core.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
|
|
3
|
-
*
|
|
4
|
-
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
|
-
* File: https://www.figma.com/file/KhTfMFWWniVgZmGVFL0KK6/%40dicebear%2Fbig-ears?node-id=205%3A130
|
|
6
|
-
*/
|
|
7
|
-
import { schema } from './schema.js';
|
|
8
|
-
import { getComponents } from './utils/getComponents.js';
|
|
9
|
-
import { getColors } from './utils/getColors.js';
|
|
10
|
-
import { onPreCreate } from './hooks/onPreCreate.js';
|
|
11
|
-
import { onPostCreate } from './hooks/onPostCreate.js';
|
|
12
|
-
export const style = {
|
|
13
|
-
meta: {
|
|
14
|
-
title: 'Face Generator',
|
|
15
|
-
creator: 'The Visual Team',
|
|
16
|
-
source: 'https://www.figma.com/community/file/986078800058673824',
|
|
17
|
-
homepage: 'https://thevisual.team/',
|
|
18
|
-
license: {
|
|
19
|
-
name: 'CC BY 4.0',
|
|
20
|
-
url: 'https://creativecommons.org/licenses/by/4.0/',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
schema: schema,
|
|
24
|
-
create: ({ prng, options }) => {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
26
|
-
onPreCreate({ prng, options });
|
|
27
|
-
const components = getComponents({ prng, options });
|
|
28
|
-
const colors = getColors({ prng, options });
|
|
29
|
-
onPostCreate({ prng, options, components, colors });
|
|
30
|
-
return {
|
|
31
|
-
attributes: {
|
|
32
|
-
viewBox: '0 0 210 210',
|
|
33
|
-
fill: 'none',
|
|
34
|
-
'shape-rendering': 'auto'
|
|
35
|
-
},
|
|
36
|
-
body: `<g transform="translate(86.8 138.9) scale(.71856)">${(_b = (_a = components.mouth) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(2 11) scale(.71856)">${(_d = (_c = components.eyes) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(15 89.2) scale(.71856)">${(_f = (_e = components.cheek) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(80.3 79.8) scale(.71856)">${(_h = (_g = components.nose) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g>`,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
};
|