lucid-svg-0.6.0.1: DSL for SVG using lucid for HTML

Copyright | (c) 2015 Jeffrey Rosenbluth
License | BSD-style (see LICENSE)
Maintainer | jeffrey.rosenbluth@gmail.com
Safe Haskell | Safe
Language | Haskell2010

Lucid.Svg.Path

Description

Utility functions to help create SVG path attributes, and transforms.

Synopsis

- toText :: RealFloat a => a -> Text
- mA :: RealFloat a => a -> a -> Text
- mR :: RealFloat a => a -> a -> Text
- lA :: RealFloat a => a -> a -> Text
- lR :: RealFloat a => a -> a -> Text
- hA :: RealFloat a => a -> Text
- hR :: RealFloat a => a -> Text
- vA :: RealFloat a => a -> Text
- vR :: RealFloat a => a -> Text
- cA :: RealFloat a => a -> a -> a -> a -> a -> a -> Text
- cR :: RealFloat a => a -> a -> a -> a -> a -> a -> Text
- sA :: RealFloat a => a -> a -> a -> a -> Text
- sR :: RealFloat a => a -> a -> a -> a -> Text
- qA :: RealFloat a => a -> a -> a -> a -> Text
- qR :: RealFloat a => a -> a -> a -> a -> Text
- tA :: RealFloat a => a -> a -> Text
- tR :: RealFloat a => a -> a -> Text
- aA :: RealFloat a => a -> a -> a -> a -> a -> a -> a -> Text
- aR :: RealFloat a => a -> a -> a -> a -> a -> a -> a -> Text
- z :: Text
- translate :: RealFloat a => a -> a -> Text
- scale :: RealFloat a => a -> a -> Text
- rotate :: RealFloat a => a -> Text
- rotateAround :: RealFloat a => a -> a -> a -> Text
- skewX :: RealFloat a => a -> Text
- skewY :: RealFloat a => a -> Text
- matrix :: RealFloat a => a -> a -> a -> a -> a -> a -> Text

# Documentation

toText :: RealFloat a => a -> Text Source

Convert a number to Text.

mA :: RealFloat a => a -> a -> Text Source

moveto (absolute)

mR :: RealFloat a => a -> a -> Text Source

moveto (relative)

lA :: RealFloat a => a -> a -> Text Source

lineto (absolute)

lR :: RealFloat a => a -> a -> Text Source

lineto (relative)

hA :: RealFloat a => a -> Text Source

horizontal lineto (absolute)

hR :: RealFloat a => a -> Text Source

horizontal lineto (relative)

vA :: RealFloat a => a -> Text Source

vertical lineto (absolute)

vR :: RealFloat a => a -> Text Source

vertical lineto (relative)

cA :: RealFloat a => a -> a -> a -> a -> a -> a -> Text Source

Cubic Bezier curve (absolute)

cR :: RealFloat a => a -> a -> a -> a -> a -> a -> Text Source

Cubic Bezier curve (relative)

sA :: RealFloat a => a -> a -> a -> a -> Text Source

Smooth Cubic Bezier curve (absolute)

sR :: RealFloat a => a -> a -> a -> a -> Text Source

Smooth Cubic Bezier curve (relative)

qA :: RealFloat a => a -> a -> a -> a -> Text Source

Quadratic Bezier curve (absolute)

qR :: RealFloat a => a -> a -> a -> a -> Text Source

Quadratic Bezier curve (relative)

tA :: RealFloat a => a -> a -> Text Source

Smooth Quadratic Bezier curve (absolute)

tR :: RealFloat a => a -> a -> Text Source

Smooth Quadratic Bezier curve (relative)

aA :: RealFloat a => a -> a -> a -> a -> a -> a -> a -> Text Source

Arc (absolute)

aR :: RealFloat a => a -> a -> a -> a -> a -> a -> a -> Text Source

Arc (relative)

z :: Text Source

closepath

translate :: RealFloat a => a -> a -> Text Source

SVG Transform components | Specifies a translation by `x` and `y`

scale :: RealFloat a => a -> a -> Text Source

Specifies a scale operation by `x` and `y`

rotate :: RealFloat a => a -> Text Source

Specifies a rotation by `rotate-angle` degrees

rotateAround :: RealFloat a => a -> a -> a -> Text Source

Specifies a rotation by `rotate-angle` degrees about the given time `rx,ry`

skewX :: RealFloat a => a -> Text Source

Skew tansformation along x-axis

skewY :: RealFloat a => a -> Text Source

Skew tansformation along y-axis

matrix :: RealFloat a => a -> a -> a -> a -> a -> a -> Text Source

Specifies a transform in the form of a transformation matrix