Skip to content

Commit

Permalink
Merge pull request #15 from rrichardson/master
Browse files Browse the repository at this point in the history
More complete update to 0.13
  • Loading branch information
seliopou committed Oct 11, 2014
2 parents 5f611ed + a25436d commit f57c819
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Circles.elm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ svg ds ms =
circles : Widget (number, number) number
circles =
selectAll "circle"
|= (\(x, y) -> repeat (x `div` 50) y)
|= (\(x, y) -> repeat (x // 50) y)
|- enter <.> append "circle"
|. fun attr "fill" color
|. num attr "r" 0
Expand Down
2 changes: 1 addition & 1 deletion examples/Voronoi.elm
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ voronoi =
|- enter <.> append "path"
|- update
|. fun attr "d" (\ps _ -> path ps)
|. fun attr "class" (\_ i -> "q" ++ (show (mod i 9)) ++ "-9")
|. fun attr "class" (\_ i -> "q" ++ (show ((%) i 9)) ++ "-9")

cells : [D3.Voronoi.Point] -> [[D3.Voronoi.Point]]
cells = D3.Voronoi.cellsWithClipping margin.right margin.top dims.width dims.height
Expand Down
7 changes: 7 additions & 0 deletions src/D3.elm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ module D3
, transition -- : Selection a
, delay -- : (a -> Int -> Int) -> Selection a
, duration -- : (a -> Int -> Int) -> Selection a
, Selection
, Widget
, (|.)
, (<.>)
, (|^)
, (|-)
, (|=)
) where

import Json(..)
Expand Down
1 change: 1 addition & 0 deletions src/D3/Event.elm
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module D3.Event

, focus -- : BasicHandler e a
, blur -- : BasicHandler e a
, Stream
) where

import D3(..)
Expand Down
1 change: 1 addition & 0 deletions src/D3/Voronoi.elm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module D3.Voronoi
( cells
, cellsWithClipping
, Point
) where

import Native.D3.Voronoi
Expand Down

0 comments on commit f57c819

Please sign in to comment.