escher.js
/**
 * With no argument, toggle the node drag & bezier drag on or off. Pass in a
 * boolean argument to set the on/off state.
 */
With no argument, toggle the node drag & bezier drag on or off. Pass in a
boolean argument to set the on/off state.
With no argument toggle the node drag & bezier drag on or off . Pass in a boolean argument to set the on / off state .
function toggle_selectable_drag (on_off) {
  if (on_off === undefined) {
    on_off = this.selectable_drag === this.empty_behavior
  }
  if (on_off) {
    this.selectable_drag = this._get_selectable_drag(this.map, this.undo_stack)
    this.bezier_drag = this._get_bezier_drag(this.map, this.undo_stack)
  } else {
    this.selectable_drag = this.empty_behavior
    this.bezier_drag = this.empty_behavior
  }
}
function toggle_selectable_drag ( on_off ) { if ( on_off === undefined ) { on_off = this . selectable_drag === this . empty_behavior } if ( on_off ) { this . selectable_drag = this . _get_selectable_drag ( this . map , this . undo_stack ) this . bezier_drag = this . _get_bezier_drag ( this . map , this . undo_stack ) } else { this . selectable_drag = this . empty_behavior this . bezier_drag = this . empty_behavior } }
With no argument, toggle the node drag & bezier drag on or off.
With no argument toggle the node drag & bezier drag on or off .