(state, rangeSpecified, initialRange, brushStartCallback, brushCallback, brushEndCallback)
| 489 | } |
| 490 | |
| 491 | function 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…