Skip to content

Instantly share code, notes, and snippets.

View eweitnauer's full-sized avatar

Erik Weitnauer eweitnauer

  • Bielefeld, Germany
View GitHub Profile
@eweitnauer
eweitnauer / README.md
Created March 1, 2013 13:02
Description

...

@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:19 — forked from mbostock/.block
SVG Semantic Zooming
@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:19 — forked from mbostock/.block
SVG Geometric Zooming
@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:19 — forked from mbostock/.block
Canvas Semantic Zooming
@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:28 — forked from mbostock/.block
Canvas Geometric Zooming
@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:29
SVG Geometric Zooming
@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:39 — forked from mbostock/README.md
Quadtree 1

This example demonstrates how to take the size of objects into account when selecting objects efficiently with a quadtree. Selected objects are shown in red, visited but not selected objects are shown in yellow. The efficiency depends on the size of the objects. It is assumed that all objects are square-shaped and have the same size.

Example series:

Based on Mike Bostock's quadtree example.

@eweitnauer
eweitnauer / README.md
Last active December 25, 2015 07:49
Quadtree 2

This example demonstrates how to take the size of objects into account when selecting objects efficiently with a quadtree. Selected objects are shown in red, visited but not selected objects are shown in yellow. The efficiency depends on the size of the biggest object. It is assumed that the objects are square-shaped.

Example series:

Based on Mike Bostock's quadtree example.

@eweitnauer
eweitnauer / Readme.md
Last active December 25, 2015 17:19
Indirect Immediate Dragging

Series of examples:

The examples explore different dragging implementations along two dimensions: First, direct vs. indirect where in the former case the dragged element is determined automatically by the DOM event, while in the latter case, the hit tests on the elements are done manually. This allows, e.g., for moving several elements at once, or moving elements that are not under the mouse when the user started dragging. The second dimension is immediate position update as new mouse positions come in as dragging events or positions updates using transitions. The latter may give the feeling of a slightly smoother interaction.

@eweitnauer
eweitnauer / Readme.md
Last active December 25, 2015 17:19
Direct Animated Dragging

Series of examples:

The examples explore different dragging implementations along two dimensions: First, direct vs. indirect where in the former case the dragged element is determined automatically by the DOM event, while in the latter case, the hit tests on the elements are done manually. This allows, e.g., for moving several elements at once, or moving elements that are not under the mouse when the user started dragging. The second dimension is immediate position update as new mouse positions come in as dragging events or positions updates using transitions. The latter may give the feeling of a slightly smoother interaction.