()
| 167 | } |
| 168 | |
| 169 | show(): void { |
| 170 | switch (this._state) { |
| 171 | case 'unattached': |
| 172 | break; |
| 173 | case 'showing': |
| 174 | this.hide(); |
| 175 | if (this._svg) { |
| 176 | this.render(this._svg, true); |
| 177 | } |
| 178 | break; |
| 179 | case 'not-showing': |
| 180 | this.attach(); |
| 181 | if (this._svg) { |
| 182 | this.render(this._svg, false); |
| 183 | } |
| 184 | break; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | hide(): void { |
| 189 | if (this._svg) { |
no test coverage detected