aboutsummaryrefslogtreecommitdiff
path: root/src/proxyClient.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-09 13:39:08 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-09-09 13:39:08 -0700
commitf0d162c73462784e1b0f6dcb3f040f12103cfe5c (patch)
treecbde8aab1bcd2b92f028c98d2ec486e39679f490 /src/proxyClient.js
parent92fe68caa71f9a78b2767f5b618206eb1495aac8 (diff)
proxy boundingClientRect
Diffstat (limited to 'src/proxyClient.js')
-rw-r--r--src/proxyClient.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proxyClient.js b/src/proxyClient.js
index 5bfa4ddf..04f7ed11 100644
--- a/src/proxyClient.js
+++ b/src/proxyClient.js
@@ -26,6 +26,7 @@ worker.onmessage = function(event) {
Module.canvas.width = data.width;
Module.canvas.height = data.height;
Module.canvasData = Module.ctx.getImageData(0, 0, data.width, data.height);
+ postMessage({ target: 'canvas', boundingClientRect: Module.canvas.getBoundingClientRect() });
break;
}
case 'render': {