(name: string)
| 29 | colorMode?: 'dark' | 'light'; |
| 30 | |
| 31 | constructor(name: string) { |
| 32 | super(); |
| 33 | this.setImage(name); |
| 34 | this.view.setStyle({ |
| 35 | width: this.imageSize.width + buttonRadius * 2, |
| 36 | height: this.imageSize.height + buttonRadius * 2, |
| 37 | }); |
| 38 | } |
| 39 | |
| 40 | setImage(name: string) { |
| 41 | if (this.name == name) |