WindowSize store
WindowSize values
| Property | default | Description |
|---|---|---|
| width | 1920 | Window width |
| height | 1080 | Window height |
WindowSize events
| Event name | Argument | Description |
|---|---|---|
| change | - | Called when the window size changes |
| mount | Element | Called when the component is mounted |
| clean | null | Called when the component is removed |
WindowSize state
export interface WindowSizeState {
snapshot: [WindowSizeState]
width: number
height: number
callback(): void
change(): void
mount(): void
clean(): void
}