GalleryContext.js 401 B

123456789101112131415161718192021222324
  1. import RefsContext from './RefsContext';
  2. /**
  3. * Context Object class for $gallery()
  4. */
  5. export default class GalleryContext extends RefsContext {
  6. /**
  7. * @param {object|TagContext|RefsContext} initArgs
  8. */
  9. constructor(initArgs, fromPagePath) {
  10. super(initArgs);
  11. this.options = {
  12. grid: 'col-4',
  13. 'grid-gap': '1px',
  14. };
  15. }
  16. get isExtractImg() {
  17. return true;
  18. }
  19. }