on master help sign in
Actually add content
commit4926d0773ed810c6a503d974a21b865a293b258d authorEvan Czaplicki <info@elm-lang.org> dateThu 12 Sep 2013, 12:34 (13 years ago) parent2a18fb6
2 files changed+39
libraries/Graphics/Element.elm+33 libraries/Transform2D.elm+6
libraries/Graphics/Element.elm+33
@@ -2,6 +2,39 @@ module Graphics.Element where
22{-| Graphical elements that snap together to build complex widgets and layouts.
33Each Element is a rectangle with a known width and height, making them easy to
44combine 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
538-}
639
740import open Basics
libraries/Transform2D.elm+6
@@ -2,6 +2,12 @@ module Transform2D where
22{-| A library for performing [2D matrix transformations](http://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations).
33It is used primarily with the `groupTransform` function from `Graphics.Collage` and
44allows 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
511-}
612
713import Native.Transform2D