Comparing version 0.0.13 to 0.0.14
@@ -41,4 +41,7 @@ import {pane} from './pane.js'; | ||
.split('') | ||
.map((char, col) => spriteFor[char].at(col*w, row*h)) | ||
).reduce((arr, x) => arr.concat(x)); | ||
.map(char => spriteFor[char]) | ||
.map((sprite, col) => sprite && sprite.at(col*w, row*h)) | ||
) | ||
.reduce((arr, x) => arr.concat(x)) | ||
.filter(x => x); | ||
@@ -45,0 +48,0 @@ const asMulti = pane(w*cols, h*rows, letters); |
{ | ||
"name": "pxcan", | ||
"version": "0.0.13", | ||
"version": "0.0.14", | ||
"description": "ESM-ready pixel library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
27937
512