@dicebear/miniavs 5.0.0-alpha.10 → 5.0.0-alpha.14
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/colors/body.d.ts +2 -0
- package/lib/colors/body.js +5 -0
- package/lib/colors/hair.d.ts +2 -0
- package/lib/colors/hair.js +5 -0
- package/lib/colors/index.d.ts +3 -0
- package/lib/colors/index.js +3 -0
- package/lib/colors/skin.d.ts +2 -0
- package/lib/colors/skin.js +5 -0
- package/lib/components/blushes.d.ts +2 -0
- package/lib/components/blushes.js +3 -0
- package/lib/components/body.d.ts +2 -0
- package/lib/components/body.js +4 -0
- package/lib/components/eyes.d.ts +2 -0
- package/lib/components/eyes.js +14 -0
- package/lib/components/glasses.d.ts +2 -0
- package/lib/components/glasses.js +3 -0
- package/lib/components/hair.d.ts +2 -0
- package/lib/components/hair.js +11 -0
- package/lib/components/head.d.ts +2 -0
- package/lib/components/head.js +5 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/components/index.js +8 -0
- package/lib/components/mouth.d.ts +2 -0
- package/lib/components/mouth.js +4 -0
- package/lib/components/mustache.d.ts +2 -0
- package/lib/components/mustache.js +6 -0
- package/lib/core.d.ts +3 -0
- package/lib/core.js +64 -0
- package/lib/hooks/onPostCreate.d.ts +11 -0
- package/lib/hooks/onPostCreate.js +3 -0
- package/lib/hooks/onPreCreate.d.ts +9 -0
- package/lib/hooks/onPreCreate.js +3 -0
- package/lib/index.d.ts +13 -0
- package/lib/index.js +13 -0
- package/lib/meta/components.d.ts +4 -0
- package/lib/meta/components.js +34 -0
- package/lib/schema.d.ts +2 -0
- package/lib/schema.js +136 -0
- package/lib/types.d.ts +32 -0
- package/lib/types.js +1 -0
- package/lib/utils/getColors.d.ts +8 -0
- package/lib/utils/getColors.js +20 -0
- package/lib/utils/getComponents.d.ts +8 -0
- package/lib/utils/getComponents.js +59 -0
- package/lib/utils/pickColor.d.ts +9 -0
- package/lib/utils/pickColor.js +13 -0
- package/lib/utils/pickComponent.d.ts +9 -0
- package/lib/utils/pickComponent.js +14 -0
- package/package.json +18 -26
- package/dist/index.d.ts +0 -24
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js +0 -373
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -377
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as colors from '../colors/index.js';
|
|
2
|
+
export function pickColor({ prng, group, values = [] }) {
|
|
3
|
+
var _a;
|
|
4
|
+
const colorCollection = colors;
|
|
5
|
+
if (values.length === 0) {
|
|
6
|
+
values.push('transparent');
|
|
7
|
+
}
|
|
8
|
+
const key = prng.pick(values);
|
|
9
|
+
return {
|
|
10
|
+
name: key,
|
|
11
|
+
value: (_a = colorCollection[group][key]) !== null && _a !== void 0 ? _a : key,
|
|
12
|
+
};
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Prng } from '@dicebear/core';
|
|
2
|
+
import type { ComponentPick } from '../types.js';
|
|
3
|
+
declare type Props = {
|
|
4
|
+
prng: Prng;
|
|
5
|
+
group: string;
|
|
6
|
+
values?: string[];
|
|
7
|
+
};
|
|
8
|
+
export declare function pickComponent({ prng, group, values, }: Props): ComponentPick;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as components from '../components/index.js';
|
|
2
|
+
export function pickComponent({ prng, group, values = [], }) {
|
|
3
|
+
const componentCollection = components;
|
|
4
|
+
const key = prng.pick(values);
|
|
5
|
+
if (componentCollection[group][key]) {
|
|
6
|
+
return {
|
|
7
|
+
name: key,
|
|
8
|
+
value: componentCollection[group][key],
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/miniavs",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.14",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -13,44 +13,36 @@
|
|
|
13
13
|
"url": "git+https://github.com/dicebear/dicebear.git"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"module": "dist/index.es.js",
|
|
20
|
-
"types": "dist/index.d.ts",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": "./lib/index.js",
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
21
19
|
"files": [
|
|
22
20
|
"LICENSE",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
21
|
+
"lib",
|
|
22
|
+
"README.md"
|
|
25
23
|
],
|
|
26
24
|
"scripts": {
|
|
27
|
-
"
|
|
25
|
+
"prebuild": "del-cli lib",
|
|
26
|
+
"build": "tsc",
|
|
28
27
|
"prepublishOnly": "npm run build",
|
|
29
|
-
"
|
|
30
|
-
"build": "npm-run-all build:*",
|
|
31
|
-
"build:schema": "json2ts src/schema.json src/options.ts",
|
|
32
|
-
"build:parcel": "parcel build"
|
|
28
|
+
"test": "uvu tests"
|
|
33
29
|
},
|
|
34
30
|
"devDependencies": {
|
|
35
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
36
|
-
"@parcel/packager-ts": "^2.0.1",
|
|
37
|
-
"@parcel/transformer-typescript-types": "^2.0.1",
|
|
31
|
+
"@dicebear/core": "^5.0.0-alpha.14",
|
|
38
32
|
"@tsconfig/recommended": "^1.0.0",
|
|
39
33
|
"@types/jest": "^26.0.22",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"npm-run-all": "^4.1.5",
|
|
44
|
-
"parcel": "^2.0.1",
|
|
45
|
-
"shx": "^0.3.3",
|
|
46
|
-
"ts-jest": "^26.5.4",
|
|
47
|
-
"typescript": "^4.5.2"
|
|
34
|
+
"del-cli": "^4.0.1",
|
|
35
|
+
"typescript": "^4.5.2",
|
|
36
|
+
"uvu": "^0.5.2"
|
|
48
37
|
},
|
|
49
38
|
"peerDependencies": {
|
|
50
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
39
|
+
"@dicebear/core": "^5.0.0-alpha.10"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
|
|
51
43
|
},
|
|
52
44
|
"publishConfig": {
|
|
53
45
|
"access": "public"
|
|
54
46
|
},
|
|
55
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "d5d0a634d035328c19eda3121496b2ad4f53850b"
|
|
56
48
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
-
*/
|
|
6
|
-
export interface Options {
|
|
7
|
-
blushes?: "default"[];
|
|
8
|
-
blushesProbability?: number;
|
|
9
|
-
body?: ("tShirt" | "golf")[];
|
|
10
|
-
bodyColor?: (string | ("orange" | "blue" | "pink"))[];
|
|
11
|
-
eyes?: ("normal" | "confident" | "happy")[];
|
|
12
|
-
glasses?: "normal"[];
|
|
13
|
-
glassesProbability?: number;
|
|
14
|
-
hair?: ("balndess" | "slaughter" | "ponyTail" | "long" | "curly" | "stylish" | "elvis" | "classic02" | "classic01")[];
|
|
15
|
-
hairColor?: (string | ("brown" | "black" | "red"))[];
|
|
16
|
-
head?: ("normal" | "wide" | "thin")[];
|
|
17
|
-
mouth?: ("default" | "missingTooth")[];
|
|
18
|
-
mustache?: ("pencilThinBeard" | "pencilThin" | "horshoe" | "freddy")[];
|
|
19
|
-
mustacheProbability?: number;
|
|
20
|
-
skinColor?: (string | ("yellow" | "white" | "dark"))[];
|
|
21
|
-
}
|
|
22
|
-
export const create: import("@dicebear/core").StyleCreate<import("options").Options>, preview: import("@dicebear/core").StylePreview<import("options").Options> | undefined, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
|
|
23
|
-
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AACA;;;;GAIG;AAEH;IACE,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,MAAM,CAAC,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC;IACtD,IAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC,EAAE,CAAC;IAC5C,OAAO,CAAC,EAAE,QAAQ,EAAE,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,UAAU,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,GAAG,WAAW,CAAC,EAAE,CAAC;IACtH,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC;IACrD,IAAI,CAAC,EAAE,CAAC,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACtC,KAAK,CAAC,EAAE,CAAC,SAAS,GAAG,cAAc,CAAC,EAAE,CAAC;IACvC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,GAAG,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC,EAAE,CAAC;IACvE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC;CACxD;AuBTD,OAAA,yPAA+C,CAAC","sources":["packages/@dicebear/miniavs/src/src/options.ts","packages/@dicebear/miniavs/src/src/static-types.ts","packages/@dicebear/miniavs/src/src/components/head.ts","packages/@dicebear/miniavs/src/src/components/body.ts","packages/@dicebear/miniavs/src/src/components/hair.ts","packages/@dicebear/miniavs/src/src/components/mouth.ts","packages/@dicebear/miniavs/src/src/components/eyes.ts","packages/@dicebear/miniavs/src/src/components/glasses.ts","packages/@dicebear/miniavs/src/src/components/mustache.ts","packages/@dicebear/miniavs/src/src/components/blushes.ts","packages/@dicebear/miniavs/src/src/components/index.ts","packages/@dicebear/miniavs/src/src/utils/pickComponent.ts","packages/@dicebear/miniavs/src/src/utils/getComponents.ts","packages/@dicebear/miniavs/src/src/colors/skin.ts","packages/@dicebear/miniavs/src/src/colors/hair.ts","packages/@dicebear/miniavs/src/src/colors/body.ts","packages/@dicebear/miniavs/src/src/colors/index.ts","packages/@dicebear/miniavs/src/src/utils/pickColor.ts","packages/@dicebear/miniavs/src/src/utils/getColors.ts","packages/@dicebear/miniavs/src/src/hooks/onPreCreate.ts","packages/@dicebear/miniavs/src/src/hooks/onPostCreate.ts","packages/@dicebear/miniavs/src/src/meta/components.ts","packages/@dicebear/miniavs/src/src/core.ts","packages/@dicebear/miniavs/src/src/index.ts","packages/@dicebear/miniavs/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"/*!\n * Miniavs (@dicebear/miniavs)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n *\n * Design \"Miniavs - Free Avatar Creator\" by Webpixels licensed under CC BY 4.0.\n * Source: https://www.figma.com/community/file/923211396597067458\n * License: https://creativecommons.org/licenses/by/4.0/\n */\n\nimport { style } from './core';\n\nconst { create, preview, meta, schema } = style;\n\nexport { create, preview, meta, schema };\nexport type { Options } from './options';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.es.js
DELETED
|
@@ -1,373 +0,0 @@
|
|
|
1
|
-
function $parcel$interopDefault(a) {
|
|
2
|
-
return a && a.__esModule ? a.default : a;
|
|
3
|
-
}
|
|
4
|
-
function $parcel$export(e, n, v, s) {
|
|
5
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
-
}
|
|
7
|
-
var $f527d8c413bcc764$exports = {};
|
|
8
|
-
$f527d8c413bcc764$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"blushes\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"blushesProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":50},\"body\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"tShirt\",\"golf\"]},\"default\":[\"tShirt\",\"golf\"]},\"bodyColor\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"anyOf\":[{\"type\":\"string\",\"pattern\":\"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"},{\"type\":\"string\",\"enum\":[\"orange\",\"blue\",\"pink\"]}]},\"default\":[\"orange\",\"blue\",\"pink\"]},\"eyes\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"normal\",\"confident\",\"happy\"]},\"default\":[\"normal\",\"confident\",\"happy\"]},\"glasses\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"normal\"]},\"default\":[\"normal\"]},\"glassesProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":20},\"hair\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"balndess\",\"slaughter\",\"ponyTail\",\"long\",\"curly\",\"stylish\",\"elvis\",\"classic02\",\"classic01\"]},\"default\":[\"balndess\",\"slaughter\",\"ponyTail\",\"long\",\"curly\",\"stylish\",\"elvis\",\"classic02\",\"classic01\"]},\"hairColor\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"anyOf\":[{\"type\":\"string\",\"pattern\":\"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"},{\"type\":\"string\",\"enum\":[\"brown\",\"black\",\"red\"]}]},\"default\":[\"brown\",\"black\",\"red\"]},\"head\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"normal\",\"wide\",\"thin\"]},\"default\":[\"normal\",\"wide\",\"thin\"]},\"mouth\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\",\"missingTooth\"]},\"default\":[\"default\",\"missingTooth\"]},\"mustache\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"pencilThinBeard\",\"pencilThin\",\"horshoe\",\"freddy\"]},\"default\":[\"pencilThinBeard\",\"pencilThin\",\"horshoe\",\"freddy\"]},\"mustacheProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":20},\"skinColor\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"anyOf\":[{\"type\":\"string\",\"pattern\":\"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"},{\"type\":\"string\",\"enum\":[\"yellow\",\"white\",\"dark\"]}]},\"default\":[\"yellow\",\"white\",\"dark\"]}},\"additionalProperties\":false}");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var $ca98af53c4965942$exports = {};
|
|
12
|
-
|
|
13
|
-
$parcel$export($ca98af53c4965942$exports, "head", function () { return $9dd515e1923c09f8$export$5fd5031fecdacec3; });
|
|
14
|
-
$parcel$export($ca98af53c4965942$exports, "body", function () { return $81eb30aefd72722d$export$32180ef41b15b513; });
|
|
15
|
-
$parcel$export($ca98af53c4965942$exports, "hair", function () { return $45c6ed5de75d41ac$export$12c365d50e7cb3d6; });
|
|
16
|
-
$parcel$export($ca98af53c4965942$exports, "mouth", function () { return $56e98bf9b8ac0265$export$4ec1914b3efc3f9a; });
|
|
17
|
-
$parcel$export($ca98af53c4965942$exports, "eyes", function () { return $e58049af247b1b20$export$60b896fd2e3e4b2; });
|
|
18
|
-
$parcel$export($ca98af53c4965942$exports, "glasses", function () { return $1a1e704a75126336$export$98222f1ebbc36891; });
|
|
19
|
-
$parcel$export($ca98af53c4965942$exports, "mustache", function () { return $0405f86513e91ff7$export$61c0929068836343; });
|
|
20
|
-
$parcel$export($ca98af53c4965942$exports, "blushes", function () { return $ba5470916ff3732f$export$794fa1d50fd96b0e; });
|
|
21
|
-
const $9dd515e1923c09f8$export$5fd5031fecdacec3 = {
|
|
22
|
-
normal: (components, colors)=>`<path d="M45.89 36.1c0 8.5-1.26 18.86-10.89 19.82v9.95S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z" fill="${colors.skin.value}"/><path d="M35 55.92c-.48.05-.98.07-1.5.07-8.88 0-13.9-7.15-15.5-14.6v23.13S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.95Z" fill="#000" fill-opacity=".07"/><path d="M34.63 55.95c-.37.03-.74.04-1.13.04-6.53 0-10.97-3.86-13.5-8.87V48.24c0 5.38 2.61 9.75 8.28 9.75h1.35c3.34.03 4.59.04 5-2.04ZM16.7 32.17A5 5 0 0 0 18.14 42c-.48-1.98-.71-3.99-.71-5.9a46.7 46.7 0 0 1-.73-3.93Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`
|
|
23
|
-
,
|
|
24
|
-
wide: (components, colors)=>`<path d="M46.07 40.4c.47 7.5.94 15-11.07 15.56v9.91S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V45.1c-.2-1.02-.33-2.06-.41-3.12a5 5 0 0 1-.9-9.8C15.37 22.63 17.52 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29 0 1.4.09 2.86.18 4.3Z" fill="${colors.skin.value}"/><path d="M17.59 41.98c-.16-1.97-.16-3.97-.16-5.88a46.7 46.7 0 0 1-.73-3.93 5 5 0 0 0 .89 9.81ZM18 45.1v19.42S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.91c-.48.02-.98.03-1.5.03-10.79 0-14.34-4.95-15.5-10.9Z" fill="#000" fill-opacity=".07"/><path d="M34.93 55.96c-.46.02-.93.03-1.43.03-7.25 0-11.23-2.23-13.41-5.5.5 4.82 3.16 8.5 8.3 8.5h1.36c3.8.03 4.92.04 5.18-3.03Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`
|
|
25
|
-
,
|
|
26
|
-
thin: (components, colors)=>`<path d="M45.89 36.1c0 8.92-3.9 18.9-10.39 20.4l-.5-.06v9.43S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z" fill="${colors.skin.value}"/><path d="M18 42v22.52S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.43c-7.26-1.02-13.9-7.5-16.45-14.47-.18.02-.37.03-.55.03Z" fill="#000" fill-opacity=".07"/><path d="M16.7 32.17a5 5 0 0 0 1.85 9.8 17.14 17.14 0 0 1-1.12-5.87 46.7 46.7 0 0 1-.73-3.93ZM34.7 56.4c-6.75-1.1-12.9-6.87-15.7-13.3v.4c0 5.65 6.27 14.47 9.38 15.49 2.57.83 5.4.65 6.32-2.6Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const $81eb30aefd72722d$export$32180ef41b15b513 = {
|
|
31
|
-
tShirt: (components, colors)=>`<rect x="7" y="60" width="40" height="23" rx="9" fill="${colors.body.value}"/>`
|
|
32
|
-
,
|
|
33
|
-
golf: (components, colors)=>`<rect x="7" y="60" width="40" height="23" rx="9" fill="${colors.body.value}"/><path d="M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z" fill="${colors.body.value}"/><path d="M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z" fill="#000" fill-opacity=".2"/><path d="M16.5 59c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z" fill="${colors.body.value}"/>`
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const $45c6ed5de75d41ac$export$12c365d50e7cb3d6 = {
|
|
38
|
-
balndess: (components, colors)=>`<g fill="${colors.hair.value}"><rect x="14" y="26" width="9" height="2" rx="1"/><rect x="14" y="33" width="7" height="2" rx="1"/><rect x="12" y="29" width="13" height="3" rx="1.5"/></g>`
|
|
39
|
-
,
|
|
40
|
-
slaughter: (components, colors)=>`<path d="M24 25c0 .53-.1 1.04-.3 1.5A3.99 3.99 0 0 1 20 32a4 4 0 0 1-8 0c0-1.05.07-2.78.37-4.32a4 4 0 0 1 4.8-5.5A3.99 3.99 0 0 1 24 25ZM45.85 33.9a4 4 0 0 0 2.78-5.4 3.99 3.99 0 0 0-3.13-5.46c.6 3.14.48 6.61.38 9.78 0 .36-.02.72-.03 1.07Z" fill="${colors.hair.value}"/>`
|
|
41
|
-
,
|
|
42
|
-
ponyTail: (components, colors)=>`<path d="M0 10c8-8 13 3 13 3l-2 8s-2 2.5 0 10-2.5 11.5-2.5 11.5S5 45 2 43s-3.4-3.92-3-7.5c.5-4.5 2-3 2-7.5s-9-10-1-18Z" fill="${colors.hair.value}"/><path d="m13.03 13.18 5.5 2.38-3.56 8.26-5.51-2.38S8.5 19.5 10 16.5c1.5-3 3.03-3.32 3.03-3.32Z" fill="#FF6C98"/><path d="m18 41-1.32-8.82A5 5 0 0 0 18 42v8.3c-1.55-1.37-2.93-3-4.08-4.83-1.7-2.7-2.9-5.8-3.48-9.1-.6-3.28-.58-6.68.04-9.96a25.57 25.57 0 0 1 3.55-9.05 21.32 21.32 0 0 1 6.43-6.5A17.85 17.85 0 0 1 31 8c2.5 0 4.97.45 7.27 1.33 2.3.88 4.4 2.17 6.16 3.8a17.48 17.48 0 0 1 4.12 5.67c.75 1.66 1.21 3.42 1.38 5.2H50v4.29s-.33.15-1 .36v8.5s0 1.4-1.5 2.45c-.52.36-1.22.64-1.9.85.19-1.45.29-2.91.29-4.35 0-1.04.03-2.14.07-3.29.04-1.11.07-2.27.08-3.44-1.85.34-4.37.63-7.58.63C30.62 30 26 28.29 26 28.29v-1A26.13 26.13 0 0 0 24 31c-.75 1.75-.75 3.54-.75 5.05 0 1.5 0 2.73-.75 3.34-1.5 1.2-4.5 1.6-4.5 1.6Z" fill="${colors.hair.value}"/>`
|
|
43
|
-
,
|
|
44
|
-
long: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M48 25a18 18 0 0 0-36-.5V65h11V34.6a65.12 65.12 0 0 0 12.2-3.76 53.45 53.45 0 0 0 10.68-5.64c.24 2.53.15 5.16.08 7.61-.04 1.15-.08 2.25-.08 3.29 0 .4 0 .82-.02 1.23.23-.07.45-.15.64-.24 1.5-.69 1.5-1.6 1.5-1.6V25Zm-33 8a4.98 4.98 0 0 0 0 8v-8Z" fill="${colors.hair.value}"/>`
|
|
45
|
-
,
|
|
46
|
-
curly: (components, colors)=>`<g fill="${colors.hair.value}"><path d="M45.97 32.48a4 4 0 0 0 1.78-4.88 4 4 0 0 0-2.97-7.41c1.42 3.67 1.31 8.22 1.19 12.3Z"/><path d="M36.3 22.76a4.98 4.98 0 0 1-6.36.2 6.98 6.98 0 0 1-6.99 1.74c-.26.28-.56.53-.89.73a3.98 3.98 0 0 1-1.35 6.19c.2.24.3.55.3.88a1.5 1.5 0 0 1-1.53 1.5 4 4 0 0 1-7.3-3.17 3.99 3.99 0 0 1 0-5.66 4 4 0 0 1 .74-3.71 7 7 0 0 1 4.1-10.17V11a4 4 0 0 1 5.94-3.5 7 7 0 0 1 9.8-2.42 6.48 6.48 0 0 1 10.78 1.95 4 4 0 0 1 3.43 4.58 7.33 7.33 0 0 1 3.05 5.9c0 4.14-3.58 7.5-8 7.5a8.25 8.25 0 0 1-5.7-2.24Z"/></g>`
|
|
47
|
-
,
|
|
48
|
-
stylish: (components, colors)=>`<path d="M20.67 28.22v6.02c0 .76-.67 1.76-1.17 2.26-.5.5-2 1.5-2.85 1.5-.85 0-3.54-.45-4.83-2.26-1.28-1.8-.89-11.32 0-13.54.9-2.21 4.19-6.88 8.85-10.45a26.26 26.26 0 0 1 12.88-5.34C58.48 3.4 49.22 20.99 46 25.5c-5.5-2-9.5-2.5-16.72-1.53-7.21.99-8.01 1.99-8.6 4.24Z" fill="${colors.hair.value}"/>`
|
|
49
|
-
,
|
|
50
|
-
elvis: (components, colors)=>`<path d="M22 28c-.63 3 1 6.98 1 7.74 0 .77-3.93 3.03-5 3.76-1.07.73-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.25-.74-3-4.5c-.51-2.54.3-8.09.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3C54.9 7.97 56.22 21.5 53 26c-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z" fill="${colors.hair.value}"/>`
|
|
51
|
-
,
|
|
52
|
-
classic02: (components, colors)=>`<path d="M28.12 27.47C35.92 28.6 49.6 30.6 51 18 52 9 38.5-1.5 24 8c-9.1 1.35-11.39 8.28-11.9 14.26a3.99 3.99 0 0 0-.8 4.24 3.99 3.99 0 0 0 .87 4.33A4 4 0 1 0 20 32a4 4 0 0 0 3.87-5H24c.95 0 2.4.21 4.12.47Z" fill="${colors.hair.value}"/>`
|
|
53
|
-
,
|
|
54
|
-
classic01: (components, colors)=>`<path d="M29.7 26.2c5.6 1.87 13.39 4.45 21.53-3.7 4-4-14-21-28.5-11.5-11.33 1.68-10.68 8.47-10.18 13.71.1 1 .18 1.95.18 2.8 0 .52.07.92.2 1.2-.16 1.24-.2 2.48-.2 3.3a4 4 0 1 0 8 0A4 4 0 0 0 24.61 27h.12a4 4 0 0 0 3.06-1.41c.6.18 1.24.4 1.9.61Z" fill="${colors.hair.value}"/>`
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const $56e98bf9b8ac0265$export$4ec1914b3efc3f9a = {
|
|
59
|
-
default: (components, colors)=>`<path d="M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z" fill="#66253C"/><path d="M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z" fill="#B03E67"/><path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>`
|
|
60
|
-
,
|
|
61
|
-
missingTooth: (components, colors)=>`<path d="M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z" fill="#66253C"/><path d="M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z" fill="#B03E67"/><path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/><path d="M31 45.3c0-.17.13-.3.3-.3h1.4c.17 0 .3.13.3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z" fill="#B03E67"/>`
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
var ref4, ref1, ref2;
|
|
66
|
-
const $e58049af247b1b20$export$60b896fd2e3e4b2 = {
|
|
67
|
-
normal: (components, colors)=>{
|
|
68
|
-
var ref3;
|
|
69
|
-
return `<g fill="${colors.hair.value}"><rect x="30" y="36" width="3" height="4" rx="1.5"/><rect x="40" y="36" width="3" height="4" rx="1.5"/></g>${(ref4 = (ref3 = components.blushes) === null || ref3 === void 0 ? void 0 : ref3.value(components, colors)) !== null && ref4 !== void 0 ? ref4 : ''}`;
|
|
70
|
-
},
|
|
71
|
-
confident: (components, colors)=>{
|
|
72
|
-
var ref;
|
|
73
|
-
return `${(ref1 = (ref = components.blushes) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}<path d="M43 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23Z" fill="${colors.hair.value}"/><path stroke="${colors.hair.value}" stroke-linecap="round" d="M29.5 36.5h4M39.5 36.5h4"/>`;
|
|
74
|
-
},
|
|
75
|
-
happy: (components, colors)=>{
|
|
76
|
-
var ref;
|
|
77
|
-
return `${(ref2 = (ref = components.blushes) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}<path d="M30 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5Z" fill="#1B0B47"/>`;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const $1a1e704a75126336$export$98222f1ebbc36891 = {
|
|
83
|
-
normal: (components, colors)=>`<g stroke="#000" stroke-width="2"><circle cx="30.27" cy="36.27" r="4.27"/><circle cx="44.27" cy="36.27" r="4.27"/><path d="m33.99 35.11 7-.1"/></g>`
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const $0405f86513e91ff7$export$61c0929068836343 = {
|
|
88
|
-
pencilThinBeard: (components, colors)=>`<path d="M26.5 45s4.5-.5 11-2v2c-1.5.67-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.76S44 44 38 43v2c1.43.59 4.6 1.15 6.5 1.5 2.38.44 3.5-1.74 3.5-1.74ZM33.31 55.24a1 1 0 0 1 .97-1.24h3.44a1 1 0 0 1 .97 1.24l-.25 1a1 1 0 0 1-.97.76h-2.94a1 1 0 0 1-.97-.76l-.25-1Z" fill="${colors.hair.value}"/>`
|
|
89
|
-
,
|
|
90
|
-
pencilThin: (components, colors)=>`<path d="M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.33 7.5-2v-2ZM38 43c6 1 10 1.76 10 1.76s-1.12 2.18-3.5 1.74l-.32-.06c-1.92-.35-4.83-.89-6.18-1.44v-2Z" fill="${colors.hair.value}"/>`
|
|
91
|
-
,
|
|
92
|
-
horshoe: (components, colors)=>`<path d="M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z" fill="${colors.hair.value}"/>`
|
|
93
|
-
,
|
|
94
|
-
freddy: (components, colors)=>`<path d="M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z" fill="${colors.hair.value}"/>`
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
const $ba5470916ff3732f$export$794fa1d50fd96b0e = {
|
|
99
|
-
default: (components, colors)=>`<g fill="#FF859B"><rect x="24" y="39" width="5" height="3" rx="1.5"/><rect x="43" y="39" width="4" height="3" rx="1.5"/></g>`
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
function $2ae737ab5dbf1413$export$5bc6178a9a86ed74({ prng: prng , group: group , values: values = [] }) {
|
|
106
|
-
const componentCollection = $ca98af53c4965942$exports;
|
|
107
|
-
const key = prng.pick(values);
|
|
108
|
-
if (componentCollection[group][key]) return {
|
|
109
|
-
name: key,
|
|
110
|
-
value: componentCollection[group][key]
|
|
111
|
-
};
|
|
112
|
-
else return undefined;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
function $53f1ecfd4e1033df$export$4e811121b221213b({ prng: prng , options: options }) {
|
|
117
|
-
const headComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
118
|
-
prng: prng,
|
|
119
|
-
group: 'head',
|
|
120
|
-
values: options.head
|
|
121
|
-
});
|
|
122
|
-
const bodyComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
123
|
-
prng: prng,
|
|
124
|
-
group: 'body',
|
|
125
|
-
values: options.body
|
|
126
|
-
});
|
|
127
|
-
const hairComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
128
|
-
prng: prng,
|
|
129
|
-
group: 'hair',
|
|
130
|
-
values: options.hair
|
|
131
|
-
});
|
|
132
|
-
const mouthComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
133
|
-
prng: prng,
|
|
134
|
-
group: 'mouth',
|
|
135
|
-
values: options.mouth
|
|
136
|
-
});
|
|
137
|
-
const eyesComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
138
|
-
prng: prng,
|
|
139
|
-
group: 'eyes',
|
|
140
|
-
values: options.eyes
|
|
141
|
-
});
|
|
142
|
-
const glassesComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
143
|
-
prng: prng,
|
|
144
|
-
group: 'glasses',
|
|
145
|
-
values: options.glasses
|
|
146
|
-
});
|
|
147
|
-
const mustacheComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
148
|
-
prng: prng,
|
|
149
|
-
group: 'mustache',
|
|
150
|
-
values: options.mustache
|
|
151
|
-
});
|
|
152
|
-
const blushesComponent = $2ae737ab5dbf1413$export$5bc6178a9a86ed74({
|
|
153
|
-
prng: prng,
|
|
154
|
-
group: 'blushes',
|
|
155
|
-
values: options.blushes
|
|
156
|
-
});
|
|
157
|
-
return {
|
|
158
|
-
head: headComponent,
|
|
159
|
-
body: bodyComponent,
|
|
160
|
-
hair: hairComponent,
|
|
161
|
-
mouth: mouthComponent,
|
|
162
|
-
eyes: eyesComponent,
|
|
163
|
-
glasses: prng.bool(options.glassesProbability) ? glassesComponent : undefined,
|
|
164
|
-
mustache: prng.bool(options.mustacheProbability) ? mustacheComponent : undefined,
|
|
165
|
-
blushes: prng.bool(options.blushesProbability) ? blushesComponent : undefined
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
var $d18f49bce1407c67$exports = {};
|
|
171
|
-
|
|
172
|
-
$parcel$export($d18f49bce1407c67$exports, "skin", function () { return $3cd488399d2ad8ec$export$fcdfe9c56b00fbfc; });
|
|
173
|
-
$parcel$export($d18f49bce1407c67$exports, "hair", function () { return $3350dccf344b093d$export$12c365d50e7cb3d6; });
|
|
174
|
-
$parcel$export($d18f49bce1407c67$exports, "body", function () { return $5f1498c123cbc198$export$32180ef41b15b513; });
|
|
175
|
-
const $3cd488399d2ad8ec$export$fcdfe9c56b00fbfc = {
|
|
176
|
-
yellow: 'rgba(255, 203, 126, 1)',
|
|
177
|
-
white: 'rgba(245, 208, 197, 1)',
|
|
178
|
-
dark: 'rgba(131, 96, 85, 1)'
|
|
179
|
-
};
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
const $3350dccf344b093d$export$12c365d50e7cb3d6 = {
|
|
183
|
-
brown: 'rgba(71, 40, 11, 1)',
|
|
184
|
-
black: 'rgba(27, 11, 71, 1)',
|
|
185
|
-
red: 'rgba(173, 58, 32, 1)'
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
const $5f1498c123cbc198$export$32180ef41b15b513 = {
|
|
190
|
-
orange: 'rgba(224, 90, 51, 1)',
|
|
191
|
-
blue: 'rgba(54, 51, 224, 1)',
|
|
192
|
-
pink: 'rgba(255, 77, 216, 1)'
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
function $9689a5580167191b$export$c6d89e41e42fa994({ prng: prng , group: group , values: values = [] }) {
|
|
199
|
-
const colorCollection = $d18f49bce1407c67$exports;
|
|
200
|
-
if (values.length === 0) values.push('transparent');
|
|
201
|
-
const key = prng.pick(values);
|
|
202
|
-
var _key;
|
|
203
|
-
return {
|
|
204
|
-
name: key,
|
|
205
|
-
value: (_key = colorCollection[group][key]) !== null && _key !== void 0 ? _key : key
|
|
206
|
-
};
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
function $53919af374aa9d15$export$6cee60e8aa85e528({ prng: prng , options: options }) {
|
|
211
|
-
return {
|
|
212
|
-
skin: $9689a5580167191b$export$c6d89e41e42fa994({
|
|
213
|
-
prng: prng,
|
|
214
|
-
group: 'skin',
|
|
215
|
-
values: options.skinColor
|
|
216
|
-
}),
|
|
217
|
-
hair: $9689a5580167191b$export$c6d89e41e42fa994({
|
|
218
|
-
prng: prng,
|
|
219
|
-
group: 'hair',
|
|
220
|
-
values: options.hairColor
|
|
221
|
-
}),
|
|
222
|
-
body: $9689a5580167191b$export$c6d89e41e42fa994({
|
|
223
|
-
prng: prng,
|
|
224
|
-
group: 'body',
|
|
225
|
-
values: options.bodyColor
|
|
226
|
-
})
|
|
227
|
-
};
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
function $4c8893267a28bfef$export$19269755e7fb6f76({ prng: prng , options: options , preview: preview }) {
|
|
232
|
-
// Write your modifications here
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
function $bb64e6d71d9eef2a$export$2538c3cd8a13189f({ prng: prng , options: options , components: components , colors: colors , preview: preview }) {
|
|
237
|
-
// Write your modifications here
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
const $1413ec389f72250c$export$62ad7b0c781000e9 = {
|
|
242
|
-
head: {
|
|
243
|
-
width: 64,
|
|
244
|
-
height: 64
|
|
245
|
-
},
|
|
246
|
-
body: {
|
|
247
|
-
width: 64,
|
|
248
|
-
height: 64
|
|
249
|
-
},
|
|
250
|
-
hair: {
|
|
251
|
-
width: 64,
|
|
252
|
-
height: 64
|
|
253
|
-
},
|
|
254
|
-
mouth: {
|
|
255
|
-
width: 64,
|
|
256
|
-
height: 64
|
|
257
|
-
},
|
|
258
|
-
eyes: {
|
|
259
|
-
width: 64,
|
|
260
|
-
height: 64
|
|
261
|
-
},
|
|
262
|
-
glasses: {
|
|
263
|
-
width: 64,
|
|
264
|
-
height: 64
|
|
265
|
-
},
|
|
266
|
-
mustache: {
|
|
267
|
-
width: 64,
|
|
268
|
-
height: 64
|
|
269
|
-
},
|
|
270
|
-
blushes: {
|
|
271
|
-
width: 64,
|
|
272
|
-
height: 64
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
const $7d99954dced38f34$export$1d567c320f4763bc = {
|
|
278
|
-
meta: {
|
|
279
|
-
title: 'Miniavs - Free Avatar Creator',
|
|
280
|
-
creator: 'Webpixels',
|
|
281
|
-
source: 'https://www.figma.com/community/file/923211396597067458',
|
|
282
|
-
license: {
|
|
283
|
-
name: 'CC BY 4.0',
|
|
284
|
-
url: 'https://creativecommons.org/licenses/by/4.0/'
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
schema: (/*@__PURE__*/$parcel$interopDefault($f527d8c413bcc764$exports)),
|
|
288
|
-
create: ({ prng: prng , options: options })=>{
|
|
289
|
-
var ref, ref1, ref2, ref3, ref4, ref5, ref6;
|
|
290
|
-
$4c8893267a28bfef$export$19269755e7fb6f76({
|
|
291
|
-
prng: prng,
|
|
292
|
-
options: options,
|
|
293
|
-
preview: false
|
|
294
|
-
});
|
|
295
|
-
const components = $53f1ecfd4e1033df$export$4e811121b221213b({
|
|
296
|
-
prng: prng,
|
|
297
|
-
options: options
|
|
298
|
-
});
|
|
299
|
-
const colors = $53919af374aa9d15$export$6cee60e8aa85e528({
|
|
300
|
-
prng: prng,
|
|
301
|
-
options: options
|
|
302
|
-
});
|
|
303
|
-
$bb64e6d71d9eef2a$export$2538c3cd8a13189f({
|
|
304
|
-
prng: prng,
|
|
305
|
-
options: options,
|
|
306
|
-
components: components,
|
|
307
|
-
colors: colors,
|
|
308
|
-
preview: false
|
|
309
|
-
});
|
|
310
|
-
var ref7, ref8, ref9, ref10, ref11, ref12, ref13;
|
|
311
|
-
return {
|
|
312
|
-
attributes: {
|
|
313
|
-
viewBox: '0 0 64 64',
|
|
314
|
-
fill: 'none',
|
|
315
|
-
'shape-rendering': 'auto'
|
|
316
|
-
},
|
|
317
|
-
body: `${(ref7 = (ref = components.head) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref7 !== void 0 ? ref7 : ''}${(ref8 = (ref1 = components.body) === null || ref1 === void 0 ? void 0 : ref1.value(components, colors)) !== null && ref8 !== void 0 ? ref8 : ''}${(ref9 = (ref2 = components.hair) === null || ref2 === void 0 ? void 0 : ref2.value(components, colors)) !== null && ref9 !== void 0 ? ref9 : ''}<g transform="translate(1)">${(ref10 = (ref3 = components.mouth) === null || ref3 === void 0 ? void 0 : ref3.value(components, colors)) !== null && ref10 !== void 0 ? ref10 : ''}</g><g transform="translate(0 -1)">${(ref11 = (ref4 = components.eyes) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref11 !== void 0 ? ref11 : ''}</g>${(ref12 = (ref5 = components.glasses) === null || ref5 === void 0 ? void 0 : ref5.value(components, colors)) !== null && ref12 !== void 0 ? ref12 : ''}${(ref13 = (ref6 = components.mustache) === null || ref6 === void 0 ? void 0 : ref6.value(components, colors)) !== null && ref13 !== void 0 ? ref13 : ''}`
|
|
318
|
-
};
|
|
319
|
-
},
|
|
320
|
-
preview: ({ prng: prng , options: options , property: property })=>{
|
|
321
|
-
const componentGroup = property.toString();
|
|
322
|
-
const colorGroup = property.toString().replace(/Color$/, '');
|
|
323
|
-
$4c8893267a28bfef$export$19269755e7fb6f76({
|
|
324
|
-
prng: prng,
|
|
325
|
-
options: options,
|
|
326
|
-
preview: true
|
|
327
|
-
});
|
|
328
|
-
const components = $53f1ecfd4e1033df$export$4e811121b221213b({
|
|
329
|
-
prng: prng,
|
|
330
|
-
options: options
|
|
331
|
-
});
|
|
332
|
-
const colors = $53919af374aa9d15$export$6cee60e8aa85e528({
|
|
333
|
-
prng: prng,
|
|
334
|
-
options: options
|
|
335
|
-
});
|
|
336
|
-
$bb64e6d71d9eef2a$export$2538c3cd8a13189f({
|
|
337
|
-
prng: prng,
|
|
338
|
-
options: options,
|
|
339
|
-
components: components,
|
|
340
|
-
colors: colors,
|
|
341
|
-
preview: true
|
|
342
|
-
});
|
|
343
|
-
if (componentGroup in components) {
|
|
344
|
-
var ref;
|
|
345
|
-
const { width: width , height: height } = $1413ec389f72250c$export$62ad7b0c781000e9[componentGroup];
|
|
346
|
-
var ref14;
|
|
347
|
-
return {
|
|
348
|
-
attributes: {
|
|
349
|
-
viewBox: `0 0 ${width} ${height}`,
|
|
350
|
-
fill: 'none',
|
|
351
|
-
'shape-rendering': 'auto'
|
|
352
|
-
},
|
|
353
|
-
body: (ref14 = (ref = components[componentGroup]) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref14 !== void 0 ? ref14 : ''
|
|
354
|
-
};
|
|
355
|
-
}
|
|
356
|
-
if (colorGroup in colors) return {
|
|
357
|
-
attributes: {
|
|
358
|
-
viewBox: `0 0 1 1`,
|
|
359
|
-
fill: 'none',
|
|
360
|
-
'shape-rendering': 'auto'
|
|
361
|
-
},
|
|
362
|
-
body: `<rect width="1" height="1" fill="${colors[colorGroup].value}" />`
|
|
363
|
-
};
|
|
364
|
-
return undefined;
|
|
365
|
-
}
|
|
366
|
-
};
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const { create: $aaf0da5999d36301$export$185802fd694ee1f5 , preview: $aaf0da5999d36301$export$48c2d0f2f545ac27 , meta: $aaf0da5999d36301$export$6990040ee07315 , schema: $aaf0da5999d36301$export$4902baddc787debb } = $7d99954dced38f34$export$1d567c320f4763bc;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
export {$aaf0da5999d36301$export$185802fd694ee1f5 as create, $aaf0da5999d36301$export$48c2d0f2f545ac27 as preview, $aaf0da5999d36301$export$6990040ee07315 as meta, $aaf0da5999d36301$export$4902baddc787debb as schema};
|
|
373
|
-
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4rF;;;;;;;;;;;;;AIMjtF,KAAK,CAAC,yCAAI,GAAmB,CAAC;IACnC,MAAM,GAAG,UAAmC,EAAE,MAA2B,IACtE,qNAAqN,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,0eAA0e;;IACttB,IAAI,GAAG,UAAmC,EAAE,MAA2B,IACpE,mQAAmQ,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,seAAse;;IAChwB,IAAI,GAAG,UAAmC,EAAE,MAA2B,IACpE,2NAA2N,EAAE,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,gdAAgd;AACpsB,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E,KAAK,CAAC,CAAC,EAAE,MAAM;oBAC/B,IAAI,EAAE,CAAM;oBACZ,CAAiB,kBAAE,CAAM;gBAC3B,CAAC;gBACD,IAAI,GAAE,KAAqD,IAArD,GAA0B,GAA1B,UAAU,CAAC,cAAc,eAAzB,GAA0B,KAA1B,IAAI,CAAJ,CAAiC,GAAjC,IAAI,CAAJ,CAAiC,GAAjC,GAA0B,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAApD,KAAqD,cAArD,KAAqD,GAAI,CAAE;YACnE,CAAC;QACH,CAAC;QAED,EAAE,EAAE,UAAU,IAAI,MAAM,EACtB,MAAM,CAAC,CAAC;YACN,UAAU,EAAE,CAAC;gBACX,OAAO,GAAG,OAAO;gBACjB,IAAI,EAAE,CAAM;gBACZ,CAAiB,kBAAE,CAAM;YAC3B,CAAC;YACD,IAAI,GAAG,iCAAiC,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI;QACzE,CAAC;QAGH,MAAM,CAAC,SAAS;IAClB,CAAC;AACH,CAAC;;;ADxED,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/miniavs/src/index.ts","packages/@dicebear/miniavs/src/core.ts","packages/@dicebear/miniavs/src/schema.json","packages/@dicebear/miniavs/src/utils/getComponents.ts","packages/@dicebear/miniavs/src/utils/pickComponent.ts","packages/@dicebear/miniavs/src/components/index.ts","packages/@dicebear/miniavs/src/components/head.ts","packages/@dicebear/miniavs/src/components/body.ts","packages/@dicebear/miniavs/src/components/hair.ts","packages/@dicebear/miniavs/src/components/mouth.ts","packages/@dicebear/miniavs/src/components/eyes.ts","packages/@dicebear/miniavs/src/components/glasses.ts","packages/@dicebear/miniavs/src/components/mustache.ts","packages/@dicebear/miniavs/src/components/blushes.ts","packages/@dicebear/miniavs/src/utils/getColors.ts","packages/@dicebear/miniavs/src/utils/pickColor.ts","packages/@dicebear/miniavs/src/colors/index.ts","packages/@dicebear/miniavs/src/colors/skin.ts","packages/@dicebear/miniavs/src/colors/hair.ts","packages/@dicebear/miniavs/src/colors/body.ts","packages/@dicebear/miniavs/src/hooks/onPreCreate.ts","packages/@dicebear/miniavs/src/hooks/onPostCreate.ts","packages/@dicebear/miniavs/src/meta/components.ts"],"sourcesContent":["/*!\n * Miniavs (@dicebear/miniavs)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n *\n * Design \"Miniavs - Free Avatar Creator\" by Webpixels licensed under CC BY 4.0.\n * Source: https://www.figma.com/community/file/923211396597067458\n * License: https://creativecommons.org/licenses/by/4.0/\n */\n\nimport { style } from './core';\n\nconst { create, preview, meta, schema } = style;\n\nexport { create, preview, meta, schema };\nexport type { Options } from './options';\n","import type { Style, StyleSchema } from '@dicebear/core';\nimport type { Options } from './options';\n\nimport schema from './schema.json';\nimport { getComponents } from './utils/getComponents';\nimport { getColors } from './utils/getColors';\nimport { onPreCreate } from './hooks/onPreCreate';\nimport { onPostCreate } from './hooks/onPostCreate';\nimport { dimensions } from './meta/components';\n\nexport const style: Style<Options> = {\n meta: {\n title: 'Miniavs - Free Avatar Creator',\n creator: 'Webpixels',\n source: 'https://www.figma.com/community/file/923211396597067458',\n license: {\n name: 'CC BY 4.0',\n url: 'https://creativecommons.org/licenses/by/4.0/',\n },\n },\n schema: schema as StyleSchema,\n create: ({ prng, options }) => {\n onPreCreate({ prng, options, preview: false });\n\n const components = getComponents({ prng, options });\n const colors = getColors({ prng, options });\n\n onPostCreate({ prng, options, components, colors, preview: false });\n\n return {\n attributes: {\n viewBox: '0 0 64 64',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `${components.head?.value(components, colors) ?? ''}${\n components.body?.value(components, colors) ?? ''\n }${\n components.hair?.value(components, colors) ?? ''\n }<g transform=\"translate(1)\">${\n components.mouth?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 -1)\">${\n components.eyes?.value(components, colors) ?? ''\n }</g>${components.glasses?.value(components, colors) ?? ''}${\n components.mustache?.value(components, colors) ?? ''\n }`,\n };\n },\n preview: ({ prng, options, property }) => {\n const componentGroup = property.toString();\n const colorGroup = property.toString().replace(/Color$/, '');\n\n onPreCreate({ prng, options, preview: true });\n\n const components = getComponents({ prng, options });\n const colors = getColors({ prng, options });\n\n onPostCreate({ prng, options, components, colors, preview: true });\n\n if (componentGroup in components) {\n const { width, height } = dimensions[componentGroup]!;\n\n return {\n attributes: {\n viewBox: `0 0 ${width} ${height}`,\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: components[componentGroup]?.value(components, colors) ?? '',\n };\n }\n\n if (colorGroup in colors) {\n return {\n attributes: {\n viewBox: `0 0 1 1`,\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<rect width=\"1\" height=\"1\" fill=\"${colors[colorGroup].value}\" />`,\n };\n }\n\n return undefined;\n },\n};\n","{\n \"title\": \"Options\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"properties\": {\n \"blushes\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"blushesProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 50\n },\n \"body\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"tShirt\", \"golf\"] },\n \"default\": [\"tShirt\", \"golf\"]\n },\n \"bodyColor\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"pattern\": \"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"\n },\n { \"type\": \"string\", \"enum\": [\"orange\", \"blue\", \"pink\"] }\n ]\n },\n \"default\": [\"orange\", \"blue\", \"pink\"]\n },\n \"eyes\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"normal\", \"confident\", \"happy\"] },\n \"default\": [\"normal\", \"confident\", \"happy\"]\n },\n \"glasses\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"normal\"] },\n \"default\": [\"normal\"]\n },\n \"glassesProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 20\n },\n \"hair\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"balndess\",\n \"slaughter\",\n \"ponyTail\",\n \"long\",\n \"curly\",\n \"stylish\",\n \"elvis\",\n \"classic02\",\n \"classic01\"\n ]\n },\n \"default\": [\n \"balndess\",\n \"slaughter\",\n \"ponyTail\",\n \"long\",\n \"curly\",\n \"stylish\",\n \"elvis\",\n \"classic02\",\n \"classic01\"\n ]\n },\n \"hairColor\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"pattern\": \"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"\n },\n { \"type\": \"string\", \"enum\": [\"brown\", \"black\", \"red\"] }\n ]\n },\n \"default\": [\"brown\", \"black\", \"red\"]\n },\n \"head\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"normal\", \"wide\", \"thin\"] },\n \"default\": [\"normal\", \"wide\", \"thin\"]\n },\n \"mouth\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\", \"missingTooth\"] },\n \"default\": [\"default\", \"missingTooth\"]\n },\n \"mustache\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"pencilThinBeard\", \"pencilThin\", \"horshoe\", \"freddy\"]\n },\n \"default\": [\"pencilThinBeard\", \"pencilThin\", \"horshoe\", \"freddy\"]\n },\n \"mustacheProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 20\n },\n \"skinColor\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"pattern\": \"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"\n },\n { \"type\": \"string\", \"enum\": [\"yellow\", \"white\", \"dark\"] }\n ]\n },\n \"default\": [\"yellow\", \"white\", \"dark\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const headComponent = pickComponent({\n prng,\n group: 'head',\n values: options.head,\n });\n const bodyComponent = pickComponent({\n prng,\n group: 'body',\n values: options.body,\n });\n const hairComponent = pickComponent({\n prng,\n group: 'hair',\n values: options.hair,\n });\n const mouthComponent = pickComponent({\n prng,\n group: 'mouth',\n values: options.mouth,\n });\n const eyesComponent = pickComponent({\n prng,\n group: 'eyes',\n values: options.eyes,\n });\n const glassesComponent = pickComponent({\n prng,\n group: 'glasses',\n values: options.glasses,\n });\n const mustacheComponent = pickComponent({\n prng,\n group: 'mustache',\n values: options.mustache,\n });\n const blushesComponent = pickComponent({\n prng,\n group: 'blushes',\n values: options.blushes,\n });\n\n return {\n head: headComponent,\n body: bodyComponent,\n hair: hairComponent,\n mouth: mouthComponent,\n eyes: eyesComponent,\n glasses: prng.bool(options.glassesProbability)\n ? glassesComponent\n : undefined,\n mustache: prng.bool(options.mustacheProbability)\n ? mustacheComponent\n : undefined,\n blushes: prng.bool(options.blushesProbability)\n ? blushesComponent\n : undefined,\n };\n}\n","import type { Prng } from '@dicebear/core';\nimport type { ComponentGroupCollection, ComponentPick } from '../static-types';\nimport * as components from '../components';\n\ntype Props = {\n prng: Prng;\n group: string;\n values?: string[];\n};\n\nexport function pickComponent({\n prng,\n group,\n values = [],\n}: Props): ComponentPick {\n const componentCollection: ComponentGroupCollection = components;\n\n const key = prng.pick(values);\n\n if (componentCollection[group][key]) {\n return {\n name: key,\n value: componentCollection[group][key],\n };\n } else {\n return undefined;\n }\n}\n","export { head } from './head';\nexport { body } from './body';\nexport { hair } from './hair';\nexport { mouth } from './mouth';\nexport { eyes } from './eyes';\nexport { glasses } from './glasses';\nexport { mustache } from './mustache';\nexport { blushes } from './blushes';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const head: ComponentGroup = {\n normal: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M45.89 36.1c0 8.5-1.26 18.86-10.89 19.82v9.95S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z\" fill=\"${colors.skin.value}\"/><path d=\"M35 55.92c-.48.05-.98.07-1.5.07-8.88 0-13.9-7.15-15.5-14.6v23.13S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.95Z\" fill=\"#000\" fill-opacity=\".07\"/><path d=\"M34.63 55.95c-.37.03-.74.04-1.13.04-6.53 0-10.97-3.86-13.5-8.87V48.24c0 5.38 2.61 9.75 8.28 9.75h1.35c3.34.03 4.59.04 5-2.04ZM16.7 32.17A5 5 0 0 0 18.14 42c-.48-1.98-.71-3.99-.71-5.9a46.7 46.7 0 0 1-.73-3.93Z\" fill=\"#000\" fill-opacity=\".07\"/><rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>`,\n wide: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M46.07 40.4c.47 7.5.94 15-11.07 15.56v9.91S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V45.1c-.2-1.02-.33-2.06-.41-3.12a5 5 0 0 1-.9-9.8C15.37 22.63 17.52 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29 0 1.4.09 2.86.18 4.3Z\" fill=\"${colors.skin.value}\"/><path d=\"M17.59 41.98c-.16-1.97-.16-3.97-.16-5.88a46.7 46.7 0 0 1-.73-3.93 5 5 0 0 0 .89 9.81ZM18 45.1v19.42S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.91c-.48.02-.98.03-1.5.03-10.79 0-14.34-4.95-15.5-10.9Z\" fill=\"#000\" fill-opacity=\".07\"/><path d=\"M34.93 55.96c-.46.02-.93.03-1.43.03-7.25 0-11.23-2.23-13.41-5.5.5 4.82 3.16 8.5 8.3 8.5h1.36c3.8.03 4.92.04 5.18-3.03Z\" fill=\"#000\" fill-opacity=\".07\"/><rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>`,\n thin: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M45.89 36.1c0 8.92-3.9 18.9-10.39 20.4l-.5-.06v9.43S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z\" fill=\"${colors.skin.value}\"/><path d=\"M18 42v22.52S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.43c-7.26-1.02-13.9-7.5-16.45-14.47-.18.02-.37.03-.55.03Z\" fill=\"#000\" fill-opacity=\".07\"/><path d=\"M16.7 32.17a5 5 0 0 0 1.85 9.8 17.14 17.14 0 0 1-1.12-5.87 46.7 46.7 0 0 1-.73-3.93ZM34.7 56.4c-6.75-1.1-12.9-6.87-15.7-13.3v.4c0 5.65 6.27 14.47 9.38 15.49 2.57.83 5.4.65 6.32-2.6Z\" fill=\"#000\" fill-opacity=\".07\"/><rect x=\"36\" y=\"41\" width=\"3\" height=\"2\" rx=\"1\" fill=\"#000\" fill-opacity=\".07\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const body: ComponentGroup = {\n tShirt: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"${colors.body.value}\"/>`,\n golf: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<rect x=\"7\" y=\"60\" width=\"40\" height=\"23\" rx=\"9\" fill=\"${colors.body.value}\"/><path d=\"M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z\" fill=\"${colors.body.value}\"/><path d=\"M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z\" fill=\"#000\" fill-opacity=\".2\"/><path d=\"M16.5 59c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z\" fill=\"${colors.body.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const hair: ComponentGroup = {\n balndess: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill=\"${colors.hair.value}\"><rect x=\"14\" y=\"26\" width=\"9\" height=\"2\" rx=\"1\"/><rect x=\"14\" y=\"33\" width=\"7\" height=\"2\" rx=\"1\"/><rect x=\"12\" y=\"29\" width=\"13\" height=\"3\" rx=\"1.5\"/></g>`,\n slaughter: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M24 25c0 .53-.1 1.04-.3 1.5A3.99 3.99 0 0 1 20 32a4 4 0 0 1-8 0c0-1.05.07-2.78.37-4.32a4 4 0 0 1 4.8-5.5A3.99 3.99 0 0 1 24 25ZM45.85 33.9a4 4 0 0 0 2.78-5.4 3.99 3.99 0 0 0-3.13-5.46c.6 3.14.48 6.61.38 9.78 0 .36-.02.72-.03 1.07Z\" fill=\"${colors.hair.value}\"/>`,\n ponyTail: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M0 10c8-8 13 3 13 3l-2 8s-2 2.5 0 10-2.5 11.5-2.5 11.5S5 45 2 43s-3.4-3.92-3-7.5c.5-4.5 2-3 2-7.5s-9-10-1-18Z\" fill=\"${colors.hair.value}\"/><path d=\"m13.03 13.18 5.5 2.38-3.56 8.26-5.51-2.38S8.5 19.5 10 16.5c1.5-3 3.03-3.32 3.03-3.32Z\" fill=\"#FF6C98\"/><path d=\"m18 41-1.32-8.82A5 5 0 0 0 18 42v8.3c-1.55-1.37-2.93-3-4.08-4.83-1.7-2.7-2.9-5.8-3.48-9.1-.6-3.28-.58-6.68.04-9.96a25.57 25.57 0 0 1 3.55-9.05 21.32 21.32 0 0 1 6.43-6.5A17.85 17.85 0 0 1 31 8c2.5 0 4.97.45 7.27 1.33 2.3.88 4.4 2.17 6.16 3.8a17.48 17.48 0 0 1 4.12 5.67c.75 1.66 1.21 3.42 1.38 5.2H50v4.29s-.33.15-1 .36v8.5s0 1.4-1.5 2.45c-.52.36-1.22.64-1.9.85.19-1.45.29-2.91.29-4.35 0-1.04.03-2.14.07-3.29.04-1.11.07-2.27.08-3.44-1.85.34-4.37.63-7.58.63C30.62 30 26 28.29 26 28.29v-1A26.13 26.13 0 0 0 24 31c-.75 1.75-.75 3.54-.75 5.05 0 1.5 0 2.73-.75 3.34-1.5 1.2-4.5 1.6-4.5 1.6Z\" fill=\"${colors.hair.value}\"/>`,\n long: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M48 25a18 18 0 0 0-36-.5V65h11V34.6a65.12 65.12 0 0 0 12.2-3.76 53.45 53.45 0 0 0 10.68-5.64c.24 2.53.15 5.16.08 7.61-.04 1.15-.08 2.25-.08 3.29 0 .4 0 .82-.02 1.23.23-.07.45-.15.64-.24 1.5-.69 1.5-1.6 1.5-1.6V25Zm-33 8a4.98 4.98 0 0 0 0 8v-8Z\" fill=\"${colors.hair.value}\"/>`,\n curly: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g fill=\"${colors.hair.value}\"><path d=\"M45.97 32.48a4 4 0 0 0 1.78-4.88 4 4 0 0 0-2.97-7.41c1.42 3.67 1.31 8.22 1.19 12.3Z\"/><path d=\"M36.3 22.76a4.98 4.98 0 0 1-6.36.2 6.98 6.98 0 0 1-6.99 1.74c-.26.28-.56.53-.89.73a3.98 3.98 0 0 1-1.35 6.19c.2.24.3.55.3.88a1.5 1.5 0 0 1-1.53 1.5 4 4 0 0 1-7.3-3.17 3.99 3.99 0 0 1 0-5.66 4 4 0 0 1 .74-3.71 7 7 0 0 1 4.1-10.17V11a4 4 0 0 1 5.94-3.5 7 7 0 0 1 9.8-2.42 6.48 6.48 0 0 1 10.78 1.95 4 4 0 0 1 3.43 4.58 7.33 7.33 0 0 1 3.05 5.9c0 4.14-3.58 7.5-8 7.5a8.25 8.25 0 0 1-5.7-2.24Z\"/></g>`,\n stylish: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M20.67 28.22v6.02c0 .76-.67 1.76-1.17 2.26-.5.5-2 1.5-2.85 1.5-.85 0-3.54-.45-4.83-2.26-1.28-1.8-.89-11.32 0-13.54.9-2.21 4.19-6.88 8.85-10.45a26.26 26.26 0 0 1 12.88-5.34C58.48 3.4 49.22 20.99 46 25.5c-5.5-2-9.5-2.5-16.72-1.53-7.21.99-8.01 1.99-8.6 4.24Z\" fill=\"${colors.hair.value}\"/>`,\n elvis: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M22 28c-.63 3 1 6.98 1 7.74 0 .77-3.93 3.03-5 3.76-1.07.73-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.25-.74-3-4.5c-.51-2.54.3-8.09.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3C54.9 7.97 56.22 21.5 53 26c-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z\" fill=\"${colors.hair.value}\"/>`,\n classic02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M28.12 27.47C35.92 28.6 49.6 30.6 51 18 52 9 38.5-1.5 24 8c-9.1 1.35-11.39 8.28-11.9 14.26a3.99 3.99 0 0 0-.8 4.24 3.99 3.99 0 0 0 .87 4.33A4 4 0 1 0 20 32a4 4 0 0 0 3.87-5H24c.95 0 2.4.21 4.12.47Z\" fill=\"${colors.hair.value}\"/>`,\n classic01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M29.7 26.2c5.6 1.87 13.39 4.45 21.53-3.7 4-4-14-21-28.5-11.5-11.33 1.68-10.68 8.47-10.18 13.71.1 1 .18 1.95.18 2.8 0 .52.07.92.2 1.2-.16 1.24-.2 2.48-.2 3.3a4 4 0 1 0 8 0A4 4 0 0 0 24.61 27h.12a4 4 0 0 0 3.06-1.41c.6.18 1.24.4 1.9.61Z\" fill=\"${colors.hair.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mouth: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/><path d=\"M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z\" fill=\"#B03E67\"/><path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/>`,\n missingTooth: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z\" fill=\"#66253C\"/><path d=\"M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z\" fill=\"#B03E67\"/><path d=\"M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z\" fill=\"#fff\"/><path d=\"M31 45.3c0-.17.13-.3.3-.3h1.4c.17 0 .3.13.3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z\" fill=\"#B03E67\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyes: ComponentGroup = {\n normal: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g fill=\"${\n colors.hair.value\n }\"><rect x=\"30\" y=\"36\" width=\"3\" height=\"4\" rx=\"1.5\"/><rect x=\"40\" y=\"36\" width=\"3\" height=\"4\" rx=\"1.5\"/></g>${\n components.blushes?.value(components, colors) ?? ''\n }`,\n confident: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `${\n components.blushes?.value(components, colors) ?? ''\n }<path d=\"M43 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23Z\" fill=\"${\n colors.hair.value\n }\"/><path stroke=\"${\n colors.hair.value\n }\" stroke-linecap=\"round\" d=\"M29.5 36.5h4M39.5 36.5h4\"/>`,\n happy: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${\n components.blushes?.value(components, colors) ?? ''\n }<path d=\"M30 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5Z\" fill=\"#1B0B47\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const glasses: ComponentGroup = {\n normal: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g stroke=\"#000\" stroke-width=\"2\"><circle cx=\"30.27\" cy=\"36.27\" r=\"4.27\"/><circle cx=\"44.27\" cy=\"36.27\" r=\"4.27\"/><path d=\"m33.99 35.11 7-.1\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mustache: ComponentGroup = {\n pencilThinBeard: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M26.5 45s4.5-.5 11-2v2c-1.5.67-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.76S44 44 38 43v2c1.43.59 4.6 1.15 6.5 1.5 2.38.44 3.5-1.74 3.5-1.74ZM33.31 55.24a1 1 0 0 1 .97-1.24h3.44a1 1 0 0 1 .97 1.24l-.25 1a1 1 0 0 1-.97.76h-2.94a1 1 0 0 1-.97-.76l-.25-1Z\" fill=\"${colors.hair.value}\"/>`,\n pencilThin: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.33 7.5-2v-2ZM38 43c6 1 10 1.76 10 1.76s-1.12 2.18-3.5 1.74l-.32-.06c-1.92-.35-4.83-.89-6.18-1.44v-2Z\" fill=\"${colors.hair.value}\"/>`,\n horshoe: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z\" fill=\"${colors.hair.value}\"/>`,\n freddy: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z\" fill=\"${colors.hair.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const blushes: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g fill=\"#FF859B\"><rect x=\"24\" y=\"39\" width=\"5\" height=\"3\" rx=\"1.5\"/><rect x=\"43\" y=\"39\" width=\"4\" height=\"3\" rx=\"1.5\"/></g>`,\n};\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ColorPickCollection } from '../static-types';\nimport { pickColor } from './pickColor';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getColors({ prng, options }: Props): ColorPickCollection {\n return {\n skin: pickColor({\n prng,\n group: 'skin',\n values: options.skinColor,\n }),\n hair: pickColor({\n prng,\n group: 'hair',\n values: options.hairColor,\n }),\n body: pickColor({\n prng,\n group: 'body',\n values: options.bodyColor,\n }),\n };\n}\n","import type { Prng } from '@dicebear/core';\nimport type { ColorGroupCollection, ColorPick } from '../static-types';\nimport * as colors from '../colors';\n\ntype Props = {\n prng: Prng;\n group: string;\n values?: string[];\n};\n\nexport function pickColor({ prng, group, values = [] }: Props): ColorPick {\n const colorCollection: ColorGroupCollection = colors;\n\n if (values.length === 0) {\n values.push('transparent');\n }\n\n const key = prng.pick(values);\n\n return {\n name: key,\n value: colorCollection[group][key] ?? key,\n };\n}\n","export { skin } from './skin';\nexport { hair } from './hair';\nexport { body } from './body';\n","import type { ColorGroup } from '../static-types';\n\nexport const skin: ColorGroup = {\n yellow: 'rgba(255, 203, 126, 1)',\n white: 'rgba(245, 208, 197, 1)',\n dark: 'rgba(131, 96, 85, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const hair: ColorGroup = {\n brown: 'rgba(71, 40, 11, 1)',\n black: 'rgba(27, 11, 71, 1)',\n red: 'rgba(173, 58, 32, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const body: ColorGroup = {\n orange: 'rgba(224, 90, 51, 1)',\n blue: 'rgba(54, 51, 224, 1)',\n pink: 'rgba(255, 77, 216, 1)',\n};\n","import { Prng, StyleOptions } from '@dicebear/core';\n\nimport { Options } from '../options';\n\ntype Props = { prng: Prng; options: StyleOptions<Options>; preview: boolean };\n\nexport function onPreCreate({ prng, options, preview }: Props) {\n // Write your modifications here\n}\n","import { Prng, StyleOptions } from '@dicebear/core';\n\nimport { Options } from '../options';\nimport { ColorPickCollection, ComponentPickCollection } from '../static-types';\n\ntype Props = {\n prng: Prng;\n options: StyleOptions<Options>;\n components: ComponentPickCollection;\n colors: ColorPickCollection;\n preview: boolean;\n};\n\nexport function onPostCreate({\n prng,\n options,\n components,\n colors,\n preview,\n}: Props) {\n // Write your modifications here\n}\n","export const dimensions: Record<string, { width: number; height: number }> = {\n head: {\n width: 64,\n height: 64,\n },\n body: {\n width: 64,\n height: 64,\n },\n hair: {\n width: 64,\n height: 64,\n },\n mouth: {\n width: 64,\n height: 64,\n },\n eyes: {\n width: 64,\n height: 64,\n },\n glasses: {\n width: 64,\n height: 64,\n },\n mustache: {\n width: 64,\n height: 64,\n },\n blushes: {\n width: 64,\n height: 64,\n },\n};\n"],"names":[],"version":3,"file":"index.es.js.map"}
|