Skip to content

Instantly share code, notes, and snippets.

View laynegt's full-sized avatar

Layne Tcheng laynegt

View GitHub Profile
@laynegt
laynegt / .block
Last active February 15, 2017 20:16 — forked from mbostock/.block
Zoom to Bounding Box II
license: gpl-3.0
@laynegt
laynegt / README.md
Last active October 4, 2016 15:28 — forked from lgersman/README.md
improved version of my d3.js selection frame example (lgersman)
  • Click into the drawing area to start the selection frame
  • move the mouse to resize the selection frame
  • Release the mouse button to resize the selection frame

new features :

  • circles are draggable
  • circles can be selected (multiple selections possible by pressing CTRL while clicking a circle)
  • the selection frame selects all circles within the frame (by pressing CTRL the selected circles will be appended to current selection)
  • multiple selected circles will be dragged simultaneous