svg-builder-0.1.0.2: DSL for building SVG.

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

Graphics.Svg.Attributes

Description

SVG Attributes.

Synopsis

- (<<-) :: AttrTag -> Text -> Attribute
- (->>) :: Text -> AttrTag -> Attribute
- bindAttr :: AttrTag -> Text -> Attribute
- data AttrTag
  - = Accent_height_
  - | Accumulate_
  - | Additive_
  - | Alignment_baseline_
  - | Alphabetic_
  - | Amplitude_
  - | Arabic_form_
  - | Ascent_
  - | AttributeName_
  - | AttributeType_
  - | Azimuth_
  - | BaseFrequency_
  - | Baseprofile_
  - | Baseline_shift_
  - | Bbox_
  - | Begin_
  - | Bias_
  - | By_
  - | CalcMode_
  - | Cap_height_
  - | Class_
  - | Clip_
  - | Clip_path_
  - | Clip_rule_
  - | ClipPathUnits_
  - | Color_
  - | Color_interpolation_
  - | Color_interpolation_filters_
  - | Color_profile_
  - | Color_rendering_
  - | ContentScriptType_
  - | ContentStyleType_
  - | Cursor_
  - | Cx_
  - | Cy_
  - | D_
  - | Descent_
  - | DiffuseConstant_
  - | Direction_
  - | Display_
  - | Divisor_
  - | Dominant_baseline_
  - | Dur_
  - | Dx_
  - | Dy_
  - | EdgeMode_
  - | Elevation_
  - | Enable_background_
  - | End_
  - | Exponent_
  - | ExternalResourcesRequired_
  - | Fill_
  - | Fill_opacity_
  - | Fill_rule_
  - | Filter_
  - | FilterRes_
  - | FilterUnits_
  - | Flood_color_
  - | Flood_opacity_
  - | Font_family_
  - | Font_size_
  - | Font_size_adjust_
  - | Font_stretch_
  - | Font_style_
  - | Font_variant_
  - | Font_weight_
  - | Format_
  - | From_
  - | Fx_
  - | Fy_
  - | G1_
  - | G2_
  - | Glyph_name_
  - | Glyph_orientation_horizontal_
  - | Glyph_orientation_vertical_
  - | GradientTransform_
  - | GradientUnits_
  - | Hanging_
  - | Height_
  - | Horiz_adv_x_
  - | Horiz_origin_x_
  - | Horiz_origin_y_
  - | Id_
  - | Ideographic_
  - | Image_rendering_
  - | In_
  - | In2_
  - | Intercept_
  - | K_
  - | K1_
  - | K2_
  - | K3_
  - | K4_
  - | KernelMatrix_
  - | KernelUnitLength_
  - | Kerning_
  - | KeyPoints_
  - | KeySplines_
  - | KeyTimes_
  - | Lang_
  - | LengthAdjust_
  - | Letter_spacing_
  - | Lighting_color_
  - | LimitingConeAngle_
  - | Local_
  - | Marker_end_
  - | Marker_mid_
  - | Marker_start_
  - | MarkerHeight_
  - | MarkerUnits_
  - | MarkerWidth_
  - | MaskContentUnits_
  - | MaskUnits_
  - | Mathematical_
  - | Max_
  - | Media_
  - | Method_
  - | Min_
  - | Mode_
  - | Name_
  - | NumOctaves_
  - | Offset_
  - | Onabort_
  - | Onactivate_
  - | Onbegin_
  - | Onclick_
  - | Onend_
  - | Onerror_
  - | Onfocusin_
  - | Onfocusout_
  - | Onload_
  - | Onmousedown_
  - | Onmousemove_
  - | Onmouseout_
  - | Onmouseover_
  - | Onmouseup_
  - | Onrepeat_
  - | Onresize_
  - | Onscroll_
  - | Onunload_
  - | Onzoom_
  - | Opacity_
  - | Operator_
  - | Order_
  - | Orient_
  - | Orientation_
  - | Origin_
  - | Overflow_
  - | Overline_position_
  - | Overline_thickness_
  - | Panose_1_
  - | Paint_order_
  - | Path_
  - | PathLength_
  - | PatternContentUnits_
  - | PatternTransform_
  - | PatternUnits_
  - | Pointer_events_
  - | Points_
  - | PointsAtX_
  - | PointsAtY_
  - | PointsAtZ_
  - | PreserveAlpha_
  - | PreserveAspectRatio_
  - | PrimitiveUnits_
  - | R_
  - | Radius_
  - | RefX_
  - | RefY_
  - | Rendering_intent_
  - | RepeatCount_
  - | RepeatDur_
  - | RequiredExtensions_
  - | RequiredFeatures_
  - | Restart_
  - | Result_
  - | Rotate_
  - | Rx_
  - | Ry_
  - | Scale_
  - | Seed_
  - | Shape_rendering_
  - | Slope_
  - | Spacing_
  - | SpecularConstant_
  - | SpecularExponent_
  - | SpreadMethod_
  - | StartOffset_
  - | StdDeviation_
  - | Stemh_
  - | Stemv_
  - | StitchTiles_
  - | Stop_color_
  - | Stop_opacity_
  - | Strikethrough_position_
  - | Strikethrough_thickness_
  - | String_
  - | Stroke_
  - | Stroke_dasharray_
  - | Stroke_dashoffset_
  - | Stroke_linecap_
  - | Stroke_linejoin_
  - | Stroke_miterlimit_
  - | Stroke_opacity_
  - | Stroke_width_
  - | Style_
  - | SurfaceScale_
  - | SystemLanguage_
  - | TableValues_
  - | Target_
  - | TargetX_
  - | TargetY_
  - | Text_anchor_
  - | Text_decoration_
  - | Text_rendering_
  - | TextLength_
  - | To_
  - | Transform_
  - | Type_
  - | U1_
  - | U2_
  - | Underline_position_
  - | Underline_thickness_
  - | Unicode_
  - | Unicode_bidi_
  - | Unicode_range_
  - | Units_per_em_
  - | V_alphabetic_
  - | V_hanging_
  - | V_ideographic_
  - | V_mathematical_
  - | Values_
  - | Version_
  - | Vert_adv_y_
  - | Vert_origin_x_
  - | Vert_origin_y_
  - | ViewBox_
  - | ViewTarget_
  - | Visibility_
  - | Width_
  - | Widths_
  - | Word_spacing_
  - | Writing_mode_
  - | X_
  - | X_height_
  - | X1_
  - | X2_
  - | XChannelSelector_
  - | XlinkActuate_
  - | XlinkArcrole_
  - | XlinkHref_
  - | XlinkRole_
  - | XlinkShow_
  - | XlinkTitle_
  - | XlinkType_
  - | XmlBase_
  - | XmlLang_
  - | XmlSpace_
  - | Y_
  - | Y1_
  - | Y2_
  - | YChannelselector_
  - | Z_
  - | ZoomAndPan_

