@dicebear/identicon
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1
@@ -278,7 +278,8 @@ var title = "Options"; | ||
function pickComponent({ | ||
prng, | ||
group, | ||
values = [] | ||
}) { | ||
function pickComponent(_ref) { | ||
let { | ||
prng, | ||
group, | ||
values = [] | ||
} = _ref; | ||
const componentCollection = components; | ||
@@ -297,6 +298,7 @@ const key = prng.pick(values); | ||
function getComponents({ | ||
prng, | ||
options | ||
}) { | ||
function getComponents(_ref) { | ||
let { | ||
prng, | ||
options | ||
} = _ref; | ||
const row1Component = pickComponent({ | ||
@@ -363,9 +365,10 @@ prng, | ||
function pickColor({ | ||
prng, | ||
group, | ||
values = [] | ||
}) { | ||
function pickColor(_ref) { | ||
var _colorCollection$grou; | ||
let { | ||
prng, | ||
group, | ||
values = [] | ||
} = _ref; | ||
const colorCollection = colors; | ||
@@ -384,6 +387,7 @@ | ||
function getColors({ | ||
prng, | ||
options | ||
}) { | ||
function getColors(_ref) { | ||
let { | ||
prng, | ||
options | ||
} = _ref; | ||
return { | ||
@@ -431,7 +435,9 @@ row: pickColor({ | ||
schema: schema$1, | ||
create: ({ | ||
prng, | ||
options | ||
}) => { | ||
create: _ref => { | ||
var _components$row1$valu, _components$row, _components$row2$valu, _components$row2, _components$row3$valu, _components$row3, _components$row4$valu, _components$row4, _components$row5$valu, _components$row5; | ||
let { | ||
prng, | ||
options | ||
} = _ref; | ||
const components = getComponents({ | ||
@@ -454,7 +460,8 @@ prng, | ||
}, | ||
preview: ({ | ||
prng, | ||
options, | ||
property | ||
}) => { | ||
preview: _ref2 => { | ||
let { | ||
prng, | ||
options, | ||
property | ||
} = _ref2; | ||
const componentGroup = property.toString(); | ||
@@ -461,0 +468,0 @@ const colorGroup = property.toString().replace(/Color$/, ''); |
@@ -282,7 +282,8 @@ 'use strict'; | ||
function pickComponent({ | ||
prng, | ||
group, | ||
values = [] | ||
}) { | ||
function pickComponent(_ref) { | ||
let { | ||
prng, | ||
group, | ||
values = [] | ||
} = _ref; | ||
const componentCollection = components; | ||
@@ -301,6 +302,7 @@ const key = prng.pick(values); | ||
function getComponents({ | ||
prng, | ||
options | ||
}) { | ||
function getComponents(_ref) { | ||
let { | ||
prng, | ||
options | ||
} = _ref; | ||
const row1Component = pickComponent({ | ||
@@ -367,9 +369,10 @@ prng, | ||
function pickColor({ | ||
prng, | ||
group, | ||
values = [] | ||
}) { | ||
function pickColor(_ref) { | ||
var _colorCollection$grou; | ||
let { | ||
prng, | ||
group, | ||
values = [] | ||
} = _ref; | ||
const colorCollection = colors; | ||
@@ -388,6 +391,7 @@ | ||
function getColors({ | ||
prng, | ||
options | ||
}) { | ||
function getColors(_ref) { | ||
let { | ||
prng, | ||
options | ||
} = _ref; | ||
return { | ||
@@ -435,7 +439,9 @@ row: pickColor({ | ||
schema: schema$1, | ||
create: ({ | ||
prng, | ||
options | ||
}) => { | ||
create: _ref => { | ||
var _components$row1$valu, _components$row, _components$row2$valu, _components$row2, _components$row3$valu, _components$row3, _components$row4$valu, _components$row4, _components$row5$valu, _components$row5; | ||
let { | ||
prng, | ||
options | ||
} = _ref; | ||
const components = getComponents({ | ||
@@ -458,7 +464,8 @@ prng, | ||
}, | ||
preview: ({ | ||
prng, | ||
options, | ||
property | ||
}) => { | ||
preview: _ref2 => { | ||
let { | ||
prng, | ||
options, | ||
property | ||
} = _ref2; | ||
const componentGroup = property.toString(); | ||
@@ -465,0 +472,0 @@ const colorGroup = property.toString().replace(/Color$/, ''); |
@@ -1,2 +0,2 @@ | ||
!function(o,x){"object"==typeof exports&&"undefined"!=typeof module?x(exports):"function"==typeof define&&define.amd?define(["exports"],x):x(((o="undefined"!=typeof globalThis?globalThis:o||self).DiceBear=o.DiceBear||{},o.DiceBear.Identicon={}))}(this,(function(o){"use strict";var x={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{row1:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row1Probability:{type:"integer",minimum:0,maximum:100,default:88},row2:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row2Probability:{type:"integer",minimum:0,maximum:100,default:88},row3:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row3Probability:{type:"integer",minimum:0,maximum:100,default:88},row4:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row4Probability:{type:"integer",minimum:0,maximum:100,default:88},row5:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row5Probability:{type:"integer",minimum:0,maximum:100,default:88},rowColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}]},default:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}},additionalProperties:!1};var e=Object.freeze({__proto__:null,row1:{xooox:(o,x)=>'\n<path d="M1 0H0v1h1V0ZM5 0H4v1h1V0Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 0H0v1h2V0ZM5 0H3v1h2V0Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 0h1v1H0V0ZM4 0h1v1H4V0ZM3 0H2v1h1V0Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 0h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 0h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 0H1v1h1V0ZM4 0H3v1h1V0Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 0h1v1H2z"/>\n')},row2:{xooox:(o,x)=>'\n<path d="M1 1H0v1h1V1ZM5 1H4v1h1V1Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 1H0v1h2V1ZM5 1H3v1h2V1Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 1h1v1H0V1ZM4 1h1v1H4V1ZM3 1H2v1h1V1Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 1h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 1h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 1H1v1h1V1ZM4 1H3v1h1V1Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 1h1v1H2z"/>\n')},row3:{xooox:(o,x)=>'\n<path d="M1 2H0v1h1V2ZM5 2H4v1h1V2Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 2H0v1h2V2ZM5 2H3v1h2V2Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 2h1v1H0V2ZM4 2h1v1H4V2ZM3 2H2v1h1V2Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 2h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 2h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 2H1v1h1V2ZM4 2H3v1h1V2Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 2h1v1H2z"/>\n')},row4:{xooox:(o,x)=>'\n<path d="M1 3H0v1h1V3ZM5 3H4v1h1V3Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 3H0v1h2V3ZM5 3H3v1h2V3Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 3h1v1H0V3ZM4 3h1v1H4V3ZM3 3H2v1h1V3Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 3h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 3h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 3H1v1h1V3ZM4 3H3v1h1V3Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 3h1v1H2z"/>\n')},row5:{xooox:(o,x)=>'\n<path d="M1 4H0v1h1V4ZM5 4H4v1h1V4Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 4H0v1h2V4ZM5 4H3v1h2V4Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 4h1v1H0V4ZM4 4h1v1H4V4ZM3 4H2v1h1V4Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 4h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 4h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 4H1v1h1V4ZM4 4H3v1h1V4Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 4h1v1H2z"/>\n')}});function n({prng:o,group:x,values:n=[]}){const r=e,a=o.pick(n);return r[x][a]?{name:a,value:r[x][a]}:void 0}function r({prng:o,options:x}){const e=n({prng:o,group:"row1",values:x.row1}),r=n({prng:o,group:"row2",values:x.row2}),a=n({prng:o,group:"row3",values:x.row3}),t=n({prng:o,group:"row4",values:x.row4}),l=n({prng:o,group:"row5",values:x.row5});return{row1:o.bool(x.row1Probability)?e:void 0,row2:o.bool(x.row2Probability)?r:void 0,row3:o.bool(x.row3Probability)?a:void 0,row4:o.bool(x.row4Probability)?t:void 0,row5:o.bool(x.row5Probability)?l:void 0}}var a=Object.freeze({__proto__:null,row:{red:"rgba(229, 57, 53, 1)",amber:"rgba(255, 179, 0, 1)",blue:"rgba(30, 136, 229, 1)",blueGray:"rgba(84, 110, 122, 1)",brown:"rgba(109, 76, 65, 1)",cyan:"rgba(0, 172, 193, 1)",deepOrange:"rgba(244, 81, 30, 1)",deepPurple:"rgba(94, 53, 177, 1)",green:"rgba(67, 160, 71, 1)",grey:"rgba(117, 117, 117, 1)",indigo:"rgba(57, 73, 171, 1)",lightBlue:"rgba(3, 155, 229, 1)",lightGreen:"rgba(124, 179, 66, 1)",lime:"rgba(192, 202, 51, 1)",orange:"rgba(251, 140, 0, 1)",pink:"rgba(216, 27, 96, 1)",purple:"rgba(142, 36, 170, 1)",teal:"rgba(0, 137, 123, 1)",yellow:"rgba(253, 216, 53, 1)"}});function t({prng:o,group:x,values:e=[]}){var n;const r=a;0===e.length&&e.push("transparent");const t=o.pick(e);return{name:t,value:null!==(n=r[x][t])&&void 0!==n?n:t}}function l({prng:o,options:x}){return{row:t({prng:o,group:"row",values:x.rowColor})}}const i={row1:{width:5,height:5},row2:{width:5,height:5},row3:{width:5,height:5},row4:{width:5,height:5},row5:{width:5,height:5}},v={meta:{title:"Identicon",creator:"Florian Körner",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:x,create:({prng:o,options:x})=>{var e,n,a,t,i,v,u,h,p,c;const d=r({prng:o,options:x}),w=l({prng:o,options:x});return{attributes:{viewBox:"0 0 5 5",fill:"none","shape-rendering":"crispEdges"},body:"\n".concat(null!==(e=null===(n=d.row1)||void 0===n?void 0:n.value(d,w))&&void 0!==e?e:"","\n").concat(null!==(a=null===(t=d.row2)||void 0===t?void 0:t.value(d,w))&&void 0!==a?a:"","\n").concat(null!==(i=null===(v=d.row3)||void 0===v?void 0:v.value(d,w))&&void 0!==i?i:"","\n").concat(null!==(u=null===(h=d.row4)||void 0===h?void 0:h.value(d,w))&&void 0!==u?u:"","\n").concat(null!==(p=null===(c=d.row5)||void 0===c?void 0:c.value(d,w))&&void 0!==p?p:"","\n")}},preview:({prng:o,options:x,property:e})=>{const n=e.toString(),a=e.toString().replace(/Color$/,""),t=r({prng:o,options:x}),v=l({prng:o,options:x});if(n in t){var u,h;const{width:o,height:x}=i[n];return{attributes:{viewBox:"0 0 ".concat(o," ").concat(x),fill:"none","shape-rendering":"crispEdges"},body:null!==(u=null===(h=t[n])||void 0===h?void 0:h.value(t,v))&&void 0!==u?u:""}}if(a in v)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"crispEdges"},body:'<rect width="1" height="1" fill="'.concat(v[a].value,'" />')}}}; | ||
!function(o,x){"object"==typeof exports&&"undefined"!=typeof module?x(exports):"function"==typeof define&&define.amd?define(["exports"],x):x(((o="undefined"!=typeof globalThis?globalThis:o||self).DiceBear=o.DiceBear||{},o.DiceBear.Identicon={}))}(this,(function(o){"use strict";var x={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{row1:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row1Probability:{type:"integer",minimum:0,maximum:100,default:88},row2:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row2Probability:{type:"integer",minimum:0,maximum:100,default:88},row3:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row3Probability:{type:"integer",minimum:0,maximum:100,default:88},row4:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row4Probability:{type:"integer",minimum:0,maximum:100,default:88},row5:{type:"array",items:{type:"string",enum:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},default:["xooox","xxoxx","xoxox","oxxxo","xxxxx","oxoxo","ooxoo"]},row5Probability:{type:"integer",minimum:0,maximum:100,default:88},rowColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}]},default:["red","amber","blue","blueGray","brown","cyan","deepOrange","deepPurple","green","grey","indigo","lightBlue","lightGreen","lime","orange","pink","purple","teal","yellow"]}},additionalProperties:!1};var e=Object.freeze({__proto__:null,row1:{xooox:(o,x)=>'\n<path d="M1 0H0v1h1V0ZM5 0H4v1h1V0Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 0H0v1h2V0ZM5 0H3v1h2V0Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 0h1v1H0V0ZM4 0h1v1H4V0ZM3 0H2v1h1V0Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 0h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 0h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 0H1v1h1V0ZM4 0H3v1h1V0Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 0h1v1H2z"/>\n')},row2:{xooox:(o,x)=>'\n<path d="M1 1H0v1h1V1ZM5 1H4v1h1V1Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 1H0v1h2V1ZM5 1H3v1h2V1Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 1h1v1H0V1ZM4 1h1v1H4V1ZM3 1H2v1h1V1Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 1h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 1h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 1H1v1h1V1ZM4 1H3v1h1V1Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 1h1v1H2z"/>\n')},row3:{xooox:(o,x)=>'\n<path d="M1 2H0v1h1V2ZM5 2H4v1h1V2Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 2H0v1h2V2ZM5 2H3v1h2V2Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 2h1v1H0V2ZM4 2h1v1H4V2ZM3 2H2v1h1V2Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 2h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 2h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 2H1v1h1V2ZM4 2H3v1h1V2Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 2h1v1H2z"/>\n')},row4:{xooox:(o,x)=>'\n<path d="M1 3H0v1h1V3ZM5 3H4v1h1V3Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 3H0v1h2V3ZM5 3H3v1h2V3Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 3h1v1H0V3ZM4 3h1v1H4V3ZM3 3H2v1h1V3Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 3h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 3h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 3H1v1h1V3ZM4 3H3v1h1V3Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 3h1v1H2z"/>\n')},row5:{xooox:(o,x)=>'\n<path d="M1 4H0v1h1V4ZM5 4H4v1h1V4Z" fill="'.concat(x.row.value,'"/>\n'),xxoxx:(o,x)=>'\n<path d="M2 4H0v1h2V4ZM5 4H3v1h2V4Z" fill="'.concat(x.row.value,'"/>\n'),xoxox:(o,x)=>'\n<path d="M0 4h1v1H0V4ZM4 4h1v1H4V4ZM3 4H2v1h1V4Z" fill="'.concat(x.row.value,'"/>\n'),oxxxo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M1 4h3v1H1z"/>\n'),xxxxx:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M0 4h5v1H0z"/>\n'),oxoxo:(o,x)=>'\n<path d="M2 4H1v1h1V4ZM4 4H3v1h1V4Z" fill="'.concat(x.row.value,'"/>\n'),ooxoo:(o,x)=>'\n<path fill="'.concat(x.row.value,'" d="M2 4h1v1H2z"/>\n')}});function n(o){let{prng:x,group:n,values:r=[]}=o;const a=e,t=x.pick(r);return a[n][t]?{name:t,value:a[n][t]}:void 0}function r(o){let{prng:x,options:e}=o;const r=n({prng:x,group:"row1",values:e.row1}),a=n({prng:x,group:"row2",values:e.row2}),t=n({prng:x,group:"row3",values:e.row3}),l=n({prng:x,group:"row4",values:e.row4}),i=n({prng:x,group:"row5",values:e.row5});return{row1:x.bool(e.row1Probability)?r:void 0,row2:x.bool(e.row2Probability)?a:void 0,row3:x.bool(e.row3Probability)?t:void 0,row4:x.bool(e.row4Probability)?l:void 0,row5:x.bool(e.row5Probability)?i:void 0}}var a=Object.freeze({__proto__:null,row:{red:"rgba(229, 57, 53, 1)",amber:"rgba(255, 179, 0, 1)",blue:"rgba(30, 136, 229, 1)",blueGray:"rgba(84, 110, 122, 1)",brown:"rgba(109, 76, 65, 1)",cyan:"rgba(0, 172, 193, 1)",deepOrange:"rgba(244, 81, 30, 1)",deepPurple:"rgba(94, 53, 177, 1)",green:"rgba(67, 160, 71, 1)",grey:"rgba(117, 117, 117, 1)",indigo:"rgba(57, 73, 171, 1)",lightBlue:"rgba(3, 155, 229, 1)",lightGreen:"rgba(124, 179, 66, 1)",lime:"rgba(192, 202, 51, 1)",orange:"rgba(251, 140, 0, 1)",pink:"rgba(216, 27, 96, 1)",purple:"rgba(142, 36, 170, 1)",teal:"rgba(0, 137, 123, 1)",yellow:"rgba(253, 216, 53, 1)"}});function t(o){var x;let{prng:e,group:n,values:r=[]}=o;const t=a;0===r.length&&r.push("transparent");const l=e.pick(r);return{name:l,value:null!==(x=t[n][l])&&void 0!==x?x:l}}function l(o){let{prng:x,options:e}=o;return{row:t({prng:x,group:"row",values:e.rowColor})}}const i={row1:{width:5,height:5},row2:{width:5,height:5},row3:{width:5,height:5},row4:{width:5,height:5},row5:{width:5,height:5}},v={meta:{title:"Identicon",creator:"Florian Körner",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},schema:x,create:o=>{var x,e,n,a,t,i,v,u,h,p;let{prng:c,options:d}=o;const w=r({prng:c,options:d}),g=l({prng:c,options:d});return{attributes:{viewBox:"0 0 5 5",fill:"none","shape-rendering":"crispEdges"},body:"\n".concat(null!==(x=null===(e=w.row1)||void 0===e?void 0:e.value(w,g))&&void 0!==x?x:"","\n").concat(null!==(n=null===(a=w.row2)||void 0===a?void 0:a.value(w,g))&&void 0!==n?n:"","\n").concat(null!==(t=null===(i=w.row3)||void 0===i?void 0:i.value(w,g))&&void 0!==t?t:"","\n").concat(null!==(v=null===(u=w.row4)||void 0===u?void 0:u.value(w,g))&&void 0!==v?v:"","\n").concat(null!==(h=null===(p=w.row5)||void 0===p?void 0:p.value(w,g))&&void 0!==h?h:"","\n")}},preview:o=>{let{prng:x,options:e,property:n}=o;const a=n.toString(),t=n.toString().replace(/Color$/,""),v=r({prng:x,options:e}),u=l({prng:x,options:e});if(a in v){var h,p;const{width:o,height:x}=i[a];return{attributes:{viewBox:"0 0 ".concat(o," ").concat(x),fill:"none","shape-rendering":"crispEdges"},body:null!==(h=null===(p=v[a])||void 0===p?void 0:p.value(v,u))&&void 0!==h?h:""}}if(t in u)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"crispEdges"},body:'<rect width="1" height="1" fill="'.concat(u[t].value,'" />')}}}; | ||
/*! | ||
@@ -3,0 +3,0 @@ * Identicon (@dicebear/identicon) |
{ | ||
"name": "@dicebear/identicon", | ||
"version": "5.0.0-alpha.0", | ||
"version": "5.0.0-alpha.1", | ||
"description": "Avatar style for DiceBear", | ||
@@ -45,3 +45,3 @@ "keywords": [ | ||
"peerDependencies": { | ||
"@dicebear/core": "^5.0.0" | ||
"@dicebear/core": "^5.0.0-alpha.0" | ||
}, | ||
@@ -51,3 +51,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "842f2a824d473dc87a637100f3375cc94db2787d" | ||
"gitHead": "e4489c307e65ec8f162a09d17de26f7e8e96f5e1" | ||
} |
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
44349
1172