Skip to content

Instantly share code, notes, and snippets.

View gmamaladze's full-sized avatar

George Mamaladze gmamaladze

View GitHub Profile
@gmamaladze
gmamaladze / README.md
Last active February 4, 2021 21:53 — forked from mbostock/.block
Nodes snapping to colored clusters - d3.js sample

Drag gray nodes into one of the colored clusters. They will snap to the group. You can also move nodes out of groups to regroup them.

Created using D3's force layout. Forekd from Multi-Foci Force Layout.

This code is distributed under MIT license. Copyright (c) 2013 George Mamaladze. See MIT license.