@dicebear/pixel-art-neutral 4.10.3 → 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 +187 -85
- package/dist/index.js +187 -85
- package/dist/index.umd.js +2 -2
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7;
|
|
11
11
|
export { create, meta, schema };
|
|
12
12
|
export { Options } from './options';
|
|
13
|
-
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
|
|
14
13
|
/** @deprecated will be removed in Version 5.0 */
|
|
14
|
+
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
|
|
15
15
|
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": {
|
|
@@ -115,69 +115,175 @@ const schema$1 = {
|
|
|
115
115
|
"additionalProperties": false
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
'variant13': (components, colors)
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
'
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
'
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
'
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
'
|
|
118
|
+
var eyes = {
|
|
119
|
+
'variant13': function variant13(components, colors) {
|
|
120
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
121
|
+
},
|
|
122
|
+
'variant12': function variant12(components, colors) {
|
|
123
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/>\n</g>\n";
|
|
124
|
+
},
|
|
125
|
+
'variant11': function variant11(components, colors) {
|
|
126
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
127
|
+
},
|
|
128
|
+
'variant10': function variant10(components, colors) {
|
|
129
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
130
|
+
},
|
|
131
|
+
'variant09': function variant09(components, colors) {
|
|
132
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
133
|
+
},
|
|
134
|
+
'variant08': function variant08(components, colors) {
|
|
135
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
136
|
+
},
|
|
137
|
+
'variant07': function variant07(components, colors) {
|
|
138
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
139
|
+
},
|
|
140
|
+
'variant06': function variant06(components, colors) {
|
|
141
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
142
|
+
},
|
|
143
|
+
'variant05': function variant05(components, colors) {
|
|
144
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
145
|
+
},
|
|
146
|
+
'variant04': function variant04(components, colors) {
|
|
147
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
148
|
+
},
|
|
149
|
+
'variant03': function variant03(components, colors) {
|
|
150
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
151
|
+
},
|
|
152
|
+
'variant02': function variant02(components, colors) {
|
|
153
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
154
|
+
},
|
|
155
|
+
'variant01': function variant01(components, colors) {
|
|
156
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
157
|
+
}
|
|
132
158
|
};
|
|
133
159
|
|
|
134
|
-
|
|
135
|
-
'variant13': (components, colors)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
'
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
'
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
'
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
'
|
|
160
|
+
var eyebrows = {
|
|
161
|
+
'variant13': function variant13(components, colors) {
|
|
162
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
163
|
+
},
|
|
164
|
+
'variant12': function variant12(components, colors) {
|
|
165
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
166
|
+
},
|
|
167
|
+
'variant11': function variant11(components, colors) {
|
|
168
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
169
|
+
},
|
|
170
|
+
'variant10': function variant10(components, colors) {
|
|
171
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
172
|
+
},
|
|
173
|
+
'variant09': function variant09(components, colors) {
|
|
174
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
175
|
+
},
|
|
176
|
+
'variant08': function variant08(components, colors) {
|
|
177
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
178
|
+
},
|
|
179
|
+
'variant07': function variant07(components, colors) {
|
|
180
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
181
|
+
},
|
|
182
|
+
'variant06': function variant06(components, colors) {
|
|
183
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
184
|
+
},
|
|
185
|
+
'variant05': function variant05(components, colors) {
|
|
186
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
187
|
+
},
|
|
188
|
+
'variant04': function variant04(components, colors) {
|
|
189
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
190
|
+
},
|
|
191
|
+
'variant03': function variant03(components, colors) {
|
|
192
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
193
|
+
},
|
|
194
|
+
'variant02': function variant02(components, colors) {
|
|
195
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
196
|
+
},
|
|
197
|
+
'variant01': function variant01(components, colors) {
|
|
198
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
199
|
+
}
|
|
148
200
|
};
|
|
149
201
|
|
|
150
|
-
|
|
151
|
-
'surprised03': (components, colors)
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
'
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
'
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
'
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
'
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
'
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
'
|
|
170
|
-
|
|
202
|
+
var mouth$1 = {
|
|
203
|
+
'surprised03': function surprised03(components, colors) {
|
|
204
|
+
return "\n<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
205
|
+
},
|
|
206
|
+
'surprised02': function surprised02(components, colors) {
|
|
207
|
+
return "\n<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
208
|
+
},
|
|
209
|
+
'happy09': function happy09(components, colors) {
|
|
210
|
+
return "\n<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
211
|
+
},
|
|
212
|
+
'happy08': function happy08(components, colors) {
|
|
213
|
+
return "\n<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
214
|
+
},
|
|
215
|
+
'happy07': function happy07(components, colors) {
|
|
216
|
+
return "\n<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
217
|
+
},
|
|
218
|
+
'happy06': function happy06(components, colors) {
|
|
219
|
+
return "\n<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
220
|
+
},
|
|
221
|
+
'happy05': function happy05(components, colors) {
|
|
222
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
223
|
+
},
|
|
224
|
+
'happy04': function happy04(components, colors) {
|
|
225
|
+
return "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
226
|
+
},
|
|
227
|
+
'happy03': function happy03(components, colors) {
|
|
228
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
229
|
+
},
|
|
230
|
+
'happy02': function happy02(components, colors) {
|
|
231
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n");
|
|
232
|
+
},
|
|
233
|
+
'happy01': function happy01(components, colors) {
|
|
234
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
235
|
+
},
|
|
236
|
+
'sad08': function sad08(components, colors) {
|
|
237
|
+
return "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
238
|
+
},
|
|
239
|
+
'sad07': function sad07(components, colors) {
|
|
240
|
+
return "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
241
|
+
},
|
|
242
|
+
'sad06': function sad06(components, colors) {
|
|
243
|
+
return "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
244
|
+
},
|
|
245
|
+
'sad05': function sad05(components, colors) {
|
|
246
|
+
return "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
247
|
+
},
|
|
248
|
+
'sad04': function sad04(components, colors) {
|
|
249
|
+
return "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
250
|
+
},
|
|
251
|
+
'sad03': function sad03(components, colors) {
|
|
252
|
+
return "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
253
|
+
},
|
|
254
|
+
'sad02': function sad02(components, colors) {
|
|
255
|
+
return "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
256
|
+
},
|
|
257
|
+
'sad01': function sad01(components, colors) {
|
|
258
|
+
return "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
259
|
+
},
|
|
260
|
+
'surprised01': function surprised01(components, colors) {
|
|
261
|
+
return "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n";
|
|
262
|
+
}
|
|
171
263
|
};
|
|
172
264
|
|
|
173
|
-
|
|
174
|
-
'variant07': (components, colors)
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
'
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
'
|
|
265
|
+
var glasses$1 = {
|
|
266
|
+
'variant07': function variant07(components, colors) {
|
|
267
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
268
|
+
},
|
|
269
|
+
'variant06': function variant06(components, colors) {
|
|
270
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
271
|
+
},
|
|
272
|
+
'variant05': function variant05(components, colors) {
|
|
273
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
274
|
+
},
|
|
275
|
+
'variant04': function variant04(components, colors) {
|
|
276
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
277
|
+
},
|
|
278
|
+
'variant03': function variant03(components, colors) {
|
|
279
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
280
|
+
},
|
|
281
|
+
'variant02': function variant02(components, colors) {
|
|
282
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
283
|
+
},
|
|
284
|
+
'variant01': function variant01(components, colors) {
|
|
285
|
+
return "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
286
|
+
}
|
|
181
287
|
};
|
|
182
288
|
|
|
183
289
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -189,9 +295,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
189
295
|
});
|
|
190
296
|
|
|
191
297
|
function pickComponent(prng, group) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
298
|
+
var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
299
|
+
var componentCollection = components;
|
|
300
|
+
var key = prng.pick(values);
|
|
195
301
|
|
|
196
302
|
if (componentCollection[group][key]) {
|
|
197
303
|
return {
|
|
@@ -203,7 +309,7 @@ function pickComponent(prng, group) {
|
|
|
203
309
|
}
|
|
204
310
|
}
|
|
205
311
|
|
|
206
|
-
|
|
312
|
+
var skin = {
|
|
207
313
|
'variant01': 'rgba(255, 219, 172, 1)',
|
|
208
314
|
'variant02': 'rgba(245, 207, 160, 1)',
|
|
209
315
|
'variant03': 'rgba(234, 195, 147, 1)',
|
|
@@ -214,7 +320,7 @@ const skin = {
|
|
|
214
320
|
'variant08': 'rgba(141, 85, 36, 1)'
|
|
215
321
|
};
|
|
216
322
|
|
|
217
|
-
|
|
323
|
+
var hair = {
|
|
218
324
|
'variant01': 'rgba(202, 177, 136, 1)',
|
|
219
325
|
'variant02': 'rgba(167, 137, 97, 1)',
|
|
220
326
|
'variant03': 'rgba(131, 98, 59, 1)',
|
|
@@ -227,14 +333,14 @@ const hair = {
|
|
|
227
333
|
'variant10': 'rgba(40, 21, 10, 1)'
|
|
228
334
|
};
|
|
229
335
|
|
|
230
|
-
|
|
336
|
+
var mouth = {
|
|
231
337
|
'variant01': 'rgba(210, 153, 133, 1)',
|
|
232
338
|
'variant02': 'rgba(201, 130, 118, 1)',
|
|
233
339
|
'variant03': 'rgba(227, 93, 106, 1)',
|
|
234
340
|
'variant04': 'rgba(222, 15, 13, 1)'
|
|
235
341
|
};
|
|
236
342
|
|
|
237
|
-
|
|
343
|
+
var glasses = {
|
|
238
344
|
'green01': 'rgba(95, 112, 92, 1)',
|
|
239
345
|
'blue01': 'rgba(67, 103, 125, 1)',
|
|
240
346
|
'red01': 'rgba(160, 75, 93, 1)',
|
|
@@ -254,20 +360,20 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
254
360
|
function pickColor(prng, group, values) {
|
|
255
361
|
var _colorCollection$grou;
|
|
256
362
|
|
|
257
|
-
|
|
363
|
+
var colorCollection = colors;
|
|
258
364
|
|
|
259
365
|
if (values.length === 0) {
|
|
260
366
|
values.push('transparent');
|
|
261
367
|
}
|
|
262
368
|
|
|
263
|
-
|
|
369
|
+
var key = prng.pick(values);
|
|
264
370
|
return {
|
|
265
371
|
name: key,
|
|
266
372
|
value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
|
|
267
373
|
};
|
|
268
374
|
}
|
|
269
375
|
|
|
270
|
-
|
|
376
|
+
var style = {
|
|
271
377
|
meta: {
|
|
272
378
|
title: 'Pixel Art - Neutral',
|
|
273
379
|
creator: 'Plastic Jam',
|
|
@@ -277,29 +383,27 @@ const style = {
|
|
|
277
383
|
}
|
|
278
384
|
},
|
|
279
385
|
schema: schema$1,
|
|
280
|
-
create: _ref
|
|
386
|
+
create: function create(_ref) {
|
|
281
387
|
var _options$hairColor, _options$mouthColor, _options$glassesColor, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows, _components$mouth$val, _components$mouth, _components$glasses$v, _components$glasses;
|
|
282
388
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
const glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
291
|
-
const components = {
|
|
389
|
+
var prng = _ref.prng,
|
|
390
|
+
options = _ref.options;
|
|
391
|
+
var eyesComponent = pickComponent(prng, 'eyes', options.eyes);
|
|
392
|
+
var eyebrowsComponent = pickComponent(prng, 'eyebrows', options.eyebrows);
|
|
393
|
+
var mouthComponent = pickComponent(prng, 'mouth', options.mouth);
|
|
394
|
+
var glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
395
|
+
var components = {
|
|
292
396
|
'eyes': eyesComponent,
|
|
293
397
|
'eyebrows': eyebrowsComponent,
|
|
294
398
|
'mouth': mouthComponent,
|
|
295
399
|
'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined
|
|
296
400
|
};
|
|
297
|
-
|
|
401
|
+
var colors = {
|
|
298
402
|
'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
|
|
299
403
|
'mouth': pickColor(prng, 'mouth', (_options$mouthColor = options.mouthColor) !== null && _options$mouthColor !== void 0 ? _options$mouthColor : []),
|
|
300
404
|
'glasses': pickColor(prng, 'glasses', (_options$glassesColor = options.glassesColor) !== null && _options$glassesColor !== void 0 ? _options$glassesColor : [])
|
|
301
405
|
};
|
|
302
|
-
|
|
406
|
+
var backgroundColor = typeof options.backgroundColor === 'string' ? [options.backgroundColor] : options.backgroundColor;
|
|
303
407
|
options.backgroundColor = pickColor(prng, 'skin', backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : []).value;
|
|
304
408
|
return {
|
|
305
409
|
attributes: {
|
|
@@ -320,11 +424,9 @@ const style = {
|
|
|
320
424
|
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
321
425
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
322
426
|
*/
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
schema
|
|
327
|
-
} = style;
|
|
427
|
+
var create = style.create,
|
|
428
|
+
meta = style.meta,
|
|
429
|
+
schema = style.schema;
|
|
328
430
|
/** @deprecated will be removed in Version 5.0 */
|
|
329
431
|
|
|
330
432
|
var index = utils.style.createLegacyWrapper(style);
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var avatars = require('@dicebear/avatars');
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
var schema$1 = {
|
|
8
8
|
"title": "Options",
|
|
9
9
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
10
10
|
"properties": {
|
|
@@ -119,69 +119,175 @@ const schema$1 = {
|
|
|
119
119
|
"additionalProperties": false
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
'variant13': (components, colors)
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
'
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
'
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
'
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
'
|
|
122
|
+
var eyes = {
|
|
123
|
+
'variant13': function variant13(components, colors) {
|
|
124
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
125
|
+
},
|
|
126
|
+
'variant12': function variant12(components, colors) {
|
|
127
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/>\n</g>\n";
|
|
128
|
+
},
|
|
129
|
+
'variant11': function variant11(components, colors) {
|
|
130
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
131
|
+
},
|
|
132
|
+
'variant10': function variant10(components, colors) {
|
|
133
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
134
|
+
},
|
|
135
|
+
'variant09': function variant09(components, colors) {
|
|
136
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
137
|
+
},
|
|
138
|
+
'variant08': function variant08(components, colors) {
|
|
139
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
140
|
+
},
|
|
141
|
+
'variant07': function variant07(components, colors) {
|
|
142
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/>\n<path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
143
|
+
},
|
|
144
|
+
'variant06': function variant06(components, colors) {
|
|
145
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
146
|
+
},
|
|
147
|
+
'variant05': function variant05(components, colors) {
|
|
148
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
149
|
+
},
|
|
150
|
+
'variant04': function variant04(components, colors) {
|
|
151
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/>\n</g>\n";
|
|
152
|
+
},
|
|
153
|
+
'variant03': function variant03(components, colors) {
|
|
154
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/>\n<path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/>\n<path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
155
|
+
},
|
|
156
|
+
'variant02': function variant02(components, colors) {
|
|
157
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/>\n<path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/>\n</g>\n";
|
|
158
|
+
},
|
|
159
|
+
'variant01': function variant01(components, colors) {
|
|
160
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/>\n<path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/>\n<path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/>\n</g>\n";
|
|
161
|
+
}
|
|
136
162
|
};
|
|
137
163
|
|
|
138
|
-
|
|
139
|
-
'variant13': (components, colors)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
'
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
'
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
'
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
'
|
|
164
|
+
var eyebrows = {
|
|
165
|
+
'variant13': function variant13(components, colors) {
|
|
166
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
167
|
+
},
|
|
168
|
+
'variant12': function variant12(components, colors) {
|
|
169
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
170
|
+
},
|
|
171
|
+
'variant11': function variant11(components, colors) {
|
|
172
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
173
|
+
},
|
|
174
|
+
'variant10': function variant10(components, colors) {
|
|
175
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
176
|
+
},
|
|
177
|
+
'variant09': function variant09(components, colors) {
|
|
178
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
179
|
+
},
|
|
180
|
+
'variant08': function variant08(components, colors) {
|
|
181
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
182
|
+
},
|
|
183
|
+
'variant07': function variant07(components, colors) {
|
|
184
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
185
|
+
},
|
|
186
|
+
'variant06': function variant06(components, colors) {
|
|
187
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
188
|
+
},
|
|
189
|
+
'variant05': function variant05(components, colors) {
|
|
190
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
191
|
+
},
|
|
192
|
+
'variant04': function variant04(components, colors) {
|
|
193
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
194
|
+
},
|
|
195
|
+
'variant03': function variant03(components, colors) {
|
|
196
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
197
|
+
},
|
|
198
|
+
'variant02': function variant02(components, colors) {
|
|
199
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
200
|
+
},
|
|
201
|
+
'variant01': function variant01(components, colors) {
|
|
202
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/>\n<path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/>\n</g>\n");
|
|
203
|
+
}
|
|
152
204
|
};
|
|
153
205
|
|
|
154
|
-
|
|
155
|
-
'surprised03': (components, colors)
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
'
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
'
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
'
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
'
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
'
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
'
|
|
174
|
-
|
|
206
|
+
var mouth$1 = {
|
|
207
|
+
'surprised03': function surprised03(components, colors) {
|
|
208
|
+
return "\n<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
209
|
+
},
|
|
210
|
+
'surprised02': function surprised02(components, colors) {
|
|
211
|
+
return "\n<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
212
|
+
},
|
|
213
|
+
'happy09': function happy09(components, colors) {
|
|
214
|
+
return "\n<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
215
|
+
},
|
|
216
|
+
'happy08': function happy08(components, colors) {
|
|
217
|
+
return "\n<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
218
|
+
},
|
|
219
|
+
'happy07': function happy07(components, colors) {
|
|
220
|
+
return "\n<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
221
|
+
},
|
|
222
|
+
'happy06': function happy06(components, colors) {
|
|
223
|
+
return "\n<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
224
|
+
},
|
|
225
|
+
'happy05': function happy05(components, colors) {
|
|
226
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
227
|
+
},
|
|
228
|
+
'happy04': function happy04(components, colors) {
|
|
229
|
+
return "\n<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
230
|
+
},
|
|
231
|
+
'happy03': function happy03(components, colors) {
|
|
232
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
233
|
+
},
|
|
234
|
+
'happy02': function happy02(components, colors) {
|
|
235
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>\n");
|
|
236
|
+
},
|
|
237
|
+
'happy01': function happy01(components, colors) {
|
|
238
|
+
return "\n<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n<path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
239
|
+
},
|
|
240
|
+
'sad08': function sad08(components, colors) {
|
|
241
|
+
return "\n<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
242
|
+
},
|
|
243
|
+
'sad07': function sad07(components, colors) {
|
|
244
|
+
return "\n<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
245
|
+
},
|
|
246
|
+
'sad06': function sad06(components, colors) {
|
|
247
|
+
return "\n<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
248
|
+
},
|
|
249
|
+
'sad05': function sad05(components, colors) {
|
|
250
|
+
return "\n<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
251
|
+
},
|
|
252
|
+
'sad04': function sad04(components, colors) {
|
|
253
|
+
return "\n<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
254
|
+
},
|
|
255
|
+
'sad03': function sad03(components, colors) {
|
|
256
|
+
return "\n<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
257
|
+
},
|
|
258
|
+
'sad02': function sad02(components, colors) {
|
|
259
|
+
return "\n<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
260
|
+
},
|
|
261
|
+
'sad01': function sad01(components, colors) {
|
|
262
|
+
return "\n<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>\n");
|
|
263
|
+
},
|
|
264
|
+
'surprised01': function surprised01(components, colors) {
|
|
265
|
+
return "\n<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>\n";
|
|
266
|
+
}
|
|
175
267
|
};
|
|
176
268
|
|
|
177
|
-
|
|
178
|
-
'variant07': (components, colors)
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
'
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
'
|
|
269
|
+
var glasses$1 = {
|
|
270
|
+
'variant07': function variant07(components, colors) {
|
|
271
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
272
|
+
},
|
|
273
|
+
'variant06': function variant06(components, colors) {
|
|
274
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
275
|
+
},
|
|
276
|
+
'variant05': function variant05(components, colors) {
|
|
277
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/>\n<path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
278
|
+
},
|
|
279
|
+
'variant04': function variant04(components, colors) {
|
|
280
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/>\n<path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
281
|
+
},
|
|
282
|
+
'variant03': function variant03(components, colors) {
|
|
283
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/>\n<path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
284
|
+
},
|
|
285
|
+
'variant02': function variant02(components, colors) {
|
|
286
|
+
return "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\">\n<path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/>\n<path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/>\n<path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n</g>\n");
|
|
287
|
+
},
|
|
288
|
+
'variant01': function variant01(components, colors) {
|
|
289
|
+
return "\n<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>\n");
|
|
290
|
+
}
|
|
185
291
|
};
|
|
186
292
|
|
|
187
293
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -193,9 +299,9 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
193
299
|
});
|
|
194
300
|
|
|
195
301
|
function pickComponent(prng, group) {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
302
|
+
var values = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
303
|
+
var componentCollection = components;
|
|
304
|
+
var key = prng.pick(values);
|
|
199
305
|
|
|
200
306
|
if (componentCollection[group][key]) {
|
|
201
307
|
return {
|
|
@@ -207,7 +313,7 @@ function pickComponent(prng, group) {
|
|
|
207
313
|
}
|
|
208
314
|
}
|
|
209
315
|
|
|
210
|
-
|
|
316
|
+
var skin = {
|
|
211
317
|
'variant01': 'rgba(255, 219, 172, 1)',
|
|
212
318
|
'variant02': 'rgba(245, 207, 160, 1)',
|
|
213
319
|
'variant03': 'rgba(234, 195, 147, 1)',
|
|
@@ -218,7 +324,7 @@ const skin = {
|
|
|
218
324
|
'variant08': 'rgba(141, 85, 36, 1)'
|
|
219
325
|
};
|
|
220
326
|
|
|
221
|
-
|
|
327
|
+
var hair = {
|
|
222
328
|
'variant01': 'rgba(202, 177, 136, 1)',
|
|
223
329
|
'variant02': 'rgba(167, 137, 97, 1)',
|
|
224
330
|
'variant03': 'rgba(131, 98, 59, 1)',
|
|
@@ -231,14 +337,14 @@ const hair = {
|
|
|
231
337
|
'variant10': 'rgba(40, 21, 10, 1)'
|
|
232
338
|
};
|
|
233
339
|
|
|
234
|
-
|
|
340
|
+
var mouth = {
|
|
235
341
|
'variant01': 'rgba(210, 153, 133, 1)',
|
|
236
342
|
'variant02': 'rgba(201, 130, 118, 1)',
|
|
237
343
|
'variant03': 'rgba(227, 93, 106, 1)',
|
|
238
344
|
'variant04': 'rgba(222, 15, 13, 1)'
|
|
239
345
|
};
|
|
240
346
|
|
|
241
|
-
|
|
347
|
+
var glasses = {
|
|
242
348
|
'green01': 'rgba(95, 112, 92, 1)',
|
|
243
349
|
'blue01': 'rgba(67, 103, 125, 1)',
|
|
244
350
|
'red01': 'rgba(160, 75, 93, 1)',
|
|
@@ -258,20 +364,20 @@ var colors = /*#__PURE__*/Object.freeze({
|
|
|
258
364
|
function pickColor(prng, group, values) {
|
|
259
365
|
var _colorCollection$grou;
|
|
260
366
|
|
|
261
|
-
|
|
367
|
+
var colorCollection = colors;
|
|
262
368
|
|
|
263
369
|
if (values.length === 0) {
|
|
264
370
|
values.push('transparent');
|
|
265
371
|
}
|
|
266
372
|
|
|
267
|
-
|
|
373
|
+
var key = prng.pick(values);
|
|
268
374
|
return {
|
|
269
375
|
name: key,
|
|
270
376
|
value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
|
|
271
377
|
};
|
|
272
378
|
}
|
|
273
379
|
|
|
274
|
-
|
|
380
|
+
var style = {
|
|
275
381
|
meta: {
|
|
276
382
|
title: 'Pixel Art - Neutral',
|
|
277
383
|
creator: 'Plastic Jam',
|
|
@@ -281,29 +387,27 @@ const style = {
|
|
|
281
387
|
}
|
|
282
388
|
},
|
|
283
389
|
schema: schema$1,
|
|
284
|
-
create: _ref
|
|
390
|
+
create: function create(_ref) {
|
|
285
391
|
var _options$hairColor, _options$mouthColor, _options$glassesColor, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows, _components$mouth$val, _components$mouth, _components$glasses$v, _components$glasses;
|
|
286
392
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
const glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
295
|
-
const components = {
|
|
393
|
+
var prng = _ref.prng,
|
|
394
|
+
options = _ref.options;
|
|
395
|
+
var eyesComponent = pickComponent(prng, 'eyes', options.eyes);
|
|
396
|
+
var eyebrowsComponent = pickComponent(prng, 'eyebrows', options.eyebrows);
|
|
397
|
+
var mouthComponent = pickComponent(prng, 'mouth', options.mouth);
|
|
398
|
+
var glassesComponent = pickComponent(prng, 'glasses', options.glasses);
|
|
399
|
+
var components = {
|
|
296
400
|
'eyes': eyesComponent,
|
|
297
401
|
'eyebrows': eyebrowsComponent,
|
|
298
402
|
'mouth': mouthComponent,
|
|
299
403
|
'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined
|
|
300
404
|
};
|
|
301
|
-
|
|
405
|
+
var colors = {
|
|
302
406
|
'hair': pickColor(prng, 'hair', (_options$hairColor = options.hairColor) !== null && _options$hairColor !== void 0 ? _options$hairColor : []),
|
|
303
407
|
'mouth': pickColor(prng, 'mouth', (_options$mouthColor = options.mouthColor) !== null && _options$mouthColor !== void 0 ? _options$mouthColor : []),
|
|
304
408
|
'glasses': pickColor(prng, 'glasses', (_options$glassesColor = options.glassesColor) !== null && _options$glassesColor !== void 0 ? _options$glassesColor : [])
|
|
305
409
|
};
|
|
306
|
-
|
|
410
|
+
var backgroundColor = typeof options.backgroundColor === 'string' ? [options.backgroundColor] : options.backgroundColor;
|
|
307
411
|
options.backgroundColor = pickColor(prng, 'skin', backgroundColor !== null && backgroundColor !== void 0 ? backgroundColor : []).value;
|
|
308
412
|
return {
|
|
309
413
|
attributes: {
|
|
@@ -324,11 +428,9 @@ const style = {
|
|
|
324
428
|
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
325
429
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
326
430
|
*/
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
schema
|
|
331
|
-
} = style;
|
|
431
|
+
var create = style.create,
|
|
432
|
+
meta = style.meta,
|
|
433
|
+
schema = style.schema;
|
|
332
434
|
/** @deprecated will be removed in Version 5.0 */
|
|
333
435
|
|
|
334
436
|
var index = avatars.utils.style.createLegacyWrapper(style);
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(a,h){"object"==typeof exports&&"undefined"!=typeof module?h(exports,require("@dicebear/avatars")):"function"==typeof define&&define.amd?define(["exports","@dicebear/avatars"],h):h(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.PixelArtNeutral={}),a.DiceBear)}(this,(function(a,h){"use strict";var v=Object.freeze({__proto__:null,eyes:{variant13:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 9V7h3v2H5Zm7-2h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8v1h1V8H7Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant12:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 1V8h1v1h-1Z" fill="#000"/>\n</g>\n',variant11:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant10:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm6 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant09:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant08:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7v1h3V7H5Zm7 0h3v1h-3V7Z" fill="#fff"/>\n<path d="M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z" fill="#000"/>\n<path d="M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n',variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n</g>\n',variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 7h2v2H6V7Zm7 0h2v2h-2V7Z" fill="#000"/>\n<path d="M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z" fill="#fff" fill-opacity=".4"/>\n<path d="M7 7v1h1V7H7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".7"/>\n</g>\n',variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n<path d="M5 8h1v1H5V8Zm7 0h1v1h-1V8Z" fill="#fff" fill-opacity=".7"/>\n</g>\n',variant01:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z" fill="#fff"/>\n<path d="M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z" fill="#000"/>\n<path d="M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'},eyebrows:{variant13:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="'.concat(h.hair.value,'"/>\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant12:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant11:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant10:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant09:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="'.concat(h.hair.value,'"/>\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant08:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="'.concat(h.hair.value,'"/>\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant01:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},mouth:{surprised03:(a,h)=>'\n<path d="M9 12v2h2v-2H9Z" fill="'.concat(h.mouth.value,'"/>\n'),surprised02:(a,h)=>'\n<path d="M9 13v1h1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),happy09:(a,h)=>'\n<path d="M7 12v1h1v1h4v-1H8v-1H7Z" fill="'.concat(h.mouth.value,'"/>\n'),happy08:(a,h)=>'\n<path d="M10 12v1H9v1h2v-2h-1Z" fill="'.concat(h.mouth.value,'"/>\n'),happy07:(a,h)=>'\n<path d="M8 13v1h4v-1h1v-1h-1v1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy06:(a,h)=>'\n<path d="M9 12v2h2v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M11 14v-1h-1v-1H9v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>\n'),happy05:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy04:(a,h)=>'\n<path d="M9 13v1h2v-1h1v-1h-1v1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),happy03:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1H9v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy02:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff"/>\n'),happy01:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff" fill-opacity=".2"/>\n'),sad08:(a,h)=>'\n<path d="M9 12v1H8v1h4v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),sad07:(a,h)=>'\n<path d="M11 12v1H9v1H8v-1h1v-1h2Z" fill="'.concat(h.mouth.value,'"/>\n'),sad06:(a,h)=>'\n<path d="M8 12h3v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad05:(a,h)=>'\n<path d="M8 12h4v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad04:(a,h)=>'\n<path d="M9 12h2v1H9v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad03:(a,h)=>'\n<path d="M8 12v1h3v1h1v-1h-1v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),sad02:(a,h)=>'\n<path d="M8 13v1h1v-1h3v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),sad01:(a,h)=>'\n<path d="M10 12v1h1v1h1v-2h-2Z" fill="'.concat(h.mouth.value,'"/>\n'),surprised01:(a,h)=>'\n<path d="M8 12v2h4v-2H8Z" fill="#fff"/>\n'},glasses:{variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path opacity=".2" d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M14 7h1v1h-1V7ZM7 7h1v1H7V7Z" fill="#fff"/>\n<path d="M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z" fill="'.concat(h.glasses.value,'"/>\n<path opacity=".2" d="M7 8v1h1V8H7Zm7 0v1h1V8h-1Z" fill="#fff"/>\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant01:(a,h)=>'\n<path d="M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z" fill="'.concat(h.glasses.value,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z" fill="#fff" fill-opacity=".2"/>\n')}});function l(a,h){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];const n=v,t=a.pick(l);return n[h][t]?{name:t,value:n[h][t]}:void 0}var n=Object.freeze({__proto__:null,skin:{variant01:"rgba(255, 219, 172, 1)",variant02:"rgba(245, 207, 160, 1)",variant03:"rgba(234, 195, 147, 1)",variant04:"rgba(224, 182, 135, 1)",variant05:"rgba(203, 158, 110, 1)",variant06:"rgba(182, 134, 85, 1)",variant07:"rgba(162, 109, 61, 1)",variant08:"rgba(141, 85, 36, 1)"},hair:{variant01:"rgba(202, 177, 136, 1)",variant02:"rgba(167, 137, 97, 1)",variant03:"rgba(131, 98, 59, 1)",variant04:"rgba(96, 58, 20, 1)",variant05:"rgba(96, 48, 21, 1)",variant06:"rgba(97, 38, 22, 1)",variant07:"rgba(97, 28, 23, 1)",variant08:"rgba(78, 26, 19, 1)",variant09:"rgba(59, 23, 14, 1)",variant10:"rgba(40, 21, 10, 1)"},mouth:{variant01:"rgba(210, 153, 133, 1)",variant02:"rgba(201, 130, 118, 1)",variant03:"rgba(227, 93, 106, 1)",variant04:"rgba(222, 15, 13, 1)"},glasses:{green01:"rgba(95, 112, 92, 1)",blue01:"rgba(67, 103, 125, 1)",red01:"rgba(160, 75, 93, 1)",black01:"rgba(75, 75, 75, 1)",black02:"rgba(50, 50, 50, 1)",black03:"rgba(25, 25, 25, 1)"}});function t(a,h,v){var l;const t=n;0===v.length&&v.push("transparent");const i=a.pick(v);return{name:i,value:null!==(l=t[h][i])&&void 0!==l?l:i}}const i={meta:{title:"Pixel Art - Neutral",creator:"Plastic Jam",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE"}},schema:{title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{eyes:{title:"Eyes",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrows:{title:"Eyebrows",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},mouth:{title:"Mouth",type:"array",items:{type:"string",enum:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},default:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},glasses:{title:"Glasses",type:"array",items:{type:"string",enum:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{title:"Glasses Probability",default:20,type:"integer",minimum:0,maximum:100},backgroundColor:{title:"Background Color",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",pattern:"^[0-9a-zA-Z]+$"},{type:"array",items:{anyOf:[{type:"string",pattern:"^[0-9a-zA-Z]+$"},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]}}],default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08"]},hairColor:{title:"Hair Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},mouthColor:{title:"Mouth Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04"]},glassesColor:{title:"Glasses Color",type:"array",items:{anyOf:[{type:"string",enum:["green01","blue01","red01","black01","black02","black03"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["green01","blue01","red01","black01","black02","black03"]}},additionalProperties:!1},create:a=>{var h,v,n,i,e,r,f,d,p,o,V;let{prng:u,options:c}=a;const Z=l(u,"eyes",c.eyes),s=l(u,"eyebrows",c.eyebrows),H=l(u,"mouth",c.mouth),m=l(u,"glasses",c.glasses),g={eyes:Z,eyebrows:s,mouth:H,glasses:u.bool(c.glassesProbability)?m:void 0},y={hair:t(u,"hair",null!==(h=c.hairColor)&&void 0!==h?h:[]),mouth:t(u,"mouth",null!==(v=c.mouthColor)&&void 0!==v?v:[]),glasses:t(u,"glasses",null!==(n=c.glassesColor)&&void 0!==n?n:[])},M="string"==typeof c.backgroundColor?[c.backgroundColor]:c.backgroundColor;return c.backgroundColor=t(u,"skin",null!=M?M:[]).value,{attributes:{viewBox:"0 0 14 14",fill:"none"},body:'\n<g transform="translate(-3 -3)">\n'.concat(null!==(i=null===(e=g.eyes)||void 0===e?void 0:e.value(g,y))&&void 0!==i?i:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(r=null===(f=g.eyebrows)||void 0===f?void 0:f.value(g,y))&&void 0!==r?r:"",'\n</g>\n<g transform="translate(-3 -2)">\n').concat(null!==(d=null===(p=g.mouth)||void 0===p?void 0:p.value(g,y))&&void 0!==d?d:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(o=null===(V=g.glasses)||void 0===V?void 0:V.value(g,y))&&void 0!==o?o:"","\n</g>\n")}}};
|
|
1
|
+
!function(a,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@dicebear/avatars")):"function"==typeof define&&define.amd?define(["exports","@dicebear/avatars"],n):n(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.PixelArtNeutral={}),a.DiceBear)}(this,(function(a,n){"use strict";var h=Object.freeze({__proto__:null,eyes:{variant13:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 9V7h3v2H5Zm7-2h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8v1h1V8H7Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant12:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 1V8h1v1h-1Z" fill="#000"/>\n</g>\n'},variant11:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant10:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm6 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant09:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant08:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant07:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7v1h3V7H5Zm7 0h3v1h-3V7Z" fill="#fff"/>\n<path d="M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z" fill="#000"/>\n<path d="M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'},variant06:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant05:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n</g>\n'},variant04:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n'},variant03:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 7h2v2H6V7Zm7 0h2v2h-2V7Z" fill="#000"/>\n<path d="M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z" fill="#fff" fill-opacity=".4"/>\n<path d="M7 7v1h1V7H7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".7"/>\n</g>\n'},variant02:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n<path d="M5 8h1v1H5V8Zm7 0h1v1h-1V8Z" fill="#fff" fill-opacity=".7"/>\n</g>\n'},variant01:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z" fill="#fff"/>\n<path d="M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z" fill="#000"/>\n<path d="M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'}},eyebrows:{variant13:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="'.concat(n.hair.value,'"/>\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant12:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant11:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant10:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant09:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="'.concat(n.hair.value,'"/>\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant08:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant07:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant06:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant05:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant04:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="'.concat(n.hair.value,'"/>\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant03:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="'.concat(n.hair.value,'"/>\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant02:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="'.concat(n.hair.value,'"/>\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},variant01:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="'.concat(n.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="#000" fill-opacity=".1"/>\n</g>\n')}},mouth:{surprised03:function(a,n){return'\n<path d="M9 12v2h2v-2H9Z" fill="'.concat(n.mouth.value,'"/>\n')},surprised02:function(a,n){return'\n<path d="M9 13v1h1v-1H9Z" fill="'.concat(n.mouth.value,'"/>\n')},happy09:function(a,n){return'\n<path d="M7 12v1h1v1h4v-1H8v-1H7Z" fill="'.concat(n.mouth.value,'"/>\n')},happy08:function(a,n){return'\n<path d="M10 12v1H9v1h2v-2h-1Z" fill="'.concat(n.mouth.value,'"/>\n')},happy07:function(a,n){return'\n<path d="M8 13v1h4v-1h1v-1h-1v1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},happy06:function(a,n){return'\n<path d="M9 12v2h2v-1h-1v-1H9Z" fill="'.concat(n.mouth.value,'"/>\n<path d="M11 14v-1h-1v-1H9v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>\n')},happy05:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1h1v-1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},happy04:function(a,n){return'\n<path d="M9 13v1h2v-1h1v-1h-1v1H9Z" fill="'.concat(n.mouth.value,'"/>\n')},happy03:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1H9v-1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},happy02:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(n.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff"/>\n')},happy01:function(a,n){return'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(n.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff" fill-opacity=".2"/>\n')},sad08:function(a,n){return'\n<path d="M9 12v1H8v1h4v-1h-1v-1H9Z" fill="'.concat(n.mouth.value,'"/>\n')},sad07:function(a,n){return'\n<path d="M11 12v1H9v1H8v-1h1v-1h2Z" fill="'.concat(n.mouth.value,'"/>\n')},sad06:function(a,n){return'\n<path d="M8 12h3v1H8v-1Z" fill="'.concat(n.mouth.value,'"/>\n')},sad05:function(a,n){return'\n<path d="M8 12h4v1H8v-1Z" fill="'.concat(n.mouth.value,'"/>\n')},sad04:function(a,n){return'\n<path d="M9 12h2v1H9v-1Z" fill="'.concat(n.mouth.value,'"/>\n')},sad03:function(a,n){return'\n<path d="M8 12v1h3v1h1v-1h-1v-1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},sad02:function(a,n){return'\n<path d="M8 13v1h1v-1h3v-1H9v1H8Z" fill="'.concat(n.mouth.value,'"/>\n')},sad01:function(a,n){return'\n<path d="M10 12v1h1v1h1v-2h-2Z" fill="'.concat(n.mouth.value,'"/>\n')},surprised01:function(a,n){return'\n<path d="M8 12v2h4v-2H8Z" fill="#fff"/>\n'}},glasses:{variant07:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 10V7h3v3h-3Zm-1-4v1H9l-.036-1H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant06:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant05:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path opacity=".2" d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant04:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z" fill="'.concat(n.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant03:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z" fill="'.concat(n.glasses.value,'"/>\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M14 7h1v1h-1V7ZM7 7h1v1H7V7Z" fill="#fff"/>\n<path d="M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant02:function(a,n){return'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z" fill="'.concat(n.glasses.value,'"/>\n<path opacity=".2" d="M7 8v1h1V8H7Zm7 0v1h1V8h-1Z" fill="#fff"/>\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z" fill="#fff" fill-opacity=".2"/>\n</g>\n')},variant01:function(a,n){return'\n<path d="M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z" fill="'.concat(n.glasses.value,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z" fill="#fff" fill-opacity=".2"/>\n')}}});function t(a,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],v=h,l=a.pick(t);return v[n][l]?{name:l,value:v[n][l]}:void 0}var v=Object.freeze({__proto__:null,skin:{variant01:"rgba(255, 219, 172, 1)",variant02:"rgba(245, 207, 160, 1)",variant03:"rgba(234, 195, 147, 1)",variant04:"rgba(224, 182, 135, 1)",variant05:"rgba(203, 158, 110, 1)",variant06:"rgba(182, 134, 85, 1)",variant07:"rgba(162, 109, 61, 1)",variant08:"rgba(141, 85, 36, 1)"},hair:{variant01:"rgba(202, 177, 136, 1)",variant02:"rgba(167, 137, 97, 1)",variant03:"rgba(131, 98, 59, 1)",variant04:"rgba(96, 58, 20, 1)",variant05:"rgba(96, 48, 21, 1)",variant06:"rgba(97, 38, 22, 1)",variant07:"rgba(97, 28, 23, 1)",variant08:"rgba(78, 26, 19, 1)",variant09:"rgba(59, 23, 14, 1)",variant10:"rgba(40, 21, 10, 1)"},mouth:{variant01:"rgba(210, 153, 133, 1)",variant02:"rgba(201, 130, 118, 1)",variant03:"rgba(227, 93, 106, 1)",variant04:"rgba(222, 15, 13, 1)"},glasses:{green01:"rgba(95, 112, 92, 1)",blue01:"rgba(67, 103, 125, 1)",red01:"rgba(160, 75, 93, 1)",black01:"rgba(75, 75, 75, 1)",black02:"rgba(50, 50, 50, 1)",black03:"rgba(25, 25, 25, 1)"}});function l(a,n,h){var t,l=v;0===h.length&&h.push("transparent");var i=a.pick(h);return{name:i,value:null!==(t=l[n][i])&&void 0!==t?t:i}}var i={meta:{title:"Pixel Art - Neutral",creator:"Plastic Jam",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE"}},schema:{title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{eyes:{title:"Eyes",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyebrows:{title:"Eyebrows",type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},mouth:{title:"Mouth",type:"array",items:{type:"string",enum:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},default:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},glasses:{title:"Glasses",type:"array",items:{type:"string",enum:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{title:"Glasses Probability",default:20,type:"integer",minimum:0,maximum:100},backgroundColor:{title:"Background Color",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",pattern:"^[0-9a-zA-Z]+$"},{type:"array",items:{anyOf:[{type:"string",pattern:"^[0-9a-zA-Z]+$"},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]}}],default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08"]},hairColor:{title:"Hair Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},mouthColor:{title:"Mouth Color",type:"array",items:{anyOf:[{type:"string",enum:["variant01","variant02","variant03","variant04"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["variant01","variant02","variant03","variant04"]},glassesColor:{title:"Glasses Color",type:"array",items:{anyOf:[{type:"string",enum:["green01","blue01","red01","black01","black02","black03"]},{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"}]},default:["green01","blue01","red01","black01","black02","black03"]}},additionalProperties:!1},create:function(a){var n,h,v,i,r,e,f,o,d,u,p,V=a.prng,c=a.options,Z=t(V,"eyes",c.eyes),s=t(V,"eyebrows",c.eyebrows),H=t(V,"mouth",c.mouth),m=t(V,"glasses",c.glasses),g={eyes:Z,eyebrows:s,mouth:H,glasses:V.bool(c.glassesProbability)?m:void 0},y={hair:l(V,"hair",null!==(n=c.hairColor)&&void 0!==n?n:[]),mouth:l(V,"mouth",null!==(h=c.mouthColor)&&void 0!==h?h:[]),glasses:l(V,"glasses",null!==(v=c.glassesColor)&&void 0!==v?v:[])},M="string"==typeof c.backgroundColor?[c.backgroundColor]:c.backgroundColor;return c.backgroundColor=l(V,"skin",null!=M?M:[]).value,{attributes:{viewBox:"0 0 14 14",fill:"none"},body:'\n<g transform="translate(-3 -3)">\n'.concat(null!==(i=null===(r=g.eyes)||void 0===r?void 0:r.value(g,y))&&void 0!==i?i:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(e=null===(f=g.eyebrows)||void 0===f?void 0:f.value(g,y))&&void 0!==e?e:"",'\n</g>\n<g transform="translate(-3 -2)">\n').concat(null!==(o=null===(d=g.mouth)||void 0===d?void 0:d.value(g,y))&&void 0!==o?o:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(u=null===(p=g.glasses)||void 0===p?void 0:p.value(g,y))&&void 0!==u?u:"","\n</g>\n")}}},r=i.create,e=i.meta,f=i.schema,o=n.utils.style.createLegacyWrapper(i);
|
|
2
2
|
/*!
|
|
3
3
|
* Pixel Art - Neutral (@dicebear/pixel-art-neutral)
|
|
4
4
|
*
|
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
9
9
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
10
|
-
*/
|
|
10
|
+
*/a.create=r,a.default=o,a.meta=e,a.schema=f,Object.defineProperty(a,"__esModule",{value:!0})}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/pixel-art-neutral",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.4",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"build": "dicebear-project build DiceBear.PixelArtNeutral"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@dicebear/avatars": "^4.10.
|
|
32
|
+
"@dicebear/avatars": "^4.10.4",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.0",
|
|
34
34
|
"@types/jest": "^26.0.22",
|
|
35
35
|
"@types/node": "^10.11.6",
|
|
36
|
-
"dicebear-project": "^4.10.
|
|
36
|
+
"dicebear-project": "^4.10.4",
|
|
37
37
|
"jest": "^26.6.3",
|
|
38
38
|
"ts-jest": "^26.5.4",
|
|
39
39
|
"typescript": "^4.2.3",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@dicebear/avatars": "^4.6.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "579a3f403a91f5e4909d8bc2c5b26792220ee58f"
|
|
46
46
|
}
|