kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.
https://ngx-gallery.kolkov.ru/
MIT License
115 stars 56 forks source link

I don't quite understand what's going on with the GalleryOptions. #12

Closed aardvark79 closed 4 years ago

aardvark79 commented 4 years ago

Why is it expecting an array? Why is it not just an object with key/value pairs?

kolkov commented 4 years ago

I saved this for compatibility with the original abandoned library. There is an array for different screen resolutions.

windcloak commented 4 years ago

You have three resolutions, big, medium and small as opposed to just one resolution. So you are not linking a key to 1 value, but a key to 3 values, hence why it's more like an array of maps instead of key/value.