Skip to content

Instantly share code, notes, and snippets.

View bumbeishvili's full-sized avatar
🏠
Working from home

David Bumbeishvili bumbeishvili

🏠
Working from home
View GitHub Profile
@bumbeishvili
bumbeishvili / README.md
Created March 13, 2018 22:13 — forked from veltman/README.md
Centerline label placement

Implementing a variation of Joachim Ungar's curved label placement method described here. The basic process is:

  1. Turn the shape into a polygon of evenly-spaced points.
  2. Generate a Voronoi diagram of those points.
  3. Clip the edges.
  4. Turn the edges into a graph.
  5. Find the "longest shortest path" between any pair of perimeter nodes.
  6. Smooth/simplify that path a bit.
  7. Place text along the smoothed centerline with a <textPath>.
@bumbeishvili
bumbeishvili / README.md
Created March 11, 2018 12:24 — forked from AlainRo/README.md
Force Directed with Voronoi selection

Force Directed with Voronoi selection

This is a fork of mbostock's block: Force-Directed Graph where I've added a voronoi overlay. This could have a practical use by not having to click directly on a node in order select it and drag it.



From the original block:

This simple force-directed graph shows character co-occurence in Les Misérables. A physical simulation of charged particles and springs places related characters in closer proximity, while unrelated characters are farther apart. Layout algorithm inspired by Tim Dwyer and Thomas Jakobsen. Data based on character coappearence in Victor Hugo's Les Misérables, compiled by Donald Knuth.

@bumbeishvili
bumbeishvili / .block
Created March 9, 2018 16:13 — forked from Fil/.block
geoVoronoi polygons()
license: mit
@bumbeishvili
bumbeishvili / .block
Created March 8, 2018 06:09 — forked from almccon/.block
WebGL Earth demo: watercolor
license: mit
@bumbeishvili
bumbeishvili / .block
Created March 7, 2018 09:33
Destination Globe (Spinning + Versor Drag)
license: mit
@bumbeishvili
bumbeishvili / .block
Last active March 6, 2018 13:54
fresh block
license: mit
@bumbeishvili
bumbeishvili / README.md
Created March 6, 2018 10:31 — forked from bricedev/README.md
Wars II

Wars dataset from COW. Each path represents a war and associated circles represent the number of victims. Inspired from Valentina D'Efilippo's work

@bumbeishvili
bumbeishvili / .block
Created March 6, 2018 10:17 — forked from alexmacy/.block
Hive Plot (Areas) v4
license: gpl-3.0
@bumbeishvili
bumbeishvili / .block
Created March 6, 2018 10:11 — forked from mbostock/.block
Gradient Along Stroke
license: gpl-3.0
@bumbeishvili
bumbeishvili / .block
Created March 6, 2018 10:07 — forked from cmgiven/.block
Rectangular Collision Detection
license: mit