2426021684/elm-collage/1.0.0

NOTE: the latest version is 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.

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/michaelmesser/elm-collage exists but has no tag 1.0.0; Software Heritage has no tag 1.0.0 for it; no fork with tag 1.0.0 found (20 same-name repos checked); no cached copy. Use another version.

Details

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.