elm-community/typed-svg/2.0.2

NOTE: this package is not compatible with Elm 0.19.1

TypedSvg.Types

The Types module defines all of the types used by TypedSvg.

Types

= AccumulateNone
| AccumulateSum
= AdditiveNone
| AdditiveReplace
type Align
= Align Scale Scale
| AlignNone
= AlignmentAuto
| AlignmentBaseline
| AlignmentBeforeEdge
| AlignmentTextBeforeEdge
| AlignmentMiddle
| AlignmentCentral
| AlignmentAfterEdge
| AlignmentTextAfterEdge
| AlignmentIdeographic
| AlignmentAlphabetic
| AlignmentHanging
| AlignmentMathematical
| AlignmentInherit
= AnchorInherit
| AnchorStart
| AnchorMiddle
| AnchorEnd
= AnimateTransformTypeTranslate
| AnimateTransformTypeScale
| AnimateTransformTypeRotate
| AnimateTransformTypeSkewX
| AnimateTransformTypeSkewY
= AttributeTypeAuto
| AttributeTypeCss
| AttributeTypeXml
= ShiftAuto
| ShiftBaseline
| ShiftSuper
| ShiftSub
| ShiftPercentage Float
| ShiftLength Length
| ShiftInherit
type alias BezierAnchorPoint =
( Float, Float, Float, Float )
= CalcModeDiscrete
| CalcModeLinear
| CalcModePaced
| CalcModeSpline
type Clip
= ClipAuto
| ClipInherit
| ClipShape Length Length Length Length
= ClipPathNone
| ClipPathInherit
| ClipPathFunc String
= ClipRuleNonZero
| ClipRuleEvenOdd
| ClipRuleInherit
type alias ClockValue =
String

In a future version of TypedSvg, this may be turned into a DSL

= ColorInterpolationAuto
| ColorInterpolationSRGB
| ColorInterpolationLinearRGB
| ColorInterpolationInherit
= ColorMatrixTypeMatrix
| ColorMatrixTypeSaturate
| ColorMatrixTypeHueRotate
| ColorMatrixTypeLuminanceToAlpha
= ColorProfileAuto
| ColorProfileSRGB
| ColorProfile String
| ColorProfileInherit
= CompositeOperatorOver
| CompositeOperatorIn
| CompositeOperatorOut
| CompositeOperatorAtop
| CompositeOperatorXor
| CompositeOperatorArithmetic
= CoordinateSystemUserSpaceOnUse
| CoordinateSystemObjectBoundingBox
type Cursor
= CursorAuto
| CursorDefault
| CursorCrosshair
| CursorPointer
| CursorMove
| CursorEResize
| CursorNEResize
| CursorNWResize
| CursorNResize
| CursorSEResize
| CursorSWResize
| CursorWResize
| CursorText
| CursorWait
| CursorHelp
| CursorInherit
| Cursor String
= DirectionLTR
| DirectionRTL
| DirectionInherit
type Display
= DisplayInline
| DisplayBlock
| DisplayListItem
| DisplayRunIn
| DisplayCompact
| DisplayMarker
| DisplayTable
| DisplayInlineTable
| DisplayTableRowGroup
| DisplayTableHeaderGroup
| DisplayTableFooterGroup
| DisplayTableRow
| DisplayTableColumnGroup
| DisplayTableColumn
| DisplayTableCell
| DisplayTableCaption
| DisplayNone
| DisplayInherit
= DominantBaselineAuto
| DominantBaselineUseScript
| DominantBaselineNoChange
| DominantBaselineResetSize
| DominantBaselineIdeographic
| DominantBaselineAlphabetic
| DominantBaselineHanging
| DominantBaselineMathematical
| DominantBaselineCentral
| DominantBaselineMiddle
| DominantBaselineTextAfterEdge
| DominantBaselineTextBeforeEdge
| DominantBaselineInherit
= Duration ClockValue
| DurationIndefinite
= EdgeModeDuplicate
| EdgeModeWrap
| EdgeModeNone
= FillRuleNonZero
| FillRuleEvenOdd
type Filter
= FilterNone
| FilterInherit
| Filter String
= FloodInherit
| FloodCurrentColor
| Flood Color
| FloodICC String
= FontSizeAdjustNone
| FontSizeAdjustInherit
| FontSizeAdjust Float
= FontStretchNormal
| FontStretchWider
| FontStretchNarrower
| FontStretchUltraCondensed
| FontStretchExtraCondensed
| FontStretchCondensed
| FontStretchSemiCondensed
| FontStretchSemiExpanded
| FontStretchExpanded
| FontStretchExtraExpanded
| FontStretchUltraExpanded
| FontStretchInherit
= FontStyleNormal
| FontStyleItalic
| FontStyleOblique
| FontStyleInherit
= FontVariantNormal
| FontVariantSmallCaps
| FontVariantInherit
= FontWeightNormal
| FontWeightBold
| FontWeightBolder
| FontWeightLighter
| FontWeightInherit
| FontWeight Int
= FuncTypeIdentity
| FuncTypeTable
| FuncTypeDiscrete
| FuncTypeLinear
| FuncTypeGamma
type InValue
= InSourceGraphic
| InSourceAlpha
| InBackgroundAlpha
| InFillPaint
| InStrokePaint
| InReference String
type Kerning
= KerningAuto
| KerningInherit
| KerningLength Length
type Length
= Cm Float
| Em Float
| Ex Float
| In Float
| Mm Float
| Num Float
| Pc Float
| Percent Float
| Pt Float
| Px Float

