emptyflash/typed-svg/1.0.0

NOTE: the latest version is 1.1.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/emptyflash/typed-svg 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 (21 same-name repos checked); no cached copy. Use another version.

Details

TypedSvg.Extra.InPx

Typed SVG elements that default to px units

Helpers

centeredImage : String -> Float -> Float -> Float -> Float -> Svg msg

Centers an image (png, svg, etc.) referenced by an url string and with a given image width and height on the given x, y coordinate. Usage example:

let
    width =
        50.5


    height =
        50.5


    x =
        150


    y =
        200
in
centeredImage "/images/example.png" width height x y