* Copies the given resolution. * * @param {Resolution} resolution - The resolution.
(resolution)
| 484 | */ |
| 485 | |
| 486 | copy(resolution) { |
| 487 | |
| 488 | this.s = resolution.scale; |
| 489 | this.baseSize.set(resolution.baseWidth, resolution.baseHeight); |
| 490 | this.preferredSize.set(resolution.preferredWidth, resolution.preferredHeight); |
| 491 | this.dispatchEvent({ type: "change" }); |
| 492 | |
| 493 | } |
| 494 | |
| 495 | /** |
| 496 | * An auto sizing constant. |
no test coverage detected