()
| 2544 | } |
| 2545 | |
| 2546 | function controlImageLoad() { |
| 2547 | let w = controlImagePreview.naturalWidth |
| 2548 | let h = controlImagePreview.naturalHeight |
| 2549 | w = w - (w % IMAGE_STEP_SIZE) |
| 2550 | h = h - (h % IMAGE_STEP_SIZE) |
| 2551 | |
| 2552 | addImageSizeOption(w) |
| 2553 | addImageSizeOption(h) |
| 2554 | |
| 2555 | widthField.value = w |
| 2556 | heightField.value = h |
| 2557 | widthField.dispatchEvent(new Event("change")) |
| 2558 | heightField.dispatchEvent(new Event("change")) |
| 2559 | } |
| 2560 | controlImagePreview.addEventListener("load", controlImageLoad) |
| 2561 | |
| 2562 | function controlImageUnload() { |
nothing calls this directly
no test coverage detected