diff --git a/.gitignore b/.gitignore index fb8e4d3..11efa83 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ elm-d3.runtime.js elm-d3.library.js .zedstate tags +elm-stuff* diff --git a/README.md b/README.md index b8429d1..00d8a00 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ basis for the library, as well as an alternative renderer for Elm. [elm]: http://elm-lang.org [d3]: http://d3js.org +> **Note** this fork involves possible changes and simplifications due to [Elm-0.17](http://elm-lang.org/blog/farewell-to-frp) and [D3.js-4.0](https://github.com/d3/d3) + ## Installation First make sure that you have [node.js][node] installed, as well as the diff --git a/elm-package.json b/elm-package.json index 1f5e279..9e3555c 100644 --- a/elm-package.json +++ b/elm-package.json @@ -6,10 +6,14 @@ "source-directories": [ "src" ], - "exposed-modules": ["D3", "D3.Event"], + "exposed-modules": [ + "D3", + "D3.Event" + ], "native-modules": true, "dependencies": { - "elm-lang/core": "2.1.0 <= v < 3.0.0" + "elm-lang/core": "2.1.0 <= v < 5.0.0", + "evancz/elm-graphics": "1.0.0 <= v < 2.0.0" }, - "elm-version": "0.15.1 <= v < 0.16.0" -} + "elm-version": "0.15.1 <= v < 0.18.0" +} \ No newline at end of file diff --git a/src/D3.elm b/src/D3.elm index 2d145f1..7f4f9d1 100644 --- a/src/D3.elm +++ b/src/D3.elm @@ -1,4 +1,4 @@ -module D3 +module D3 exposing ( version -- : String , D3 @@ -31,7 +31,7 @@ module D3 , transition -- : D3 a a , delay -- : (a -> Int -> Int) -> D3 a a , duration -- : (a -> Int -> Int) -> D3 a a - ) where + ) {-| Elm bindings for D3.js @@ -57,7 +57,7 @@ module D3 @docs select, selectAll, static, append, remove, attr, classed, property, style, html, text -} -import Graphics.Element exposing (Element) +import Element import Json.Encode exposing (Value) import String diff --git a/src/D3/Event.elm b/src/D3/Event.elm index 3315f27..681614d 100644 --- a/src/D3/Event.elm +++ b/src/D3/Event.elm @@ -1,4 +1,4 @@ -module D3.Event +module D3.Event exposing ( Stream , KeyboardEvent , MouseEvent @@ -24,7 +24,7 @@ module D3.Event , focus -- : BasicHandler e a , blur -- : BasicHandler e a - ) where + ) {-| Event handlers