MCPcopy Index your code
hub / github.com/leeoniya/uPlot / fire

Function fire

src/uPlot.js:3394–3404  ·  view source on GitHub ↗
(evName, a1, a2)

Source from the content-addressed store, hash-verified

3392 const hooks = self.hooks = opts.hooks || {};
3393
3394 function fire(evName, a1, a2) {
3395 if (deferHooks)
3396 hooksQueue.push([evName, a1, a2]);
3397 else {
3398 if (evName in hooks) {
3399 hooks[evName].forEach(fn => {
3400 fn.call(null, self, a1, a2);
3401 });
3402 }
3403 }
3404 }
3405
3406 (opts.plugins || []).forEach(p => {
3407 for (let evName in p.hooks)

Callers 15

initSeriesFunction · 0.85
delSeriesFunction · 0.85
setDataFunction · 0.85
setScalesFunction · 0.85
drawSeriesFunction · 0.85
drawAxesGridFunction · 0.85
flushHooksFunction · 0.85
_commitFunction · 0.85
setSelectFunction · 0.85
setSeriesFunction · 0.85
setLegendFunction · 0.85
updateCursorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…