@dicebear/pixel-art 4.10.0 → 5.0.0-alpha.3
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 +1 -1
- package/README.md +4 -3
- package/dist/colors/accessories.d.ts +1 -1
- package/dist/colors/clothes.d.ts +1 -1
- package/dist/colors/glasses.d.ts +1 -1
- package/dist/colors/hair.d.ts +1 -1
- package/dist/colors/hat.d.ts +1 -1
- package/dist/colors/mouth.d.ts +1 -1
- package/dist/colors/skin.d.ts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/hooks/onPostCreate.d.ts +5 -4
- package/dist/hooks/onPreCreate.d.ts +4 -3
- package/dist/index.d.ts +4 -6
- package/dist/index.es.js +1031 -732
- package/dist/index.js +1031 -732
- package/dist/index.umd.js +5 -3
- package/dist/meta/components.d.ts +4 -0
- package/dist/options.d.ts +21 -42
- package/dist/utils/getColors.d.ts +9 -0
- package/dist/utils/getComponents.d.ts +9 -0
- package/dist/utils/pickColor.d.ts +8 -2
- package/dist/utils/pickComponent.d.ts +8 -2
- package/package.json +5 -5
- package/dist/schema.d.ts +0 -2
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2012 Plastic Jam
|
|
4
3
|
Copyright (c) 2021 Florian Körner
|
|
4
|
+
Copyright (c) 2021 Plastic Jam
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
<h1 align="center"><img src="
|
|
1
|
+
<h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Pixel Art</h1>
|
|
2
2
|
<p align="center">
|
|
3
|
-
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear
|
|
4
|
-
|
|
3
|
+
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
|
|
4
|
+
Pixel Art
|
|
5
|
+
by Plastic Jam
|
|
5
6
|
</p>
|
|
6
7
|
|
|
7
8
|
<p align="center">
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const accessories: ColorGroup;
|
package/dist/colors/clothes.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const clothes: ColorGroup;
|
package/dist/colors/glasses.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const glasses: ColorGroup;
|
package/dist/colors/hair.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const hair: ColorGroup;
|
package/dist/colors/hat.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const hat: ColorGroup;
|
package/dist/colors/mouth.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const mouth: ColorGroup;
|
package/dist/colors/skin.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const skin: ColorGroup;
|
package/dist/core.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Prng, StyleOptions } from
|
|
2
|
-
import { Options } from
|
|
3
|
-
import { ColorPickCollection, ComponentPickCollection } from
|
|
1
|
+
import { Prng, StyleOptions } from '@dicebear/core';
|
|
2
|
+
import { Options } from '../options';
|
|
3
|
+
import { ColorPickCollection, ComponentPickCollection } from '../static-types';
|
|
4
4
|
declare type Props = {
|
|
5
5
|
prng: Prng;
|
|
6
6
|
options: StyleOptions<Options>;
|
|
7
7
|
components: ComponentPickCollection;
|
|
8
8
|
colors: ColorPickCollection;
|
|
9
|
+
preview: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare function onPostCreate({ prng, options, components, colors }: Props): void;
|
|
11
|
+
export declare function onPostCreate({ prng, options, components, colors, preview, }: Props): void;
|
|
11
12
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Prng, StyleOptions } from
|
|
2
|
-
import { Options } from
|
|
1
|
+
import { Prng, StyleOptions } from '@dicebear/core';
|
|
2
|
+
import { Options } from '../options';
|
|
3
3
|
declare type Props = {
|
|
4
4
|
prng: Prng;
|
|
5
5
|
options: StyleOptions<Options>;
|
|
6
|
+
preview: boolean;
|
|
6
7
|
};
|
|
7
|
-
export declare function onPreCreate({ prng, options }: Props): void;
|
|
8
|
+
export declare function onPreCreate({ prng, options, preview }: Props): void;
|
|
8
9
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,11 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Code licensed under MIT License.
|
|
5
5
|
* Copyright (c) 2021 Florian Körner
|
|
6
|
+
* Copyright (c) 2021 Plastic Jam
|
|
6
7
|
*
|
|
7
|
-
* Design "
|
|
8
|
+
* Design "Pixel Art" by Plastic Jam licensed under MIT.
|
|
8
9
|
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art/LICENSE
|
|
9
10
|
*/
|
|
10
|
-
declare let create: import("@dicebear/
|
|
11
|
-
export { create, meta, schema };
|
|
11
|
+
declare let create: import("@dicebear/core").StyleCreate<import("./options").Options>, preview: import("@dicebear/core").StylePreview<import("./options").Options> | undefined, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
|
|
12
|
+
export { create, preview, meta, schema };
|
|
12
13
|
export { Options } from './options';
|
|
13
|
-
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
|
|
14
|
-
/** @deprecated will be removed in Version 5.0 */
|
|
15
|
-
export default _default;
|