canvas-size
Advanced tools
Changelog
2.0.0
2024-02-12
catch
for exceptionsusePromise
option and return promise automatically if supportedsuccess
property to promise resultstestTime
and totalTime
to callback and promise resultsChangelog
1.2.5
2021-09-04
Changelog
1.2.4
2021-04-26
maxArea()
test order for more accurate results in Firefox (#12)Changelog
1.2.3
2021-03-03
Changelog
1.2.2
2021-01-28
Changelog
1.2.1
2020-11-11
Changelog
1.2.0
2020-06-18
useWorker
option which allows canvas tests to be performed asynchronously on a separate thread (requires Web Worker and OffscreenCanvas support)requestAnimationFrame
from canvas test loopChangelog
1.1.0
2020-05-31
usePromise
option which allows the use of standard then()
, catch()
, and finally()
promise methods or async
functions in modern browsers (legacy browsers will require a promise polyfill and transpilation to ES5 for async
functions)benchmark
return value to onError()
and onSuccess()
callbacks