PaintTracer 0.1

PaintTracer makes it easy to trace the Firefox event "MozAfterPaint," which fires whenever something is drawn to the screen. Originally a small plugin written by John Resig, I've since added some tools to make this more practical for a testing environment and ported it to to mootools. As it stands now, it's a great tool for debugging performance/cpu as it relates to rendering.



Details

Author
jacob thornton
Current version
0.1
GitHub
jacobthornton/PaintTrace
Downloads
1462
Category
Utilities
Tags
Report
GitHub Issues

Releases


How to use

Initialize PaintTracer like any other constructor:

var someName = new PaintTracer();

PaintTracer optionally excepts an [x,y] array for the toolbar created on the screen.

var someName = new PaintTracer({
    buttonPos: [5,5] // coordinates are [left,bottom]
})

Use the start and pause button to toggle the listening of the MozAfterPaint Event. This information is collected in an array called store. To display the regions on the screen, click show trace (when this is done the Paint event is automatically paused). To finish viewing results, click anywhere on the painted screen. This will return you to the default view.

Move your mouse around your page while the class is listening to trigger "MozAfterPaint."


Discuss

A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.

Found a bug in this plugin? Please report it this repository's Github Issues.

blog comments powered by Disqus