({width, height})
| 471 | } |
| 472 | |
| 473 | setResolution({width, height}) { |
| 474 | const {width: w, height: h} = this[_resolution]; |
| 475 | if(w !== width || h !== height) { |
| 476 | this[_resolution] = {width, height}; |
| 477 | // this.updateContours(); |
| 478 | this.forceUpdate(); |
| 479 | this.dispatchEvent({type: 'resolutionchange', detail: {width, height}}); |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | show() { |
| 484 | if(this.attributes.display === 'none') { |
no test coverage detected