@dicebear/pixel-art-neutral 5.0.0-alpha.9 → 5.0.0-beta.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 CHANGED
@@ -1,7 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Florian Körner
4
- Copyright (c) 2021 Plastic Jam
3
+ Copyright (c) 2022 Florian Körner
5
4
 
6
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,8 +1,14 @@
1
- <h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Pixel Art - Neutral</h1>
1
+ <h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Pixel Art Neutral</h1>
2
2
  <p align="center">
3
3
  <strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
4
- Pixel Art - Neutral
5
- by Plastic Jam
4
+ <a href="https://dicebear.com">Pixel Art neutral</a>
5
+ by <a href="https://dicebear.com">Florian Körner</a>
6
+ </p>
7
+
8
+ <p align="center">
9
+ While our code is MIT licensed, the design is licensed under
10
+ <a href="https://creativecommons.org/licenses/zero/1.0/">CC0 1.0</a>.
11
+ See <a href="https://dicebear.com/licenses">license overview</a> for more information.
6
12
  </p>
7
13
 
8
14
  <p align="center">
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { ComponentGroup } from '../types.js';
8
+ export declare const eyes: ComponentGroup;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { escape } from '@dicebear/core';
8
+ export const eyes = {
9
+ 'variant12': (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 6h1v2H4V7h1V6Zm5 0h1v2H9V7h1V6Z" fill="#fff"/><path d="M6 6v1H5v1h2V6H6Zm5 0v1h-1v1h2V6h-1Z" fill="${escape.xml(`#${colors.eyes}`)}"/><path d="M6 6v1h1V6H6ZM5 7v1h1V7H5Zm6-1v1h1V6h-1Zm-1 1v1h1V7h-1Z" fill="#fff" fill-opacity=".5"/></g>`,
10
+ 'variant11': (components, colors) => `<path fill="#fff" d="M4 5h3v3H4zM9 5h3v3H9z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M4 6h2v1H4zM9 6h2v1H9z"/><path fill="#fff" fill-opacity=".7" d="M4 6h1v1H4zM9 6h1v1H9z"/>`,
11
+ 'variant10': (components, colors) => `<path fill="#fff" d="M4 5h3v3H4zM9 5h3v3H9z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M10 5h2v2h-2zM5 5h2v2H5z"/><path fill="#fff" fill-opacity=".4" d="M5 5h1v1H5zM6 6h1v1H6zM10 5h1v1h-1zM11 6h1v1h-1z"/><path fill="#fff" fill-opacity=".7" d="M11 5h1v1h-1zM6 5h1v1H6z"/>`,
12
+ 'variant09': (components, colors) => `<path fill="#fff" d="M4 5h3v3H4zM9 5h3v3H9z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M10 6h1v1h-1zM5 6h1v1H5z"/>`,
13
+ 'variant08': (components, colors) => `<path fill="#fff" d="M4 5h3v2H4zM9 5h3v2H9z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M9 6h1v1H9zM4 6h1v1H4z"/>`,
14
+ 'variant07': (components, colors) => `<path fill="#fff" d="M4 5h3v2H4zM9 5h3v2H9z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M11 6h1v1h-1zM6 6h1v1H6z"/>`,
15
+ 'variant06': (components, colors) => `<path fill="#fff" d="M4 5h3v2H4z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M5 6h1v1H5z"/><path fill="#fff" d="M9 5h3v2H9z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M10 6h1v1h-1z"/>`,
16
+ 'variant05': (components, colors) => `<path fill="#fff" d="M4 5h3v2H4zM9 5h3v2H9z"/><path d="M11 5h-1v1H9v1h3V6h-1V5Z" fill="${escape.xml(`#${colors.eyes}`)}"/><path fill="#fff" fill-opacity=".5" d="M9 6h1v1H9zM10 5h1v1h-1zM11 6h1v1h-1z"/><path d="M6 5H5v1H4v1h3V6H6V5Z" fill="${escape.xml(`#${colors.eyes}`)}"/><path fill="#fff" fill-opacity=".5" d="M4 6h1v1H4zM5 5h1v1H5zM6 6h1v1H6z"/>`,
17
+ 'variant04': (components, colors) => `<path d="M6 5H5v2h2V6H6V5ZM11 5h-1v2h2V6h-1V5Z" fill="#fff"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M5 6h1v1H5zM10 6h1v1h-1z"/>`,
18
+ 'variant03': (components, colors) => `<path d="M10 5h1v2H9V6h1V5ZM5 5h1v2H4V6h1V5Z" fill="#fff"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M11 6h-1v1h1zM6 6H5v1h1z"/>`,
19
+ 'variant02': (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M11 5h-1v2h2V6h-1V5ZM6 5H5v2h2V6H6V5Z" fill="#fff"/><path d="M10 5v1h1v1H9V5h1ZM5 5v1h1v1H4V5h1Z" fill="${escape.xml(`#${colors.eyes}`)}"/><path d="M10 5v1H9V5h1Zm1 1v1h-1V6h1ZM5 5v1H4V5h1Zm1 1v1H5V6h1Z" fill="#fff" fill-opacity=".5"/></g>`,
20
+ 'variant01': (components, colors) => `<path fill="#fff" d="M12 5H9v3h3zM7 5H4v3h3z"/><path fill="${escape.xml(`#${colors.eyes}`)}" d="M12 6h-2v1h2zM7 6H5v1h2z"/><path fill="#fff" fill-opacity=".7" d="M12 6h-1v1h1zM7 6H6v1h1z"/>`,
21
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { ComponentGroup } from '../types.js';
8
+ export declare const glasses: ComponentGroup;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { escape } from '@dicebear/core';
8
+ export const glasses = {
9
+ 'light07': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4H9v1H7V4H4v1H2v1h1v2h1v1h3V8h2v1h3V8h1V6h1V5h-2V4Zm0 1v3H9V5h3ZM7 8H4V5h3v3Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#fff" fill-opacity=".3" d="M9 5h3v3H9zM4 5h3v3H4z"/><path fill="#fff" fill-opacity=".2" d="M2 5h1v1H2zM13 5h1v1h-1z"/>`,
10
+ 'light06': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M2 5v1h1v2h1v1h3V8h2v1h3V8h1V6h1V5H2Zm10 3H9V6h3v2ZM7 8H4V6h3v2Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#fff" fill-opacity=".3" d="M9 6h3v2H9zM4 6h3v2H4z"/><path fill="#fff" fill-opacity=".2" d="M7 5h2v1H7zM2 5h2v1H2zM12 5h2v1h-2z"/>`,
11
+ 'light05': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M2 5v1h1v2h1v1h3V8h2v1h3V8h1V6h1V5H9v1H7V5H2Zm5 1v2H4V6h3Zm2 0v2h3V6H9Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#fff" fill-opacity=".3" d="M4 6h3v2H4zM9 6h3v2H9z"/><path fill="#fff" fill-opacity=".2" d="M2 5h2v1H2zM12 5h2v1h-2z"/>`,
12
+ 'light04': (components, colors) => `<path fill="#fff" fill-opacity=".3" d="M4 5h3v3H4zM9 5h3v3H9z"/><path fill="${escape.xml(`#${colors.glasses}`)}" d="M3 5h1v1H3zM7 5h2v1H7zM12 5h1v1h-1z"/>`,
13
+ 'light03': (components, colors) => `<path fill="${escape.xml(`#${colors.glasses}`)}" d="M2 5h12v1H2zM3 7h10v1H3zM3 6h1v1H3zM12 6h1v1h-1z"/><path fill="#fff" fill-opacity=".3" d="M4 6h8v1H4z"/><path fill="#fff" fill-opacity=".2" d="M2 5h1v1H2zM13 5h1v1h-1z"/><path fill="#000" fill-opacity=".3" d="M7 6h2v1H7z"/>`,
14
+ 'light02': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M14 5H2v1h1v2h4V7h2v1h4V6h1V5Zm-2 1H9v1h3V6ZM7 7H4V6h3v1Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#fff" fill-opacity=".3" d="M4 6h3v1H4z"/><path fill="#fff" fill-opacity=".2" d="M2 5h1v1H2zM7 5h2v1H7zM13 5h1v1h-1z"/><path fill="#fff" fill-opacity=".3" d="M9 6h3v1H9z"/>`,
15
+ 'light01': (components, colors) => `<path d="M2 5h5v1H4v1H3V6H2V5ZM7 7v1H4V7h3ZM9 7H7V6h2v1ZM12 7H9v1h3V7ZM12 6H9V5h5v1h-1v1h-1V6Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#fff" fill-opacity=".3" d="M4 6h3v1H4zM9 6h3v1H9z"/><path fill="#fff" fill-opacity=".2" d="M12 5h2v1h-2zM2 5h2v1H2zM7 6h2v1H7z"/>`,
16
+ 'dark07': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4H9v1H7V4H4v1H2v1h1v2h1v1h3V8h2v1h3V8h1V6h1V5h-2V4Zm0 1v3H9V5h3ZM7 8H4V5h3v3Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#000" fill-opacity=".3" d="M9 5h3v3H9zM4 5h3v3H4z"/><path fill="#fff" fill-opacity=".2" d="M2 5h1v1H2zM13 5h1v1h-1z"/>`,
17
+ 'dark06': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M2 5v1h1v2h1v1h3V8h2v1h3V8h1V6h1V5H2Zm10 3H9V6h3v2ZM7 8H4V6h3v2Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#000" fill-opacity=".3" d="M9 6h3v2H9zM4 6h3v2H4z"/><path fill="#fff" fill-opacity=".2" d="M7 5h2v1H7zM2 5h2v1H2zM12 5h2v1h-2z"/>`,
18
+ 'dark05': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M2 5v1h1v2h1v1h3V8h2v1h3V8h1V6h1V5H9v1H7V5H2Zm5 1v2H4V6h3Zm2 0v2h3V6H9Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#000" fill-opacity=".3" d="M4 6h3v2H4zM9 6h3v2H9z"/><path fill="#fff" fill-opacity=".2" d="M2 5h2v1H2zM12 5h2v1h-2z"/>`,
19
+ 'dark04': (components, colors) => `<path fill="#000" fill-opacity=".3" d="M4 5h3v3H4zM9 5h3v3H9z"/><path fill="${escape.xml(`#${colors.glasses}`)}" d="M3 5h1v1H3zM7 5h2v1H7zM12 5h1v1h-1z"/>`,
20
+ 'dark03': (components, colors) => `<path fill="${escape.xml(`#${colors.glasses}`)}" d="M2 5h12v1H2zM3 7h10v1H3zM3 6h1v1H3zM12 6h1v1h-1z"/><path fill="#000" fill-opacity=".3" d="M4 6h8v1H4z"/><path fill="#fff" fill-opacity=".2" d="M2 5h1v1H2zM13 5h1v1h-1z"/><path fill="#000" fill-opacity=".3" d="M7 6h2v1H7z"/>`,
21
+ 'dark02': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M14 5H2v1h1v2h4V7h2v1h4V6h1V5Zm-2 1H9v1h3V6ZM7 7H4V6h3v1Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#000" fill-opacity=".3" d="M4 6h3v1H4z"/><path fill="#fff" fill-opacity=".2" d="M2 5h1v1H2zM7 5h2v1H7zM13 5h1v1h-1z"/><path fill="#000" fill-opacity=".3" d="M9 6h3v1H9z"/>`,
22
+ 'dark01': (components, colors) => `<path d="M2 5h5v1H4v1H3V6H2V5ZM7 7v1H4V7h3ZM9 7H7V6h2v1ZM12 7H9v1h3V7ZM12 6H9V5h5v1h-1v1h-1V6Z" fill="${escape.xml(`#${colors.glasses}`)}"/><path fill="#000" fill-opacity=".3" d="M4 6h3v1H4zM9 6h3v1H9z"/><path fill="#fff" fill-opacity=".2" d="M12 5h2v1h-2zM2 5h2v1H2zM7 6h2v1H7z"/>`,
23
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export { eyes } from './eyes.js';
8
+ export { glasses } from './glasses.js';
9
+ export { mouth } from './mouth.js';
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export { eyes } from './eyes.js';
8
+ export { glasses } from './glasses.js';
9
+ export { mouth } from './mouth.js';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { ComponentGroup } from '../types.js';
8
+ export declare const mouth: ComponentGroup;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { escape } from '@dicebear/core';
8
+ export const mouth = {
9
+ 'sad10': (components, colors) => `<path d="M7 9v1h1v1h1V9H7Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
10
+ 'sad09': (components, colors) => `<path d="M6 10v1h1v-1h3V9H7v1H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
11
+ 'sad08': (components, colors) => `<path d="M6 9v1h3v1h1v-1H9V9H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
12
+ 'sad07': (components, colors) => `<path d="M7 9h2v1H7V9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
13
+ 'sad06': (components, colors) => `<path d="M6 9h4v1H6V9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
14
+ 'sad05': (components, colors) => `<path d="M7 9h3v1H7V9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
15
+ 'sad04': (components, colors) => `<path d="M6 9h3v1H6V9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
16
+ 'sad03': (components, colors) => `<path d="M9 9v1H7v1H6v-1h1V9h2Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
17
+ 'sad02': (components, colors) => `<path d="M7 9v1h2v1h1v-1H9V9H7Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
18
+ 'sad01': (components, colors) => `<path d="M7 9h2v1H7V9ZM7 10v1H6v-1h1ZM9 10v1h1v-1H9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
19
+ 'happy13': (components, colors) => `<path d="M6 10v1h1v1h2v-1h1v-1H9V9H7v1H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/><path d="M7 10v1h2v-1H7Z" fill="#fff" fill-opacity=".2"/>`,
20
+ 'happy12': (components, colors) => `<path d="M6 10v1h1v1h2v-1h1v-1H9V9H7v1H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/><path d="M7 10v1h2v-1H7Z" fill="#fff"/>`,
21
+ 'happy11': (components, colors) => `<path d="M6 9v1h1v1h2v-1H7V9H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
22
+ 'happy10': (components, colors) => `<path d="M10 9v1H9v1H7v-1h2V9h1Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
23
+ 'happy09': (components, colors) => `<path d="M7 11h2v-1H7v1ZM7 10V9H6v1h1ZM9 10V9h1v1H9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
24
+ 'happy08': (components, colors) => `<path d="M6 11v-1h3V9h1v1H9v1H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
25
+ 'happy07': (components, colors) => `<path d="M10 11v-1H7V9H6v1h1v1h3Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
26
+ 'happy06': (components, colors) => `<path d="M6 9v1h1v1h2v-1h1V9H6Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
27
+ 'happy05': (components, colors) => `<path d="M7 9v2h2v-1H8V9H7Z" fill="${escape.xml(`#${colors.mouth}`)}"/><path d="M9 11v-1H8V9H7v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>`,
28
+ 'happy04': (components, colors) => `<path d="M9 9v1H8v1h2V9H9Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
29
+ 'happy03': (components, colors) => `<path d="M7 9v1h1v1H6V9h1Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
30
+ 'happy02': (components, colors) => `<path d="M8 10v1h1v-1H8Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
31
+ 'happy01': (components, colors) => `<path d="M7 9v2h2V9H7Z" fill="${escape.xml(`#${colors.mouth}`)}"/>`,
32
+ };
package/lib/core.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { Style } from '@dicebear/core';
8
+ import type { Options } from './types.js';
9
+ export declare const style: Style<Options>;
package/lib/core.js ADDED
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { schema } from './schema.js';
8
+ import { getComponents } from './utils/getComponents.js';
9
+ import { getColors } from './utils/getColors.js';
10
+ import { onPreCreate } from './hooks/onPreCreate.js';
11
+ import { onPostCreate } from './hooks/onPostCreate.js';
12
+ export const style = {
13
+ meta: {
14
+ title: 'Pixel Art neutral',
15
+ creator: 'Florian Körner',
16
+ source: 'https://dicebear.com',
17
+ homepage: 'https://dicebear.com',
18
+ license: {
19
+ name: 'CC0 1.0',
20
+ url: 'https://creativecommons.org/licenses/zero/1.0/',
21
+ },
22
+ },
23
+ schema: schema,
24
+ create: ({ prng, options }) => {
25
+ var _a, _b, _c, _d, _e, _f;
26
+ onPreCreate({ prng, options });
27
+ const components = getComponents({ prng, options });
28
+ const colors = getColors({ prng, options });
29
+ onPostCreate({ prng, options, components, colors });
30
+ return {
31
+ attributes: {
32
+ viewBox: '0 0 14 14',
33
+ fill: 'none',
34
+ 'shape-rendering': 'crispEdges'
35
+ },
36
+ body: `<g transform="translate(-1 -2)">${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(-1 -2)">${(_d = (_c = components.glasses) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(-1)">${(_f = (_e = components.mouth) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g>`,
37
+ };
38
+ },
39
+ };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { Prng, StyleOptions } from "@dicebear/core";
8
+ import { Options, ColorPickCollection, ComponentPickCollection } from "../types.js";
9
+ declare type Props = {
10
+ prng: Prng;
11
+ options: StyleOptions<Options>;
12
+ components: ComponentPickCollection;
13
+ colors: ColorPickCollection;
14
+ };
15
+ export declare function onPostCreate({ prng, options, components, colors }: Props): void;
16
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export function onPostCreate({ prng, options, components, colors }) {
8
+ // Write your modifications here
9
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { Prng, StyleOptions } from "@dicebear/core";
8
+ import { Options } from "../types.js";
9
+ declare type Props = {
10
+ prng: Prng;
11
+ options: StyleOptions<Options>;
12
+ };
13
+ export declare function onPreCreate({ prng, options }: Props): void;
14
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export function onPreCreate({ prng, options }) {
8
+ // Write your modifications here
9
+ }
package/lib/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ declare const create: import("@dicebear/core").StyleCreate<import("./types.js").Options>, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
8
+ export { create, meta, schema };
9
+ export type { Options } from './types.js';
package/lib/index.js ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ /*!
8
+ * Pixel Art Neutral (@dicebear/pixel-art-neutral)
9
+ *
10
+ * Code licensed under MIT License.
11
+ * Copyright (c) 2022 Florian Körner
12
+ *
13
+ * Design "Pixel Art neutral" by Florian Körner licensed under CC0 1.0. / Remix of the original.
14
+ * Source: https://dicebear.com
15
+ * Homepage: https://dicebear.com
16
+ * License: https://creativecommons.org/licenses/zero/1.0/
17
+ */
18
+ import { style } from './core.js';
19
+ const { create, meta, schema } = style;
20
+ export { create, meta, schema };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { StyleSchema } from '@dicebear/core';
8
+ export declare const schema: StyleSchema;
package/lib/schema.js ADDED
@@ -0,0 +1,205 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export const schema = {
8
+ "$schema": "http://json-schema.org/draft-07/schema#",
9
+ "properties": {
10
+ "backgroundColor": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string",
14
+ "pattern": "^[a-fA-F0-9]{6}$"
15
+ },
16
+ "default": [
17
+ "ffdbac",
18
+ "f5cfa0",
19
+ "eac393",
20
+ "e0b687",
21
+ "cb9e6e",
22
+ "b68655",
23
+ "a26d3d",
24
+ "8d5524"
25
+ ]
26
+ },
27
+ "eyes": {
28
+ "type": "array",
29
+ "items": {
30
+ "type": "string",
31
+ "enum": [
32
+ "variant12",
33
+ "variant11",
34
+ "variant10",
35
+ "variant09",
36
+ "variant08",
37
+ "variant07",
38
+ "variant06",
39
+ "variant05",
40
+ "variant04",
41
+ "variant03",
42
+ "variant02",
43
+ "variant01"
44
+ ]
45
+ },
46
+ "default": [
47
+ "variant12",
48
+ "variant11",
49
+ "variant10",
50
+ "variant09",
51
+ "variant08",
52
+ "variant07",
53
+ "variant06",
54
+ "variant05",
55
+ "variant04",
56
+ "variant03",
57
+ "variant02",
58
+ "variant01"
59
+ ]
60
+ },
61
+ "eyesColor": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string",
65
+ "pattern": "^[a-fA-F0-9]{6}$"
66
+ },
67
+ "default": [
68
+ "76778b",
69
+ "697b94",
70
+ "647b90",
71
+ "5b7c8b",
72
+ "588387",
73
+ "876658"
74
+ ]
75
+ },
76
+ "glasses": {
77
+ "type": "array",
78
+ "items": {
79
+ "type": "string",
80
+ "enum": [
81
+ "light07",
82
+ "light06",
83
+ "light05",
84
+ "light04",
85
+ "light03",
86
+ "light02",
87
+ "light01",
88
+ "dark07",
89
+ "dark06",
90
+ "dark05",
91
+ "dark04",
92
+ "dark03",
93
+ "dark02",
94
+ "dark01"
95
+ ]
96
+ },
97
+ "default": [
98
+ "light07",
99
+ "light06",
100
+ "light05",
101
+ "light04",
102
+ "light03",
103
+ "light02",
104
+ "light01",
105
+ "dark07",
106
+ "dark06",
107
+ "dark05",
108
+ "dark04",
109
+ "dark03",
110
+ "dark02",
111
+ "dark01"
112
+ ]
113
+ },
114
+ "glassesColor": {
115
+ "type": "array",
116
+ "items": {
117
+ "type": "string",
118
+ "pattern": "^[a-fA-F0-9]{6}$"
119
+ },
120
+ "default": [
121
+ "4b4b4b",
122
+ "323232",
123
+ "191919",
124
+ "43677d",
125
+ "5f705c",
126
+ "a04b5d"
127
+ ]
128
+ },
129
+ "glassesProbability": {
130
+ "type": "integer",
131
+ "minimum": 0,
132
+ "maximum": 100,
133
+ "default": 10
134
+ },
135
+ "mouth": {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "string",
139
+ "enum": [
140
+ "sad10",
141
+ "sad09",
142
+ "sad08",
143
+ "sad07",
144
+ "sad06",
145
+ "sad05",
146
+ "sad04",
147
+ "sad03",
148
+ "sad02",
149
+ "sad01",
150
+ "happy13",
151
+ "happy12",
152
+ "happy11",
153
+ "happy10",
154
+ "happy09",
155
+ "happy08",
156
+ "happy07",
157
+ "happy06",
158
+ "happy05",
159
+ "happy04",
160
+ "happy03",
161
+ "happy02",
162
+ "happy01"
163
+ ]
164
+ },
165
+ "default": [
166
+ "sad10",
167
+ "sad09",
168
+ "sad08",
169
+ "sad07",
170
+ "sad06",
171
+ "sad05",
172
+ "sad04",
173
+ "sad03",
174
+ "sad02",
175
+ "sad01",
176
+ "happy13",
177
+ "happy12",
178
+ "happy11",
179
+ "happy10",
180
+ "happy09",
181
+ "happy08",
182
+ "happy07",
183
+ "happy06",
184
+ "happy05",
185
+ "happy04",
186
+ "happy03",
187
+ "happy02",
188
+ "happy01"
189
+ ]
190
+ },
191
+ "mouthColor": {
192
+ "type": "array",
193
+ "items": {
194
+ "type": "string",
195
+ "pattern": "^[a-fA-F0-9]{6}$"
196
+ },
197
+ "default": [
198
+ "d29985",
199
+ "c98276",
200
+ "e35d6a",
201
+ "de0f0d"
202
+ ]
203
+ }
204
+ }
205
+ };
package/lib/types.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export interface Options {
8
+ eyes?: ('variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
9
+ glasses?: ('light07' | 'light06' | 'light05' | 'light04' | 'light03' | 'light02' | 'light01' | 'dark07' | 'dark06' | 'dark05' | 'dark04' | 'dark03' | 'dark02' | 'dark01')[];
10
+ glassesProbability?: number;
11
+ mouth?: ('sad10' | 'sad09' | 'sad08' | 'sad07' | 'sad06' | 'sad05' | 'sad04' | 'sad03' | 'sad02' | 'sad01' | 'happy13' | 'happy12' | 'happy11' | 'happy10' | 'happy09' | 'happy08' | 'happy07' | 'happy06' | 'happy05' | 'happy04' | 'happy03' | 'happy02' | 'happy01')[];
12
+ eyesColor?: string[];
13
+ glassesColor?: string[];
14
+ mouthColor?: string[];
15
+ backgroundColor?: string[];
16
+ }
17
+ export declare type ColorPickCollection = Record<string, string>;
18
+ export declare type ComponentGroup = Record<string, ComponentGroupItem>;
19
+ export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
20
+ export declare type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
21
+ export declare type ComponentPickCollection = Record<string, ComponentPick>;
22
+ export declare type ComponentPick = {
23
+ name: string;
24
+ value: ComponentGroupItem;
25
+ } | undefined;
package/lib/types.js ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { Prng } from '@dicebear/core';
8
+ import type { Options, ColorPickCollection } from '../types.js';
9
+ declare type Props = {
10
+ prng: Prng;
11
+ options: Options;
12
+ };
13
+ export declare function getColors({ prng, options }: Props): ColorPickCollection;
14
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ export function getColors({ prng, options }) {
8
+ var _a, _b, _c, _d, _e, _f;
9
+ return {
10
+ 'eyes': (_b = prng.pick((_a = options.eyesColor) !== null && _a !== void 0 ? _a : [])) !== null && _b !== void 0 ? _b : 'transparent',
11
+ 'glasses': (_d = prng.pick((_c = options.glassesColor) !== null && _c !== void 0 ? _c : [])) !== null && _d !== void 0 ? _d : 'transparent',
12
+ 'mouth': (_f = prng.pick((_e = options.mouthColor) !== null && _e !== void 0 ? _e : [])) !== null && _f !== void 0 ? _f : 'transparent',
13
+ };
14
+ }
15
+ ;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import type { Prng } from '@dicebear/core';
8
+ import type { Options, ComponentPickCollection } from '../types.js';
9
+ declare type Props = {
10
+ prng: Prng;
11
+ options: Options;
12
+ };
13
+ export declare function getComponents({ prng, options }: Props): ComponentPickCollection;
14
+ export {};
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/WTcivb1XPf5ODtyv7ZNnU9/%40dicebear%2Fpixel-art?node-id=5%3A1419
6
+ */
7
+ import { pickComponent } from './pickComponent.js';
8
+ export function getComponents({ prng, options }) {
9
+ const eyesComponent = pickComponent({
10
+ prng,
11
+ group: 'eyes',
12
+ values: options.eyes
13
+ });
14
+ const glassesComponent = pickComponent({
15
+ prng,
16
+ group: 'glasses',
17
+ values: options.glasses
18
+ });
19
+ const mouthComponent = pickComponent({
20
+ prng,
21
+ group: 'mouth',
22
+ values: options.mouth
23
+ });
24
+ return {
25
+ 'eyes': eyesComponent,
26
+ 'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined,
27
+ 'mouth': mouthComponent,
28
+ };
29
+ }
30
+ ;