This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.
Combinators for layout, padding, etc, plus funcs to query coords and mouse over
version 7.2.0
license BSD3
native-modules False
elm-version 0.16.0 <= v < 0.17.0
Tag 7.2.0
Committed At 2016-03-10 11:28:26 UTC
evancz/elm-html 4.0.2 <= v < 5.0.0 4.0.2
elm-lang/core 3.0.0 <= v < 4.0.0 3.0.0

README

elm-diagrams

An Elm library for creating diagrams, inspired by Brent Yorgey's Diagrams library for Haskell.

Support for

  • Layout: Position diagrams next to, above, and atop each other
  • Picking: Given a diagram and a point, find what was clicked on
  • Getting coordinates: Given a tag path, find what coordinates it was placed at in a diagram.
  • Getting width & height of diagrams
  • Rendering with Elm's Graphics.Collage

Under construction; many bugs and TODOs. File them under GitHub Issues.

Examples

There are a few examples under examples/. To run them, run elm-reactor in the root directory of the repository (not the examples directory — if you run it there, the Reactor will not find the library code in Diagrams.elm). Open them in debug mode (click wrench or append "?debug" to URL) to see some interesting signals related to mouse picking.