@dicebear/definitions 9.0.0-alpha.0 → 9.0.0-alpha.1

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/src/shapes.json CHANGED
@@ -13,6 +13,10 @@
13
13
  "source": {
14
14
  "name": "Shapes",
15
15
  "url": "https://www.dicebear.com"
16
+ },
17
+ "size": {
18
+ "width": 100,
19
+ "height": 100
16
20
  }
17
21
  },
18
22
  "body": {
@@ -25,20 +29,27 @@
25
29
  ]
26
30
  }
27
31
  },
28
- "attributes": {
29
- "viewBox": "0 0 100 100",
30
- "fill": "none",
31
- "shapeRendering": "auto"
32
- },
33
- "components": {
34
- "shape1": {
32
+ "attributes": [
33
+ {
34
+ "name": "fill",
35
+ "value": "none"
36
+ },
37
+ {
38
+ "name": "shape-rendering",
39
+ "value": "auto"
40
+ }
41
+ ],
42
+ "components": [
43
+ {
44
+ "name": "shape1",
35
45
  "rotation": 160,
36
46
  "offset": {
37
47
  "x": 75,
38
48
  "y": 75
39
49
  },
40
- "values": {
41
- "rectangle": {
50
+ "values": [
51
+ {
52
+ "name": "rectangle",
42
53
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M90 10H10v80h80zM0 0v100h100V0z\" fill=\"url(#color-shape1)\"/>",
43
54
  "dependencies": {
44
55
  "colors": [
@@ -47,7 +58,8 @@
47
58
  },
48
59
  "default": false
49
60
  },
50
- "rectangleFilled": {
61
+ {
62
+ "name": "rectangleFilled",
51
63
  "content": "<path d=\"M0 0h100v100H0z\" fill=\"url(#color-shape1)\"/>",
52
64
  "dependencies": {
53
65
  "colors": [
@@ -56,7 +68,8 @@
56
68
  },
57
69
  "default": true
58
70
  },
59
- "ellipseFilled": {
71
+ {
72
+ "name": "ellipseFilled",
60
73
  "content": "<path d=\"M100 50A50 50 0 1 1 0 50a50 50 0 0 1 100 0\" fill=\"url(#color-shape1)\"/>",
61
74
  "dependencies": {
62
75
  "colors": [
@@ -65,7 +78,8 @@
65
78
  },
66
79
  "default": true
67
80
  },
68
- "ellipse": {
81
+ {
82
+ "name": "ellipse",
69
83
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M50 90a40 40 0 1 0 0-80 40 40 0 0 0 0 80m0 10A50 50 0 1 0 50 0a50 50 0 0 0 0 100\" fill=\"url(#color-shape1)\"/>",
70
84
  "dependencies": {
71
85
  "colors": [
@@ -74,7 +88,8 @@
74
88
  },
75
89
  "default": false
76
90
  },
77
- "polygonFilled": {
91
+ {
92
+ "name": "polygonFilled",
78
93
  "content": "<path d=\"m50 7 50 86.6H0z\" fill=\"url(#color-shape1)\"/>",
79
94
  "dependencies": {
80
95
  "colors": [
@@ -83,7 +98,8 @@
83
98
  },
84
99
  "default": true
85
100
  },
86
- "polygon": {
101
+ {
102
+ "name": "polygon",
87
103
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M50 7 0 93.6h100zm0 20L17.3 83.6h65.4z\" fill=\"url(#color-shape1)\"/>",
88
104
  "dependencies": {
89
105
  "colors": [
@@ -92,7 +108,8 @@
92
108
  },
93
109
  "default": false
94
110
  },
95
- "line": {
111
+ {
112
+ "name": "line",
96
113
  "content": "<rect x=\"45\" y=\"-150\" width=\"10\" height=\"400\" fill=\"url(#color-shape1)\"/>",
97
114
  "dependencies": {
98
115
  "colors": [
@@ -101,16 +118,18 @@
101
118
  },
102
119
  "default": false
103
120
  }
104
- }
121
+ ]
105
122
  },
106
- "shape2": {
123
+ {
124
+ "name": "shape2",
107
125
  "rotation": 180,
108
126
  "offset": {
109
127
  "x": 50,
110
128
  "y": 50
111
129
  },
112
- "values": {
113
- "rectangle": {
130
+ "values": [
131
+ {
132
+ "name": "rectangle",
114
133
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M90 10H10v80h80zM0 0v100h100V0z\" fill=\"url(#color-shape2)\"/>",
115
134
  "dependencies": {
116
135
  "colors": [
@@ -119,7 +138,8 @@
119
138
  },
120
139
  "default": false
121
140
  },
122
- "rectangleFilled": {
141
+ {
142
+ "name": "rectangleFilled",
123
143
  "content": "<path d=\"M0 0h100v100H0z\" fill=\"url(#color-shape2)\"/>",
124
144
  "dependencies": {
125
145
  "colors": [
@@ -128,7 +148,8 @@
128
148
  },
129
149
  "default": true
130
150
  },
131
- "ellipseFilled": {
151
+ {
152
+ "name": "ellipseFilled",
132
153
  "content": "<path d=\"M100 50A50 50 0 1 1 0 50a50 50 0 0 1 100 0\" fill=\"url(#color-shape2)\"/>",
133
154
  "dependencies": {
134
155
  "colors": [
@@ -137,7 +158,8 @@
137
158
  },
138
159
  "default": true
139
160
  },
140
- "ellipse": {
161
+ {
162
+ "name": "ellipse",
141
163
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M50 90a40 40 0 1 0 0-80 40 40 0 0 0 0 80m0 10A50 50 0 1 0 50 0a50 50 0 0 0 0 100\" fill=\"url(#color-shape2)\"/>",
142
164
  "dependencies": {
143
165
  "colors": [
@@ -146,7 +168,8 @@
146
168
  },
147
169
  "default": false
148
170
  },
149
- "polygonFilled": {
171
+ {
172
+ "name": "polygonFilled",
150
173
  "content": "<path d=\"m50 7 50 86.6H0z\" fill=\"url(#color-shape2)\"/>",
151
174
  "dependencies": {
152
175
  "colors": [
@@ -155,7 +178,8 @@
155
178
  },
156
179
  "default": true
157
180
  },
158
- "polygon": {
181
+ {
182
+ "name": "polygon",
159
183
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M50 7 0 93.6h100zm0 20L17.3 83.6h65.4z\" fill=\"url(#color-shape2)\"/>",
160
184
  "dependencies": {
161
185
  "colors": [
@@ -164,7 +188,8 @@
164
188
  },
165
189
  "default": false
166
190
  },
167
- "line": {
191
+ {
192
+ "name": "line",
168
193
  "content": "<rect x=\"45\" y=\"-150\" width=\"10\" height=\"400\" fill=\"url(#color-shape2)\"/>",
169
194
  "dependencies": {
170
195
  "colors": [
@@ -173,16 +198,18 @@
173
198
  },
174
199
  "default": true
175
200
  }
176
- }
201
+ ]
177
202
  },
178
- "shape3": {
203
+ {
204
+ "name": "shape3",
179
205
  "rotation": 180,
180
206
  "offset": {
181
207
  "x": 25,
182
208
  "y": 25
183
209
  },
184
- "values": {
185
- "rectangle": {
210
+ "values": [
211
+ {
212
+ "name": "rectangle",
186
213
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M90 10H10v80h80zM0 0v100h100V0z\" fill=\"url(#color-shape3)\"/>",
187
214
  "dependencies": {
188
215
  "colors": [
@@ -191,7 +218,8 @@
191
218
  },
192
219
  "default": true
193
220
  },
194
- "rectangleFilled": {
221
+ {
222
+ "name": "rectangleFilled",
195
223
  "content": "<path d=\"M0 0h100v100H0z\" fill=\"url(#color-shape3)\"/>",
196
224
  "dependencies": {
197
225
  "colors": [
@@ -200,7 +228,8 @@
200
228
  },
201
229
  "default": true
202
230
  },
203
- "ellipseFilled": {
231
+ {
232
+ "name": "ellipseFilled",
204
233
  "content": "<path d=\"M100 50A50 50 0 1 1 0 50a50 50 0 0 1 100 0\" fill=\"url(#color-shape3)\"/>",
205
234
  "dependencies": {
206
235
  "colors": [
@@ -209,7 +238,8 @@
209
238
  },
210
239
  "default": true
211
240
  },
212
- "ellipse": {
241
+ {
242
+ "name": "ellipse",
213
243
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M50 90a40 40 0 1 0 0-80 40 40 0 0 0 0 80m0 10A50 50 0 1 0 50 0a50 50 0 0 0 0 100\" fill=\"url(#color-shape3)\"/>",
214
244
  "dependencies": {
215
245
  "colors": [
@@ -218,7 +248,8 @@
218
248
  },
219
249
  "default": true
220
250
  },
221
- "polygonFilled": {
251
+ {
252
+ "name": "polygonFilled",
222
253
  "content": "<path d=\"m50 7 50 86.6H0z\" fill=\"url(#color-shape3)\"/>",
223
254
  "dependencies": {
224
255
  "colors": [
@@ -227,7 +258,8 @@
227
258
  },
228
259
  "default": true
229
260
  },
230
- "polygon": {
261
+ {
262
+ "name": "polygon",
231
263
  "content": "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M50 7 0 93.6h100zm0 20L17.3 83.6h65.4z\" fill=\"url(#color-shape3)\"/>",
232
264
  "dependencies": {
233
265
  "colors": [
@@ -236,7 +268,8 @@
236
268
  },
237
269
  "default": true
238
270
  },
239
- "line": {
271
+ {
272
+ "name": "line",
240
273
  "content": "<rect x=\"45\" y=\"-150\" width=\"10\" height=\"400\" fill=\"url(#color-shape3)\"/>",
241
274
  "dependencies": {
242
275
  "colors": [
@@ -245,12 +278,12 @@
245
278
  },
246
279
  "default": true
247
280
  }
248
- }
281
+ ]
249
282
  }
250
- },
251
- "colors": {
252
- "shape1": {
253
- "differentFromColor": "background",
283
+ ],
284
+ "colors": [
285
+ {
286
+ "name": "background",
254
287
  "values": [
255
288
  "0a5b83",
256
289
  "1c799f",
@@ -259,8 +292,9 @@
259
292
  "f88c49"
260
293
  ]
261
294
  },
262
- "shape2": {
263
- "differentFromColor": "shape1",
295
+ {
296
+ "name": "shape1",
297
+ "differentFromColor": "background",
264
298
  "values": [
265
299
  "0a5b83",
266
300
  "1c799f",
@@ -269,8 +303,9 @@
269
303
  "f88c49"
270
304
  ]
271
305
  },
272
- "shape3": {
273
- "differentFromColor": "shape2",
306
+ {
307
+ "name": "shape2",
308
+ "differentFromColor": "shape1",
274
309
  "values": [
275
310
  "0a5b83",
276
311
  "1c799f",
@@ -278,16 +313,11 @@
278
313
  "f1f4dc",
279
314
  "f88c49"
280
315
  ]
281
- }
282
- },
283
- "additionalOptions": {
284
- "backgroundColor": {
285
- "type": "array",
286
- "items": {
287
- "type": "string",
288
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
289
- },
290
- "default": [
316
+ },
317
+ {
318
+ "name": "shape3",
319
+ "differentFromColor": "shape2",
320
+ "values": [
291
321
  "0a5b83",
292
322
  "1c799f",
293
323
  "69d2e7",
@@ -295,5 +325,5 @@
295
325
  "f88c49"
296
326
  ]
297
327
  }
298
- }
328
+ ]
299
329
  }