blob: 34b5f69969ab5c4102b8a9dad348422f32898b39 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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
}
}
|