@dicebear/micah 4.10.2 → 4.10.4
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/dist/index.d.ts +1 -1
- package/dist/index.es.js +166 -109
- package/dist/index.js +166 -109
- package/dist/index.umd.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7;
|
|
12
12
|
export { create, meta, schema };
|
|
13
13
|
export { Options } from './options';
|
|
14
|
-
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
|
|
15
14
|
/** @deprecated will be removed in Version 5.0 */
|
|
15
|
+
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
|
|
16
16
|
export default _default;
|
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { utils } from '@dicebear/avatars';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
var schema$1 = {
|
|
4
4
|
"title": "Options",
|
|
5
5
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
6
|
"properties": {
|
|
@@ -276,104 +276,168 @@ const schema$1 = {
|
|
|
276
276
|
"additionalProperties": false
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
|
|
280
|
-
'standard': (components, colors)
|
|
279
|
+
var base$1 = {
|
|
280
|
+
'standard': function standard(components, colors) {
|
|
281
281
|
var _components$facialHai, _components$facialHai2;
|
|
282
282
|
|
|
283
283
|
return "\n<path d=\"M154 319.5c-14.4-20-25.667-58.666-27-78L58.5 212 30 319.5h124Z\" fill=\"".concat(colors.base.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n<mask id=\"baseStandard-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"30\" y=\"212\" width=\"124\" height=\"118\">\n<path d=\"M154 329.5c-14.4-20-25.667-68.666-27-88L58.5 212 30 329.5h124Z\" fill=\"").concat(colors.base.value, "\"/>\n</mask>\n<g mask=\"url(#baseStandard-a)\">\n<ellipse cx=\"124\" cy=\"210\" rx=\"59\" ry=\"54\" fill=\"#000\" style=\"mix-blend-mode:multiply\"/>\n</g>\n<path d=\"m181.939 151.374.002.009.093.389.144.654c8.851 40.206-16.109 80.258-56.315 89.89-40.205 9.633-80.606-14.759-90.935-54.61l-.19-.733-16.735-69.844-.067-.289C8.512 76.334 33.544 35.757 74.048 26.053c40.504-9.704 81.206 15.123 91.161 55.501l.051.208.02.083.001.005.048.198.047.199.002.004 16.396 68.437.003.009.081.338.081.339Z\" fill=\"").concat(colors.base.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n<g>\n<g transform=\"translate(34 102.3)\">\n").concat((_components$facialHai = (_components$facialHai2 = components.facialHair) === null || _components$facialHai2 === void 0 ? void 0 : _components$facialHai2.value(components, colors)) !== null && _components$facialHai !== void 0 ? _components$facialHai : '', "\n</g>\n</g>\n");
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
286
|
|
|
287
|
-
|
|
288
|
-
'surprised': (components, colors)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
'
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
'
|
|
295
|
-
|
|
287
|
+
var mouth$1 = {
|
|
288
|
+
'surprised': function surprised(components, colors) {
|
|
289
|
+
return "\n<path d=\"M36.047 54.891c10.837-1.96 17.186-13.936 14.978-26.137S38.673 7.562 27.836 9.524C17 11.483 10.65 23.46 12.86 35.66c2.208 12.2 12.35 21.192 23.188 19.23Z\" fill=\"".concat(colors.mouth.value, "\" stroke=\"").concat(colors.mouth.value, "\" stroke-width=\"3.591\"/>\n<mask id=\"mouthSurprised-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"14\" y=\"11\" width=\"36\" height=\"43\">\n<ellipse cx=\"31.942\" cy=\"32.207\" rx=\"17.598\" ry=\"21.257\" transform=\"rotate(-10.258 31.942 32.207)\" fill=\"#171921\"/>\n</mask>\n<g mask=\"url(#mouthSurprised-a)\">\n<ellipse cx=\"35.202\" cy=\"50.219\" rx=\"20.205\" ry=\"18.305\" transform=\"rotate(-10.258 35.202 50.219)\" fill=\"#FC909F\"/>\n</g>\n");
|
|
290
|
+
},
|
|
291
|
+
'laughing': function laughing(components, colors) {
|
|
292
|
+
return "\n<path d=\"M62.807 25.177a34 34 0 0 0 1.113-11.846c-.17-2.068-2.284-3.22-4.075-2.513-4.229 1.666-18.218 6.965-28.082 8.322-10.823 1.49-27.213-.319-31.957-.908-1.93-.24-3.649 1.418-3.316 3.433a34 34 0 0 0 66.317 3.512Z\" fill=\"".concat(colors.mouth.value, "\" stroke=\"").concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n<mask id=\"mouthLaughing-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"-2\" y=\"12\" width=\"65\" height=\"37\">\n<path d=\"M61.793 12.193A32.001 32.001 0 0 1-1.723 20.05l63.516-7.858Z\" fill=\"#171921\"/>\n</mask>\n<g mask=\"url(#mouthLaughing-a)\">\n<circle cx=\"34.522\" cy=\"52.315\" r=\"21.5\" transform=\"rotate(-7.053 34.522 52.315)\" fill=\"#FC909F\"/>\n</g>\n");
|
|
293
|
+
},
|
|
294
|
+
'nervous': function nervous(components, colors) {
|
|
295
|
+
return "\n<rect x=\"-6.752\" y=\"17.471\" width=\"70\" height=\"24\" rx=\"4\" transform=\"rotate(-4 -6.752 17.47)\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M56.821 13.025-.496 17.033l1.84 7.005a6 6 0 0 0 6.222 4.461 6 6 0 0 0-5.54 5.283l-.848 7.193 57.317-4.008-1.84-7.005a6 6 0 0 0-6.221-4.46 6 6 0 0 0 5.54-5.284l.847-7.193Z\" fill=\"#fff\"/>\n<path d=\"m66.42 31.704-1.02-14.57c-.257-3.686-3.737-6.254-7.32-5.485-6.945 1.49-20.222 4.134-29.818 4.805-9.595.671-23.111-.099-30.195-.609-3.656-.263-6.744 2.765-6.486 6.451l1.018 14.57c.258 3.686 3.737 6.254 7.322 5.485 6.944-1.49 20.221-4.134 29.816-4.805 9.596-.671 23.112.099 30.196.608 3.656.264 6.744-2.764 6.486-6.45Z\" stroke=\"").concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n");
|
|
296
|
+
},
|
|
297
|
+
'smile': function smile(components, colors) {
|
|
298
|
+
return "\n<path d=\"M-.5 17.5c2.5 17 31 25 57 5.5\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n");
|
|
299
|
+
},
|
|
300
|
+
'sad': function sad(components, colors) {
|
|
301
|
+
return "\n<path d=\"M13 46c1.715-7.957 8.07-24.767 19.77-28.348 11.7-3.58 17.695 8.455 19.23 14.92\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n");
|
|
302
|
+
},
|
|
303
|
+
'pucker': function pucker(components, colors) {
|
|
304
|
+
return "\n<path d=\"M26 16.697c4.167-2.334 21-5.3 21 1.5 0 8.5-11.5 8-11.5 8s13.045-3.162 10.5 6c-2.5 9-9.5 5.5-11.5 4.5\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n");
|
|
305
|
+
},
|
|
306
|
+
'frown': function frown(components, colors) {
|
|
307
|
+
return "\n<path d=\"M-5 41c3.21-7.957 15.107-24.767 37.007-28.348 21.9-3.58 33.12 8.455 35.993 14.92\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n");
|
|
308
|
+
},
|
|
309
|
+
'smirk': function smirk(components, colors) {
|
|
310
|
+
return "\n<path d=\"M10 24.165c4.941 6.447 12.428 13.589 23.977 11.96 11.549-1.629 16.687-9.595 15.172-16.047\" stroke=\"".concat(colors.mouth.value, "\" stroke-width=\"4\"/>\n");
|
|
311
|
+
}
|
|
296
312
|
};
|
|
297
313
|
|
|
298
|
-
|
|
299
|
-
'up': (components, colors)
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
'
|
|
314
|
+
var eyebrows = {
|
|
315
|
+
'up': function up(components, colors) {
|
|
316
|
+
return "\n<g stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\">\n<path d=\"M99 10.214c5.667-2.666 19-5.1 27 6.5M23.58 35.521c2.07-5.91 9.681-17.125 23.562-14.699\"/>\n</g>\n");
|
|
317
|
+
},
|
|
318
|
+
'down': function down(components, colors) {
|
|
319
|
+
return "\n<g stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\">\n<path d=\"M27 26.5c6.167 2.5 21.1 3 31.5-15M94 4c5.167 5.333 18.1 12.8 28.5 0\"/>\n</g>\n");
|
|
320
|
+
},
|
|
321
|
+
'eyelashesUp': function eyelashesUp(components, colors) {
|
|
322
|
+
return "\n<g stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\">\n<path d=\"M99 10.214c5.667-2.666 19-5.1 27 6.5M23.58 35.521c2.07-5.91 9.681-17.125 23.562-14.699M26.074 29.458l-6.148-5.427M122.961 11.157l6.148-5.427M32.523 23.814l-4.046-7.132M115.512 7.513l4.047-7.132M40.6 20.2l-2.202-7.9M106.436 6.9l2.201-7.9\"/>\n</g>\n");
|
|
323
|
+
},
|
|
324
|
+
'eyelashesDown': function eyelashesDown(components, colors) {
|
|
325
|
+
return "\n<g stroke=\"".concat(colors.eyebrow.value, "\" stroke-width=\"4\" stroke-linecap=\"round\">\n<path d=\"M27 26.5c6.167 2.5 21.1 3 31.5-15M94 4c5.167 5.333 18.1 12.8 28.5 0M37.148 26.458 31 21.03M116.219 9.444l1.785-8.005M45.597 22.814l-4.046-7.132M108.142 9.018 109.08.87M52.674 17.2l-2.201-7.9M99.993 8.031l-.776-8.164\"/>\n</g>\n");
|
|
326
|
+
}
|
|
303
327
|
};
|
|
304
328
|
|
|
305
|
-
|
|
306
|
-
'fonze': (components, colors)
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
'
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
'
|
|
313
|
-
|
|
329
|
+
var hair$1 = {
|
|
330
|
+
'fonze': function fonze(components, colors) {
|
|
331
|
+
return "\n<path d=\"M210.178 49.397c-1.264 6.057-4.603 11.325-9.428 15.902 9.392 34.064 9.604 53.868 4.384 57.648l-14.796-49.986C158.389 91.7 98.645 94.896 83.678 94.896a57.652 57.652 0 0 0-4.429.675C64.603 104.563 76.656 147.688 91 166l-11 2c-5.14-24.966-17.413-22.916-26.612-21.38l-.317.053c2.194 13.631 6.723 27.733 10.445 39.319a691.626 691.626 0 0 1 2.662 8.404c-.784.105-1.474.297-2.116.475-5.503 1.527-7.413 2.058-33.384-61.975-6.467-15.944-6.026-30.153-.968-42.611-4.78-4.806-14.37-7.15-19.71-7.785 10.44-6.12 20.582-4.87 25.544-3.1a68.676 68.676 0 0 1 1.555-2.218c-.97-4.412-7.964-9.46-12.11-11.819 8.56-4.31 18.62-2.035 22.992-.21C67.63 47.136 97.025 35.053 122 28.998 170.815 17.165 189.5.502 189.5.502 210.178 9 215.117 25.718 210.178 49.397Z\" fill=\"".concat(colors.hair.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n");
|
|
332
|
+
},
|
|
333
|
+
'mrT': function mrT(components, colors) {
|
|
334
|
+
return "\n<g fill=\"".concat(colors.hair.value, "\">\n<path opacity=\".1\" d=\"M187.986 77.176c-8-6.4-21.833-7-27.5-6.5l-8-26.5c13.6 3.2 32 24 35.5 33Z\"/>\n<path d=\"M85.792 11.764S91.53 7.802 115.746 1.7c24.217-6.101 33.046-3.718 33.046-3.718l11.789 72.832s-8.039-.173-28.033 4.194c-19.993 4.366-29.562 9.666-29.562 9.666L85.792 11.764Z\"/>\n<path d=\"M48.986 86.676c-6.8-41.6 23.333-68.167 37-75.5l16.999 73.5c-19.2-39.6-45.333-15.167-54 2Z\"/>\n<path opacity=\".1\" d=\"M67.486 130.675c-7.2-27.2 22-41.834 35.499-46-7-16.334-23-31-42.5-13-18 30.5-11 54.001-5.5 72l12.5-13Z\"/>\n</g>\n");
|
|
335
|
+
},
|
|
336
|
+
'dougFunny': function dougFunny(components, colors) {
|
|
337
|
+
return "\n<g stroke=\"".concat(colors.hair.value, "\" stroke-width=\"4\">\n<path d=\"M140 56c14.667-.667 40.4-8.8 26-36M114 54c14.667-.667 40.4-8.8 26-36M78 65c14.667-.667 40.4-8.8 26-36\"/>\n</g>\n");
|
|
338
|
+
},
|
|
339
|
+
'mrClean': function mrClean(components, colors) {
|
|
340
|
+
return "\n<ellipse cx=\"147.854\" cy=\"58.18\" rx=\"6.858\" ry=\"18.439\" transform=\"rotate(117 147.854 58.18)\" fill=\"#FCFDFF\"/>\n";
|
|
341
|
+
},
|
|
342
|
+
'dannyPhantom': function dannyPhantom(components, colors) {
|
|
343
|
+
return "\n<path d=\"m123.788 17.489.076.008.077.002c26.669.785 47.401 11.398 62.072 24.35 14.056 12.41 22.45 26.874 25.187 36.733-4.06 2.317-11.015 4.311-19.885 5.947-9.676 1.783-21.293 3.086-33.147 4.015-23.706 1.857-48.19 2.205-59.625 1.957l-6.073-.133 4.806 3.715c2.498 1.93 5.823 3.273 9.339 4.217 3.541.952 7.419 1.535 11.131 1.867 3.824.342 7.553.422 10.641.343-10.587 8.162-24.062 14.438-37.349 19.09-15.346 5.373-30.27 8.52-39.829 9.921l-2.149.315.491 2.116c3.347 14.429 9.5 39.651 13.628 56.567 1.831 7.506 3.263 13.376 3.875 15.944 1.084 4.554 4.498 11.045 8.394 17.028 3.593 5.517 7.785 10.889 11.322 14.196L78.932 267.5h-29.56c8.337-12.713 10.097-27.403 8.397-42.983-1.84-16.864-7.762-35.004-14.003-53.167-.615-1.788-1.232-3.576-1.85-5.364-5.683-16.459-11.352-32.873-14.422-48.604-3.402-17.424-3.553-33.73 2.832-48.068 10.34-23.214 28.667-36.694 47-44.123 18.375-7.446 36.619-8.751 46.462-7.702Z\" fill=\"".concat(colors.hair.value, "\" stroke=\"#000\" stroke-width=\"4\"/>\n");
|
|
344
|
+
},
|
|
345
|
+
'full': function full(components, colors) {
|
|
346
|
+
return "\n<path d=\"M-13.4 312.857a79.154 79.154 0 0 1-.617-1.638 126.31 126.31 0 0 1-2.235-6.74c-1.757-5.812-3.867-14.099-5.275-23.977-2.817-19.777-2.796-45.806 8.397-71.118 1.809-4.092 4.07-8.295 6.52-12.851 9.468-17.602 21.765-40.463 21.765-82.449 0-30.59 14.848-56.354 36.707-74.515 21.88-18.178 50.698-28.658 78.375-28.658 15.131 0 27.296 1.733 37.074 7.64 9.717 5.87 17.368 16.047 23.051 33.581.578 1.785 2.489 2.875 4.357 2.27 11.315-3.672 28.472.034 42.954 9.488 14.418 9.413 25.616 24.156 25.616 41.924 0 15.426-2.642 25.85-5.218 36.001-3.119 12.289-6.131 24.159-4.006 43.498.709 6.449 2.151 11.023 4.166 14.815 1.982 3.731 4.481 6.619 7.114 9.664l.06.069c6.274 7.252 9.129 13.218 10.05 18.466.92 5.235-.043 9.983-1.832 14.91-.9 2.475-1.994 4.96-3.153 7.578l-.1.226c-1.122 2.532-2.296 5.184-3.351 7.975-2.183 5.771-3.886 12.207-3.717 19.835.144 6.475 1.292 10.913 3.009 14.271 1.697 3.32 3.888 5.443 5.799 7.294l.052.05c1.743 1.689 3.193 3.111 4.266 5.104.959 1.781 1.67 4.132 1.789 7.662-24.009 14.279-47.772 20.181-65.616 22.502-9.036 1.176-16.544 1.432-21.783 1.395-2.619-.019-4.669-.11-6.058-.197-.489-.03-.895-.06-1.216-.085-6.151-9.389-11.755-24.878-16.097-40.788-4.221-15.47-7.186-31.091-8.3-41.41 37.073-10.718 60.311-48.982 54.724-88.46-.007-.072-.015-.122-.015-.123a17.077 17.077 0 0 0-.13-.766 136.35 136.35 0 0 0-.373-1.954 384.883 384.883 0 0 0-1.411-6.814 486.965 486.965 0 0 0-5.117-21.377c-2.14-8.09-4.673-16.67-7.453-24.21-2.759-7.485-5.831-14.143-9.108-18.24l-.297-.37-.435-.189c-1.932-.838-3.939-1.772-6.033-2.747-9.931-4.624-21.84-10.17-37.264-10.78-18.775-.742-42.551 5.777-74.69 29.087l-2.024 1.467 1.946 1.567c15.926 12.834 19.37 29.858 18.633 44.308-.561 11.029-3.55 20.411-5.235 25.101-1.161-1.697-1.901-3.83-2.457-6.335-.385-1.731-.665-3.556-.959-5.467l-.046-.302c-.307-1.994-.634-4.075-1.11-6.084-.952-4.011-2.561-8.02-6.133-10.859-3.58-2.845-8.796-4.254-16.393-3.83l-2.227.124.465 2.182 11.358 53.313.02.089.027.088c4.058 12.862 11.016 24.01 19.913 32.812a106.12 106.12 0 0 1 1.538 2.683 129.34 129.34 0 0 1 3.76 7.323c2.815 5.949 5.66 13.252 6.209 19.216.556 6.052-.965 13.86-2.707 20.31a129.626 129.626 0 0 1-2.842 9.137c-5.032-2.405-9.527-2.226-13.379.016-4.163 2.424-7.213 7.06-9.483 12.216-4.148 9.421-6.143 21.639-7.064 29.221-24.87-5.704-44.074-11.495-57.14-15.895-6.714-2.261-11.807-4.154-15.216-5.48a190.79 190.79 0 0 1-4.398-1.77Z\" fill=\"".concat(colors.hair.value, "\" stroke=\"#000\" stroke-width=\"3.822\"/>\n");
|
|
347
|
+
},
|
|
348
|
+
'turban': function turban(components, colors) {
|
|
349
|
+
return "\n<g stroke=\"#000\" stroke-width=\"4\">\n<path d=\"M222.726 100.791c0-66.089-36.458-110.79-80.867-110.791C84.966-10 27 11.341 27 112.254c0 24.969 10.659 43.573 25.565 57.286-1.495-1.869-2.698-3.544-3.498-4.921-2.891-26.981 29.166-47.69 60.534-67.954 16.653-10.758 33.111-21.39 44.045-32.77 9.594 5.437 37.794 28.214 43.167 37.425 2.882 4.94 7.509 21.869 10.671 41.63 10.338-12.418 15.242-24.843 15.242-42.159Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M154.264 63.246C167.438 51.3 187.146 24.04 185.881 6.334\"/>\n</g>\n");
|
|
350
|
+
},
|
|
351
|
+
'pixie': function pixie(components, colors) {
|
|
352
|
+
return "\n<g stroke=\"#000\">\n<path d=\"M105.837 88.82c1.888.297 1.888.299 1.887.3v.004l-.001.007-.003.018a.813.813 0 0 0-.009.05l-.031.157a11.69 11.69 0 0 1-.125.528 20.355 20.355 0 0 1-.6 1.894c-.595 1.625-1.626 3.958-3.393 6.923-3.17 5.317-8.702 12.658-18.316 21.589 29.97.747 55.004-8.908 72.821-19.033 9.361-5.32 16.712-10.759 21.717-14.863a118.433 118.433 0 0 0 5.698-4.965 74.331 74.331 0 0 0 1.804-1.742c.039-.04.067-.07.086-.088l.019-.02.004-.004 2.282-2.374.929 3.16-1.834.538 1.834-.538.001.002.002.009.01.034.039.132.152.52.581 1.993a2171.99 2171.99 0 0 1 8.771 31.058c5.027 18.348 10.604 39.815 12.693 51.971 3.493 20.318-1.908 35.744-5.102 44.869-.621 1.774-1.159 3.31-1.531 4.597.053.045.123.1.214.165.597.423 1.656.911 3.187 1.397 3.015.959 7.319 1.745 11.921 2.188 4.594.442 9.377.532 13.338.146 1.982-.194 3.705-.502 5.075-.92 1.316-.402 2.14-.857 2.585-1.268.013-.086.031-.291-.019-.688-.098-.776-.405-1.868-.937-3.313-.793-2.157-1.969-4.798-3.344-7.885a820.46 820.46 0 0 1-1.46-3.294c-3.929-8.939-8.656-20.564-9.686-32.408-1.144-13.161 1.457-24.416 3.794-34.533l.111-.482c2.388-10.34 4.375-19.319 2.335-28.419-3.096-13.81-7.319-25.308-13.804-33.57-6.417-8.174-15.12-13.276-27.496-14.214l-1.278-.096-.395-1.22c-5.695-17.57-13.383-29.051-23.186-36.17-9.8-7.117-21.956-10.051-36.939-10.051-27.688 0-57.503 10.52-79.878 28.718-22.351 18.18-37.143 43.896-35.208 74.334 2.136 33.591-.298 59.061-5.788 77.712-5.006 17.007-12.593 28.466-21.688 35.15 1.194.609 2.784 1.383 4.771 2.269 5.027 2.24 12.591 5.198 22.674 8.027 19.334 5.425 47.945 10.38 85.711 8.887-8.325-7.151-16.723-15.828-23.374-25-7.633-10.527-13.135-21.943-13.296-32.575-.191-12.627.664-45.668.928-52.507.615-15.896 10.822-28.15 20.538-36.3 4.887-4.099 9.728-7.228 13.344-9.331a87.365 87.365 0 0 1 4.38-2.39c.53-.27.949-.474 1.239-.612l.208-.099a24.4 24.4 0 0 1 .126-.058l.09-.042.025-.011.007-.004h.003c.001-.001.001-.001.787 1.74Zm0 0 1.888.297.551-3.494-3.225 1.455.786 1.742Zm100.231 126.568c.003 0 .014.014.029.04-.024-.027-.031-.04-.029-.04Z\" fill=\"".concat(colors.hair.value, "\" stroke-width=\"3.822\"/>\n<path d=\"M191 58c.5 4.5-.3 13.5-1.5 19.5\" stroke-width=\"4\"/>\n</g>\n");
|
|
353
|
+
}
|
|
314
354
|
};
|
|
315
355
|
|
|
316
|
-
|
|
317
|
-
'eyes': (components, colors)
|
|
356
|
+
var eyes = {
|
|
357
|
+
'eyes': function eyes(components, colors) {
|
|
318
358
|
var _components$glasses$v, _components$glasses;
|
|
319
359
|
|
|
320
360
|
return "\n<g fill=\"#000\">\n<ellipse cx=\"16.53\" cy=\"29.402\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.776 16.53 29.402)\"/>\n<ellipse cx=\"80.531\" cy=\"19.402\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.276 80.531 19.402)\"/>\n</g>\n<g transform=\"translate(-40 -8)\">\n".concat((_components$glasses$v = (_components$glasses = components.glasses) === null || _components$glasses === void 0 ? void 0 : _components$glasses.value(components, colors)) !== null && _components$glasses$v !== void 0 ? _components$glasses$v : '', "\n</g>\n");
|
|
321
361
|
},
|
|
322
|
-
'round': (components, colors)
|
|
362
|
+
'round': function round(components, colors) {
|
|
323
363
|
var _components$glasses$v2, _components$glasses2;
|
|
324
364
|
|
|
325
365
|
return "\n<g fill=\"#000\">\n<ellipse cx=\"16.117\" cy=\"28.927\" rx=\"9\" ry=\"10\" transform=\"rotate(-6.776 16.117 28.927)\"/>\n<ellipse cx=\"80.149\" cy=\"18.923\" rx=\"9\" ry=\"10\" transform=\"rotate(-6.276 80.149 18.923)\"/>\n</g>\n<g transform=\"translate(-40 -8)\">\n".concat((_components$glasses$v2 = (_components$glasses2 = components.glasses) === null || _components$glasses2 === void 0 ? void 0 : _components$glasses2.value(components, colors)) !== null && _components$glasses$v2 !== void 0 ? _components$glasses$v2 : '', "\n</g>\n");
|
|
326
366
|
},
|
|
327
|
-
'eyesShadow': (components, colors)
|
|
367
|
+
'eyesShadow': function eyesShadow(components, colors) {
|
|
328
368
|
var _components$glasses$v3, _components$glasses3;
|
|
329
369
|
|
|
330
370
|
return "\n<circle cx=\"15.24\" cy=\"20.239\" r=\"12\" transform=\"rotate(-6.276 15.24 20.24)\" fill=\"".concat(colors.eyeShadow.value, "\"/>\n<ellipse cx=\"16.53\" cy=\"29.402\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.776 16.53 29.402)\" fill=\"#000\"/>\n<circle cx=\"79.019\" cy=\"11.611\" r=\"12\" transform=\"rotate(-6.276 79.02 11.61)\" fill=\"").concat(colors.eyeShadow.value, "\"/>\n<ellipse cx=\"80.531\" cy=\"19.402\" rx=\"9\" ry=\"13.5\" transform=\"rotate(-6.276 80.531 19.402)\" fill=\"#000\"/>\n<g>\n<g transform=\"translate(-40 -8)\">\n").concat((_components$glasses$v3 = (_components$glasses3 = components.glasses) === null || _components$glasses3 === void 0 ? void 0 : _components$glasses3.value(components, colors)) !== null && _components$glasses$v3 !== void 0 ? _components$glasses$v3 : '', "\n</g>\n</g>\n");
|
|
331
371
|
},
|
|
332
|
-
'smiling': (components, colors)
|
|
372
|
+
'smiling': function smiling(components, colors) {
|
|
333
373
|
var _components$glasses$v4, _components$glasses4;
|
|
334
374
|
|
|
335
375
|
return "\n<g fill=\"#000\">\n<path d=\"M5.287 34.073c.114.813 1.147.994 1.722.408 2.465-2.516 6.255-4.365 10.654-4.887 2.595-.309 5.091-.12 7.316.472.754.2 1.495-.437 1.232-1.17-1.666-4.646-6.366-7.7-11.475-7.093-5.942.706-10.186 6.095-9.48 12.036l.03.234ZM69.385 24.073c.113.813 1.146.994 1.721.409 2.443-2.486 6.192-4.312 10.542-4.829 2.565-.304 5.032-.118 7.232.464.754.2 1.495-.438 1.23-1.171-1.654-4.594-6.306-7.611-11.362-7.01-5.886.699-10.09 6.037-9.39 11.923.008.071.017.143.027.213Z\"/>\n</g>\n<g transform=\"translate(-40 -8)\">\n".concat((_components$glasses$v4 = (_components$glasses4 = components.glasses) === null || _components$glasses4 === void 0 ? void 0 : _components$glasses4.value(components, colors)) !== null && _components$glasses$v4 !== void 0 ? _components$glasses$v4 : '', "\n</g>\n");
|
|
336
376
|
}
|
|
337
377
|
};
|
|
338
378
|
|
|
339
|
-
|
|
340
|
-
'curve': (components, colors)
|
|
341
|
-
|
|
342
|
-
|
|
379
|
+
var nose = {
|
|
380
|
+
'curve': function curve(components, colors) {
|
|
381
|
+
return "\n<path d=\"M16.5 7c-.333 3.833 0 12.2 4 15 5 3.5-.5 12-10.5 10\" stroke=\"#000\" stroke-width=\"4\"/>\n";
|
|
382
|
+
},
|
|
383
|
+
'pointed': function pointed(components, colors) {
|
|
384
|
+
return "\n<path d=\"M16.5 3c0 14 7 25 7 25S20 34 10 32\" stroke=\"#000\" stroke-width=\"4\"/>\n";
|
|
385
|
+
},
|
|
386
|
+
'tound': function tound(components, colors) {
|
|
387
|
+
return "\n<path d=\"M12.307 12.34c5.446-1.24 14.377.62 12.417 10.543-1.743 8.82-11.11 9.303-13.724 6.822\" stroke=\"#000\" stroke-width=\"4\"/>\n";
|
|
388
|
+
}
|
|
343
389
|
};
|
|
344
390
|
|
|
345
|
-
|
|
346
|
-
'attached': (components, colors)
|
|
391
|
+
var ears = {
|
|
392
|
+
'attached': function attached(components, colors) {
|
|
347
393
|
var _components$earrings$, _components$earrings;
|
|
348
394
|
|
|
349
395
|
return "\n<path d=\"M30.5 6.176A23.778 23.778 0 0 0 23.08 5c-10.493 0-19 6.5-18 18.5 1.042 12.5 8.507 17 19 17 1.168 0 2.31-.102 3.42-.299 1.21-.214 2.381-.54 3.5-.966\" stroke=\"#000\" stroke-width=\"8\"/>\n<path d=\"M31.5 39.036a19.382 19.382 0 0 1-7.42 1.464c-10.493 0-17.958-4.5-19-17-1-12 7.507-18.5 18-18.5 3.138 0 6.187.606 8.92 1.73l-.5 32.306Z\" fill=\"".concat(colors.base.value, "\"/>\n<path d=\"M27.5 13.5c-4-1.833-12.8-2.8-16 8\" stroke=\"#000\" stroke-width=\"4\"/>\n<path d=\"M17 14c2.167 1.833 6.3 7.5 5.5 15.5\" stroke=\"#000\" stroke-width=\"4\"/>\n<g transform=\"translate(3 35)\">\n").concat((_components$earrings$ = (_components$earrings = components.earrings) === null || _components$earrings === void 0 ? void 0 : _components$earrings.value(components, colors)) !== null && _components$earrings$ !== void 0 ? _components$earrings$ : '', "\n</g>\n");
|
|
350
396
|
},
|
|
351
|
-
'detached': (components, colors)
|
|
397
|
+
'detached': function detached(components, colors) {
|
|
352
398
|
var _components$earrings$2, _components$earrings2;
|
|
353
399
|
|
|
354
400
|
return "\n<path d=\"M37 8.25V7.13l-.954-.585C32.312 4.254 27.772 3 23.08 3 17.44 3 12.16 4.747 8.398 8.295c-3.804 3.587-5.856 8.832-5.311 15.371.53 6.372 2.67 11.061 6.218 14.177a8.013 8.013 0 0 0-.243 3.21c.39 3.269 2.042 5.624 4.595 7.075C16.091 49.51 19.207 50 22.524 50c5.48 0 10.284-2.947 13.942-6.889l.534-.575V8.249Z\" stroke=\"#000\" stroke-width=\"4\"/>\n<path d=\"M42.972 23.984c.071-.652.108-1.314.108-1.984 0-10.217-9.507-17-20-17s-19 6.5-18 18.5c.556 6.677 2.946 11.072 6.65 13.717-.588 1.024-.845 2.227-.682 3.6.63 5.281 5.138 7.183 11.476 7.183 11.105 0 19.892-14.047 20.448-24.016Z\" fill=\"".concat(colors.base.value, "\"/>\n<path d=\"M27.5 13.5c-4-1.833-12.8-2.8-16 8\" stroke=\"#000\" stroke-width=\"4\"/>\n<path d=\"M17 14c2.167 1.833 6.3 7.5 5.5 15.5\" stroke=\"#000\" stroke-width=\"4\"/>\n<g transform=\"translate(3 42)\">\n").concat((_components$earrings$2 = (_components$earrings2 = components.earrings) === null || _components$earrings2 === void 0 ? void 0 : _components$earrings2.value(components, colors)) !== null && _components$earrings$2 !== void 0 ? _components$earrings$2 : '', "\n</g>\n");
|
|
355
401
|
}
|
|
356
402
|
};
|
|
357
403
|
|
|
358
|
-
|
|
359
|
-
'open': (components, colors)
|
|
360
|
-
|
|
361
|
-
|
|
404
|
+
var shirt$1 = {
|
|
405
|
+
'open': function open(components, colors) {
|
|
406
|
+
return "\n<path d=\"M260.366 90.863h-272.91l.104-.212C-7.895 81.395.49 64.319 11.403 49.04c6.193-8.67 13.127-16.654 20.539-22.27 7.412-5.615 15.12-8.73 22.95-8.045 15.054 1.317 28.463 9.56 41.925 17.834 1.275.784 2.551 1.569 3.829 2.348 14.485 8.827 29.359 17.023 45.719 13.436 5.534-1.213 9.264-3.81 11.611-7.164 2.314-3.307 3.146-7.15 3.29-10.663.144-3.518-.395-6.843-.955-9.26a39.89 39.89 0 0 0-.747-2.773c3.625-3.649 7.463-5.774 11.425-6.73 4.295-1.038 8.887-.738 13.718.69 9.73 2.879 20.14 10.253 30.3 19.735 18.614 17.373 35.693 41.144 45.359 54.684Z\" fill=\"".concat(colors.shirt.value, "\" stroke=\"#000\" stroke-width=\"4.274\"/>\n");
|
|
407
|
+
},
|
|
408
|
+
'crew': function crew(components, colors) {
|
|
409
|
+
return "\n<g stroke=\"#000\" stroke-width=\"4\">\n<path d=\"M260.694 91h-273.32c16.3-29.342 39.484-48.018 77.07-56.588C80.459 30.76 99.114 28.939 121 28.939c9.456 0 16.814 1.443 23.796 3.346 2.587.705 5.187 1.496 7.847 2.304 4.402 1.337 8.968 2.725 13.909 3.86l.14.032.144.012C212.961 42.297 240.62 62.785 260.694 91Z\" fill=\"".concat(colors.shirt.value, "\"/>\n<path d=\"m52.93 36.58 9.154-19.596c.218-.468.762-.691 1.249-.519 37.926 13.425 72.429 12.48 104.403 3.58.403-.113.833.036 1.079.373l13.932 19.052c.383.524.188 1.262-.416 1.5-33.607 13.196-96.668 10.953-128.916-3.066a.978.978 0 0 1-.484-1.324Z\" fill=\"").concat(colors.shirt.value, "\"/>\n<path opacity=\".75\" d=\"m52.93 36.58 9.154-19.596c.218-.468.762-.691 1.249-.519 37.926 13.425 72.429 12.48 104.403 3.58.403-.113.833.036 1.079.373l13.932 19.052c.383.524.188 1.262-.416 1.5-33.607 13.196-96.668 10.953-128.916-3.066a.978.978 0 0 1-.484-1.324Z\" fill=\"#fff\"/>\n</g>\n");
|
|
410
|
+
},
|
|
411
|
+
'collared': function collared(components, colors) {
|
|
412
|
+
return "\n<g stroke=\"#000\" stroke-width=\"4\">\n<path d=\"M126.771 67.578 128 66l-1.229 1.578 1.722 1.34 1.186-1.83v-.001l.002-.003.009-.014.041-.063.038-.058.131-.196c.15-.225.375-.558.67-.984.588-.85 1.453-2.067 2.548-3.523 2.194-2.914 5.298-6.764 8.953-10.528 3.666-3.773 7.827-7.4 12.127-9.925 4.316-2.533 8.579-3.844 12.535-3.31 42.438 5.722 73.669 24.519 93.941 52.518h-273.3c16.3-29.342 39.484-48.019 77.07-56.588 1.602-.366 3.78-.255 6.503.379 2.695.626 5.768 1.727 9.081 3.184 6.627 2.913 14.024 7.16 20.976 11.56 6.941 4.394 13.386 8.907 18.1 12.324a364.95 364.95 0 0 1 5.605 4.144c.665.502 1.182.896 1.532 1.165l.398.306.1.078.025.02.006.004h.001Z\" fill=\"".concat(colors.shirt.value, "\"/>\n<path d=\"m52.613 37.085 5.166-19.232c.21-.779 1.217-.999 1.761-.404 14.863 16.265 33.62 15.627 39.845 14.88.845-.1 1.507.824 1.11 1.577L87.338 58.859a.95.95 0 0 1-1.038.505c-3.948-.823-23.623-5.632-33.571-21.497a.991.991 0 0 1-.116-.782ZM183.195 36.981 171.615 17.5c-.393-.662-1.362-.65-1.781-.005-5.737 8.836-15.632 12.906-19.092 14.108-.622.217-.907.956-.571 1.523l13.502 22.815c.202.34.582.525.963.417 2.135-.608 9.46-3.672 18.546-18.336.196-.315.203-.72.013-1.04Z\" fill=\"").concat(colors.shirt.value, "\"/>\n<path d=\"m52.613 37.085 5.166-19.232c.21-.779 1.217-.999 1.761-.404 14.863 16.265 33.62 15.627 39.845 14.88.845-.1 1.507.824 1.11 1.577L87.338 58.859a.95.95 0 0 1-1.038.505c-3.948-.823-23.623-5.632-33.571-21.497a.991.991 0 0 1-.116-.782ZM183.195 36.981 171.615 17.5c-.393-.662-1.362-.65-1.781-.005-5.737 8.836-15.632 12.906-19.092 14.108-.622.217-.907.956-.571 1.523l13.502 22.815c.202.34.582.525.963.417 2.135-.608 9.46-3.672 18.546-18.336.196-.315.203-.72.013-1.04Z\" fill=\"#fff\" fill-opacity=\".75\"/>\n<path d=\"m109.5 54.5-9-21.5-7 15 16 6.5ZM141 53.5l9-21.5 7 15-16 6.5ZM70.5 14l-12 3 10 6.5 2-9.5ZM160 14l11 3-7 6.5-4-9.5Z\" fill=\"#000\" stroke-linejoin=\"round\"/>\n</g>\n");
|
|
413
|
+
}
|
|
362
414
|
};
|
|
363
415
|
|
|
364
|
-
|
|
365
|
-
'hoop': (components, colors)
|
|
366
|
-
|
|
416
|
+
var earrings = {
|
|
417
|
+
'hoop': function hoop(components, colors) {
|
|
418
|
+
return "\n<path d=\"M24 0c13.255 0 24 10.745 24 24S37.255 48 24 48 0 37.255 0 24c0-6.391 3.5-11.5 6.572-16.5L7.5 6\" stroke=\"".concat(colors.earring.value, "\" stroke-width=\"4\"/>\n");
|
|
419
|
+
},
|
|
420
|
+
'stud': function stud(components, colors) {
|
|
421
|
+
return "\n<circle cx=\"25\" cy=\"2\" r=\"4\" fill=\"".concat(colors.earring.value, "\"/>\n<circle cx=\"26\" cy=\"1\" r=\"1\" fill=\"#fff\"/>\n");
|
|
422
|
+
}
|
|
367
423
|
};
|
|
368
424
|
|
|
369
|
-
|
|
370
|
-
'round': (components, colors)
|
|
371
|
-
|
|
425
|
+
var glasses$1 = {
|
|
426
|
+
'round': function round(components, colors) {
|
|
427
|
+
return "\n<g stroke=\"".concat(colors.glasses.value, "\" stroke-width=\"4\">\n<circle cx=\"122.5\" cy=\"28\" r=\"26\"/>\n<circle cx=\"55.5\" cy=\"37\" r=\"26\"/>\n<path d=\"M97.5 35a8 8 0 0 0-16 0M30 39 0 44.5\"/>\n</g>\n");
|
|
428
|
+
},
|
|
429
|
+
'square': function square(components, colors) {
|
|
430
|
+
return "\n<g stroke=\"".concat(colors.glasses.value, "\" stroke-width=\"4\">\n<path d=\"M34.5 42.5 0 49.125\" stroke-linecap=\"round\"/>\n<path d=\"m35.472 18.535 38.716-5.442a6 6 0 0 1 6.777 5.107l5.567 39.61a6 6 0 0 1-5.107 6.777l-34.472 4.845a6 6 0 0 1-6.654-4.478l-9.811-39.015a6 6 0 0 1 4.984-7.404ZM145.919 3.22l-38.716 5.44a6 6 0 0 0-5.107 6.777l5.567 39.611a6 6 0 0 0 6.777 5.107l34.472-4.845a6 6 0 0 0 5.162-6.139l-1.323-40.207a6 6 0 0 0-6.832-5.744ZM83.5 37.125l22-3.5\"/>\n</g>\n");
|
|
431
|
+
}
|
|
372
432
|
};
|
|
373
433
|
|
|
374
|
-
|
|
375
|
-
'beard': (components, colors)
|
|
376
|
-
|
|
434
|
+
var facialHair$1 = {
|
|
435
|
+
'beard': function beard(components, colors) {
|
|
436
|
+
return "\n<path d=\"M146.126 49.154c9.489 39.604-14.925 79.402-54.529 88.891-23.307 5.584-46.68-.574-63.905-14.659C10.5 107.5 6.5 56 2.692 31.649c14 31.5 49.624 33.946 83.5 28.002 28.5-5.001 51.299-6.001 51.299-45.001 1.885 2.616 6.978 27.587 8.635 34.504Z\" fill=\"".concat(colors.facialHair.value, "\"/>\n");
|
|
437
|
+
},
|
|
438
|
+
'scruff': function scruff(components, colors) {
|
|
439
|
+
return "\n<g fill=\"".concat(colors.facial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ZM42 90a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM42 101a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM63 86a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM63 68a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM75 82a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM87 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM100 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\" stroke=\"#000\"/>\n<path d=\"M113 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM139 76a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM61 116a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM72 110a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM68 102a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM92 93a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM43 75a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 91a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM80 73a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 87a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM115 69a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM122 71a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM137 62a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z\" stroke=\"#000\"/>\n</g>\n");
|
|
440
|
+
}
|
|
377
441
|
};
|
|
378
442
|
|
|
379
443
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -392,9 +456,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
392
456
|
});
|
|
393
457
|
|
|
394
458
|
function pickComponent(prng, group) {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
459
|
+
var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
460
|
+
var componentCollection = components;
|
|
461
|
+
var key = prng.pick(values);
|
|
398
462
|
|
|
399
463
|
if (componentCollection[group][key]) {
|
|
400
464
|
return {
|
|
@@ -406,7 +470,7 @@ function pickComponent(prng, group) {
|
|
|
406
470
|
}
|
|
407
471
|
}
|
|
408
472
|
|
|
409
|
-
|
|
473
|
+
var base = {
|
|
410
474
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
411
475
|
'coast': 'rgba(172, 102, 81, 1)',
|
|
412
476
|
'topaz': 'rgba(119, 49, 29, 1)',
|
|
@@ -422,7 +486,7 @@ const base = {
|
|
|
422
486
|
'white': 'rgba(255, 255, 255, 1)'
|
|
423
487
|
};
|
|
424
488
|
|
|
425
|
-
|
|
489
|
+
var earring = {
|
|
426
490
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
427
491
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
428
492
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -438,7 +502,7 @@ const earring = {
|
|
|
438
502
|
'white': 'rgba(255, 255, 255, 1)'
|
|
439
503
|
};
|
|
440
504
|
|
|
441
|
-
|
|
505
|
+
var eyeShadow = {
|
|
442
506
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
443
507
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
444
508
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -454,7 +518,7 @@ const eyeShadow = {
|
|
|
454
518
|
'white': 'rgba(255, 255, 255, 1)'
|
|
455
519
|
};
|
|
456
520
|
|
|
457
|
-
|
|
521
|
+
var eyebrow = {
|
|
458
522
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
459
523
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
460
524
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -470,7 +534,7 @@ const eyebrow = {
|
|
|
470
534
|
'white': 'rgba(255, 255, 255, 1)'
|
|
471
535
|
};
|
|
472
536
|
|
|
473
|
-
|
|
537
|
+
var facialHair = {
|
|
474
538
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
475
539
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
476
540
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -486,7 +550,7 @@ const facialHair = {
|
|
|
486
550
|
'white': 'rgba(255, 255, 255, 1)'
|
|
487
551
|
};
|
|
488
552
|
|
|
489
|
-
|
|
553
|
+
var glasses = {
|
|
490
554
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
491
555
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
492
556
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -502,7 +566,7 @@ const glasses = {
|
|
|
502
566
|
'white': 'rgba(255, 255, 255, 1)'
|
|
503
567
|
};
|
|
504
568
|
|
|
505
|
-
|
|
569
|
+
var hair = {
|
|
506
570
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
507
571
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
508
572
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -518,11 +582,11 @@ const hair = {
|
|
|
518
582
|
'white': 'rgba(255, 255, 255, 1)'
|
|
519
583
|
};
|
|
520
584
|
|
|
521
|
-
|
|
585
|
+
var mouth = {
|
|
522
586
|
'black': 'rgba(0, 0, 0, 1)'
|
|
523
587
|
};
|
|
524
588
|
|
|
525
|
-
|
|
589
|
+
var shirt = {
|
|
526
590
|
'apricot': 'rgba(249, 201, 182, 1)',
|
|
527
591
|
'azure': 'rgba(210, 239, 243, 1)',
|
|
528
592
|
'black': 'rgba(0, 0, 0, 1)',
|
|
@@ -554,13 +618,13 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
554
618
|
function pickColor(prng, group, values) {
|
|
555
619
|
var _colorCollection$grou;
|
|
556
620
|
|
|
557
|
-
|
|
621
|
+
var colorCollection = colors;
|
|
558
622
|
|
|
559
623
|
if (values.length === 0) {
|
|
560
624
|
values.push('transparent');
|
|
561
625
|
}
|
|
562
626
|
|
|
563
|
-
|
|
627
|
+
var key = prng.pick(values);
|
|
564
628
|
return {
|
|
565
629
|
name: key,
|
|
566
630
|
value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
|
|
@@ -568,19 +632,18 @@ function pickColor(prng, group, values) {
|
|
|
568
632
|
}
|
|
569
633
|
|
|
570
634
|
function onPreCreate(_ref) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
options
|
|
574
|
-
} = _ref;
|
|
635
|
+
var prng = _ref.prng,
|
|
636
|
+
options = _ref.options;
|
|
575
637
|
// Prevent baseColor from being used a second time if possible.
|
|
576
638
|
options.baseColor = options.baseColor && options.baseColor.length > 0 ? [prng.pick(options.baseColor)] : [];
|
|
577
639
|
|
|
578
|
-
for (
|
|
579
|
-
var _options
|
|
640
|
+
for (var _i = 0, _arr = ['eyebrows', 'hair', 'eyes', 'nose', 'ears', 'shirt', 'earrings', 'glasses', 'facialHair']; _i < _arr.length; _i++) {
|
|
641
|
+
var _options;
|
|
580
642
|
|
|
643
|
+
var colorName = _arr[_i];
|
|
581
644
|
// @ts-ignore
|
|
582
|
-
|
|
583
|
-
|
|
645
|
+
var colorOption = (_options = options["".concat(colorName, "Color")]) !== null && _options !== void 0 ? _options : [];
|
|
646
|
+
var index = colorOption.indexOf(options.baseColor[0]);
|
|
584
647
|
|
|
585
648
|
if (colorOption.length > 1 && index > -1) {
|
|
586
649
|
colorOption.splice(index, 1);
|
|
@@ -589,12 +652,10 @@ function onPreCreate(_ref) {
|
|
|
589
652
|
}
|
|
590
653
|
|
|
591
654
|
function onPostCreate(_ref) {
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
colors
|
|
597
|
-
} = _ref;
|
|
655
|
+
_ref.prng;
|
|
656
|
+
_ref.options;
|
|
657
|
+
var components = _ref.components,
|
|
658
|
+
colors = _ref.colors;
|
|
598
659
|
|
|
599
660
|
// Ensure that the mouth remains visible. #132
|
|
600
661
|
if (components.facialHair && colors.facialHair.value === colors.mouth.value) {
|
|
@@ -602,7 +663,7 @@ function onPostCreate(_ref) {
|
|
|
602
663
|
}
|
|
603
664
|
}
|
|
604
665
|
|
|
605
|
-
|
|
666
|
+
var style = {
|
|
606
667
|
meta: {
|
|
607
668
|
title: 'Avatar Illustration System',
|
|
608
669
|
creator: 'Micah Lanier',
|
|
@@ -613,29 +674,27 @@ const style = {
|
|
|
613
674
|
}
|
|
614
675
|
},
|
|
615
676
|
schema: schema$1,
|
|
616
|
-
create: _ref
|
|
677
|
+
create: function create(_ref) {
|
|
617
678
|
var _options$baseColor, _options$earringColor, _options$eyeShadowCol, _options$eyebrowColor, _options$facialHairCo, _options$glassesColor, _options$hairColor, _options$mouthColor, _options$shirtColor, _components$base$valu, _components$base, _components$mouth$val, _components$mouth, _components$eyebrows$, _components$eyebrows, _components$hair$valu, _components$hair, _components$eyes$valu, _components$eyes, _components$nose$valu, _components$nose, _components$ears$valu, _components$ears, _components$shirt$val, _components$shirt;
|
|
618
679
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
options
|
|
622
|
-
} = _ref;
|
|
680
|
+
var prng = _ref.prng,
|
|
681
|
+
options = _ref.options;
|
|
623
682
|
onPreCreate({
|
|
624
|
-
prng,
|
|
625
|
-
options
|
|
683
|
+
prng: prng,
|
|
684
|
+
options: options
|
|
626
685
|
});
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
686
|
+
var baseComponent = pickComponent(prng, 'base', options.base);
|
|
687
|
+
var mouthComponent = pickComponent(prng, 'mouth', options.mouth);
|
|
688
|
+
var eyebrowsComponent = pickComponent(prng, 'eyebrows', options.eyebrows);
|
|
689
|
+
var hairComponent = pickComponent(prng, 'hair', options.hair);
|
|
690
|
+
var eyesComponent = pickComponent(prng, 'eyes', options.eyes);
|
|
691
|
+
var noseComponent = pickComponent(prng, 'nose', options.nose);
|
|
692
|
+
var earsComponent = pickComponent(prng, 'ears', options.ears);
|
|
693
|
+
var shirtComponent = pickComponent(prng, 'shirt', options.shirt);
|
|
694
|
+
var earringsComponent = pickComponent(prng, 'earrings', options.earrings);
|
|
695
|
+
var glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
696
|
+
var facialHairComponent = pickComponent(prng, 'facialHair', options.facialHair);
|
|
697
|
+
var components = {
|
|
639
698
|
'base': baseComponent,
|
|
640
699
|
'mouth': mouthComponent,
|
|
641
700
|
'eyebrows': eyebrowsComponent,
|
|
@@ -648,7 +707,7 @@ const style = {
|
|
|
648
707
|
'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined,
|
|
649
708
|
'facialHair': prng.bool(options.facialHairProbability) ? facialHairComponent : undefined
|
|
650
709
|
};
|
|
651
|
-
|
|
710
|
+
var colors = {
|
|
652
711
|
'base': pickColor(prng, 'base', (_options$baseColor = options.baseColor) !== null && _options$baseColor !== void 0 ? _options$baseColor : []),
|
|
653
712
|
'earring': pickColor(prng, 'earring', (_options$earringColor = options.earringColor) !== null && _options$earringColor !== void 0 ? _options$earringColor : []),
|
|
654
713
|
'eyeShadow': pickColor(prng, 'eyeShadow', (_options$eyeShadowCol = options.eyeShadowColor) !== null && _options$eyeShadowCol !== void 0 ? _options$eyeShadowCol : []),
|
|
@@ -660,10 +719,10 @@ const style = {
|
|
|
660
719
|
'shirt': pickColor(prng, 'shirt', (_options$shirtColor = options.shirtColor) !== null && _options$shirtColor !== void 0 ? _options$shirtColor : [])
|
|
661
720
|
};
|
|
662
721
|
onPostCreate({
|
|
663
|
-
prng,
|
|
664
|
-
options,
|
|
665
|
-
components,
|
|
666
|
-
colors
|
|
722
|
+
prng: prng,
|
|
723
|
+
options: options,
|
|
724
|
+
components: components,
|
|
725
|
+
colors: colors
|
|
667
726
|
});
|
|
668
727
|
return {
|
|
669
728
|
attributes: {
|
|
@@ -685,11 +744,9 @@ const style = {
|
|
|
685
744
|
* Source: https://www.figma.com/community/file/829741575478342595
|
|
686
745
|
* License: https://creativecommons.org/licenses/by/4.0/
|
|
687
746
|
*/
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
schema
|
|
692
|
-
} = style;
|
|
747
|
+
var create = style.create,
|
|
748
|
+
meta = style.meta,
|
|
749
|
+
schema = style.schema;
|
|
693
750
|
/** @deprecated will be removed in Version 5.0 */
|
|
694
751
|
|
|
695
752
|
var index = utils.style.createLegacyWrapper(style);
|