generate-avatar
Advanced tools
Comparing version 1.4.5 to 1.4.6
@@ -30,4 +30,3 @@ "use strict"; | ||
function hydrateSVGBlog(data) { | ||
var svgString = "<svg width=\"300\" height=\"300\" viewBox=\"0 0 300 300\" xmlns=\"http://www.w3.org/2000/svg\"><rect id=\"bg\" width=\"300\" height=\"300\" fill=\"rgb(" + hexToRgb(data.background) + ")\" /><path d=\"" + data.paths[0] + "\" fill=\"rgb(" + hexToRgb(data.colors[0]) + ")\" /><path d=\"" + data.paths[1] + "\" fill=\"rgb(" + hexToRgb(data.colors[1]) + ")\" /><path d=\"" + data.paths[2] + "\" fill=\"rgb(" + hexToRgb(data.colors[2]) + ")\" /></svg>"; | ||
return svgString; | ||
return "<svg width=\"300\" height=\"300\" viewBox=\"0 0 300 300\" xmlns=\"http://www.w3.org/2000/svg\"><rect id=\"bg\" width=\"300\" height=\"300\" fill=\"rgb(" + hexToRgb(data.background) + ")\" /><path d=\"" + data.paths[0] + "\" fill=\"rgb(" + hexToRgb(data.colors[0]) + ")\" /><path d=\"" + data.paths[1] + "\" fill=\"rgb(" + hexToRgb(data.colors[1]) + ")\" /><path d=\"" + data.paths[2] + "\" fill=\"rgb(" + hexToRgb(data.colors[2]) + ")\" /></svg>"; | ||
} | ||
@@ -34,0 +33,0 @@ function generateFromString(id) { |
@@ -128,4 +128,3 @@ "use strict"; | ||
var s = ""; | ||
var j = 0; | ||
for (j = 0; j < 4; j++) | ||
for (var j = 0; j < 4; j++) | ||
s += hex_chr[(n >> (j * 8 + 4)) & 0x0f] + hex_chr[(n >> (j * 8)) & 0x0f]; | ||
@@ -132,0 +131,0 @@ return s; |
{ | ||
"name": "generate-avatar", | ||
"version": "1.4.5", | ||
"version": "1.4.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
23222
273