this adds a new parameter/prop to Map for passing in a component class for the tiles; it defaults to the existing img elements. This is useful if you want to tile other DOM elements like div, svg or canvas.
This is implemented as a small refactoring and may not be complete; it would be better to move Img-specific attributes such as srcSet into ImgTile instead of being generic to all Tiles. But I'd like to gauge interest in pursing this idea. Thanks for this library!
this adds a new parameter/prop to Map for passing in a component class for the tiles; it defaults to the existing
img
elements. This is useful if you want to tile other DOM elements likediv
,svg
orcanvas
.This is implemented as a small refactoring and may not be complete; it would be better to move
Img
-specific attributes such as srcSet into ImgTile instead of being generic to all Tiles. But I'd like to gauge interest in pursing this idea. Thanks for this library!