Socket
Socket
Sign inDemoInstall

gridy-avatars

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gridy-avatars - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

dist/avatars.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.avatars=t():e.avatars=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function c(a){if(t[a])return t[a].exports;var f=t[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,c),f.l=!0,f.exports}return c.m=e,c.c=t,c.d=function(e,t,a){c.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},c.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/dist/",c(c.s=2)}([function(e){e.exports={body:['<circle cx="12" cy="12" r="10"></circle>','<path d="M 5,1 V 5 H 1 v 14 h 4 v 4 h 14 v -4 h 4 V 5 H 19 V 1 Z"></path>','<rect width="20" height="20" x="2" y="2" rx="2" ry="2"></rect>','<path d="M 14.444444,0.99999994 12,3.4444444 9.5555556,0.99999994 0.99999994,9.5555556 3.4444444,12 0.99999994,14.444444 9.5555556,23 12,20.555556 14.444444,23 23,14.444444 20.555556,12 23,9.5555556 Z"></path>','<path d="M 4,2 5.5976562,9.9882812 1.0507812,14.535156 2.4648438,15.949219 6.0683594,12.345703 8,22 h 8 l 1.931641,-9.654297 3.603515,3.603516 1.414063,-1.414063 L 18.402344,9.9882812 20,2 Z"></path>','<path d="M 21.999999,17.773502 12,23.547005 2.0000006,17.773502 l 0,-11.5470044 L 12,0.4529953 21.999999,6.2264977 Z"></path>','<circle cy="10" cx="12" r="9"></circle><rect width="10" height="9" x="7" y="14" rx="1.6666667" ry="1"></rect>','<path d="M 7,2 6,6 H 2 l 2,8 -2,8 H 22 L 20,14 22,6 H 18 L 17,2 Z"></path>'],eyes:['<path d="M 15.5,11 C 16.33,11 17,10.33 17,9.5 17,8.67 16.33,8 15.5,8 14.67,8 14,8.67 14,9.5 c 0,0.83 0.67,1.5 1.5,1.5 z"></path><path d="M 8.5,11 C 9.33,11 10,10.33 10,9.5 10,8.67 9.33,8 8.5,8 7.67,8 7,8.67 7,9.5 7,10.33 7.67,11 8.5,11 Z"></path><path d="M 15.5,11 C 16.33,11 17,10.33 17,9.5 17,8.67 16.33,8 15.5,8 14.67,8 14,8.67 14,9.5 c 0,0.83 0.67,1.5 1.5,1.5 z"></path>','<rect width="6" height="1" x="9.7279215" y="0.20710692" transform="rotate(45)"></rect><rect transform="rotate(135)" y="-13.227921" x="-2.2928932" height="1" width="6"></rect><rect transform="rotate(45)" y="-4.7426405" x="14.67767" height="1" width="6"></rect><rect width="6" height="1" x="-7.2426405" y="-18.17767" transform="rotate(135)"></rect>','<path d="M 15.5,7 C 14.116667,7 13,8.1166667 13,9.5 13,10.883333 14.116667,12 15.5,12 16.883333,12 18,10.883333 18,9.5 18,8.1166667 16.883333,7 15.5,7 Z m 0,1 C 16.33,8 17,8.67 17,9.5 17,10.33 16.33,11 15.5,11 14.67,11 14,10.33 14,9.5 14,8.67 14.67,8 15.5,8 Z"></path><path d="M 8.5,7 C 7.116667,7 6,8.1166667 6,9.5 6,10.883333 7.116667,12 8.5,12 9.883333,12 11,10.883333 11,9.5 11,8.1166667 9.883333,7 8.5,7 Z m 0,1 C 9.33,8 10,8.67 10,9.5 10,10.33 9.33,11 8.5,11 7.67,11 7,10.33 7,9.5 7,8.67 7.67,8 8.5,8 Z"></path><path d="m 12,8 c -0.989493,0 -1.8112,0.857662 -2,2 h 0.753315 C 10.935894,9.418302 11.466399,9 12,9 c 0.533601,0 1.064106,0.418302 1.246685,1 H 14 C 13.8112,8.857662 12.989493,8 12,8 Z"></path>','<path d="M 12,6.5 A 7,7 0 0 0 6.2617188,9.494141 7,7 0 0 0 12,12.5 7,7 0 0 0 17.738281,9.505859 7,7 0 0 0 12,6.5 Z M 12,7 c 1.383333,0 2.5,1.116667 2.5,2.5 C 14.5,10.883333 13.383333,12 12,12 10.616667,12 9.5,10.883333 9.5,9.5 9.5,8.116667 10.616667,7 12,7 Z m 0,1 c -0.83,0 -1.5,0.67 -1.5,1.5 0,0.83 0.67,1.5 1.5,1.5 0.83,0 1.5,-0.67 1.5,-1.5 C 13.5,8.67 12.83,8 12,8 Z"></path>','<path d="m 12,8 c -0.989493,0 -1.8112,0.857662 -2,2 h 0.753315 C 10.935894,9.418302 11.466399,9 12,9 c 0.533601,0 1.064106,0.418302 1.246685,1 H 14 C 13.8112,8.857662 12.989493,8 12,8 Z"></path><rect width="6" height="6" x="5" y="7" rx="1" ry="1"></rect><rect ry="1" rx="1" y="7" x="13" height="6" width="6"></rect>','<path d="m 15.888229,10.948889 c 1.603436,-0.42964 2.724368,-1.4236277 2.509548,-2.2253461 -0.214819,-0.8017185 -1.682569,-2.0581593 -3.286006,-1.6285196 -1.603436,0.4296396 -2.724368,2.3797154 -2.509548,3.1814337 0.214819,0.801719 1.682569,1.102071 3.286006,0.672432 z"></path><path d="M 8.1117707,10.948889 C 6.5083347,10.519249 5.3874027,9.5252613 5.6022227,8.7235429 5.8170417,7.9218244 7.2847917,6.6653836 8.8882287,7.0950233 10.491665,7.5246629 11.612597,9.4747387 11.397777,10.276457 11.182958,11.078176 9.7152077,11.378528 8.1117707,10.948889 Z"></path>','<path d="m 6,7 -2,2 4,4 3,-1 V 10 L 10.95313,9.970703 C 10.733059,11.127302 9.7218293,12 8.5,12 7.116667,12 6,10.883333 6,9.5 6,8.7128681 6.3690487,8.0203566 6.9355469,7.5625 Z M 7.8867188,8.1328125 C 7.3644757,8.3671413 7,8.8893367 7,9.5 7,10.33 7.67,11 8.5,11 9.33,11 10,10.33 10,9.5 10,9.463163 9.99088,9.42874 9.988281,9.3925781 Z"></path><path d="M 18,7 17.064453,7.5625 C 17.630951,8.0203566 18,8.7128681 18,9.5 18,10.883333 16.883333,12 15.5,12 14.278171,12 13.266941,11.127302 13.046875,9.9707031 L 13,10 v 2 l 3,1 4,-4 z M 16.113281,8.1328125 14.011719,9.3925781 C 14.009124,9.4287398 14,9.4631634 14,9.5 14,10.33 14.67,11 15.5,11 16.33,11 17,10.33 17,9.5 17,8.8893367 16.635524,8.3671413 16.113281,8.1328125 Z"></path>','<rect width="14" height="3" x="5" y="8" rx="1" ry="1"></rect>'],mouth:['<path d="m 12,17.5 c 2.33,0 4.31,-1.46 5.11,-3.5 H 6.89 c 0.8,2.04 2.78,3.5 5.11,3.5 z"></path>','<path d="m 12,14 c 2.33,0 4.31,1.46 5.11,3.5 H 6.89 C 7.69,15.46 9.67,14 12,14 Z"></path>','<path d="m 12,17 c 0.83,0 1.5,-0.67 1.5,-1.5 0,-0.83 -0.67,-1.5 -1.5,-1.5 -0.83,0 -1.5,0.67 -1.5,1.5 0,0.83 0.67,1.5 1.5,1.5 z"></path>','<path d="m 12,17.5 c 2.33,0 4.31,-1.46 5.11,-3.5 H 6.89 c 0.8,2.04 2.78,3.5 5.11,3.5 z"></path><path d="m 8,15 1,5 1,-5 z"></path><path d="m 14,15 1,5 1,-5 z"></path>','<path d="m 6,14 c -0.554,0 -1,0.446 -1,1 v 3 c 0,0.554 0.446,1 1,1 h 12 c 0.554,0 1,-0.446 1,-1 v -3 c 0,-0.554 -0.446,-1 -1,-1 z m 1.5,1 C 7.777,15 8,15.223 8,15.5 v 2 C 8,17.777 7.777,18 7.5,18 7.223,18 7,17.777 7,17.5 v -2 C 7,15.223 7.223,15 7.5,15 Z m 3,0 c 0.277,0 0.5,0.223 0.5,0.5 v 2 C 11,17.777 10.777,18 10.5,18 10.223,18 10,17.777 10,17.5 v -2 C 10,15.223 10.223,15 10.5,15 Z m 3,0 c 0.277,0 0.5,0.223 0.5,0.5 v 2 C 14,17.777 13.777,18 13.5,18 13.223,18 13,17.777 13,17.5 v -2 C 13,15.223 13.223,15 13.5,15 Z m 3,0 c 0.277,0 0.5,0.223 0.5,0.5 v 2 C 17,17.777 16.777,18 16.5,18 16.223,18 16,17.777 16,17.5 v -2 C 16,15.223 16.223,15 16.5,15 Z"></path>','<path d="m 6,14 c -0.554,0 -1,0.446 -1,1 v 3 c 0,0.554 0.446,1 1,1 h 12 c 0.554,0 1,-0.446 1,-1 v -3 c 0,-0.554 -0.446,-1 -1,-1 z m 3,1 h 2 v 2 c 0,0.554 -0.446,1 -1,1 -0.554,0 -1,-0.446 -1,-1 z m 4,0 h 2 v 2 c 0,0.554 -0.446,1 -1,1 -0.554,0 -1,-0.446 -1,-1 z"></path>','<path d="M 7.5,15 C 7.223,15 7,15.223 7,15.5 V 16 H 6.5 C 6.223,16 6,16.223 6,16.5 6,16.777 6.223,17 6.5,17 H 7 v 0.5 C 7,17.777 7.223,18 7.5,18 7.777,18 8,17.777 8,17.5 V 17 h 2 v 0.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 V 17 h 2 v 0.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 V 17 h 2 v 0.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 V 17 h 0.5 C 17.777,17 18,16.777 18,16.5 18,16.223 17.777,16 17.5,16 H 17 V 15.5 C 17,15.223 16.777,15 16.5,15 16.223,15 16,15.223 16,15.5 V 16 H 14 V 15.5 C 14,15.223 13.777,15 13.5,15 13.223,15 13,15.223 13,15.5 V 16 H 11 V 15.5 C 11,15.223 10.777,15 10.5,15 10.223,15 10,15.223 10,15.5 V 16 H 8 V 15.5 C 8,15.223 7.777,15 7.5,15 Z"></path>','<path d="m 12,14 c 2.33,0 4.31,1.46 5.11,3.5 H 6.89 C 7.69,15.46 9.67,14 12,14 Z"></path><path d="m 8,16 1,5 1,-5 z"></path><path d="m 14,16 1,5 1,-5 z"></path>']}},function(e){e.exports={bg:[["#8e24aa","#7b1fa2"],["#3949ab","#303f9f"],["#039be5","#0288d1"],["#00897b","#00796b"],["#7cb342","#689f38"],["#fdd835","#fbc02d"],["#fb8c00","#f57c00"],["#e53935","#d32f2f"]],fg:[[["#eeeeee","#e0e0e0"],["#616161","#424242"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#eeeeee","#e0e0e0"],["#616161","#424242"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#eeeeee","#e0e0e0"]]]}},function(e,t,c){"use strict";c.r(t),c.d(t,"base",function(){return h}),c.d(t,"size",function(){return r}),c.d(t,"total",function(){return d}),c.d(t,"id",function(){return p}),c.d(t,"random",function(){return i}),c.d(t,"outer",function(){return n}),c.d(t,"inner",function(){return o});var a=c(1),f=c(0),h=8,r=24,d=Math.pow(h,6),p=0;function i(){return Math.floor(Math.random()*d+d).toString(h).substring(1)}function n(e,t){return"<svg "+(t?'width="'+t+'" height="'+t+'" ':"")+'viewBox="0 0 '+r+" "+r+'" xmlns="http://www.w3.org/2000/svg">'+o(e)+"</svg>"}function o(e){var t="clip-a-"+p,c="clip-b-"+p,h="url(#"+t+")",d="url(#"+c+")",i=r/2;return++p,'<defs><clipPath id="'+t+'"><rect width="'+i+'" height="'+r+'" x="0" y="0"></rect></clipPath><clipPath id="'+c+'"><rect width="'+i+'" height="'+r+'" x="'+i+'" y="0"></rect></clipPath></defs><g style="fill: '+a.bg[e[1]][0]+'" clip-path="'+h+'">'+f.body[e[0]]+'</g><g style="fill: '+a.bg[e[1]][1]+'" clip-path="'+d+'">'+f.body[e[0]]+'</g><g style="fill: '+a.fg[e[1]][e[3]][0]+'" clip-path="'+h+'">'+f.eyes[e[2]]+'</g><g style="fill: '+a.fg[e[1]][e[3]][1]+'" clip-path="'+d+'">'+f.eyes[e[2]]+'</g><g style="fill: '+a.fg[e[1]][e[5]][0]+'" clip-path="'+h+'">'+f.mouth[e[4]]+'</g><g style="fill: '+a.fg[e[1]][e[5]][1]+'" clip-path="'+d+'">'+f.mouth[e[4]]+"</g>"}}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.avatars=t():e.avatars=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function c(a){if(t[a])return t[a].exports;var f=t[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,c),f.l=!0,f.exports}return c.m=e,c.c=t,c.d=function(e,t,a){c.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},c.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},c.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="/dist/",c(c.s=2)}([function(e){e.exports={body:['<circle cx="12" cy="12" r="10"></circle>','<path d="M 5,1 V 5 H 1 v 14 h 4 v 4 h 14 v -4 h 4 V 5 H 19 V 1 Z"></path>','<rect width="20" height="20" x="2" y="2" rx="2" ry="2"></rect>','<path d="M 14.444444,0.99999994 12,3.4444444 9.5555556,0.99999994 0.99999994,9.5555556 3.4444444,12 0.99999994,14.444444 9.5555556,23 12,20.555556 14.444444,23 23,14.444444 20.555556,12 23,9.5555556 Z"></path>','<path d="M 4,2 5.5976562,9.9882812 1.0507812,14.535156 2.4648438,15.949219 6.0683594,12.345703 8,22 h 8 l 1.931641,-9.654297 3.603515,3.603516 1.414063,-1.414063 L 18.402344,9.9882812 20,2 Z"></path>','<path d="M 21.999999,17.773502 12,23.547005 2.0000006,17.773502 l 0,-11.5470044 L 12,0.4529953 21.999999,6.2264977 Z"></path>','<circle cy="10" cx="12" r="9"></circle><rect width="10" height="9" x="7" y="14" rx="1.6666667" ry="1"></rect>','<path d="M 7,2 6,6 H 2 l 2,8 -2,8 H 22 L 20,14 22,6 H 18 L 17,2 Z"></path>'],eyes:['<path d="M 15.5,11 C 16.33,11 17,10.33 17,9.5 17,8.67 16.33,8 15.5,8 14.67,8 14,8.67 14,9.5 c 0,0.83 0.67,1.5 1.5,1.5 z"></path><path d="M 8.5,11 C 9.33,11 10,10.33 10,9.5 10,8.67 9.33,8 8.5,8 7.67,8 7,8.67 7,9.5 7,10.33 7.67,11 8.5,11 Z"></path><path d="M 15.5,11 C 16.33,11 17,10.33 17,9.5 17,8.67 16.33,8 15.5,8 14.67,8 14,8.67 14,9.5 c 0,0.83 0.67,1.5 1.5,1.5 z"></path>','<rect width="6" height="1" x="9.7279215" y="0.20710692" transform="rotate(45)"></rect><rect transform="rotate(135)" y="-13.227921" x="-2.2928932" height="1" width="6"></rect><rect transform="rotate(45)" y="-4.7426405" x="14.67767" height="1" width="6"></rect><rect width="6" height="1" x="-7.2426405" y="-18.17767" transform="rotate(135)"></rect>','<path d="M 15.5,7 C 14.116667,7 13,8.1166667 13,9.5 13,10.883333 14.116667,12 15.5,12 16.883333,12 18,10.883333 18,9.5 18,8.1166667 16.883333,7 15.5,7 Z m 0,1 C 16.33,8 17,8.67 17,9.5 17,10.33 16.33,11 15.5,11 14.67,11 14,10.33 14,9.5 14,8.67 14.67,8 15.5,8 Z"></path><path d="M 8.5,7 C 7.116667,7 6,8.1166667 6,9.5 6,10.883333 7.116667,12 8.5,12 9.883333,12 11,10.883333 11,9.5 11,8.1166667 9.883333,7 8.5,7 Z m 0,1 C 9.33,8 10,8.67 10,9.5 10,10.33 9.33,11 8.5,11 7.67,11 7,10.33 7,9.5 7,8.67 7.67,8 8.5,8 Z"></path><path d="m 12,8 c -0.989493,0 -1.8112,0.857662 -2,2 h 0.753315 C 10.935894,9.418302 11.466399,9 12,9 c 0.533601,0 1.064106,0.418302 1.246685,1 H 14 C 13.8112,8.857662 12.989493,8 12,8 Z"></path>','<path d="M 12,6.5 A 7,7 0 0 0 6.2617188,9.494141 7,7 0 0 0 12,12.5 7,7 0 0 0 17.738281,9.505859 7,7 0 0 0 12,6.5 Z M 12,7 c 1.383333,0 2.5,1.116667 2.5,2.5 C 14.5,10.883333 13.383333,12 12,12 10.616667,12 9.5,10.883333 9.5,9.5 9.5,8.116667 10.616667,7 12,7 Z m 0,1 c -0.83,0 -1.5,0.67 -1.5,1.5 0,0.83 0.67,1.5 1.5,1.5 0.83,0 1.5,-0.67 1.5,-1.5 C 13.5,8.67 12.83,8 12,8 Z"></path>','<path d="m 12,8 c -0.989493,0 -1.8112,0.857662 -2,2 h 0.753315 C 10.935894,9.418302 11.466399,9 12,9 c 0.533601,0 1.064106,0.418302 1.246685,1 H 14 C 13.8112,8.857662 12.989493,8 12,8 Z"></path><rect width="6" height="6" x="5" y="7" rx="1" ry="1"></rect><rect ry="1" rx="1" y="7" x="13" height="6" width="6"></rect>','<path d="m 15.888229,10.948889 c 1.603436,-0.42964 2.724368,-1.4236277 2.509548,-2.2253461 -0.214819,-0.8017185 -1.682569,-2.0581593 -3.286006,-1.6285196 -1.603436,0.4296396 -2.724368,2.3797154 -2.509548,3.1814337 0.214819,0.801719 1.682569,1.102071 3.286006,0.672432 z"></path><path d="M 8.1117707,10.948889 C 6.5083347,10.519249 5.3874027,9.5252613 5.6022227,8.7235429 5.8170417,7.9218244 7.2847917,6.6653836 8.8882287,7.0950233 10.491665,7.5246629 11.612597,9.4747387 11.397777,10.276457 11.182958,11.078176 9.7152077,11.378528 8.1117707,10.948889 Z"></path>','<path d="m 6,7 -2,2 4,4 3,-1 V 10 L 10.95313,9.970703 C 10.733059,11.127302 9.7218293,12 8.5,12 7.116667,12 6,10.883333 6,9.5 6,8.7128681 6.3690487,8.0203566 6.9355469,7.5625 Z M 7.8867188,8.1328125 C 7.3644757,8.3671413 7,8.8893367 7,9.5 7,10.33 7.67,11 8.5,11 9.33,11 10,10.33 10,9.5 10,9.463163 9.99088,9.42874 9.988281,9.3925781 Z"></path><path d="M 18,7 17.064453,7.5625 C 17.630951,8.0203566 18,8.7128681 18,9.5 18,10.883333 16.883333,12 15.5,12 14.278171,12 13.266941,11.127302 13.046875,9.9707031 L 13,10 v 2 l 3,1 4,-4 z M 16.113281,8.1328125 14.011719,9.3925781 C 14.009124,9.4287398 14,9.4631634 14,9.5 14,10.33 14.67,11 15.5,11 16.33,11 17,10.33 17,9.5 17,8.8893367 16.635524,8.3671413 16.113281,8.1328125 Z"></path>','<rect width="14" height="3" x="5" y="8" rx="1" ry="1"></rect>'],mouth:['<path d="m 12,17.5 c 2.33,0 4.31,-1.46 5.11,-3.5 H 6.89 c 0.8,2.04 2.78,3.5 5.11,3.5 z"></path>','<path d="m 12,14 c 2.33,0 4.31,1.46 5.11,3.5 H 6.89 C 7.69,15.46 9.67,14 12,14 Z"></path>','<path d="m 12,17 c 0.83,0 1.5,-0.67 1.5,-1.5 0,-0.83 -0.67,-1.5 -1.5,-1.5 -0.83,0 -1.5,0.67 -1.5,1.5 0,0.83 0.67,1.5 1.5,1.5 z"></path>','<path d="m 12,17.5 c 2.33,0 4.31,-1.46 5.11,-3.5 H 6.89 c 0.8,2.04 2.78,3.5 5.11,3.5 z"></path><path d="m 8,15 1,5 1,-5 z"></path><path d="m 14,15 1,5 1,-5 z"></path>','<path d="m 6,14 c -0.554,0 -1,0.446 -1,1 v 3 c 0,0.554 0.446,1 1,1 h 12 c 0.554,0 1,-0.446 1,-1 v -3 c 0,-0.554 -0.446,-1 -1,-1 z m 1.5,1 C 7.777,15 8,15.223 8,15.5 v 2 C 8,17.777 7.777,18 7.5,18 7.223,18 7,17.777 7,17.5 v -2 C 7,15.223 7.223,15 7.5,15 Z m 3,0 c 0.277,0 0.5,0.223 0.5,0.5 v 2 C 11,17.777 10.777,18 10.5,18 10.223,18 10,17.777 10,17.5 v -2 C 10,15.223 10.223,15 10.5,15 Z m 3,0 c 0.277,0 0.5,0.223 0.5,0.5 v 2 C 14,17.777 13.777,18 13.5,18 13.223,18 13,17.777 13,17.5 v -2 C 13,15.223 13.223,15 13.5,15 Z m 3,0 c 0.277,0 0.5,0.223 0.5,0.5 v 2 C 17,17.777 16.777,18 16.5,18 16.223,18 16,17.777 16,17.5 v -2 C 16,15.223 16.223,15 16.5,15 Z"></path>','<path d="m 6,14 c -0.554,0 -1,0.446 -1,1 v 3 c 0,0.554 0.446,1 1,1 h 12 c 0.554,0 1,-0.446 1,-1 v -3 c 0,-0.554 -0.446,-1 -1,-1 z m 3,1 h 2 v 2 c 0,0.554 -0.446,1 -1,1 -0.554,0 -1,-0.446 -1,-1 z m 4,0 h 2 v 2 c 0,0.554 -0.446,1 -1,1 -0.554,0 -1,-0.446 -1,-1 z"></path>','<path d="M 7.5,15 C 7.223,15 7,15.223 7,15.5 V 16 H 6.5 C 6.223,16 6,16.223 6,16.5 6,16.777 6.223,17 6.5,17 H 7 v 0.5 C 7,17.777 7.223,18 7.5,18 7.777,18 8,17.777 8,17.5 V 17 h 2 v 0.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 V 17 h 2 v 0.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 V 17 h 2 v 0.5 c 0,0.277 0.223,0.5 0.5,0.5 0.277,0 0.5,-0.223 0.5,-0.5 V 17 h 0.5 C 17.777,17 18,16.777 18,16.5 18,16.223 17.777,16 17.5,16 H 17 V 15.5 C 17,15.223 16.777,15 16.5,15 16.223,15 16,15.223 16,15.5 V 16 H 14 V 15.5 C 14,15.223 13.777,15 13.5,15 13.223,15 13,15.223 13,15.5 V 16 H 11 V 15.5 C 11,15.223 10.777,15 10.5,15 10.223,15 10,15.223 10,15.5 V 16 H 8 V 15.5 C 8,15.223 7.777,15 7.5,15 Z"></path>','<path d="m 12,14 c 2.33,0 4.31,1.46 5.11,3.5 H 6.89 C 7.69,15.46 9.67,14 12,14 Z"></path><path d="m 8,16 1,5 1,-5 z"></path><path d="m 14,16 1,5 1,-5 z"></path>']}},function(e){e.exports={bg:[["#8e24aa","#7b1fa2"],["#3949ab","#303f9f"],["#039be5","#0288d1"],["#00897b","#00796b"],["#7cb342","#689f38"],["#fdd835","#fbc02d"],["#fb8c00","#f57c00"],["#e53935","#d32f2f"]],fg:[[["#eeeeee","#e0e0e0"],["#616161","#424242"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#ffd54f","#ffca28"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#eeeeee","#e0e0e0"],["#616161","#424242"],["#ff8a65","#ff7043"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#eeeeee","#e0e0e0"],["#616161","#424242"]],[["#f06292","#ec407a"],["#9575cd","#7e57c2"],["#64b5f6","#42a5f5"],["#4dd0e1","#26c6da"],["#81c784","#66bb6a"],["#dce775","#d4e157"],["#ffd54f","#ffca28"],["#eeeeee","#e0e0e0"]]]}},function(e,t,c){"use strict";c.r(t),c.d(t,"base",function(){return h}),c.d(t,"size",function(){return r}),c.d(t,"total",function(){return d}),c.d(t,"id",function(){return p}),c.d(t,"random",function(){return i}),c.d(t,"outer",function(){return n}),c.d(t,"inner",function(){return o});var a=c(1),f=c(0),h=8,r=24,d=Math.pow(h,6),p=0;function i(){return Math.floor(Math.random()*d+d).toString(h).substring(1)}function n(e,t){return"<svg "+(t?'width="'+t+'" height="'+t+'" ':"")+'viewBox="0 0 '+r+" "+r+'" xmlns="http://www.w3.org/2000/svg">'+o(e)+"</svg>"}function o(e){var t="clip-a-"+p,c="clip-b-"+p,h="url(#"+t+")",d="url(#"+c+")",i=r/2;return++p,'<defs><clipPath id="'+t+'"><rect width="'+(i+1)+'" height="'+r+'" x="0" y="0"></rect></clipPath><clipPath id="'+c+'"><rect width="'+i+'" height="'+r+'" x="'+i+'" y="0"></rect></clipPath></defs><g style="fill: '+a.bg[e[1]][0]+'" clip-path="'+h+'">'+f.body[e[0]]+'</g><g style="fill: '+a.bg[e[1]][1]+'" clip-path="'+d+'">'+f.body[e[0]]+'</g><g style="fill: '+a.fg[e[1]][e[3]][0]+'" clip-path="'+h+'">'+f.eyes[e[2]]+'</g><g style="fill: '+a.fg[e[1]][e[3]][1]+'" clip-path="'+d+'">'+f.eyes[e[2]]+'</g><g style="fill: '+a.fg[e[1]][e[5]][0]+'" clip-path="'+h+'">'+f.mouth[e[4]]+'</g><g style="fill: '+a.fg[e[1]][e[5]][1]+'" clip-path="'+d+'">'+f.mouth[e[4]]+"</g>"}}])});
//# sourceMappingURL=avatars.js.map
{
"name": "gridy-avatars",
"description": "SVG avatar generator",
"version": "1.0.6",
"version": "1.0.7",
"author": "darosh <ensonador@gmail.com>",

@@ -6,0 +6,0 @@ "browserslist": [

@@ -28,3 +28,3 @@ import colors from '../colors'

return `<defs><clipPath id="${clipA}"><rect width="${half}" height="${size}" x="0" y="0"></rect></clipPath>`
return `<defs><clipPath id="${clipA}"><rect width="${half + 1}" height="${size}" x="0" y="0"></rect></clipPath>`
+ `<clipPath id="${clipB}"><rect width="${half}" height="${size}" x="${half}" y="0"></rect></clipPath></defs>`

@@ -31,0 +31,0 @@ + `<g style="fill: ${colors.bg[value[1]][0]}" clip-path="${urlA}">${svg.body[value[0]]}</g>`

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc