2426021684/elm-collage/1.0.2

Renamed to michaelmesser/elm-collage. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as 2426021684/elm-collage still install under that name. 2 versions of 3 come from the new location (see their notes). 1 version could not be recovered and cannot be installed.

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/michaelmesser/elm-collage.

What we checked: The repo moved to github.com/michaelmesser/elm-collage. Rebuilt with git archive from commit 020c931a239a of https://github.com/michaelmesser/elm-collage (zip prefix 2426021684-elm-collage-da87c20/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 6b376dc246549b4beabe34c1cc544fd1ed5bd5a5.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/2426021684/elm-collage/zipball/1.0.2/

Collage.Render

Technically, it should be possible to use different backends to render a collage, but we only provide a Svg backend here.

svg : Collage msg -> Html msg

Take a collage and render it to Html using Svg.

It uses the automatically calculated envelope from the Collage.Layout module as the view box.

svgBox : ( Float, Float ) -> Collage msg -> Html msg

Render a collage as Svg in a view box of given width and height, and the origin in the center.

Maybe this will be removed from the next major version. Please open an issue if you want to keep this.

svgExplicit : List (Attribute msg) -> Collage msg -> Html msg

Take a collage and render it to Html using Svg explicitly specifying the HTML attributes of the element.