Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Mike Bostock 35fb91d16f Allow quadtree to be built dynamically.
You can now specify the domain of the quadtree upon construction, such that you
can add points to the quadtree dynamically later. The quadtree example now also
shows how to do a quick rectangular search using the quadtree.
2011-06-28 13:27:03 -07:00
Mike Bostock 4f16bbd9e7 Regenerate files. 2011-06-13 17:30:30 -07:00
Mike Bostock e1c6c74f70 Merge branch '===' into release 2011-05-07 16:42:59 -07:00
Jason Davies 6827da7ec9 Regenerate files. 2011-05-01 23:31:25 +01:00
Mike Bostock 587b1bb494 Use x+y objects for quadtree points.
This makes the quadtree implementation more compatible with the force layout.
This change is backwards-compatible; if the points are not specified as x+y
objects, they are assumed to be tuples and converted to objects.
2011-04-19 12:19:04 -07:00
Michael Bostock 3ecb7534ef Non-contiguous cartogram example.
Also includes new d3.geom.polygon.centroid method. Props to Zachary Johnson for
the inspiration!
2011-02-23 12:33:18 -08:00
Michael Bostock 1a6163cb1a Add d3.geom.quadtree. 2011-01-21 11:59:05 -08:00
Michael Bostock 487037e1af Merge branch 'jheer-master'
Adds support for contours (d3.geom.contour) and cardinal spline interpolation.
I've extended cardinal spline interpolation to d3.svg.area, and added closed
basis spline interpolation. The spline tension is now set using a named
method, and closed splines can be generated using basis-closed and
cardinal-closed, respectively.

This commit also includes Jeff's nifty clustered force-directed graph example!
2011-01-10 16:05:58 -08:00
Michael Bostock bdcb648849 Turn off the compiler's "advanced" optimizations.
The renaming of attributes is totally not worth the hassle of maintaining an
externs file (or using the awkward `foo["bar"]` syntax). The file size
reduction from the advanced optimizations was negligible, besides!
2011-01-05 11:35:39 -08:00
Jeffrey Heer b9ad0a4af1 Minor tweaks and beautification 2010-12-06 20:48:11 -08:00
Jeffrey Heer ecf796c04a Added contour by marching squares 2010-12-06 20:27:25 -08:00
Jeffrey Heer 2f63829ad3 Simple CCW test for convex hull 2010-12-06 12:52:37 -08:00
Michael Bostock 46b5d541bd Minor beautification. 2010-11-22 23:58:27 -08:00
Jeffrey Heer bbe029fa7f Added convex hull at d3.geom.hull 2010-11-22 16:21:46 -08:00
Michael Bostock 156ff68f16 Move Voronoi & Delaunay code into geom module. 2010-11-07 21:09:59 -08:00
Michael Bostock 841f354568 Tweak clipping code. 2010-11-07 16:56:02 -08:00
Michael Bostock ae5d3fbab9 Oops, invert area for clockwise polygons. 2010-11-07 13:53:47 -08:00
Michael Bostock a502859902 Add d3.geom module.
For now, just Sutherland-Hodgman clipping and area of a convex polygon.
2010-11-07 13:49:59 -08:00