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.
This module exposes all Length attributes (x, y, width, etc.) as em-based
attributes. It's used as a shortcut so that it becomes unnecessary to prefix
each numeric length with the em function.
Example:
import Color
import Html exposing (Html)
import TypedSvg exposing (rect, svg)
import TypedSvg.Attributes exposing (fill, stroke, viewBox)
import TypedSvg.Attributes.InEm exposing (height, strokeWidth, width, x, y)
type Msg
= NoOp
type alias Model =
Int
view : Model -> Html Msg
view model =
svg
[ viewBox 0 0 800 600
]
[ rect
[ x 15
, y 15
, width 20
, height 20
, fill Color.white
, strokeWidth 0.5
, stroke Color.black
]
[]
]