Module

Halogen.Svg.Attributes

Package
purescript-halogen-svg-elems
Repository
JordanMartinez/purescript-halogen-svg-elems

Similar to Halogen.HTML.Properties. You should always use this module's entities (e.g. class_) over its corresponding value in Halogen.HTML.Properties (e.g.HP.class_`).

When Algebraic Data Types (ADTs) are used, use the show function to display what the ADT is and the printX function to render the corresponding String value that should appear in the HTML.

#attributeName Source

attributeName :: forall r i. String -> IProp (attributeName :: String | r) i

#begin Source

begin :: forall r i. String -> IProp (begin :: String | r) i

#class_ Source

class_ :: forall r i. ClassName -> IProp (class :: String | r) i

#classes Source

classes :: forall r i. Array ClassName -> IProp (class :: String | r) i

#cx Source

cx :: forall r i. Number -> IProp (cx :: Number | r) i

#cy Source

cy :: forall r i. Number -> IProp (cy :: Number | r) i

#d Source

d :: forall r i. Array PathCommand -> IProp (d :: String | r) i

#dominantBaseline Source

dominantBaseline :: forall r i. Baseline -> IProp (dominantBaseline :: String | r) i

#dur Source

dur :: forall r i. Duration -> IProp (dur :: String | r) i

#fill Source

fill :: forall r i. Color -> IProp (fill :: String | r) i

#fillAnim Source

fillAnim :: forall r i. FillState -> IProp (fill :: String | r) i

#fillOpacity Source

fillOpacity :: forall r i. Number -> IProp (fillOpacity :: Number | r) i

#fontFamily Source

fontFamily :: forall r i. String -> IProp (fontFamily :: String | r) i

#fontSize Source

fontSize :: forall r i. FontSize -> IProp (fontSize :: String | r) i

#fontSizeAdjust Source

fontSizeAdjust :: forall r i. Number -> IProp (fontSizeAdjust :: String | r) i

#fontStretch Source

fontStretch :: forall r i. FontStretch -> IProp (fontStretch :: String | r) i

#fontStyle Source

fontStyle :: forall r i. FontStyle -> IProp (fontStyle :: String | r) i

#fontVariant Source

fontVariant :: forall r i. String -> IProp (fontVariant :: String | r) i

#fontWeight Source

fontWeight :: forall r i. FontWeight -> IProp (fontWeight :: String | r) i

#from Source

from :: forall r i. String -> IProp (from :: String | r) i

#to Source

to :: forall r i. String -> IProp (to :: String | r) i

#href Source

href :: forall r i. String -> IProp (href :: String | r) i

#id Source

id :: forall r i. String -> IProp (id :: String | r) i

#markerStart Source

markerStart :: forall r i. String -> IProp (markerStart :: String | r) i

#markerMid Source

markerMid :: forall r i. String -> IProp (markerMid :: String | r) i

#markerEnd Source

markerEnd :: forall r i. String -> IProp (markerEnd :: String | r) i

#markerUnits Source

markerUnits :: forall r i. MarkerUnit -> IProp (markerUnits :: String | r) i

#markerWidth Source

markerWidth :: forall r i. Number -> IProp (markerWidth :: Number | r) i

#markerHeight Source

markerHeight :: forall r i. Number -> IProp (markerHeight :: Number | r) i

#mask Source

mask :: forall s i. String -> IProp (mask :: String | s) i

#maskUnits Source

maskUnits :: forall r i. MaskUnit -> IProp (maskUnits :: String | r) i

#maskContentUnits Source

maskContentUnits :: forall r i. MaskUnit -> IProp (maskContentUnits :: String | r) i

#orient Source

orient :: forall r i. Orient -> IProp (orient :: String | r) i

#path Source

path :: forall r i. Array PathCommand -> IProp (path :: String | r) i

#pathLength Source

pathLength :: forall r i. Number -> IProp (pathLength :: Number | r) i

#patternContentUnits Source

patternContentUnits :: forall r i. String -> IProp (patternContentUnits :: String | r) i

#patternTransform Source

patternTransform :: forall r i. Array Transform -> IProp (patternTransform :: String | r) i

#patternUnits Source

patternUnits :: forall r i. String -> IProp (patternUnits :: String | r) i

#points Source

points :: forall r i. Array (Tuple Number Number) -> IProp (points :: String | r) i

An array of x-y value pairs (e.g. [ Tuple x y ]).

#preserveAspectRatio Source

preserveAspectRatio :: forall r i. Maybe { x_ :: Align, y_ :: Align } -> MeetOrSlice -> IProp (preserveAspectRatio :: String | r) i

#r Source

r :: forall s i. Number -> IProp (r :: Number | s) i

#refX Source

