import * as sfw from 'sfw'; const { Img, Div } = sfw.element.native; import Month from '../../month.js'; import stylesheet from './index.css'; const css = await sfw.css.sheet(stylesheet); export default class ImageViewer extends sfw.element.Container { #images #image_elements constructor() { super({ css }); this.#images = []; this.body.append( Div.new({ id: 'container', onscroll: () => console.log('scroll'), }) ); } set images(images) { this.#images = images; } jump_to(month) { // TODO } }