[{"name":"Hovercard","comment":" This module makes rendering hovercards like [Wikipedia's](https://anandchowdhary.github.io/hovercard/) easy. It follows The Elm Architecture.\n\n\n# Configuration\n\n@docs Config, defaultConfig, withBackgroundColor, withBackgroundColorString, withBorderColor, withBorderColorString, withBorderWidth, withFixed, withTickLength, styleTickOnly, withViewport, withZIndex\n\n\n# Init\n\n@docs init\n\n\n# Update\n\n@docs update\n\n\n# View\n\n@docs view\n\n\n# Subscriptions\n\n@docs subscriptions\n\n\n# Commands\n\n@docs getElement\n\n\n# Internals\n\n@docs Model, Msg\n\n","unions":[{"name":"Config","comment":" The configuration of the Hovercard\n","args":[],"cases":[]},{"name":"Model","comment":" Hovercards internal model\n","args":[],"cases":[]},{"name":"Msg","comment":" Hovercards internal `Msg`s\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"defaultConfig","comment":" Default configuration for the hovercard.\n\n  - tickLength: 16\n  - zIndex: 9999\n  - borderColor: Color.gray\n  - backgroundColor: Color.white\n  - borderWidth: 1\n  - viewport: Nothing\n  - fixed: False\n  - tickOnlyStyle: False\n\n","type":"Hovercard.Config"},{"name":"getElement","comment":" Trigger positioning of the hovercard to the target element programmatically.\n","type":"Hovercard.Model -> Platform.Cmd.Cmd Hovercard.Msg"},{"name":"init","comment":" Initialize the hovercard with the ID of the target HTML element.\n\nIt tries to find the target element in the DOM using [Browser.Dom.getElement](https://package.elm-lang.org/packages/elm/browser/1.0.2/Browser-Dom#getElement).\n\n","type":"String.String -> ( Hovercard.Model, Platform.Cmd.Cmd Hovercard.Msg )"},{"name":"styleTickOnly","comment":" Set whether only the triangle gets background and border applied.\n","type":"Basics.Bool -> Hovercard.Config -> Hovercard.Config"},{"name":"subscriptions","comment":" Subscribes to [Browser.Dom.onResize](https://package.elm-lang.org/packages/elm/browser/1.0.2/Browser-Events#onResize) in order to reposition the hovercard automatically.\n","type":"Hovercard.Model -> Platform.Sub.Sub Hovercard.Msg"},{"name":"update","comment":" Update the hovercard model\n","type":"Hovercard.Msg -> Hovercard.Model -> ( Hovercard.Model, Platform.Cmd.Cmd Hovercard.Msg )"},{"name":"view","comment":" Render the hovercard.\n\nExample:\n\n    view\n        -- configuration\n        { tickLength = 16\n        , zIndex = 1\n        , borderColor = Color.black\n        , backgroundColor = Color.lightBlue\n        , borderWidth = 2\n        , viewport = Nothing\n        }\n        -- Hovercard model\n        model\n        -- additional styles for the hovercard, eg. a shadow\n        [ style \"box-shadow\" \"5px 5px 5px 0px rgba(0,0,0,0.25)\"\n        ]\n        -- the content of the hovercard\n        [ div\n            []\n            [ text \"Lorem ipsum dolor sit amet\"\n            ]\n        ]\n\n","type":"Hovercard.Config -> Hovercard.Model -> List.List (Html.Attribute msg) -> List.List (Html.Html msg) -> Html.Html msg"},{"name":"withBackgroundColor","comment":" Set the background color of the hovercard.\n","type":"Color.Color -> Hovercard.Config -> Hovercard.Config"},{"name":"withBackgroundColorString","comment":" Set the background color of the hovercard as a CSS string.\n","type":"String.String -> Hovercard.Config -> Hovercard.Config"},{"name":"withBorderColor","comment":" Set the border color of the hovercard.\n","type":"Color.Color -> Hovercard.Config -> Hovercard.Config"},{"name":"withBorderColorString","comment":" Set the border color of the hovercard as a CSS string.\n","type":"String.String -> Hovercard.Config -> Hovercard.Config"},{"name":"withBorderWidth","comment":" Set the border width of the hovercard.\n","type":"Basics.Float -> Hovercard.Config -> Hovercard.Config"},{"name":"withFixed","comment":" Set whether the hovercard uses fixed positioning.\n","type":"Basics.Bool -> Hovercard.Config -> Hovercard.Config"},{"name":"withTickLength","comment":" Create a configuration with a custom tick length.\n","type":"Basics.Float -> Hovercard.Config -> Hovercard.Config"},{"name":"withViewport","comment":" Set the viewport for the hovercard positioning.\n","type":"Maybe.Maybe { x : Basics.Float, y : Basics.Float, width : Basics.Float, height : Basics.Float } -> Hovercard.Config -> Hovercard.Config"},{"name":"withZIndex","comment":" Set the z-index of the hovercard.\n","type":"Basics.Int -> Hovercard.Config -> Hovercard.Config"}],"binops":[]}]