Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More complete update to 0.13 #15

Merged
merged 2 commits into from
Oct 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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