Parameter Make.Svg
SVG elements.
Element constructors are in section Elements. Most elements constructors are either nullary, unary or star, depending on the number of children they accept. Children are usually given as a list of elements. txt is used for text.
The type variable 'a is used to track the element's type. This allows the OCaml typechecker to check SVG validity.
Note that the concrete implementation of this type can vary. See Xml for details.
type doc = [ `Svg ] Svg.eltA complete SVG document.
SVG attributes
Attribute constructors are in section Attributes and their name starts with a_. Attributes are given to elements with the ~a optional argument.
Similarly to elt, attributes use the OCaml type system to enforce Html validity.
In some cases, attributes have to be disambiguated. The max attribute has two version, a_fill and a_animation_fill, depending on the element. Such disambiguated attribute will contain the name of the associated element.
type 'a wrap = 'a Xml.W.twrap is a container for elements and values.
In most cases, 'a wrap = 'a. For R modules (in eliom or js_of_ocaml), It will be React.S.t.
type 'a list_wrap = 'a Xml.W.tlistlist_wrap is a containre for list of elements.
In most cases, 'a list_wrap = 'a list. For R modules (in eliom or js_of_ocaml), It will be ReactiveData.RList.t.
type ('a, 'b) nullary = ?a:'a Svg.attrib list -> unit -> 'b Svg.eltA nullary element is an element that doesn't have any children.
type ('a, 'b, 'c) unary =
?a:'a Svg.attrib list ->
'b Svg.elt Svg.wrap ->
'c Svg.eltA unary element is an element that have exactly one children.
type ('a, 'b, 'c) star =
?a:'a Svg.attrib list ->
'b Svg.elt Svg.list_wrap ->
'c Svg.eltA star element is an element that has any number of children, including zero.
module Info : Xml_sigs.InfoVarious information about SVG, such as the doctype, ...
Uri
type uri = Xml.uriAttributes
val a_version : string Svg.wrap -> [> `Version ] Svg.attribval a_baseProfile : string Svg.wrap -> [> `BaseProfile ] Svg.attribval a_x : Svg_types.coord Svg.wrap -> [> `X ] Svg.attribval a_y : Svg_types.coord Svg.wrap -> [> `Y ] Svg.attribval a_width : Svg_types.Unit.length Svg.wrap -> [> `Width ] Svg.attribval a_height : Svg_types.Unit.length Svg.wrap -> [> `Height ] Svg.attribval a_preserveAspectRatio :
string Svg.wrap ->
[> `PreserveAspectRatio ] Svg.attribval a_contentScriptType : string Svg.wrap -> [> `ContentScriptType ] Svg.attribval a_contentStyleType : string Svg.wrap -> [> `ContentStyleType ] Svg.attribval a_zoomAndPan :
[< `Disable | `Magnify ] Svg.wrap ->
[> `ZoomAndSpan ] Svg.attribval a_href : Svg_types.iri Svg.wrap -> [> `Xlink_href ] Svg.attribval a_xlink_href : Svg_types.iri Svg.wrap -> [> `Xlink_href ] Svg.attribval a_requiredFeatures :
Svg_types.spacestrings Svg.wrap ->
[> `RequiredFeatures ] Svg.attribval a_requiredExtensions :
Svg_types.spacestrings Svg.wrap ->
[> `RequiredExtension ] Svg.attribval a_systemLanguage :
Svg_types.commastrings Svg.wrap ->
[> `SystemLanguage ] Svg.attribval a_externalRessourcesRequired :
bool Svg.wrap ->
[> `ExternalRessourcesRequired ] Svg.attribval a_id : string Svg.wrap -> [> `Id ] Svg.attribval a_user_data : string -> string Svg.wrap -> [> `User_data ] Svg.attribval a_xml_base : Svg_types.iri Svg.wrap -> [> `Xml_Base ] Svg.attribval a_xml_lang : Svg_types.iri Svg.wrap -> [> `Xml_Lang ] Svg.attribval a_xml_space :
[< `Default | `Preserve ] Svg.wrap ->
[> `Xml_Space ] Svg.attribval a_type : string Svg.wrap -> [> `Type ] Svg.attribval a_media : Svg_types.commastrings Svg.wrap -> [> `Media ] Svg.attribval a_xlink_title : string Svg.wrap -> [> `Title ] Svg.attribval a_class : Svg_types.spacestrings Svg.wrap -> [> `Class ] Svg.attribval a_style : string Svg.wrap -> [> `Style ] Svg.attribval a_transform : Svg_types.transforms Svg.wrap -> [> `Transform ] Svg.attribval a_viewBox : Svg_types.fourfloats Svg.wrap -> [> `ViewBox ] Svg.attribval a_d : string Svg.wrap -> [> `D ] Svg.attribval a_pathLength : float Svg.wrap -> [> `PathLength ] Svg.attribval a_rx : Svg_types.Unit.length Svg.wrap -> [> `Rx ] Svg.attribval a_ry : Svg_types.Unit.length Svg.wrap -> [> `Ry ] Svg.attribval a_cx : Svg_types.Unit.length Svg.wrap -> [> `Cx ] Svg.attribval a_cy : Svg_types.Unit.length Svg.wrap -> [> `Cy ] Svg.attribval a_r : Svg_types.Unit.length Svg.wrap -> [> `R ] Svg.attribval a_x1 : Svg_types.coord Svg.wrap -> [> `X1 ] Svg.attribval a_y1 : Svg_types.coord Svg.wrap -> [> `Y1 ] Svg.attribval a_x2 : Svg_types.coord Svg.wrap -> [> `X2 ] Svg.attribval a_y2 : Svg_types.coord Svg.wrap -> [> `Y2 ] Svg.attribval a_points : Svg_types.coords Svg.wrap -> [> `Points ] Svg.attribval a_x_list : Svg_types.lengths Svg.wrap -> [> `X_list ] Svg.attribval a_y_list : Svg_types.lengths Svg.wrap -> [> `Y_list ] Svg.attribval a_dx : Svg_types.number Svg.wrap -> [> `Dx ] Svg.attribval a_dy : Svg_types.number Svg.wrap -> [> `Dy ] Svg.attribval a_dx_list : Svg_types.lengths Svg.wrap -> [> `Dx_list ] Svg.attribval a_dy_list : Svg_types.lengths Svg.wrap -> [> `Dy_list ] Svg.attribval a_lengthAdjust :
[< `Spacing | `SpacingAndGlyphs ] Svg.wrap ->
[> `LengthAdjust ] Svg.attribval a_textLength :
Svg_types.Unit.length Svg.wrap ->
[> `TextLength ] Svg.attribval a_text_anchor :
[< `Start | `Middle | `End | `Inherit ] Svg.wrap ->
[> `Text_Anchor ] Svg.attribval a_text_decoration :
[< `None | `Underline | `Overline | `Line_through | `Blink | `Inherit ]
Svg.wrap ->
[> `Text_Decoration ] Svg.attribval a_text_rendering :
[< `Auto
| `OptimizeSpeed
| `OptimizeLegibility
| `GeometricPrecision
| `Inherit ]
Svg.wrap ->
[> `Text_Rendering ] Svg.attribval a_rotate : Svg_types.numbers Svg.wrap -> [> `Rotate ] Svg.attribval a_startOffset :
Svg_types.Unit.length Svg.wrap ->
[> `StartOffset ] Svg.attribval a_method : [< `Align | `Stretch ] Svg.wrap -> [> `Method ] Svg.attribval a_spacing : [< `Auto | `Exact ] Svg.wrap -> [> `Spacing ] Svg.attribval a_glyphRef : string Svg.wrap -> [> `GlyphRef ] Svg.attribval a_format : string Svg.wrap -> [> `Format ] Svg.attribval a_markerUnits :
[< `StrokeWidth | `UserSpaceOnUse ] Svg.wrap ->
[> `MarkerUnits ] Svg.attribval a_refX : Svg_types.coord Svg.wrap -> [> `RefX ] Svg.attribval a_refY : Svg_types.coord Svg.wrap -> [> `RefY ] Svg.attribval a_markerWidth :
Svg_types.Unit.length Svg.wrap ->
[> `MarkerWidth ] Svg.attribval a_markerHeight :
Svg_types.Unit.length Svg.wrap ->
[> `MarkerHeight ] Svg.attribval a_orient : Svg_types.Unit.angle option Svg.wrap -> [> `Orient ] Svg.attribval a_local : string Svg.wrap -> [> `Local ] Svg.attribval a_rendering_intent :
[< `Auto
| `Perceptual
| `Relative_colorimetric
| `Saturation
| `Absolute_colorimetric ]
Svg.wrap ->
[> `Rendering_Indent ] Svg.attribval a_gradientUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[ `GradientUnits ] Svg.attribval a_gradientTransform :
Svg_types.transforms Svg.wrap ->
[> `GradientTransform ] Svg.attribval a_spreadMethod :
[< `Pad | `Reflect | `Repeat ] Svg.wrap ->
[> `SpreadMethod ] Svg.attribval a_fx : Svg_types.coord Svg.wrap -> [> `Fx ] Svg.attribval a_fy : Svg_types.coord Svg.wrap -> [> `Fy ] Svg.attribval a_offset :
[< `Number of Svg_types.number | `Percentage of Svg_types.percentage ]
Svg.wrap ->
[> `Offset ] Svg.attribval a_patternUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[> `PatternUnits ] Svg.attribval a_patternContentUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[> `PatternContentUnits ] Svg.attribval a_patternTransform :
Svg_types.transforms Svg.wrap ->
[> `PatternTransform ] Svg.attribval a_clipPathUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[> `ClipPathUnits ] Svg.attribval a_maskUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[> `MaskUnits ] Svg.attribval a_maskContentUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[> `MaskContentUnits ] Svg.attribval a_primitiveUnits :
[< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap ->
[> `PrimitiveUnits ] Svg.attribval a_filterRes :
Svg_types.number_optional_number Svg.wrap ->
[> `FilterResUnits ] Svg.attribval a_result : string Svg.wrap -> [> `Result ] Svg.attribval a_in :
[< `SourceGraphic
| `SourceAlpha
| `BackgroundImage
| `BackgroundAlpha
| `FillPaint
| `StrokePaint
| `Ref of string ]
Svg.wrap ->
[> `In ] Svg.attribval a_in2 :
[< `SourceGraphic
| `SourceAlpha
| `BackgroundImage
| `BackgroundAlpha
| `FillPaint
| `StrokePaint
| `Ref of string ]
Svg.wrap ->
[> `In2 ] Svg.attribval a_azimuth : float Svg.wrap -> [> `Azimuth ] Svg.attribval a_elevation : float Svg.wrap -> [> `Elevation ] Svg.attribval a_pointsAtX : float Svg.wrap -> [> `PointsAtX ] Svg.attribval a_pointsAtY : float Svg.wrap -> [> `PointsAtY ] Svg.attribval a_pointsAtZ : float Svg.wrap -> [> `PointsAtZ ] Svg.attribval a_specularExponent : float Svg.wrap -> [> `SpecularExponent ] Svg.attribval a_specularConstant : float Svg.wrap -> [> `SpecularConstant ] Svg.attribval a_limitingConeAngle : float Svg.wrap -> [> `LimitingConeAngle ] Svg.attribval a_mode :
[< `Normal | `Multiply | `Screen | `Darken | `Lighten ] Svg.wrap ->
[> `Mode ] Svg.attribval a_feColorMatrix_type :
[< `Matrix | `Saturate | `HueRotate | `LuminanceToAlpha ] Svg.wrap ->
[> `Typefecolor ] Svg.attribval a_values : Svg_types.numbers Svg.wrap -> [> `Values ] Svg.attribval a_transfer_type :
[< `Identity | `Table | `Discrete | `Linear | `Gamma ] Svg.wrap ->
[> `Type_transfert ] Svg.attribval a_tableValues : Svg_types.numbers Svg.wrap -> [> `TableValues ] Svg.attribval a_intercept : Svg_types.number Svg.wrap -> [> `Intercept ] Svg.attribval a_amplitude : Svg_types.number Svg.wrap -> [> `Amplitude ] Svg.attribval a_exponent : Svg_types.number Svg.wrap -> [> `Exponent ] Svg.attribval a_transfer_offset :
Svg_types.number Svg.wrap ->
[> `Offset_transfer ] Svg.attribval a_feComposite_operator :
[< `Over | `In | `Out | `Atop | `Xor | `Arithmetic ] Svg.wrap ->
[> `OperatorComposite ] Svg.attribval a_k1 : Svg_types.number Svg.wrap -> [> `K1 ] Svg.attribval a_k2 : Svg_types.number Svg.wrap -> [> `K2 ] Svg.attribval a_k3 : Svg_types.number Svg.wrap -> [> `K3 ] Svg.attribval a_k4 : Svg_types.number Svg.wrap -> [> `K4 ] Svg.attribval a_order :
Svg_types.number_optional_number Svg.wrap ->
[> `Order ] Svg.attribval a_kernelMatrix :
Svg_types.numbers Svg.wrap ->
[> `KernelMatrix ] Svg.attribval a_divisor : Svg_types.number Svg.wrap -> [> `Divisor ] Svg.attribval a_bias : Svg_types.number Svg.wrap -> [> `Bias ] Svg.attribval a_kernelUnitLength :
Svg_types.number_optional_number Svg.wrap ->
[> `KernelUnitLength ] Svg.attribval a_targetX : int Svg.wrap -> [> `TargetX ] Svg.attribval a_targetY : int Svg.wrap -> [> `TargetY ] Svg.attribval a_edgeMode :
[< `Duplicate | `Wrap | `None ] Svg.wrap ->
[> `TargetY ] Svg.attribval a_preserveAlpha : bool Svg.wrap -> [> `TargetY ] Svg.attribval a_surfaceScale : Svg_types.number Svg.wrap -> [> `SurfaceScale ] Svg.attribval a_diffuseConstant :
Svg_types.number Svg.wrap ->
[> `DiffuseConstant ] Svg.attribval a_scale : Svg_types.number Svg.wrap -> [> `Scale ] Svg.attribval a_xChannelSelector :
[< `R | `G | `B | `A ] Svg.wrap ->
[> `XChannelSelector ] Svg.attribval a_yChannelSelector :
[< `R | `G | `B | `A ] Svg.wrap ->
[> `YChannelSelector ] Svg.attribval a_stdDeviation :
Svg_types.number_optional_number Svg.wrap ->
[> `StdDeviation ] Svg.attribval a_feMorphology_operator :
[< `Erode | `Dilate ] Svg.wrap ->
[> `OperatorMorphology ] Svg.attribval a_radius :
Svg_types.number_optional_number Svg.wrap ->
[> `Radius ] Svg.attribval a_baseFrenquency :
Svg_types.number_optional_number Svg.wrap ->
[> `BaseFrequency ] Svg.attribval a_numOctaves : int Svg.wrap -> [> `NumOctaves ] Svg.attribval a_seed : Svg_types.number Svg.wrap -> [> `Seed ] Svg.attribval a_stitchTiles :
[< `Stitch | `NoStitch ] Svg.wrap ->
[> `StitchTiles ] Svg.attribval a_feTurbulence_type :
[< `FractalNoise | `Turbulence ] Svg.wrap ->
[> `TypeStitch ] Svg.attribval a_xlink_show : [< `New | `Replace ] Svg.wrap -> [> `Xlink_show ] Svg.attribval a_xlink_actuate :
[< `OnRequest | `OnLoad | `Other | `None ] Svg.wrap ->
[> `Xlink_actuate ] Svg.attribval a_target : string Svg.wrap -> [> `Xlink_target ] Svg.attribval a_viewTarget : string Svg.wrap -> [> `ViewTarget ] Svg.attribval a_attributeName : string Svg.wrap -> [> `AttributeName ] Svg.attribval a_attributeType :
[< `CSS | `XML | `Auto ] Svg.wrap ->
[> `AttributeType ] Svg.attribval a_begin : string Svg.wrap -> [> `Begin ] Svg.attribval a_dur : string Svg.wrap -> [> `Dur ] Svg.attribval a_min : string Svg.wrap -> [> `Min ] Svg.attribval a_max : string Svg.wrap -> [> `Max ] Svg.attribval a_restart :
[< `Always | `WhenNotActive | `Never ] Svg.wrap ->
[> `Restart ] Svg.attribval a_repeatCount : string Svg.wrap -> [> `RepeatCount ] Svg.attribval a_repeatDur : string Svg.wrap -> [> `RepeatDur ] Svg.attribval a_fill : Svg_types.paint Svg.wrap -> [> `Fill ] Svg.attribval a_animation_fill :
[< `Freeze | `Remove ] Svg.wrap ->
[> `Fill_Animation ] Svg.attribval a_fill_rule : Svg_types.fill_rule Svg.wrap -> [> `Fill_rule ] Svg.attribval a_calcMode :
[< `Discrete | `Linear | `Paced | `Spline ] Svg.wrap ->
[> `CalcMode ] Svg.attribval a_animation_values :
Svg_types.strings Svg.wrap ->
[> `Valuesanim ] Svg.attribval a_keyTimes : Svg_types.strings Svg.wrap -> [> `KeyTimes ] Svg.attribval a_keySplines : Svg_types.strings Svg.wrap -> [> `KeySplines ] Svg.attribval a_from : string Svg.wrap -> [> `From ] Svg.attribval a_to : string Svg.wrap -> [> `To ] Svg.attribval a_by : string Svg.wrap -> [> `By ] Svg.attribval a_additive : [< `Replace | `Sum ] Svg.wrap -> [> `Additive ] Svg.attribval a_accumulate : [< `None | `Sum ] Svg.wrap -> [> `Accumulate ] Svg.attribval a_keyPoints :
Svg_types.numbers_semicolon Svg.wrap ->
[> `KeyPoints ] Svg.attribval a_path : string Svg.wrap -> [> `Path ] Svg.attribval a_animateTransform_type :
[ `Translate | `Scale | `Rotate | `SkewX | `SkewY ] Svg.wrap ->
[ `Typeanimatetransform ] Svg.attribval a_horiz_origin_x :
Svg_types.number Svg.wrap ->
[> `HorizOriginX ] Svg.attribval a_horiz_origin_y :
Svg_types.number Svg.wrap ->
[> `HorizOriginY ] Svg.attribval a_horiz_adv_x : Svg_types.number Svg.wrap -> [> `HorizAdvX ] Svg.attribval a_vert_origin_x : Svg_types.number Svg.wrap -> [> `VertOriginX ] Svg.attribval a_vert_origin_y : Svg_types.number Svg.wrap -> [> `VertOriginY ] Svg.attribval a_vert_adv_y : Svg_types.number Svg.wrap -> [> `VertAdvY ] Svg.attribval a_unicode : string Svg.wrap -> [> `Unicode ] Svg.attribval a_glyph_name : string Svg.wrap -> [> `glyphname ] Svg.attribval a_orientation : [< `H | `V ] Svg.wrap -> [> `Orientation ] Svg.attribval a_arabic_form :
[< `Initial | `Medial | `Terminal | `Isolated ] Svg.wrap ->
[> `Arabicform ] Svg.attribval a_lang : string Svg.wrap -> [> `Lang ] Svg.attribval a_u1 : string Svg.wrap -> [> `U1 ] Svg.attribval a_u2 : string Svg.wrap -> [> `U2 ] Svg.attribval a_g1 : string Svg.wrap -> [> `G1 ] Svg.attribval a_g2 : string Svg.wrap -> [> `G2 ] Svg.attribval a_k : string Svg.wrap -> [> `K ] Svg.attribval a_font_family : string Svg.wrap -> [> `Font_Family ] Svg.attribval a_font_style : string Svg.wrap -> [> `Font_Style ] Svg.attribval a_font_variant : string Svg.wrap -> [> `Font_Variant ] Svg.attribval a_font_weight : string Svg.wrap -> [> `Font_Weight ] Svg.attribval a_font_stretch : string Svg.wrap -> [> `Font_Stretch ] Svg.attribval a_font_size : string Svg.wrap -> [> `Font_Size ] Svg.attribval a_unicode_range : string Svg.wrap -> [> `UnicodeRange ] Svg.attribval a_units_per_em : string Svg.wrap -> [> `UnitsPerEm ] Svg.attribval a_stemv : Svg_types.number Svg.wrap -> [> `Stemv ] Svg.attribval a_stemh : Svg_types.number Svg.wrap -> [> `Stemh ] Svg.attribval a_slope : Svg_types.number Svg.wrap -> [> `Slope ] Svg.attribval a_cap_height : Svg_types.number Svg.wrap -> [> `CapHeight ] Svg.attribval a_x_height : Svg_types.number Svg.wrap -> [> `XHeight ] Svg.attribval a_accent_height :
Svg_types.number Svg.wrap ->
[> `AccentHeight ] Svg.attribval a_ascent : Svg_types.number Svg.wrap -> [> `Ascent ] Svg.attribval a_widths : string Svg.wrap -> [> `Widths ] Svg.attribval a_bbox : string Svg.wrap -> [> `Bbox ] Svg.attribval a_ideographic : Svg_types.number Svg.wrap -> [> `Ideographic ] Svg.attribval a_alphabetic : Svg_types.number Svg.wrap -> [> `Alphabetic ] Svg.attribval a_mathematical : Svg_types.number Svg.wrap -> [> `Mathematical ] Svg.attribval a_hanging : Svg_types.number Svg.wrap -> [> `Hanging ] Svg.attribval a_videographic : Svg_types.number Svg.wrap -> [> `VIdeographic ] Svg.attribval a_v_alphabetic : Svg_types.number Svg.wrap -> [> `VAlphabetic ] Svg.attribval a_v_mathematical :
Svg_types.number Svg.wrap ->
[> `VMathematical ] Svg.attribval a_v_hanging : Svg_types.number Svg.wrap -> [> `VHanging ] Svg.attribval a_underline_position :
Svg_types.number Svg.wrap ->
[> `UnderlinePosition ] Svg.attribval a_underline_thickness :
Svg_types.number Svg.wrap ->
[> `UnderlineThickness ] Svg.attribval a_strikethrough_position :
Svg_types.number Svg.wrap ->
[> `StrikethroughPosition ] Svg.attribval a_strikethrough_thickness :
Svg_types.number Svg.wrap ->
[> `StrikethroughThickness ] Svg.attribval a_overline_position :
Svg_types.number Svg.wrap ->
[> `OverlinePosition ] Svg.attribval a_overline_thickness :
Svg_types.number Svg.wrap ->
[> `OverlineThickness ] Svg.attribval a_string : string Svg.wrap -> [> `String ] Svg.attribval a_name : string Svg.wrap -> [> `Name ] Svg.attribval a_alignment_baseline :
[< `Auto
| `Baseline
| `Before_edge
| `Text_before_edge
| `Middle
| `Central
| `After_edge
| `Text_after_edge
| `Ideographic
| `Alphabetic
| `Hanging
| `Mathematical
| `Inherit ]
Svg.wrap ->
[> `Alignment_Baseline ] Svg.attribval a_dominant_baseline :
[< `Auto
| `Use_script
| `No_change
| `Reset_size
| `Ideographic
| `Alphabetic
| `Hanging
| `Mathematical
| `Central
| `Middle
| `Text_after_edge
| `Text_before_edge
| `Inherit ]
Svg.wrap ->
[> `Dominant_Baseline ] Svg.attribval a_stop_color : Svg_types.color Svg.wrap -> [> `Stop_Color ] Svg.attribval a_stop_opacity : Svg_types.number Svg.wrap -> [> `Stop_Opacity ] Svg.attribval a_stroke : Svg_types.paint Svg.wrap -> [> `Stroke ] Svg.attribval a_stroke_width :
Svg_types.Unit.length Svg.wrap ->
[> `Stroke_Width ] Svg.attribval a_stroke_linecap :
[< `Butt | `Round | `Square ] Svg.wrap ->
[> `Stroke_Linecap ] Svg.attribval a_stroke_linejoin :
[< `Miter | `Round | `Bever ] Svg.wrap ->
[> `Stroke_Linejoin ] Svg.attribval a_stroke_miterlimit : float Svg.wrap -> [> `Stroke_Miterlimit ] Svg.attribval a_stroke_dasharray :
Svg_types.Unit.length list Svg.wrap ->
[> `Stroke_Dasharray ] Svg.attribval a_stroke_dashoffset :
Svg_types.Unit.length Svg.wrap ->
[> `Stroke_Dashoffset ] Svg.attribval a_stroke_opacity : float Svg.wrap -> [> `Stroke_Opacity ] Svg.attribEvents
Javascript events
val a_onabort : Xml.event_handler -> [> `OnAbort ] Svg.attribval a_onactivate : Xml.event_handler -> [> `OnActivate ] Svg.attribval a_onbegin : Xml.event_handler -> [> `OnBegin ] Svg.attribval a_onend : Xml.event_handler -> [> `OnEnd ] Svg.attribval a_onerror : Xml.event_handler -> [> `OnError ] Svg.attribval a_onfocusin : Xml.event_handler -> [> `OnFocusIn ] Svg.attribval a_onfocusout : Xml.event_handler -> [> `OnFocusOut ] Svg.attribval a_onload : Xml.event_handler -> [> `OnLoad ] Svg.attribval a_onrepeat : Xml.event_handler -> [> `OnRepeat ] Svg.attribval a_onresize : Xml.event_handler -> [> `OnResize ] Svg.attribval a_onscroll : Xml.event_handler -> [> `OnScroll ] Svg.attribval a_onunload : Xml.event_handler -> [> `OnUnload ] Svg.attribval a_onzoom : Xml.event_handler -> [> `OnZoom ] Svg.attribJavascript mouse events
val a_onclick : Xml.mouse_event_handler -> [> `OnClick ] Svg.attribval a_onmousedown : Xml.mouse_event_handler -> [> `OnMouseDown ] Svg.attribval a_onmouseup : Xml.mouse_event_handler -> [> `OnMouseUp ] Svg.attribval a_onmouseover : Xml.mouse_event_handler -> [> `OnMouseOver ] Svg.attribval a_onmouseout : Xml.mouse_event_handler -> [> `OnMouseOut ] Svg.attribval a_onmousemove : Xml.mouse_event_handler -> [> `OnMouseMove ] Svg.attribval a_ontouchstart : Xml.touch_event_handler -> [> `OnTouchStart ] Svg.attribJavascript touch events
val a_ontouchend : Xml.touch_event_handler -> [> `OnTouchEnd ] Svg.attribval a_ontouchmove : Xml.touch_event_handler -> [> `OnTouchMove ] Svg.attribval a_ontouchcancel : Xml.touch_event_handler -> [> `OnTouchCancel ] Svg.attribElements
val txt : string Svg.wrap -> [> Svg_types.txt ] Svg.eltval svg :
([< Svg_types.svg_attr ], [< Svg_types.svg_content ], [> Svg_types.svg ])
Svg.starval g :
([< Svg_types.g_attr ], [< Svg_types.g_content ], [> Svg_types.g ]) Svg.starval defs :
([< Svg_types.defs_attr ], [< Svg_types.defs_content ], [> Svg_types.defs ])
Svg.starval desc :
([< Svg_types.desc_attr ], [< Svg_types.desc_content ], [> Svg_types.desc ])
Svg.unaryval title :
([< Svg_types.title_attr ],
[< Svg_types.title_content ],
[> Svg_types.title ])
Svg.unaryval symbol :
([< Svg_types.symbol_attr ],
[< Svg_types.symbol_content ],
[> Svg_types.symbol ])
Svg.starval use :
([< Svg_types.use_attr ], [< Svg_types.use_content ], [> Svg_types.use ])
Svg.starval image :
([< Svg_types.image_attr ],
[< Svg_types.image_content ],
[> Svg_types.image ])
Svg.starval switch :
([< Svg_types.switch_attr ],
[< Svg_types.switch_content ],
[> Svg_types.switch ])
Svg.starval style :
([< Svg_types.style_attr ],
[< Svg_types.style_content ],
[> Svg_types.style ])
Svg.unaryval path :
([< Svg_types.path_attr ], [< Svg_types.path_content ], [> Svg_types.path ])
Svg.starval rect :
([< Svg_types.rect_attr ], [< Svg_types.rect_content ], [> Svg_types.rect ])
Svg.starval circle :
([< Svg_types.circle_attr ],
[< Svg_types.circle_content ],
[> Svg_types.circle ])
Svg.starval ellipse :
([< Svg_types.ellipse_attr ],
[< Svg_types.ellipse_content ],
[> Svg_types.ellipse ])
Svg.starval line :
([< Svg_types.line_attr ], [< Svg_types.line_content ], [> Svg_types.line ])
Svg.starval polyline :
([< Svg_types.polyline_attr ],
[< Svg_types.polyline_content ],
[> Svg_types.polyline ])
Svg.starval polygon :
([< Svg_types.polygon_attr ],
[< Svg_types.polygon_content ],
[> Svg_types.polygon ])
Svg.starval text :
([< Svg_types.text_attr ], [< Svg_types.text_content ], [> Svg_types.text ])
Svg.starval tspan :
([< Svg_types.tspan_attr ],
[< Svg_types.tspan_content ],
[> Svg_types.tspan ])
Svg.starval tref :
([< Svg_types.tref_attr ], [< Svg_types.tref_content ], [> Svg_types.tref ])
Svg.starval textPath :
([< Svg_types.textpath_attr ],
[< Svg_types.textpath_content ],
[> Svg_types.textpath ])
Svg.starval altGlyph :
([< Svg_types.altglyph_attr ],
[< Svg_types.altglyph_content ],
[> Svg_types.altglyph ])
Svg.unarytype altglyphdef_content = [ | `Ref of Svg_types.glyphref Svg.elt list| `Item of Svg_types.altglyphitem Svg.elt list
]val altGlyphDef :
([< Svg_types.altglyphdef_attr ],
[< Svg.altglyphdef_content ],
[> Svg_types.altglyphdef ])
Svg.unaryval altGlyphItem :
([< Svg_types.altglyphitem_attr ],
[< Svg_types.altglyphitem_content ],
[> Svg_types.altglyphitem ])
Svg.starval glyphRef :
([< Svg_types.glyphref_attr ], [> Svg_types.glyphref ]) Svg.nullaryval marker :
([< Svg_types.marker_attr ],
[< Svg_types.marker_content ],
[> Svg_types.marker ])
Svg.starval color_profile :
([< Svg_types.colorprofile_attr ],
[< Svg_types.colorprofile_content ],
[> Svg_types.colorprofile ])
Svg.starval linearGradient :
([< Svg_types.lineargradient_attr ],
[< Svg_types.lineargradient_content ],
[> Svg_types.lineargradient ])
Svg.starval radialGradient :
([< Svg_types.radialgradient_attr ],
[< Svg_types.radialgradient_content ],
[> Svg_types.radialgradient ])
Svg.starval stop :
([< Svg_types.stop_attr ], [< Svg_types.stop_content ], [> Svg_types.stop ])
Svg.starval pattern :
([< Svg_types.pattern_attr ],
[< Svg_types.pattern_content ],
[> Svg_types.pattern ])
Svg.starval clipPath :
([< Svg_types.clippath_attr ],
[< Svg_types.clippath_content ],
[> Svg_types.clippath ])
Svg.starval filter :
([< Svg_types.filter_attr ],
[< Svg_types.filter_content ],
[> Svg_types.filter ])
Svg.starval feDistantLight :
([< Svg_types.fedistantlight_attr ],
[< Svg_types.fedistantlight_content ],
[> Svg_types.fedistantlight ])
Svg.starval fePointLight :
([< Svg_types.fepointlight_attr ],
[< Svg_types.fepointlight_content ],
[> Svg_types.fepointlight ])
Svg.starval feSpotLight :
([< Svg_types.fespotlight_attr ],
[< Svg_types.fespotlight_content ],
[> Svg_types.fespotlight ])
Svg.starval feBlend :
([< Svg_types.feblend_attr ],
[< Svg_types.feblend_content ],
[> Svg_types.feblend ])
Svg.starval feColorMatrix :
([< Svg_types.fecolormatrix_attr ],
[< Svg_types.fecolormatrix_content ],
[> Svg_types.fecolormatrix ])
Svg.starval feComponentTransfer :
([< Svg_types.fecomponenttransfer_attr ],
[< Svg_types.fecomponenttransfer_content ],
[> Svg_types.fecomponenttransfer ])
Svg.starval feFuncA :
([< Svg_types.fefunca_attr ],
[< Svg_types.fefunca_content ],
[> Svg_types.fefunca ])
Svg.starval feFuncG :
([< Svg_types.fefuncg_attr ],
[< Svg_types.fefuncg_content ],
[> Svg_types.fefuncg ])
Svg.starval feFuncB :
([< Svg_types.fefuncb_attr ],
[< Svg_types.fefuncb_content ],
[> Svg_types.fefuncb ])
Svg.starval feFuncR :
([< Svg_types.fefuncr_attr ],
[< Svg_types.fefuncr_content ],
[> Svg_types.fefuncr ])
Svg.starval feComposite :
([< Svg_types.fecomposite_attr ],
[< Svg_types.fecomposite_content ],
[> Svg_types.fecomposite ])
Svg.starval feConvolveMatrix :
([< Svg_types.feconvolvematrix_attr ],
[< Svg_types.feconvolvematrix_content ],
[> Svg_types.feconvolvematrix ])
Svg.starval feDiffuseLighting :
([< Svg_types.fediffuselighting_attr ],
[< Svg_types.fediffuselighting_content ],
[> Svg_types.fediffuselighting ])
Svg.starval feDisplacementMap :
([< Svg_types.fedisplacementmap_attr ],
[< Svg_types.fedisplacementmap_content ],
[> Svg_types.fedisplacementmap ])
Svg.starval feFlood :
([< Svg_types.feflood_attr ],
[< Svg_types.feflood_content ],
[> Svg_types.feflood ])
Svg.starval feGaussianBlur :
([< Svg_types.fegaussianblur_attr ],
[< Svg_types.fegaussianblur_content ],
[> Svg_types.fegaussianblur ])
Svg.starval feImage :
([< Svg_types.feimage_attr ],
[< Svg_types.feimage_content ],
[> Svg_types.feimage ])
Svg.starval feMerge :
([< Svg_types.femerge_attr ],
[< Svg_types.femerge_content ],
[> Svg_types.femerge ])
Svg.starval feMorphology :
([< Svg_types.femorphology_attr ],
[< Svg_types.femorphology_content ],
[> Svg_types.femorphology ])
Svg.starval feOffset :
([< Svg_types.feoffset_attr ],
[< Svg_types.feoffset_content ],
[> Svg_types.feoffset ])
Svg.starval feSpecularLighting :
([< Svg_types.fespecularlighting_attr ],
[< Svg_types.fespecularlighting_content ],
[> Svg_types.fespecularlighting ])
Svg.starval feTile :
([< Svg_types.fetile_attr ],
[< Svg_types.fetile_content ],
[> Svg_types.fetile ])
Svg.starval feTurbulence :
([< Svg_types.feturbulence_attr ],
[< Svg_types.feturbulence_content ],
[> Svg_types.feturbulence ])
Svg.starval cursor :
([< Svg_types.cursor_attr ],
[< Svg_types.cursor_content ],
[> Svg_types.cursor ])
Svg.starval a :
([< Svg_types.a_attr ], [< Svg_types.a_content ], [> Svg_types.a ]) Svg.starval view :
([< Svg_types.view_attr ], [< Svg_types.view_content ], [> Svg_types.view ])
Svg.starval script :
([< Svg_types.script_attr ],
[< Svg_types.script_content ],
[> Svg_types.script ])
Svg.unaryval animate :
([< Svg_types.animate_attr ],
[< Svg_types.animate_content ],
[> Svg_types.animate ])
Svg.starval set :
([< Svg_types.set_attr ], [< Svg_types.set_content ], [> Svg_types.set ])
Svg.starval animateMotion :
([< Svg_types.animatemotion_attr ],
[< Svg_types.animatemotion_content ],
[> Svg_types.animatemotion ])
Svg.starval mpath :
([< Svg_types.mpath_attr ],
[< Svg_types.mpath_content ],
[> Svg_types.mpath ])
Svg.starval animateColor :
([< Svg_types.animatecolor_attr ],
[< Svg_types.animatecolor_content ],
[> Svg_types.animatecolor ])
Svg.starval animateTransform :
([< Svg_types.animatetransform_attr ],
[< Svg_types.animatetransform_content ],
[> Svg_types.animatetransform ])
Svg.starval font :
([< Svg_types.font_attr ], [< Svg_types.font_content ], [> Svg_types.font ])
Svg.starval glyph :
([< Svg_types.glyph_attr ],
[< Svg_types.glyph_content ],
[> Svg_types.glyph ])
Svg.starval missing_glyph :
([< Svg_types.missingglyph_attr ],
[< Svg_types.missingglyph_content ],
[> Svg_types.missingglyph ])
Svg.starval hkern : ([< Svg_types.hkern_attr ], [> Svg_types.hkern ]) Svg.nullaryval vkern : ([< Svg_types.vkern_attr ], [> Svg_types.vkern ]) Svg.nullaryval font_face :
([< Svg_types.font_face_attr ], [> Svg_types.font_face ]) Svg.nullaryval font_face_src :
([< Svg_types.font_face_src_attr ],
[< Svg_types.font_face_src_content ],
[> Svg_types.font_face_src ])
Svg.starval font_face_uri :
([< Svg_types.font_face_uri_attr ],
[< Svg_types.font_face_uri_content ],
[> Svg_types.font_face_uri ])
Svg.starval font_face_format :
([< Svg_types.font_face_format_attr ], [> Svg_types.font_face_format ])
Svg.nullaryval font_face_name :
([< Svg_types.font_face_name_attr ], [> Svg_types.font_face_name ])
Svg.nullaryval metadata :
?a:Svg_types.metadata_attr Svg.attrib list ->
Xml.elt Svg.list_wrap ->
[> Svg_types.metadata ] Svg.eltval foreignObject :
?a:Svg_types.foreignobject_attr Svg.attrib list ->
Xml.elt Svg.list_wrap ->
[> Svg_types.foreignobject ] Svg.eltDeprecated
val pcdata : string Svg.wrap -> [> Svg_types.txt ] Svg.eltval animation :
([< Svg_types.animate_attr ],
[< Svg_types.animate_content ],
[> Svg_types.animate ])
Svg.starConversion with untyped representation
WARNING: These functions do not ensure HTML or SVG validity! You should always explicitly given an appropriate type to the output.
val of_seq : Xml_stream.signal Stdlib.Seq.t -> 'a Svg.elt Svg.list_wrapimport signal converts the given XML signal into Tyxml elements. It can be used with HTML and SVG parsing libraries, such as Markup.
val totl : Xml.elt Svg.list_wrap -> 'a Svg.elt Svg.list_wrapval toeltl : 'a Svg.elt Svg.list_wrap -> Xml.elt Svg.list_wrapval to_xmlattribs : 'a Svg.attrib list -> Xml.attrib listval to_attrib : Xml.attrib -> 'a Svg.attribmodule Unsafe : sig ... endUnsafe features.