The Length type is an important type in the TypedSvg package--it is used wherever CSS needs to measure a length or distance in a certain unit (px, em, etc.)

= LengthAdjustSpacing
| LengthAdjustSpacingAndGlyphs
= MarkerCoordinateSystemUserSpaceOnUse
| MarkerCoordinateSystemStrokeWidth
= Meet
| Slice
type Mode
= ModeNormal
| ModeMultiply
| ModeScreen
| ModeDarken
| ModeLighten
= MorphologyOperatorErode
| MorphologyOperatorDilate
type Opacity
= Opacity Float
| OpacityInherit
= RenderingAuto
| RenderingOptimizeSpeed
| RenderingOptimizeQuality
| RenderingInherit
= RepeatCount Float
| RepeatIndefinite
type Restart
= RestartAlways
| RestartWhenNotActive
| RestartNever
type Scale
= ScaleMin
| ScaleMid
| ScaleMax
= RenderAuto
| RenderOptimizeSpeed
| RenderCrispEdges
| RenderGeometricPrecision
| RenderInherit
= TimingOffsetValue ClockValue
| TimingSyncBaseValue String
| TimingEventValue String
| TimingRepeatValue String
| TimingAccessKeyValue String
| TimingWallclockSyncValue String
| TimingIndefinite

Used by begin and end in constraining animation times

= Matrix Float Float Float Float Float Float
| Rotate Float Float Float
| Scale Float Float
| SkewX Float
| SkewY Float
| Translate Float Float

The Transform type is used by transform and gradientTransform

= TurbulenceTypeFractalNoise
| TurbulenceTypeTurbulence
type YesNo
= Yes
| No

Used by allowReorder

type Fill
= Fill Color
| FillNone
= StrokeLinecapButt
| StrokeLinecapRound
| StrokeLinecapSquare
| StrokeLinecapInherit

The stroke-linecap attribute specifies the shape to be used at the end of open subpaths when they are stroked.

= StrokeLinejoinMiter
| StrokeLinejoinRound
| StrokeLinejoinBevel
| StrokeLinejoinInherit

The stroke-linejoin attribute specifies the shape to be used at the corners of paths or basic shapes when they are stroked.

As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet.

Note: the final appearence of the miter option is also influenced by the stroke-miterlimit attribute.

= TextRenderingAuto
| TextRenderingOptimizeSpeed
| TextRenderingOptimizeLegibility
| TextRenderingGeometricPrecision
| TextRenderingInherit

The creator of SVG content might want to provide a hint about what tradeoffs to make as the browser renders text. The text-rendering attribute provides these hints.

As a presentation attribute, it also can be used as a property directly inside a CSS stylesheet, see css text-rendering for further information

cm : Float -> Length

Length expressed as a centimeter

em : Float -> Length

Length expressed as an em

ex : Float -> Length

Length expressed as a ex

inch : Float -> Length

Length expressed as an inch

mm : Float -> Length

Length expressed as a millimeter

num : Float -> Length

Length expressed as a raw number

pc : Float -> Length

Length expressed as a pc

percent : Float -> Length

Length expressed as a percentage

pt : Float -> Length

Length expressed in points

px : Float -> Length

Length expressed in pixels