jon.recoil.org

Module Tyxml_svgSource

Typesafe constructors and printers for Svg documents.

Concrete implementation of Svg typesafe constructors. See Svg_sigs.T.

include Svg_sigs.Make(Tyxml_xml).T with module Xml.W = Xml_wrap.NoWrap
Sourcetype +'a elt

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.

Sourcetype doc = [ `Svg ] Tyxml_svg.elt

A complete SVG document.

Sourcetype +'a attrib

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.

Underlying XML data-structure

Sourcetype 'a wrap = 'a Xml.W.t

wrap 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.

Sourcetype 'a list_wrap = 'a Xml.W.tlist

list_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.

Sourcetype ('a, 'b) nullary = ?a:'a Tyxml_svg.attrib list -> unit -> 'b Tyxml_svg.elt

A nullary element is an element that doesn't have any children.

Sourcetype ('a, 'b, 'c) unary = ?a:'a Tyxml_svg.attrib list -> 'b Tyxml_svg.elt Tyxml_svg.wrap -> 'c Tyxml_svg.elt

A unary element is an element that have exactly one children.

Sourcetype ('a, 'b, 'c) star = ?a:'a Tyxml_svg.attrib list -> 'b Tyxml_svg.elt Tyxml_svg.list_wrap -> 'c Tyxml_svg.elt

A star element is an element that has any number of children, including zero.

Various information about SVG, such as the doctype, ...

Uri

Sourceval string_of_uri : (Tyxml_svg.uri, string) Xml.W.ft
Sourceval uri_of_string : (string, Tyxml_svg.uri) Xml.W.ft

Attributes

Sourceval a_version : string Tyxml_svg.wrap -> [> `Version ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_baseProfile : string Tyxml_svg.wrap -> [> `BaseProfile ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_preserveAspectRatio : string Tyxml_svg.wrap -> [> `PreserveAspectRatio ] Tyxml_svg.attrib
Sourceval a_contentScriptType : string Tyxml_svg.wrap -> [> `ContentScriptType ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_contentStyleType : string Tyxml_svg.wrap -> [> `ContentStyleType ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_zoomAndPan : [< `Disable | `Magnify ] Tyxml_svg.wrap -> [> `ZoomAndSpan ] Tyxml_svg.attrib
Sourceval a_href : Svg_types.iri Tyxml_svg.wrap -> [> `Xlink_href ] Tyxml_svg.attrib
  • deprecated

    Use a_href

Sourceval a_requiredFeatures : Svg_types.spacestrings Tyxml_svg.wrap -> [> `RequiredFeatures ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_requiredExtensions : Svg_types.spacestrings Tyxml_svg.wrap -> [> `RequiredExtension ] Tyxml_svg.attrib
Sourceval a_systemLanguage : Svg_types.commastrings Tyxml_svg.wrap -> [> `SystemLanguage ] Tyxml_svg.attrib
Sourceval a_externalRessourcesRequired : bool Tyxml_svg.wrap -> [> `ExternalRessourcesRequired ] Tyxml_svg.attrib
Sourceval a_id : string Tyxml_svg.wrap -> [> `Id ] Tyxml_svg.attrib
Sourceval a_user_data : string -> string Tyxml_svg.wrap -> [> `User_data ] Tyxml_svg.attrib
Sourceval a_xml_base : Svg_types.iri Tyxml_svg.wrap -> [> `Xml_Base ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_xml_lang : Svg_types.iri Tyxml_svg.wrap -> [> `Xml_Lang ] Tyxml_svg.attrib
Sourceval a_xml_space : [< `Default | `Preserve ] Tyxml_svg.wrap -> [> `Xml_Space ] Tyxml_svg.attrib
  • deprecated

    Use CSS white-space

Sourceval a_type : string Tyxml_svg.wrap -> [> `Type ] Tyxml_svg.attrib
  • deprecated

    Use a child title element

Sourceval a_style : string Tyxml_svg.wrap -> [> `Style ] Tyxml_svg.attrib
Sourceval a_transform : Svg_types.transforms Tyxml_svg.wrap -> [> `Transform ] Tyxml_svg.attrib
Sourceval a_d : string Tyxml_svg.wrap -> [> `D ] Tyxml_svg.attrib
Sourceval a_pathLength : float Tyxml_svg.wrap -> [> `PathLength ] Tyxml_svg.attrib
Sourceval a_lengthAdjust : [< `Spacing | `SpacingAndGlyphs ] Tyxml_svg.wrap -> [> `LengthAdjust ] Tyxml_svg.attrib
Sourceval a_textLength : Svg_types.Unit.length Tyxml_svg.wrap -> [> `TextLength ] Tyxml_svg.attrib
Sourceval a_text_anchor : [< `Start | `Middle | `End | `Inherit ] Tyxml_svg.wrap -> [> `Text_Anchor ] Tyxml_svg.attrib
Sourceval a_text_decoration : [< `None | `Underline | `Overline | `Line_through | `Blink | `Inherit ] Tyxml_svg.wrap -> [> `Text_Decoration ] Tyxml_svg.attrib
Sourceval a_text_rendering : [< `Auto | `OptimizeSpeed | `OptimizeLegibility | `GeometricPrecision | `Inherit ] Tyxml_svg.wrap -> [> `Text_Rendering ] Tyxml_svg.attrib
Sourceval a_startOffset : Svg_types.Unit.length Tyxml_svg.wrap -> [> `StartOffset ] Tyxml_svg.attrib
Sourceval a_method : [< `Align | `Stretch ] Tyxml_svg.wrap -> [> `Method ] Tyxml_svg.attrib
Sourceval a_spacing : [< `Auto | `Exact ] Tyxml_svg.wrap -> [> `Spacing ] Tyxml_svg.attrib
Sourceval a_glyphRef : string Tyxml_svg.wrap -> [> `GlyphRef ] Tyxml_svg.attrib
Sourceval a_format : string Tyxml_svg.wrap -> [> `Format ] Tyxml_svg.attrib
Sourceval a_markerUnits : [< `StrokeWidth | `UserSpaceOnUse ] Tyxml_svg.wrap -> [> `MarkerUnits ] Tyxml_svg.attrib
Sourceval a_markerWidth : Svg_types.Unit.length Tyxml_svg.wrap -> [> `MarkerWidth ] Tyxml_svg.attrib
Sourceval a_markerHeight : Svg_types.Unit.length Tyxml_svg.wrap -> [> `MarkerHeight ] Tyxml_svg.attrib
Sourceval a_orient : Svg_types.Unit.angle option Tyxml_svg.wrap -> [> `Orient ] Tyxml_svg.attrib
Sourceval a_local : string Tyxml_svg.wrap -> [> `Local ] Tyxml_svg.attrib
Sourceval a_rendering_intent : [< `Auto | `Perceptual | `Relative_colorimetric | `Saturation | `Absolute_colorimetric ] Tyxml_svg.wrap -> [> `Rendering_Indent ] Tyxml_svg.attrib
Sourceval a_gradientUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [ `GradientUnits ] Tyxml_svg.attrib
Sourceval a_gradientTransform : Svg_types.transforms Tyxml_svg.wrap -> [> `GradientTransform ] Tyxml_svg.attrib
Sourceval a_spreadMethod : [< `Pad | `Reflect | `Repeat ] Tyxml_svg.wrap -> [> `SpreadMethod ] Tyxml_svg.attrib
Sourceval a_offset : [< `Number of Svg_types.number | `Percentage of Svg_types.percentage ] Tyxml_svg.wrap -> [> `Offset ] Tyxml_svg.attrib
Sourceval a_patternUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [> `PatternUnits ] Tyxml_svg.attrib
Sourceval a_patternContentUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [> `PatternContentUnits ] Tyxml_svg.attrib
Sourceval a_patternTransform : Svg_types.transforms Tyxml_svg.wrap -> [> `PatternTransform ] Tyxml_svg.attrib
Sourceval a_clipPathUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [> `ClipPathUnits ] Tyxml_svg.attrib
Sourceval a_maskUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [> `MaskUnits ] Tyxml_svg.attrib
Sourceval a_maskContentUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [> `MaskContentUnits ] Tyxml_svg.attrib
Sourceval a_primitiveUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Tyxml_svg.wrap -> [> `PrimitiveUnits ] Tyxml_svg.attrib
Sourceval a_result : string Tyxml_svg.wrap -> [> `Result ] Tyxml_svg.attrib
Sourceval a_in : [< `SourceGraphic | `SourceAlpha | `BackgroundImage | `BackgroundAlpha | `FillPaint | `StrokePaint | `Ref of string ] Tyxml_svg.wrap -> [> `In ] Tyxml_svg.attrib
Sourceval a_in2 : [< `SourceGraphic | `SourceAlpha | `BackgroundImage | `BackgroundAlpha | `FillPaint | `StrokePaint | `Ref of string ] Tyxml_svg.wrap -> [> `In2 ] Tyxml_svg.attrib
Sourceval a_azimuth : float Tyxml_svg.wrap -> [> `Azimuth ] Tyxml_svg.attrib
Sourceval a_elevation : float Tyxml_svg.wrap -> [> `Elevation ] Tyxml_svg.attrib
Sourceval a_pointsAtX : float Tyxml_svg.wrap -> [> `PointsAtX ] Tyxml_svg.attrib
Sourceval a_pointsAtY : float Tyxml_svg.wrap -> [> `PointsAtY ] Tyxml_svg.attrib
Sourceval a_pointsAtZ : float Tyxml_svg.wrap -> [> `PointsAtZ ] Tyxml_svg.attrib
Sourceval a_specularExponent : float Tyxml_svg.wrap -> [> `SpecularExponent ] Tyxml_svg.attrib
Sourceval a_specularConstant : float Tyxml_svg.wrap -> [> `SpecularConstant ] Tyxml_svg.attrib
Sourceval a_limitingConeAngle : float Tyxml_svg.wrap -> [> `LimitingConeAngle ] Tyxml_svg.attrib
Sourceval a_mode : [< `Normal | `Multiply | `Screen | `Darken | `Lighten ] Tyxml_svg.wrap -> [> `Mode ] Tyxml_svg.attrib
Sourceval a_feColorMatrix_type : [< `Matrix | `Saturate | `HueRotate | `LuminanceToAlpha ] Tyxml_svg.wrap -> [> `Typefecolor ] Tyxml_svg.attrib
Sourceval a_transfer_type : [< `Identity | `Table | `Discrete | `Linear | `Gamma ] Tyxml_svg.wrap -> [> `Type_transfert ] Tyxml_svg.attrib
Sourceval a_tableValues : Svg_types.numbers Tyxml_svg.wrap -> [> `TableValues ] Tyxml_svg.attrib
Sourceval a_intercept : Svg_types.number Tyxml_svg.wrap -> [> `Intercept ] Tyxml_svg.attrib
Sourceval a_amplitude : Svg_types.number Tyxml_svg.wrap -> [> `Amplitude ] Tyxml_svg.attrib
Sourceval a_exponent : Svg_types.number Tyxml_svg.wrap -> [> `Exponent ] Tyxml_svg.attrib
Sourceval a_transfer_offset : Svg_types.number Tyxml_svg.wrap -> [> `Offset_transfer ] Tyxml_svg.attrib
Sourceval a_feComposite_operator : [< `Over | `In | `Out | `Atop | `Xor | `Arithmetic ] Tyxml_svg.wrap -> [> `OperatorComposite ] Tyxml_svg.attrib
Sourceval a_kernelMatrix : Svg_types.numbers Tyxml_svg.wrap -> [> `KernelMatrix ] Tyxml_svg.attrib
Sourceval a_divisor : Svg_types.number Tyxml_svg.wrap -> [> `Divisor ] Tyxml_svg.attrib
Sourceval a_kernelUnitLength : Svg_types.number_optional_number Tyxml_svg.wrap -> [> `KernelUnitLength ] Tyxml_svg.attrib
Sourceval a_targetX : int Tyxml_svg.wrap -> [> `TargetX ] Tyxml_svg.attrib
Sourceval a_targetY : int Tyxml_svg.wrap -> [> `TargetY ] Tyxml_svg.attrib
Sourceval a_edgeMode : [< `Duplicate | `Wrap | `None ] Tyxml_svg.wrap -> [> `TargetY ] Tyxml_svg.attrib
Sourceval a_preserveAlpha : bool Tyxml_svg.wrap -> [> `TargetY ] Tyxml_svg.attrib
Sourceval a_surfaceScale : Svg_types.number Tyxml_svg.wrap -> [> `SurfaceScale ] Tyxml_svg.attrib
Sourceval a_diffuseConstant : Svg_types.number Tyxml_svg.wrap -> [> `DiffuseConstant ] Tyxml_svg.attrib
Sourceval a_xChannelSelector : [< `R | `G | `B | `A ] Tyxml_svg.wrap -> [> `XChannelSelector ] Tyxml_svg.attrib
Sourceval a_yChannelSelector : [< `R | `G | `B | `A ] Tyxml_svg.wrap -> [> `YChannelSelector ] Tyxml_svg.attrib
Sourceval a_feMorphology_operator : [< `Erode | `Dilate ] Tyxml_svg.wrap -> [> `OperatorMorphology ] Tyxml_svg.attrib
Sourceval a_baseFrenquency : Svg_types.number_optional_number Tyxml_svg.wrap -> [> `BaseFrequency ] Tyxml_svg.attrib
Sourceval a_numOctaves : int Tyxml_svg.wrap -> [> `NumOctaves ] Tyxml_svg.attrib
Sourceval a_stitchTiles : [< `Stitch | `NoStitch ] Tyxml_svg.wrap -> [> `StitchTiles ] Tyxml_svg.attrib
Sourceval a_feTurbulence_type : [< `FractalNoise | `Turbulence ] Tyxml_svg.wrap -> [> `TypeStitch ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

Sourceval a_target : string Tyxml_svg.wrap -> [> `Xlink_target ] Tyxml_svg.attrib
Sourceval a_viewTarget : string Tyxml_svg.wrap -> [> `ViewTarget ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_attributeName : string Tyxml_svg.wrap -> [> `AttributeName ] Tyxml_svg.attrib
Sourceval a_attributeType : [< `CSS | `XML | `Auto ] Tyxml_svg.wrap -> [> `AttributeType ] Tyxml_svg.attrib
Sourceval a_begin : string Tyxml_svg.wrap -> [> `Begin ] Tyxml_svg.attrib
Sourceval a_dur : string Tyxml_svg.wrap -> [> `Dur ] Tyxml_svg.attrib
Sourceval a_min : string Tyxml_svg.wrap -> [> `Min ] Tyxml_svg.attrib
Sourceval a_max : string Tyxml_svg.wrap -> [> `Max ] Tyxml_svg.attrib
Sourceval a_restart : [< `Always | `WhenNotActive | `Never ] Tyxml_svg.wrap -> [> `Restart ] Tyxml_svg.attrib
Sourceval a_repeatCount : string Tyxml_svg.wrap -> [> `RepeatCount ] Tyxml_svg.attrib
Sourceval a_repeatDur : string Tyxml_svg.wrap -> [> `RepeatDur ] Tyxml_svg.attrib
Sourceval a_animation_fill : [< `Freeze | `Remove ] Tyxml_svg.wrap -> [> `Fill_Animation ] Tyxml_svg.attrib
Sourceval a_fill_rule : Svg_types.fill_rule Tyxml_svg.wrap -> [> `Fill_rule ] Tyxml_svg.attrib
Sourceval a_calcMode : [< `Discrete | `Linear | `Paced | `Spline ] Tyxml_svg.wrap -> [> `CalcMode ] Tyxml_svg.attrib
Sourceval a_animation_values : Svg_types.strings Tyxml_svg.wrap -> [> `Valuesanim ] Tyxml_svg.attrib
Sourceval a_keyTimes : Svg_types.strings Tyxml_svg.wrap -> [> `KeyTimes ] Tyxml_svg.attrib
Sourceval a_keySplines : Svg_types.strings Tyxml_svg.wrap -> [> `KeySplines ] Tyxml_svg.attrib
Sourceval a_from : string Tyxml_svg.wrap -> [> `From ] Tyxml_svg.attrib
Sourceval a_to : string Tyxml_svg.wrap -> [> `To ] Tyxml_svg.attrib
Sourceval a_by : string Tyxml_svg.wrap -> [> `By ] Tyxml_svg.attrib
Sourceval a_additive : [< `Replace | `Sum ] Tyxml_svg.wrap -> [> `Additive ] Tyxml_svg.attrib
Sourceval a_accumulate : [< `None | `Sum ] Tyxml_svg.wrap -> [> `Accumulate ] Tyxml_svg.attrib
Sourceval a_path : string Tyxml_svg.wrap -> [> `Path ] Tyxml_svg.attrib
Sourceval a_animateTransform_type : [ `Translate | `Scale | `Rotate | `SkewX | `SkewY ] Tyxml_svg.wrap -> [ `Typeanimatetransform ] Tyxml_svg.attrib
Sourceval a_horiz_origin_x : Svg_types.number Tyxml_svg.wrap -> [> `HorizOriginX ] Tyxml_svg.attrib
Sourceval a_horiz_origin_y : Svg_types.number Tyxml_svg.wrap -> [> `HorizOriginY ] Tyxml_svg.attrib
Sourceval a_horiz_adv_x : Svg_types.number Tyxml_svg.wrap -> [> `HorizAdvX ] Tyxml_svg.attrib
Sourceval a_vert_origin_x : Svg_types.number Tyxml_svg.wrap -> [> `VertOriginX ] Tyxml_svg.attrib
Sourceval a_vert_origin_y : Svg_types.number Tyxml_svg.wrap -> [> `VertOriginY ] Tyxml_svg.attrib
Sourceval a_vert_adv_y : Svg_types.number Tyxml_svg.wrap -> [> `VertAdvY ] Tyxml_svg.attrib
Sourceval a_unicode : string Tyxml_svg.wrap -> [> `Unicode ] Tyxml_svg.attrib
Sourceval a_glyph_name : string Tyxml_svg.wrap -> [> `glyphname ] Tyxml_svg.attrib
Sourceval a_orientation : [< `H | `V ] Tyxml_svg.wrap -> [> `Orientation ] Tyxml_svg.attrib
Sourceval a_arabic_form : [< `Initial | `Medial | `Terminal | `Isolated ] Tyxml_svg.wrap -> [> `Arabicform ] Tyxml_svg.attrib
Sourceval a_lang : string Tyxml_svg.wrap -> [> `Lang ] Tyxml_svg.attrib
Sourceval a_u1 : string Tyxml_svg.wrap -> [> `U1 ] Tyxml_svg.attrib
Sourceval a_u2 : string Tyxml_svg.wrap -> [> `U2 ] Tyxml_svg.attrib
Sourceval a_g1 : string Tyxml_svg.wrap -> [> `G1 ] Tyxml_svg.attrib
Sourceval a_g2 : string Tyxml_svg.wrap -> [> `G2 ] Tyxml_svg.attrib
Sourceval a_k : string Tyxml_svg.wrap -> [> `K ] Tyxml_svg.attrib
Sourceval a_font_family : string Tyxml_svg.wrap -> [> `Font_Family ] Tyxml_svg.attrib
Sourceval a_font_style : string Tyxml_svg.wrap -> [> `Font_Style ] Tyxml_svg.attrib
Sourceval a_font_variant : string Tyxml_svg.wrap -> [> `Font_Variant ] Tyxml_svg.attrib
Sourceval a_font_weight : string Tyxml_svg.wrap -> [> `Font_Weight ] Tyxml_svg.attrib
Sourceval a_font_stretch : string Tyxml_svg.wrap -> [> `Font_Stretch ] Tyxml_svg.attrib
Sourceval a_font_size : string Tyxml_svg.wrap -> [> `Font_Size ] Tyxml_svg.attrib
Sourceval a_unicode_range : string Tyxml_svg.wrap -> [> `UnicodeRange ] Tyxml_svg.attrib
Sourceval a_units_per_em : string Tyxml_svg.wrap -> [> `UnitsPerEm ] Tyxml_svg.attrib
Sourceval a_cap_height : Svg_types.number Tyxml_svg.wrap -> [> `CapHeight ] Tyxml_svg.attrib
Sourceval a_x_height : Svg_types.number Tyxml_svg.wrap -> [> `XHeight ] Tyxml_svg.attrib
Sourceval a_accent_height : Svg_types.number Tyxml_svg.wrap -> [> `AccentHeight ] Tyxml_svg.attrib
Sourceval a_widths : string Tyxml_svg.wrap -> [> `Widths ] Tyxml_svg.attrib
Sourceval a_bbox : string Tyxml_svg.wrap -> [> `Bbox ] Tyxml_svg.attrib
Sourceval a_ideographic : Svg_types.number Tyxml_svg.wrap -> [> `Ideographic ] Tyxml_svg.attrib
Sourceval a_alphabetic : Svg_types.number Tyxml_svg.wrap -> [> `Alphabetic ] Tyxml_svg.attrib
Sourceval a_mathematical : Svg_types.number Tyxml_svg.wrap -> [> `Mathematical ] Tyxml_svg.attrib
Sourceval a_hanging : Svg_types.number Tyxml_svg.wrap -> [> `Hanging ] Tyxml_svg.attrib
Sourceval a_videographic : Svg_types.number Tyxml_svg.wrap -> [> `VIdeographic ] Tyxml_svg.attrib
Sourceval a_v_alphabetic : Svg_types.number Tyxml_svg.wrap -> [> `VAlphabetic ] Tyxml_svg.attrib
Sourceval a_v_mathematical : Svg_types.number Tyxml_svg.wrap -> [> `VMathematical ] Tyxml_svg.attrib
Sourceval a_v_hanging : Svg_types.number Tyxml_svg.wrap -> [> `VHanging ] Tyxml_svg.attrib
Sourceval a_underline_position : Svg_types.number Tyxml_svg.wrap -> [> `UnderlinePosition ] Tyxml_svg.attrib
Sourceval a_underline_thickness : Svg_types.number Tyxml_svg.wrap -> [> `UnderlineThickness ] Tyxml_svg.attrib
Sourceval a_strikethrough_position : Svg_types.number Tyxml_svg.wrap -> [> `StrikethroughPosition ] Tyxml_svg.attrib
Sourceval a_strikethrough_thickness : Svg_types.number Tyxml_svg.wrap -> [> `StrikethroughThickness ] Tyxml_svg.attrib
Sourceval a_overline_position : Svg_types.number Tyxml_svg.wrap -> [> `OverlinePosition ] Tyxml_svg.attrib
Sourceval a_overline_thickness : Svg_types.number Tyxml_svg.wrap -> [> `OverlineThickness ] Tyxml_svg.attrib
Sourceval a_string : string Tyxml_svg.wrap -> [> `String ] Tyxml_svg.attrib
Sourceval a_name : string Tyxml_svg.wrap -> [> `Name ] Tyxml_svg.attrib
Sourceval a_alignment_baseline : [< `Auto | `Baseline | `Before_edge | `Text_before_edge | `Middle | `Central | `After_edge | `Text_after_edge | `Ideographic | `Alphabetic | `Hanging | `Mathematical | `Inherit ] Tyxml_svg.wrap -> [> `Alignment_Baseline ] Tyxml_svg.attrib
Sourceval a_dominant_baseline : [< `Auto | `Use_script | `No_change | `Reset_size | `Ideographic | `Alphabetic | `Hanging | `Mathematical | `Central | `Middle | `Text_after_edge | `Text_before_edge | `Inherit ] Tyxml_svg.wrap -> [> `Dominant_Baseline ] Tyxml_svg.attrib
Sourceval a_stop_color : Svg_types.color Tyxml_svg.wrap -> [> `Stop_Color ] Tyxml_svg.attrib
Sourceval a_stop_opacity : Svg_types.number Tyxml_svg.wrap -> [> `Stop_Opacity ] Tyxml_svg.attrib
Sourceval a_stroke_width : Svg_types.Unit.length Tyxml_svg.wrap -> [> `Stroke_Width ] Tyxml_svg.attrib
Sourceval a_stroke_linecap : [< `Butt | `Round | `Square ] Tyxml_svg.wrap -> [> `Stroke_Linecap ] Tyxml_svg.attrib
Sourceval a_stroke_linejoin : [< `Miter | `Round | `Bever ] Tyxml_svg.wrap -> [> `Stroke_Linejoin ] Tyxml_svg.attrib
Sourceval a_stroke_miterlimit : float Tyxml_svg.wrap -> [> `Stroke_Miterlimit ] Tyxml_svg.attrib
Sourceval a_stroke_dasharray : Svg_types.Unit.length list Tyxml_svg.wrap -> [> `Stroke_Dasharray ] Tyxml_svg.attrib
Sourceval a_stroke_dashoffset : Svg_types.Unit.length Tyxml_svg.wrap -> [> `Stroke_Dashoffset ] Tyxml_svg.attrib
Sourceval a_stroke_opacity : float Tyxml_svg.wrap -> [> `Stroke_Opacity ] Tyxml_svg.attrib

Events

Javascript events

Sourceval a_onabort : Tyxml_svg.Xml.event_handler -> [> `OnAbort ] Tyxml_svg.attrib
Sourceval a_onactivate : Tyxml_svg.Xml.event_handler -> [> `OnActivate ] Tyxml_svg.attrib
Sourceval a_onbegin : Tyxml_svg.Xml.event_handler -> [> `OnBegin ] Tyxml_svg.attrib
Sourceval a_onerror : Tyxml_svg.Xml.event_handler -> [> `OnError ] Tyxml_svg.attrib
Sourceval a_onfocusin : Tyxml_svg.Xml.event_handler -> [> `OnFocusIn ] Tyxml_svg.attrib
Sourceval a_onfocusout : Tyxml_svg.Xml.event_handler -> [> `OnFocusOut ] Tyxml_svg.attrib
  • deprecated

    Removed in SVG2

Sourceval a_onrepeat : Tyxml_svg.Xml.event_handler -> [> `OnRepeat ] Tyxml_svg.attrib
Sourceval a_onresize : Tyxml_svg.Xml.event_handler -> [> `OnResize ] Tyxml_svg.attrib
Sourceval a_onscroll : Tyxml_svg.Xml.event_handler -> [> `OnScroll ] Tyxml_svg.attrib
Sourceval a_onunload : Tyxml_svg.Xml.event_handler -> [> `OnUnload ] Tyxml_svg.attrib

Javascript mouse events

Sourceval a_onmousedown : Tyxml_svg.Xml.mouse_event_handler -> [> `OnMouseDown ] Tyxml_svg.attrib
Sourceval a_onmouseup : Tyxml_svg.Xml.mouse_event_handler -> [> `OnMouseUp ] Tyxml_svg.attrib
Sourceval a_onmouseover : Tyxml_svg.Xml.mouse_event_handler -> [> `OnMouseOver ] Tyxml_svg.attrib
Sourceval a_onmouseout : Tyxml_svg.Xml.mouse_event_handler -> [> `OnMouseOut ] Tyxml_svg.attrib
Sourceval a_onmousemove : Tyxml_svg.Xml.mouse_event_handler -> [> `OnMouseMove ] Tyxml_svg.attrib
Sourceval a_ontouchstart : Tyxml_svg.Xml.touch_event_handler -> [> `OnTouchStart ] Tyxml_svg.attrib

Javascript touch events

Sourceval a_ontouchend : Tyxml_svg.Xml.touch_event_handler -> [> `OnTouchEnd ] Tyxml_svg.attrib
Sourceval a_ontouchmove : Tyxml_svg.Xml.touch_event_handler -> [> `OnTouchMove ] Tyxml_svg.attrib
Sourceval a_ontouchcancel : Tyxml_svg.Xml.touch_event_handler -> [> `OnTouchCancel ] Tyxml_svg.attrib

Elements

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

Sourcetype altglyphdef_content = [
  1. | `Ref of Svg_types.glyphref Tyxml_svg.elt list
  2. | `Item of Svg_types.altglyphitem Tyxml_svg.elt list
]
  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

Deprecated

  • deprecated

    Use txt instead

  • deprecated

    Use animate instead

Conversion with untyped representation

WARNING: These functions do not ensure HTML or SVG validity! You should always explicitly given an appropriate type to the output.

import signal converts the given XML signal into Tyxml elements. It can be used with HTML and SVG parsing libraries, such as Markup.

Sourceval to_xmlattribs : 'a Tyxml_svg.attrib list -> Tyxml_svg.Xml.attrib list
module Unsafe : sig ... end

Unsafe features.

Printers

Sourceval pp : ?encode:(string -> string) -> ?indent:bool -> ?advert:string -> unit -> Stdlib.Format.formatter -> Tyxml_svg.doc -> unit

pp () is a Format printer for Svg documents.

It can be used in combination with "%a". For example, to get a string:

let s = Format.asprintf "%a" (Tyxml.Svg.pp ()) my_svg
Sourceval pp_elt : ?encode:(string -> string) -> ?indent:bool -> unit -> Stdlib.Format.formatter -> 'a Tyxml_svg.elt -> unit

pp_elt () is a Format printer for Svg elements.

Sourcemodule Make_printer (O : Xml_sigs.Output) : Xml_sigs.Typed_printer with type out := O.out and type 'a elt := 'a Tyxml_svg.elt and type doc := Tyxml_svg.doc

Parametrized stream printer for Svg documents.

/

Toplevel printers

Sourceval _pp_elt : Stdlib.Format.formatter -> _ Tyxml_svg.elt -> unit