refX :: forall r i. Number -> IProp (refX :: Number | r) i

#refY Source

refY :: forall r i. Number -> IProp (refY :: Number | r) i

#repeatCount Source

repeatCount :: forall r i. String -> IProp (repeatCount :: String | r) i

#rx Source

rx :: forall r i. Number -> IProp (rx :: Number | r) i

#ry Source

ry :: forall r i. Number -> IProp (ry :: Number | r) i

#stroke Source

stroke :: forall r i. Color -> IProp (stroke :: String | r) i

#strokeDashArray Source

strokeDashArray :: forall r i. String -> IProp (strokeDashArray :: String | r) i

#strokeDashOffset Source

strokeDashOffset :: forall r i. Number -> IProp (strokeDashOffset :: String | r) i

#strokeLineCap Source

strokeLineCap :: forall r i. StrokeLineCap -> IProp (strokeLineCap :: String | r) i

#strokeLineJoin Source

strokeLineJoin :: forall r i. StrokeLineJoin -> IProp (strokeLineJoin :: String | r) i

#strokeMiterLimit Source

strokeMiterLimit :: forall r i. Number -> IProp (strokeMiterLimit :: String | r) i

The Number arg must be greater than or equal to 1. Thus, this function will use 1.0 if given any value less than 1.0.

#strokeOpacity Source

strokeOpacity :: forall r i. Number -> IProp (strokeOpacity :: Number | r) i

#strokeWidth Source

strokeWidth :: forall r i. Number -> IProp (strokeWidth :: Number | r) i

#textAnchor Source

textAnchor :: forall r i. TextAnchor -> IProp (textAnchor :: String | r) i

#transform Source

transform :: forall r i. Array Transform -> IProp (transform :: String | r) i

#viewBox Source

viewBox :: forall r i. Number -> Number -> Number -> Number -> IProp (viewBox :: String | r) i

#width Source

width :: forall r i. Number -> IProp (width :: Number | r) i

#height Source

height :: forall r i. Number -> IProp (height :: Number | r) i

#x Source

x :: forall r i. Number -> IProp (x :: Number | r) i

#y Source

y :: forall r i. Number -> IProp (y :: Number | r) i

#x1 Source

x1 :: forall r i. Number -> IProp (x1 :: Number | r) i

#y1 Source

y1 :: forall r i. Number -> IProp (y1 :: Number | r) i

#x2 Source

x2 :: forall r i. Number -> IProp (x2 :: Number | r) i

#y2 Source

y2 :: forall r i. Number -> IProp (y2 :: Number | r) i

#xlinkHref Source

xlinkHref :: forall r i. String -> IProp (xlinkHref :: String | r) i

Re-exports from Halogen.Svg.Attributes.Align

#Align Source

data Align

Constructors

Instances

#printAlign Source

Re-exports from Halogen.Svg.Attributes.Baseline

Re-exports from Halogen.Svg.Attributes.CSSLength

Re-exports from Halogen.Svg.Attributes.Color

#printColor Source

Re-exports from Halogen.Svg.Attributes.Duration

#Duration Source

type Duration = { hours :: Maybe Number, milliseconds :: Maybe Number, minutes :: Maybe Number, seconds :: Maybe Number }

Use defaultDuration where all values are set to Nothing and override the values you need. See https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/dur

Re-exports from Halogen.Svg.Attributes.FillState

#FillState Source

Re-exports from Halogen.Svg.Attributes.FontSize

Re-exports from Halogen.Svg.Attributes.FontStretch

Re-exports from Halogen.Svg.Attributes.FontStyle

Re-exports from Halogen.Svg.Attributes.FontWeight

Re-exports from Halogen.Svg.Attributes.MarkerUnit

Re-exports from Halogen.Svg.Attributes.MaskUnit

Re-exports from Halogen.Svg.Attributes.MeetOrSlice

#MeetOrSlice Source

Re-exports from Halogen.Svg.Attributes.Orient

#printOrient Source

Re-exports from Halogen.Svg.Attributes.Path

#PathCommand Source

newtype PathCommand

Constructor intentionally not exported. use m, l, h, v, c, s, q, t, s, or z instead.

Instances

#CommandSweepChoice Source

data CommandSweepChoice

Sweep0 = Counter-Clockwise / Negative Sweep1 = Clockwise / Positive

Constructors

Instances

#CommandArcChoice Source

data CommandArcChoice

Arc0 = Small arc Arc1 = Large arc

Constructors

Instances

Re-exports from Halogen.Svg.Attributes.StrokeLineCap

Re-exports from Halogen.Svg.Attributes.StrokeLineJoin

Re-exports from Halogen.Svg.Attributes.TextAnchor

Re-exports from Halogen.Svg.Attributes.Transform