@dicebear/pixel-art-neutral 4.8.5 → 4.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{license.md → LICENSE} +0 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/options.d.ts +25 -0
- package/dist/static-types.d.ts +16 -0
- package/package.json +5 -5
package/{license.md → LICENSE}
RENAMED
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Code licensed under MIT License.
|
|
5
5
|
* Copyright (c) 2021 Florian Körner
|
|
6
6
|
*
|
|
7
|
-
* Design "
|
|
7
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
8
8
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
declare let create: import("@dicebear/avatars").StyleCreate<import("./options").Options>, meta: import("@dicebear/avatars").StyleMeta, schema: import("json-schema").JSONSchema7;
|
package/dist/index.es.js
CHANGED
|
@@ -421,7 +421,7 @@ var style = {
|
|
|
421
421
|
* Code licensed under MIT License.
|
|
422
422
|
* Copyright (c) 2021 Florian Körner
|
|
423
423
|
*
|
|
424
|
-
* Design "
|
|
424
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
425
425
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
426
426
|
*/
|
|
427
427
|
var create = style.create,
|
package/dist/index.js
CHANGED
|
@@ -425,7 +425,7 @@ var style = {
|
|
|
425
425
|
* Code licensed under MIT License.
|
|
426
426
|
* Copyright (c) 2021 Florian Körner
|
|
427
427
|
*
|
|
428
|
-
* Design "
|
|
428
|
+
* Design "8biticon" by Plastic Jam licensed under MIT.
|
|
429
429
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE
|
|
430
430
|
*/
|
|
431
431
|
var create = style.create,
|
package/dist/index.umd.js
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
* Code licensed under MIT License.
|
|
6
6
|
* Copyright (c) 2021 Florian Körner
|
|
7
7
|
*
|
|
8
|
-
* Design "
|
|
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})}));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
export declare type Eyes = ("variant13" | "variant12" | "variant11" | "variant10" | "variant09" | "variant08" | "variant07" | "variant06" | "variant05" | "variant04" | "variant03" | "variant02" | "variant01")[];
|
|
7
|
+
export declare type Eyebrows = ("variant13" | "variant12" | "variant11" | "variant10" | "variant09" | "variant08" | "variant07" | "variant06" | "variant05" | "variant04" | "variant03" | "variant02" | "variant01")[];
|
|
8
|
+
export declare type Mouth = ("surprised03" | "surprised02" | "happy09" | "happy08" | "happy07" | "happy06" | "happy05" | "happy04" | "happy03" | "happy02" | "happy01" | "sad08" | "sad07" | "sad06" | "sad05" | "sad04" | "sad03" | "sad02" | "sad01" | "surprised01")[];
|
|
9
|
+
export declare type Glasses = ("variant07" | "variant06" | "variant05" | "variant04" | "variant03" | "variant02" | "variant01")[];
|
|
10
|
+
export declare type GlassesProbability = number;
|
|
11
|
+
export declare type BackgroundColor = string | (string | string)[];
|
|
12
|
+
export declare type HairColor = (("variant01" | "variant02" | "variant03" | "variant04" | "variant05" | "variant06" | "variant07" | "variant08" | "variant09" | "variant10") | string)[];
|
|
13
|
+
export declare type MouthColor = (("variant01" | "variant02" | "variant03" | "variant04") | string)[];
|
|
14
|
+
export declare type GlassesColor = (("green01" | "blue01" | "red01" | "black01" | "black02" | "black03") | string)[];
|
|
15
|
+
export interface Options {
|
|
16
|
+
eyes?: Eyes;
|
|
17
|
+
eyebrows?: Eyebrows;
|
|
18
|
+
mouth?: Mouth;
|
|
19
|
+
glasses?: Glasses;
|
|
20
|
+
glassesProbability?: GlassesProbability;
|
|
21
|
+
backgroundColor?: BackgroundColor;
|
|
22
|
+
hairColor?: HairColor;
|
|
23
|
+
mouthColor?: MouthColor;
|
|
24
|
+
glassesColor?: GlassesColor;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare type ColorGroup = Record<string, ColorGroupItem>;
|
|
2
|
+
export declare type ColorGroupCollection = Record<string, ColorGroup>;
|
|
3
|
+
export declare type ColorGroupItem = string;
|
|
4
|
+
export declare type ColorPickCollection = Record<string, ColorPick>;
|
|
5
|
+
export declare type ColorPick = {
|
|
6
|
+
name: string;
|
|
7
|
+
value: ColorGroupItem;
|
|
8
|
+
};
|
|
9
|
+
export declare type ComponentGroup = Record<string, ComponentGroupItem>;
|
|
10
|
+
export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
|
|
11
|
+
export declare type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
|
|
12
|
+
export declare type ComponentPickCollection = Record<string, ComponentPick>;
|
|
13
|
+
export declare type ComponentPick = {
|
|
14
|
+
name: string;
|
|
15
|
+
value: ComponentGroupItem;
|
|
16
|
+
} | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/pixel-art-neutral",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.10.0",
|
|
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.
|
|
33
|
-
"@tsconfig/
|
|
32
|
+
"@dicebear/avatars": "^4.10.0",
|
|
33
|
+
"@tsconfig/recommended": "^1.0.0",
|
|
34
34
|
"@types/jest": "^26.0.22",
|
|
35
35
|
"@types/node": "^10.11.6",
|
|
36
|
-
"dicebear-project": "^4.
|
|
36
|
+
"dicebear-project": "^4.10.0",
|
|
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": "0730db32500de743b65f569ccfc07016cd05851d"
|
|
46
46
|
}
|