# Documentation

(<<-) :: AttrTag -> Text -> Attribute infix 4 Source #

Infix version of `bindAttr` Each argument is set using `<<-`, the `bindAttr` function or `->>`.

    [Width_ <<- "100%", Height_ <<- "100%", Fill_ <<- "red"]

(->>) :: Text -> AttrTag -> Attribute infix 4 Source #

Infix version of `bindAttr` with it's arguments reversed.

    ["100%" ->> Width_, "100%" ->> Height_, "red" ->> Fill_]

bindAttr :: AttrTag -> Text -> Attribute Source #

Make an `Attribute` from it's value constructor and it's text value. by combining an `AttrTag` with it's value.

    [bindAttr Width "100%, bindAttr Height "100%", bindAttr Fill "red"]

data AttrTag Source #

Constructors

Accent_height_ |
Accumulate_ |
Additive_ |
Alignment_baseline_ |
Alphabetic_ |
Amplitude_ |
Arabic_form_ |
Ascent_ |
AttributeName_ |
AttributeType_ |
Azimuth_ |
BaseFrequency_ |
Baseprofile_ |
Baseline_shift_ |
Bbox_ |
Begin_ |
Bias_ |
By_ |
CalcMode_ |
Cap_height_ |
Class_ |
Clip_ |
Clip_path_ |
Clip_rule_ |
ClipPathUnits_ |
Color_ |
Color_interpolation_ |
Color_interpolation_filters_ |
Color_profile_ |
Color_rendering_ |
ContentScriptType_ |
ContentStyleType_ |
Cursor_ |
Cx_ |
Cy_ |
D_ |
Descent_ |
DiffuseConstant_ |
Direction_ |
Display_ |
Divisor_ |
Dominant_baseline_ |
Dur_ |
Dx_ |
Dy_ |
EdgeMode_ |
Elevation_ |
Enable_background_ |
End_ |
Exponent_ |
ExternalResourcesRequired_ |
Fill_ |
Fill_opacity_ |
Fill_rule_ |
Filter_ |
FilterRes_ |
FilterUnits_ |
Flood_color_ |
Flood_opacity_ |
Font_family_ |
Font_size_ |
Font_size_adjust_ |
Font_stretch_ |
Font_style_ |
Font_variant_ |
Font_weight_ |
Format_ |
From_ |
Fx_ |
Fy_ |
G1_ |
G2_ |
Glyph_name_ |
Glyph_orientation_horizontal_ |
Glyph_orientation_vertical_ |
GradientTransform_ |
GradientUnits_ |
Hanging_ |
Height_ |
Horiz_adv_x_ |
Horiz_origin_x_ |
Horiz_origin_y_ |
Id_ |
Ideographic_ |
Image_rendering_ |
In_ |
In2_ |
Intercept_ |
K_ |
K1_ |
K2_ |
K3_ |
K4_ |
KernelMatrix_ |
KernelUnitLength_ |
Kerning_ |
KeyPoints_ |
KeySplines_ |
KeyTimes_ |
Lang_ |
LengthAdjust_ |
Letter_spacing_ |
Lighting_color_ |
LimitingConeAngle_ |
Local_ |
Marker_end_ |
Marker_mid_ |
Marker_start_ |
MarkerHeight_ |
MarkerUnits_ |
MarkerWidth_ |
MaskContentUnits_ |
MaskUnits_ |
Mathematical_ |
Max_ |
Media_ |
Method_ |
Min_ |
Mode_ |
Name_ |
NumOctaves_ |
Offset_ |
Onabort_ |
Onactivate_ |
Onbegin_ |
Onclick_ |
Onend_ |
Onerror_ |
Onfocusin_ |
Onfocusout_ |
Onload_ |
Onmousedown_ |
Onmousemove_ |
Onmouseout_ |
Onmouseover_ |
Onmouseup_ |
Onrepeat_ |
Onresize_ |
Onscroll_ |
Onunload_ |
Onzoom_ |
Opacity_ |
Operator_ |
Order_ |
Orient_ |
Orientation_ |
Origin_ |
Overflow_ |
Overline_position_ |
Overline_thickness_ |
Panose_1_ |
Paint_order_ |
Path_ |
PathLength_ |
PatternContentUnits_ |
PatternTransform_ |
PatternUnits_ |
Pointer_events_ |
Points_ |
PointsAtX_ |
PointsAtY_ |
PointsAtZ_ |
PreserveAlpha_ |
PreserveAspectRatio_ |
PrimitiveUnits_ |
R_ |
Radius_ |
RefX_ |
RefY_ |
Rendering_intent_ |
RepeatCount_ |
RepeatDur_ |
RequiredExtensions_ |
RequiredFeatures_ |
Restart_ |
Result_ |
Rotate_ |
Rx_ |
Ry_ |
Scale_ |
Seed_ |
Shape_rendering_ |
Slope_ |
Spacing_ |
SpecularConstant_ |
SpecularExponent_ |
SpreadMethod_ |
StartOffset_ |
StdDeviation_ |
Stemh_ |
Stemv_ |
StitchTiles_ |
Stop_color_ |
Stop_opacity_ |
Strikethrough_position_ |
Strikethrough_thickness_ |
String_ |
Stroke_ |
Stroke_dasharray_ |
Stroke_dashoffset_ |
Stroke_linecap_ |
Stroke_linejoin_ |
Stroke_miterlimit_ |
Stroke_opacity_ |
Stroke_width_ |
Style_ |
SurfaceScale_ |
SystemLanguage_ |
TableValues_ |
Target_ |
TargetX_ |
TargetY_ |
Text_anchor_ |
Text_decoration_ |
Text_rendering_ |
TextLength_ |
To_ |
Transform_ |
Type_ |
U1_ |
U2_ |
Underline_position_ |
Underline_thickness_ |
Unicode_ |
Unicode_bidi_ |
Unicode_range_ |
Units_per_em_ |
V_alphabetic_ |
V_hanging_ |
V_ideographic_ |
V_mathematical_ |
Values_ |
Version_ |
Vert_adv_y_ |
Vert_origin_x_ |
Vert_origin_y_ |
ViewBox_ |
ViewTarget_ |
Visibility_ |
Width_ |
Widths_ |
Word_spacing_ |
Writing_mode_ |
X_ |
X_height_ |
X1_ |
X2_ |
XChannelSelector_ |
XlinkActuate_ |
XlinkArcrole_ |
XlinkHref_ |
XlinkRole_ |
XlinkShow_ |
XlinkTitle_ |
XlinkType_ |
XmlBase_ |
XmlLang_ |
XmlSpace_ |
Y_ |
Y1_ |
Y2_ |
YChannelselector_ |
Z_ |
ZoomAndPan_ |