@dicebear/adventurer-neutral
Advanced tools
Comparing version 5.0.0-alpha.13 to 5.0.0-alpha.14
export { eyes } from './eyes.js'; | ||
export { eyebrows } from './eyebrows.js'; | ||
export { mouth } from './mouth.js'; | ||
export { features } from './features.js'; | ||
export { glasses } from './glasses.js'; |
export { eyes } from './eyes.js'; | ||
export { eyebrows } from './eyebrows.js'; | ||
export { mouth } from './mouth.js'; | ||
export { features } from './features.js'; | ||
export { glasses } from './glasses.js'; |
@@ -19,3 +19,3 @@ import { schema } from './schema.js'; | ||
create: ({ prng, options }) => { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; | ||
var _a, _b, _c, _d, _e, _f, _g, _h; | ||
onPreCreate({ prng, options, preview: false }); | ||
@@ -32,3 +32,3 @@ const components = getComponents({ prng, options }); | ||
}, | ||
body: `<g transform="translate(-279 -322)">${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(-279 -322)">${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(-279 -322)">${(_f = (_e = components.mouth) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(-279 -322)">${(_h = (_g = components.features) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g><g transform="translate(-279 -322)">${(_k = (_j = components.glasses) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}</g>`, | ||
body: `<g transform="translate(-279 -322)">${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(-279 -322)">${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(-279 -322)">${(_f = (_e = components.mouth) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(-279 -322)">${(_h = (_g = components.glasses) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g>`, | ||
}; | ||
@@ -35,0 +35,0 @@ }, |
@@ -14,6 +14,2 @@ export const dimensions = { | ||
}, | ||
features: { | ||
width: 1024, | ||
height: 1024, | ||
}, | ||
glasses: { | ||
@@ -20,0 +16,0 @@ width: 1024, |
@@ -167,14 +167,2 @@ export const schema = { | ||
}, | ||
features: { | ||
type: 'array', | ||
items: { type: 'string', enum: ['blush', 'birthmark', 'freckles'] }, | ||
default: ['blush', 'birthmark', 'freckles'], | ||
examples: [['blush'], ['birthmark'], ['freckles']], | ||
}, | ||
featuresProbability: { | ||
type: 'integer', | ||
minimum: 0, | ||
maximum: 100, | ||
default: 5, | ||
}, | ||
glasses: { | ||
@@ -181,0 +169,0 @@ type: 'array', |
@@ -5,4 +5,2 @@ export interface Options { | ||
mouth?: ('variant30' | 'variant29' | 'variant28' | 'variant27' | 'variant26' | 'variant25' | 'variant24' | 'variant23' | 'variant22' | 'variant21' | 'variant20' | 'variant19' | 'variant18' | 'variant17' | 'variant16' | 'variant15' | 'variant14' | 'variant13' | 'variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[]; | ||
features?: ('blush' | 'birthmark' | 'freckles')[]; | ||
featuresProbability?: number; | ||
glasses?: ('variant01' | 'variant02' | 'variant03' | 'variant04' | 'variant05')[]; | ||
@@ -9,0 +7,0 @@ glassesProbability?: number; |
@@ -18,7 +18,2 @@ import { pickComponent } from './pickComponent.js'; | ||
}); | ||
const featuresComponent = pickComponent({ | ||
prng, | ||
group: 'features', | ||
values: options.features, | ||
}); | ||
const glassesComponent = pickComponent({ | ||
@@ -33,5 +28,2 @@ prng, | ||
mouth: mouthComponent, | ||
features: prng.bool(options.featuresProbability) | ||
? featuresComponent | ||
: undefined, | ||
glasses: prng.bool(options.glassesProbability) | ||
@@ -38,0 +30,0 @@ ? glassesComponent |
{ | ||
"name": "@dicebear/adventurer-neutral", | ||
"version": "5.0.0-alpha.13", | ||
"version": "5.0.0-alpha.14", | ||
"description": "Avatar style for DiceBear", | ||
@@ -31,3 +31,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@dicebear/core": "^5.0.0-alpha.13", | ||
"@dicebear/core": "^5.0.0-alpha.14", | ||
"@tsconfig/recommended": "^1.0.0", | ||
@@ -48,3 +48,3 @@ "@types/jest": "^26.0.22", | ||
}, | ||
"gitHead": "73f03408dec4386525493811f0f35b30509844ad" | ||
"gitHead": "d5d0a634d035328c19eda3121496b2ad4f53850b" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
112812
39
963