All examples By author By category About

espinielli

D3 keybinding with jwerty

Perform keyboard combinations binding using Keith Cirkel's jwerty in D3.js.

In this gist, use arrow keys to translate and ⇧+↑ (Shift + arrow-up) / ⇧+↓ (Shift + arrow-down) to rotate counterclockwise/clockwise.

Inspired by Tom MacWright's gist and Ian Johnson's waves.