MCPcopy
hub / github.com/dc-js/dc.js / createBrushHandlePaths

Method createBrushHandlePaths

src/base/coordinate-grid-mixin.js:987–998  ·  view source on GitHub ↗
(gBrush)

Source from the content-addressed store, hash-verified

985 }
986
987 createBrushHandlePaths (gBrush) {
988 let brushHandles = gBrush.selectAll(`path.${CUSTOM_BRUSH_HANDLE_CLASS}`).data([{type: 'w'}, {type: 'e'}]);
989
990 brushHandles = brushHandles
991 .enter()
992 .append('path')
993 .attr('class', CUSTOM_BRUSH_HANDLE_CLASS)
994 .merge(brushHandles);
995
996 brushHandles
997 .attr('d', d => this.resizeHandlePath(d));
998 }
999
1000 extendBrush (brushSelection) {
1001 if (brushSelection && this.round()) {

Callers 1

renderBrushMethod · 0.95

Calls 3

resizeHandlePathMethod · 0.95
dataMethod · 0.80
selectAllMethod · 0.80

Tested by

no test coverage detected