(layerdict)
| 666 | } |
| 667 | |
| 668 | function resizeCanvas(layerdict) { |
| 669 | var canvasdivid = { |
| 670 | "F": "frontcanvas", |
| 671 | "B": "backcanvas" |
| 672 | } [layerdict.layer]; |
| 673 | var width = document.getElementById(canvasdivid).clientWidth * devicePixelRatio; |
| 674 | var height = document.getElementById(canvasdivid).clientHeight * devicePixelRatio; |
| 675 | recalcLayerScale(layerdict, width, height); |
| 676 | redrawCanvas(layerdict); |
| 677 | } |
| 678 | |
| 679 | function resizeAll() { |
| 680 | resizeCanvas(allcanvas.front); |
no test coverage detected