1.0.1 • Published 10 years ago
cxviz-eventloop v1.0.1
cxviz-waterfall
Event Loop diagrams for StrongTrace
Run Demo
install dependencies
npm installbuild demo
npm run demorun tests
npm testrun watch for rebuilds
npm run watchCurrrent Api
var Waterfall = require('cxviz-eventloop')
var el = document.querySelector('.waterfall')
var waterfall = Waterfall().init(el, {})currently expects an array of objects with the following properties
{
"fn": "A",
"start": 0,
"end": 100,
"type": "work" /* either work or wait */
}waterfall.update(data)