on master help sign in
Actually add content
4926d07Evan Czaplicki
libraries/Graphics/Element.elm+33
@@ -2,6 +2,39 @@ module Graphics.Element where
2{-| Graphical elements that snap together to build complex widgets and layouts.
2{-| Graphical elements that snap together to build complex widgets and layouts.
3Each Element is a rectangle with a known width and height, making them easy to
3Each Element is a rectangle with a known width and height, making them easy to
4combine and position.
4combine and position.
5+
6+# Images
7+@docs image, fittedImage, croppedImage, tiledImage
8+
9+# Styling
10+@docs width, height, size, color, opacity, link, tag
11+
12+# Inspection
13+@docs widthOf, heightOf, sizeOf
14+
15+# Layout
16+@docs flow, up, down, left, right, inward, outward
17+
18+## Layout Aliases
19+There are also some convenience functions for working
20+with `flow` in specific cases:
21+
22+@docs layers, above, below, beside
23+
24+# Positioning
25+@docs spacer, container
26+
27+## Specific Positions
28+
29+To create a `Position` you can use any of the built-in positions
30+which cover nine common positions.
31+@docs middle, midTop, midBottom, midLeft, midRight, topLeft, topRight,
32+ bottomLeft, bottomRight
33+
34+If you need more precision, you can create custom positions.
35+
36+@docs absolute, relative, middleAt, midTopAt, midBottomAt, midLeftAt,
37+ midRightAt, topLeftAt, topRightAt, bottomLeftAt, bottomRightAt
5-}
38-}
6
39
7import open Basics
40import open Basics
libraries/Transform2D.elm+6
@@ -2,6 +2,12 @@ module Transform2D where
2{-| A library for performing [2D matrix transformations](http://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations).
2{-| A library for performing [2D matrix transformations](http://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations).
3It is used primarily with the `groupTransform` function from `Graphics.Collage` and
3It is used primarily with the `groupTransform` function from `Graphics.Collage` and
4allows you to do things like rotation, scaling, translation, shearing, and reflection.
4allows you to do things like rotation, scaling, translation, shearing, and reflection.
5+
6+# Basic Transforms
7+@docs identity, matrix, rotation
8+
9+# Multiplication
10+@docs multiply
5-}
11-}
6
12
7import Native.Transform2D
13import Native.Transform2D