[{"name":"CellGrid","comment":" The CellGrid package provides a type for representing\na rectangular grid of cells.  CellGrids can be created,\ntransformed, and rendered as either SVG or HTML.\n\n## Types\n\n@docs CellGrid, CellType, CellRenderer, Msg\n\n## Constructing and rendering CellGrids\n\n@docs cellGridFromList, emptyCellGrid, renderAsHtml, renderAsSvg\n\n## Work with cells\n\n@docs map, mapWithIndex, foldl, transform, classifyCell, cellAtMatrixIndex, setValue\n\n","unions":[{"name":"CellGrid","comment":" A value of type `CellGrid a` is a rectangular array\nof values of type a.\n\n","args":["a"],"cases":[["CellGrid",["( Basics.Int, Basics.Int )","Array.Array a"]]]},{"name":"CellType","comment":" A cell can be in the interior of the grid,\non an edge, on in a cornder ","args":[],"cases":[["Corner",[]],["Edge",[]],["Interior",[]]]},{"name":"Msg","comment":" The MouseClick message sends the matrix index (i,j)\nof the cell on which the user has clicked as well\nas the local (x,y) coordinates of the cell.\n\n","args":[],"cases":[["MouseClick",["( Basics.Int, Basics.Int )","( Basics.Float, Basics.Float )"]]]}],"aliases":[{"name":"CellRenderer","comment":" CellRenderer is a record that provides the information --\nsize and color --\nthat is needed to render a cell to SVG.  `Color` is as\ndefined in the package `avh4/elm-color`, e.g. `Color.rgb 1 0 0`,\nwhich is bright red.\n\n","args":["a"],"type":"{ cellSize : Basics.Float, gridLineWidth : Basics.Float, cellColorizer : a -> Color.Color, defaultColor : Color.Color, gridLineColor : Color.Color }"}],"values":[{"name":"cellAtMatrixIndex","comment":" Return the Maybe value of the cell at (i,j) from grid\n\n    > cellAtMatrixIndex (1,1) cg\n    Just 4 : Maybe Float\n\n","type":"( Basics.Int, Basics.Int ) -> CellGrid.CellGrid a -> Maybe.Maybe a"},{"name":"cellGridFromList","comment":" Construct a Maybe CellGrid from a list of  values of type `a`.\nHere is a  2x2 cell grid of type `Float`:\n\n    > cg = cellGridFromList 2 2 [1.0,2.0,3.0,4.0]\n      Just (CellGrid (2,2) (Array.fromList [1,2,3,4]))\n      : Maybe (CellGrid Float)\n\nIf the length of the list is incompatible with the\ngiven number of rows and columns `Nothing` is returned.\n\n\n    > cellGridFromList 2 2 [1.0,2.0,3.0,4.0, 5.0]\n      Nothing : Maybe (CellGrid Float)\n\n","type":"Basics.Int -> Basics.Int -> List.List a -> Maybe.Maybe (CellGrid.CellGrid a)"},{"name":"classifyCell","comment":" return the type of the cell at location (i,j).  Thus\nclassifyCell grid (0,0) = Corner\n","type":"CellGrid.CellGrid a -> ( Basics.Int, Basics.Int ) -> CellGrid.CellType"},{"name":"emptyCellGrid","comment":"  The empty cell grid. Useful in conjunction with `Maybe.withDefault`\n","type":"CellGrid.CellGrid a"},{"name":"foldl","comment":" Fold a reducer (a -> b -> b) over a CellGrid a)\n","type":"(a -> b -> b) -> b -> CellGrid.CellGrid a -> b"},{"name":"map","comment":" Map a function over a CellGrid:\n\n    > map (\\x -> 2*x) cg\n    CellGrid (2,2) (Array.fromList [2,4,6,8])\n\n","type":"(a -> a) -> CellGrid.CellGrid a -> CellGrid.CellGrid a"},{"name":"mapWithIndex","comment":" Transform a CellGrid a with a function ((Int, Int) -> a -> a).\nUsed when the transformed value depends on its matrixIndex as well\nas its value\n","type":"(( Basics.Int, Basics.Int ) -> a -> a) -> CellGrid.CellGrid a -> CellGrid.CellGrid a"},{"name":"renderAsHtml","comment":" Render a cell grid as Html.  The first two parameters\nare the width and height of the rendered grid in pixels.\n\n","type":"Basics.Float -> Basics.Float -> CellGrid.CellRenderer a -> CellGrid.CellGrid a -> Html.Html CellGrid.Msg"},{"name":"renderAsSvg","comment":" Render a cell grid as SVG\n\n","type":"CellGrid.CellRenderer a -> CellGrid.CellGrid a -> TypedSvg.Core.Svg CellGrid.Msg"},{"name":"setValue","comment":" Set the value of the cell at location (i,j)\n\n","type":"CellGrid.CellGrid a -> ( Basics.Int, Basics.Int ) -> a -> CellGrid.CellGrid a"},{"name":"transform","comment":" Transform a CellGrid using a function\n\n    (Int, Int) -> CellGrid a -> a)\n\n","type":"(( Basics.Int, Basics.Int ) -> CellGrid.CellGrid a -> a) -> CellGrid.CellGrid a -> CellGrid.CellGrid a"}],"binops":[]}]