canvas-confetti
Advanced tools
Comparing version
@@ -1,2 +0,2 @@ | ||
// canvas-confetti v1.1.0 built on 2020-02-23T18:57:14.260Z | ||
// canvas-confetti v1.1.1 built on 2020-03-05T02:43:16.010Z | ||
!(function (window, module) { | ||
@@ -477,5 +477,18 @@ // source content | ||
// TODO this really shouldn't be immediate, because it is expensive | ||
var obj = {}; | ||
var obj = { | ||
getBoundingClientRect: function () { | ||
if (!isLibCanvas) { | ||
return canvas.getBoundingClientRect(); | ||
} | ||
} | ||
}; | ||
resizer(obj); | ||
worker.postMessage({ resize: obj }); | ||
worker.postMessage({ | ||
resize: { | ||
width: obj.width, | ||
height: obj.height | ||
} | ||
}); | ||
return; | ||
@@ -482,0 +495,0 @@ } |
{ | ||
"name": "canvas-confetti", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "performant confetti animation in the browser", | ||
@@ -5,0 +5,0 @@ "main": "src/confetti.js", |
@@ -474,5 +474,18 @@ (function main(global, module, isWorker, workerSize) { | ||
// TODO this really shouldn't be immediate, because it is expensive | ||
var obj = {}; | ||
var obj = { | ||
getBoundingClientRect: function () { | ||
if (!isLibCanvas) { | ||
return canvas.getBoundingClientRect(); | ||
} | ||
} | ||
}; | ||
resizer(obj); | ||
worker.postMessage({ resize: obj }); | ||
worker.postMessage({ | ||
resize: { | ||
width: obj.width, | ||
height: obj.height | ||
} | ||
}); | ||
return; | ||
@@ -479,0 +492,0 @@ } |
Sorry, the diff of this file is not supported yet
55650
1.53%1371
2.47%