src/Behavior.js
/**
 * With no argument, toggle the bezier drag on or off. Pass in a boolean
 * argument to set the on/off state.
 */
With no argument, toggle the bezier drag on or off. Pass in a boolean
argument to set the on/off state.
With no argument toggle the bezier drag on or off . Pass in a boolean argument to set the on / off state .
function toggle_bezier_drag (on_off) {
  if (on_off === undefined) {
    on_off = this.bezier_drag === this.empty_behavior
  }
  if (on_off) {
    this.bezier_drag = this._get_bezier_drag(this.map)
    this.bezier_mouseover = function (d) {
      d3_select(this).style('stroke-width', String(3)+'px')
    }
    this.bezier_mouseout = function (d) {
      d3_select(this).style('stroke-width', String(1)+'px')
    }
  } else {
    this.bezier_drag = this.empty_behavior
    this.bezier_mouseover = null
    this.bezier_mouseout = null
  }
}
function toggle_bezier_drag ( on_off ) { if ( on_off === undefined ) { on_off = this . bezier_drag === this . empty_behavior } if ( on_off ) { this . bezier_drag = this . _get_bezier_drag ( this . map ) this . bezier_mouseover = function ( d ) { d3_select ( this ) . style ( 'stroke-width' , String ( 3 ) + 'px' ) } this . bezier_mouseout = function ( d ) { d3_select ( this ) . style ( 'stroke-width' , String ( 1 ) + 'px' ) } } else { this . bezier_drag = this . empty_behavior this . bezier_mouseover = null this . bezier_mouseout = null } }
With no argument, toggle the bezier drag on or off.
With no argument toggle the bezier drag on or off .