Method
constructor
([hide, type, asset, ...classes]: string[])
Source from the content-addressed store, hash-verified
| 15 | classes: string[]; |
| 16 | |
| 17 | constructor([hide, type, asset, ...classes]: string[]) { |
| 18 | super(); |
| 19 | this.asset = asset; |
| 20 | |
| 21 | this.element = this.engine.element().find(`[data-image="${this.asset}"]`); |
| 22 | |
| 23 | if (typeof classes !== 'undefined') { |
| 24 | this.classes = classes; |
| 25 | } else { |
| 26 | this.classes = []; |
| 27 | } |
| 28 | this.classes = this.classes.filter((c) => (c !== 'at' && c !== 'with')); |
| 29 | } |
| 30 | |
| 31 | override async willApply(): Promise<void> { |
| 32 | if (!this.element.exists()) { |
Callers
nothing calls this directly
Tested by
no test coverage detected