The Types module defines all of the types used by TypedSvg.
Types
type Additive = AdditiveNone
| AdditiveReplace
type Align = Align Scale Scale
| AlignNone
type AlignmentBaseline = AlignmentAuto
| AlignmentBaseline
| AlignmentBeforeEdge
| AlignmentTextBeforeEdge
| AlignmentMiddle
| AlignmentCentral
| AlignmentAfterEdge
| AlignmentTextAfterEdge
| AlignmentIdeographic
| AlignmentAlphabetic
| AlignmentHanging
| AlignmentMathematical
| AlignmentInherit
type AnchorAlignment = AnchorInherit
| AnchorStart
| AnchorMiddle
| AnchorEnd
type AnimateTransformType = AnimateTransformTypeTranslate
| AnimateTransformTypeScale
| AnimateTransformTypeRotate
| AnimateTransformTypeSkewX
| AnimateTransformTypeSkewY
type AttributeType = AttributeTypeAuto
| AttributeTypeCss
| AttributeTypeXml
type BaselineShift = ShiftAuto
| ShiftBaseline
| ShiftSuper
| ShiftSub
| ShiftPercentage Basics.Float
| ShiftLength Length
| ShiftInherit
{ x1 : Basics.Float
, y1 : Basics.Float
, x2 : Basics.Float
, y2 : Basics.Float
}
type CalcMode = CalcModeDiscrete
| CalcModeLinear
| CalcModePaced
| CalcModeSpline
type Clip = ClipAuto
| ClipInherit
| ClipShape Length Length Length Length
type ClipPath = ClipPathNone
| ClipPathInherit
| ClipPathFunc String
type ClipRule = ClipRuleNonZero
| ClipRuleEvenOdd
| ClipRuleInherit
String
In a future version of TypedSvg, this may be turned into a DSL
type ColorInterpolation = ColorInterpolationAuto
| ColorInterpolationSRGB
| ColorInterpolationLinearRGB
| ColorInterpolationInherit
type ColorMatrixType = ColorMatrixTypeMatrix
| ColorMatrixTypeSaturate
| ColorMatrixTypeHueRotate
| ColorMatrixTypeLuminanceToAlpha
type ColorProfile = ColorProfileAuto
| ColorProfileSRGB
| ColorProfile String
| ColorProfileInherit
type CompositeOperator = CompositeOperatorOver
| CompositeOperatorIn
| CompositeOperatorOut
| CompositeOperatorAtop
| CompositeOperatorXor
| CompositeOperatorArithmetic
type CoordinateSystem = CoordinateSystemUserSpaceOnUse
| CoordinateSystemObjectBoundingBox
type Cursor = CursorAuto
| CursorDefault
| CursorCrosshair
| CursorPointer
| CursorMove
| CursorEResize
| CursorNEResize
| CursorNWResize
| CursorNResize
| CursorSEResize
| CursorSWResize
| CursorWResize
| CursorText
| CursorWait
| CursorHelp
| CursorInherit
| Cursor String
type Direction = DirectionLTR
| DirectionRTL
| DirectionInherit
type Display = DisplayInline
| DisplayBlock
| DisplayListItem
| DisplayRunIn
| DisplayCompact
| DisplayMarker
| DisplayTable
| DisplayInlineTable
| DisplayTableRowGroup
| DisplayTableHeaderGroup
| DisplayTableFooterGroup
| DisplayTableRow
| DisplayTableColumnGroup
| DisplayTableColumn
| DisplayTableCell
| DisplayTableCaption
| DisplayNone
| DisplayInherit
type DominantBaseline = DominantBaselineAuto
| DominantBaselineUseScript
| DominantBaselineNoChange
| DominantBaselineResetSize
| DominantBaselineIdeographic
| DominantBaselineAlphabetic
| DominantBaselineHanging
| DominantBaselineMathematical
| DominantBaselineCentral
| DominantBaselineMiddle
| DominantBaselineTextAfterEdge
| DominantBaselineTextBeforeEdge
| DominantBaselineInherit
type Duration = Duration ClockValue
| DurationIndefinite
type EdgeMode = EdgeModeDuplicate
| EdgeModeWrap
| EdgeModeNone
type FillRule = FillRuleNonZero
| FillRuleEvenOdd
type Filter = FilterNone
| FilterInherit
| Filter String
type FloodColor = FloodInherit
| FloodCurrentColor
| Flood TypedSvg.Color.Color
| FloodICC String
type FontSizeAdjust = FontSizeAdjustNone
| FontSizeAdjustInherit
| FontSizeAdjust Basics.Float
type FontStretch = FontStretchNormal
| FontStretchWider
| FontStretchNarrower
| FontStretchUltraCondensed
| FontStretchExtraCondensed
| FontStretchCondensed
| FontStretchSemiCondensed
| FontStretchSemiExpanded
| FontStretchExpanded
| FontStretchExtraExpanded
| FontStretchUltraExpanded
| FontStretchInherit
type FontStyle = FontStyleNormal
| FontStyleItalic
| FontStyleOblique
| FontStyleInherit
type FontVariant = FontVariantNormal
| FontVariantSmallCaps
| FontVariantInherit
type FontWeight = FontWeightNormal
| FontWeightBold
| FontWeightBolder
| FontWeightLighter
| FontWeightInherit
| FontWeight Basics.Int
type FuncType = FuncTypeIdentity
| FuncTypeTable
| FuncTypeDiscrete
| FuncTypeLinear
| FuncTypeGamma
type InValue = InSourceGraphic
| InSourceAlpha
| InBackgroundAlpha
| InFillPaint
| InStrokePaint
| InReference String
type Kerning = KerningAuto
| KerningInherit
| KerningLength Length
type Length = Cm Basics.Float
| Em Basics.Float
| Ex Basics.Float
| In Basics.Float
| Mm Basics.Float
| Num Basics.Float
| Pc Basics.Float
| Percent Basics.Float
| Pt Basics.Float
| Px Basics.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.)
type LengthAdjust = LengthAdjustSpacing
| LengthAdjustSpacingAndGlyphs
type Mode = ModeNormal
| ModeMultiply
| ModeScreen
| ModeDarken
| ModeLighten
type Opacity = Opacity Basics.Float
| OpacityInherit
type Rendering = RenderingAuto
| RenderingOptimizeSpeed
| RenderingOptimizeQuality
| RenderingInherit
type RepeatCount = RepeatCount Basics.Float
| RepeatIndefinite
type Restart = RestartAlways
| RestartWhenNotActive
| RestartNever
type Scale = ScaleMin
| ScaleMid
| ScaleMax
type ShapeRendering = RenderAuto
| RenderOptimizeSpeed
| RenderCrispEdges
| RenderGeometricPrecision
| RenderInherit
type TimingValue = TimingOffsetValue ClockValue
| TimingSyncBaseValue String
| TimingEventValue String
| TimingRepeatValue String
| TimingAccessKeyValue String
| TimingWallclockSyncValue String
| TimingIndefinite
Used by begin
and end
in constraining animation times
type Transform = Matrix Basics.Float Basics.Float Basics.Float Basics.Float Basics.Float Basics.Float
| Rotate Basics.Float Basics.Float Basics.Float
| Scale Basics.Float Basics.Float
| SkewX Basics.Float
| SkewY Basics.Float
| Translate Basics.Float Basics.Float
The Transform type is used by transform
and gradientTransform
type TurbulenceType = TurbulenceTypeFractalNoise
| TurbulenceTypeTurbulence
Used by allowReorder
type Fill = Fill TypedSvg.Color.Color
| FillNone
type StrokeLinecap = StrokeLinecapButt
| StrokeLinecapRound
| StrokeLinecapSquare
| StrokeLinecapInherit
The stroke-linecap attribute specifies the shape to be used at the end of open subpaths when they are
stroked.
type StrokeLinejoin = 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.
type TextRendering = 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 : Basics.Float -> Length
Length expressed as a centimeter
em : Basics.Float -> Length
Length expressed as an em
ex : Basics.Float -> Length
Length expressed as a ex
inch : Basics.Float -> Length
Length expressed as an inch
mm : Basics.Float -> Length
Length expressed as a millimeter
num : Basics.Float -> Length
Length expressed as a raw number
pc : Basics.Float -> Length
Length expressed as a pc
percent : Basics.Float -> Length
Length expressed as a percentage
pt : Basics.Float -> Length
Length expressed in points
px : Basics.Float -> Length
Length expressed in pixels