MCPcopy Create free account
hub / github.com/plotly/plotly.js / makeBrush

Function makeBrush

src/traces/parcoords/axisbrush.js:491–504  ·  view source on GitHub ↗
(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback)

Source from the content-addressed store, hash-verified

489}
490
491function makeBrush(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback) {
492 var filter = makeFilter();
493 filter.set(initialRange);
494 return {
495 filter: filter,
496 filterSpecified: rangeSpecified, // there's a difference between not filtering and filtering a non-proper subset
497 svgBrush: {
498 extent: [], // this is where the svgBrush writes contents into
499 brushStartCallback: brushStartCallback,
500 brushCallback: axisBrushMoved(brushCallback),
501 brushEndCallback: brushEndCallback
502 }
503 };
504}
505
506// for use by supplyDefaults, but it needed tons of pieces from here so
507// seemed to make more sense just to put the whole routine here

Callers

nothing calls this directly

Calls 2

makeFilterFunction · 0.85
axisBrushMovedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…