jon.recoil.org

Parameter Make_with_wrapped_functions.Svg

type +'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.

type doc = [ `Svg ] Svg.elt

A complete SVG document.

type +'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.

type '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.

type '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.

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

A 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.elt

A 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.elt

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

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

Uri

type uri = Xml.uri
val string_of_uri : (Svg.uri, string) Xml.W.ft
val uri_of_string : (string, Svg.uri) Xml.W.ft

Attributes

val a_version : string Svg.wrap -> [> `Version ] Svg.attrib
  • deprecated

    Removed in SVG2

val a_baseProfile : string Svg.wrap -> [> `BaseProfile ] Svg.attrib
  • deprecated

    Removed in SVG2

val a_x : Svg_types.coord Svg.wrap -> [> `X ] Svg.attrib
val a_y : Svg_types.coord Svg.wrap -> [> `Y ] Svg.attrib
val a_width : Svg_types.Unit.length Svg.wrap -> [> `Width ] Svg.attrib
val a_height : Svg_types.Unit.length Svg.wrap -> [> `Height ] Svg.attrib
val a_preserveAspectRatio : string Svg.wrap -> [> `PreserveAspectRatio ] Svg.attrib
val a_contentScriptType : string Svg.wrap -> [> `ContentScriptType ] Svg.attrib
  • deprecated

    Removed in SVG2

val a_contentStyleType : string Svg.wrap -> [> `ContentStyleType ] Svg.attrib
  • deprecated

    Removed in SVG2

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

    Use a_href

val a_requiredFeatures : Svg_types.spacestrings Svg.wrap -> [> `RequiredFeatures ] Svg.attrib
  • deprecated

    Removed in SVG2

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

    Removed in SVG2

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

    Use CSS white-space

val a_type : string Svg.wrap -> [> `Type ] Svg.attrib
val a_media : Svg_types.commastrings Svg.wrap -> [> `Media ] Svg.attrib
  • deprecated

    Use a child title element

val a_class : Svg_types.spacestrings Svg.wrap -> [> `Class ] Svg.attrib
val a_style : string Svg.wrap -> [> `Style ] Svg.attrib
val a_transform : Svg_types.transforms Svg.wrap -> [> `Transform ] Svg.attrib
val a_viewBox : Svg_types.fourfloats Svg.wrap -> [> `ViewBox ] Svg.attrib
val a_d : string Svg.wrap -> [> `D ] Svg.attrib
val a_pathLength : float Svg.wrap -> [> `PathLength ] Svg.attrib
val a_x1 : Svg_types.coord Svg.wrap -> [> `X1 ] Svg.attrib
val a_y1 : Svg_types.coord Svg.wrap -> [> `Y1 ] Svg.attrib
val a_x2 : Svg_types.coord Svg.wrap -> [> `X2 ] Svg.attrib
val a_y2 : Svg_types.coord Svg.wrap -> [> `Y2 ] Svg.attrib
val a_points : Svg_types.coords Svg.wrap -> [> `Points ] Svg.attrib
val a_x_list : Svg_types.lengths Svg.wrap -> [> `X_list ] Svg.attrib
val a_y_list : Svg_types.lengths Svg.wrap -> [> `Y_list ] Svg.attrib
val a_dx : Svg_types.number Svg.wrap -> [> `Dx ] Svg.attrib
val a_dy : Svg_types.number Svg.wrap -> [> `Dy ] Svg.attrib
val a_dx_list : Svg_types.lengths Svg.wrap -> [> `Dx_list ] Svg.attrib
val a_dy_list : Svg_types.lengths Svg.wrap -> [> `Dy_list ] Svg.attrib
val a_lengthAdjust : [< `Spacing | `SpacingAndGlyphs ] Svg.wrap -> [> `LengthAdjust ] Svg.attrib
val a_textLength : Svg_types.Unit.length Svg.wrap -> [> `TextLength ] Svg.attrib
val a_text_anchor : [< `Start | `Middle | `End | `Inherit ] Svg.wrap -> [> `Text_Anchor ] Svg.attrib
val a_text_decoration : [< `None | `Underline | `Overline | `Line_through | `Blink | `Inherit ] Svg.wrap -> [> `Text_Decoration ] Svg.attrib
val a_text_rendering : [< `Auto | `OptimizeSpeed | `OptimizeLegibility | `GeometricPrecision | `Inherit ] Svg.wrap -> [> `Text_Rendering ] Svg.attrib
val a_rotate : Svg_types.numbers Svg.wrap -> [> `Rotate ] Svg.attrib
val a_startOffset : Svg_types.Unit.length Svg.wrap -> [> `StartOffset ] Svg.attrib
val a_method : [< `Align | `Stretch ] Svg.wrap -> [> `Method ] Svg.attrib
val a_spacing : [< `Auto | `Exact ] Svg.wrap -> [> `Spacing ] Svg.attrib
val a_glyphRef : string Svg.wrap -> [> `GlyphRef ] Svg.attrib
val a_format : string Svg.wrap -> [> `Format ] Svg.attrib
val a_markerUnits : [< `StrokeWidth | `UserSpaceOnUse ] Svg.wrap -> [> `MarkerUnits ] Svg.attrib
val a_refX : Svg_types.coord Svg.wrap -> [> `RefX ] Svg.attrib
val a_refY : Svg_types.coord Svg.wrap -> [> `RefY ] Svg.attrib
val a_markerWidth : Svg_types.Unit.length Svg.wrap -> [> `MarkerWidth ] Svg.attrib
val a_markerHeight : Svg_types.Unit.length Svg.wrap -> [> `MarkerHeight ] Svg.attrib
val a_orient : Svg_types.Unit.angle option Svg.wrap -> [> `Orient ] Svg.attrib
val a_local : string Svg.wrap -> [> `Local ] Svg.attrib
val a_rendering_intent : [< `Auto | `Perceptual | `Relative_colorimetric | `Saturation | `Absolute_colorimetric ] Svg.wrap -> [> `Rendering_Indent ] Svg.attrib
val a_gradientUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [ `GradientUnits ] Svg.attrib
val a_gradientTransform : Svg_types.transforms Svg.wrap -> [> `GradientTransform ] Svg.attrib
val a_spreadMethod : [< `Pad | `Reflect | `Repeat ] Svg.wrap -> [> `SpreadMethod ] Svg.attrib
val a_fx : Svg_types.coord Svg.wrap -> [> `Fx ] Svg.attrib
val a_fy : Svg_types.coord Svg.wrap -> [> `Fy ] Svg.attrib
val a_offset : [< `Number of Svg_types.number | `Percentage of Svg_types.percentage ] Svg.wrap -> [> `Offset ] Svg.attrib
val a_patternUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [> `PatternUnits ] Svg.attrib
val a_patternContentUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [> `PatternContentUnits ] Svg.attrib
val a_patternTransform : Svg_types.transforms Svg.wrap -> [> `PatternTransform ] Svg.attrib
val a_clipPathUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [> `ClipPathUnits ] Svg.attrib
val a_maskUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [> `MaskUnits ] Svg.attrib
val a_maskContentUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [> `MaskContentUnits ] Svg.attrib
val a_primitiveUnits : [< `UserSpaceOnUse | `ObjectBoundingBox ] Svg.wrap -> [> `PrimitiveUnits ] Svg.attrib
val a_filterRes : Svg_types.number_optional_number Svg.wrap -> [> `FilterResUnits ] Svg.attrib
val a_result : string Svg.wrap -> [> `Result ] Svg.attrib
val a_in : [< `SourceGraphic | `SourceAlpha | `BackgroundImage | `BackgroundAlpha | `FillPaint | `StrokePaint | `Ref of string ] Svg.wrap -> [> `In ] Svg.attrib
val a_in2 : [< `SourceGraphic | `SourceAlpha | `BackgroundImage | `BackgroundAlpha | `FillPaint | `StrokePaint | `Ref of string ] Svg.wrap -> [> `In2 ] Svg.attrib
val a_azimuth : float Svg.wrap -> [> `Azimuth ] Svg.attrib
val a_elevation : float Svg.wrap -> [> `Elevation ] Svg.attrib
val a_pointsAtX : float Svg.wrap -> [> `PointsAtX ] Svg.attrib
val a_pointsAtY : float Svg.wrap -> [> `PointsAtY ] Svg.attrib
val a_pointsAtZ : float Svg.wrap -> [> `PointsAtZ ] Svg.attrib
val a_specularExponent : float Svg.wrap -> [> `SpecularExponent ] Svg.attrib
val a_specularConstant : float Svg.wrap -> [> `SpecularConstant ] Svg.attrib
val a_limitingConeAngle : float Svg.wrap -> [> `LimitingConeAngle ] Svg.attrib
val a_mode : [< `Normal | `Multiply | `Screen | `Darken | `Lighten ] Svg.wrap -> [> `Mode ] Svg.attrib
val a_feColorMatrix_type : [< `Matrix | `Saturate | `HueRotate | `LuminanceToAlpha ] Svg.wrap -> [> `Typefecolor ] Svg.attrib
val a_values : Svg_types.numbers Svg.wrap -> [> `Values ] Svg.attrib
val a_transfer_type : [< `Identity | `Table | `Discrete | `Linear | `Gamma ] Svg.wrap -> [> `Type_transfert ] Svg.attrib
val a_tableValues : Svg_types.numbers Svg.wrap -> [> `TableValues ] Svg.attrib
val a_intercept : Svg_types.number Svg.wrap -> [> `Intercept ] Svg.attrib
val a_amplitude : Svg_types.number Svg.wrap -> [> `Amplitude ] Svg.attrib
val a_exponent : Svg_types.number Svg.wrap -> [> `Exponent ] Svg.attrib
val a_transfer_offset : Svg_types.number Svg.wrap -> [> `Offset_transfer ] Svg.attrib
val a_feComposite_operator : [< `Over | `In | `Out | `Atop | `Xor | `Arithmetic ] Svg.wrap -> [> `OperatorComposite ] Svg.attrib
val a_k1 : Svg_types.number Svg.wrap -> [> `K1 ] Svg.attrib
val a_k2 : Svg_types.number Svg.wrap -> [> `K2 ] Svg.attrib
val a_k3 : Svg_types.number Svg.wrap -> [> `K3 ] Svg.attrib
val a_k4 : Svg_types.number Svg.wrap -> [> `K4 ] Svg.attrib
val a_kernelMatrix : Svg_types.numbers Svg.wrap -> [> `KernelMatrix ] Svg.attrib
val a_divisor : Svg_types.number Svg.wrap -> [> `Divisor ] Svg.attrib
val a_bias : Svg_types.number Svg.wrap -> [> `Bias ] Svg.attrib
val a_kernelUnitLength : Svg_types.number_optional_number Svg.wrap -> [> `KernelUnitLength ] Svg.attrib
val a_targetX : int Svg.wrap -> [> `TargetX ] Svg.attrib
val a_targetY : int Svg.wrap -> [> `TargetY ] Svg.attrib
val a_edgeMode : [< `Duplicate | `Wrap | `None ] Svg.wrap -> [> `TargetY ] Svg.attrib
val a_preserveAlpha : bool Svg.wrap -> [> `TargetY ] Svg.attrib
val a_surfaceScale : Svg_types.number Svg.wrap -> [> `SurfaceScale ] Svg.attrib
val a_diffuseConstant : Svg_types.number Svg.wrap -> [> `DiffuseConstant ] Svg.attrib
val a_scale : Svg_types.number Svg.wrap -> [> `Scale ] Svg.attrib
val a_xChannelSelector : [< `R | `G | `B | `A ] Svg.wrap -> [> `XChannelSelector ] Svg.attrib
val a_yChannelSelector : [< `R | `G | `B | `A ] Svg.wrap -> [> `YChannelSelector ] Svg.attrib
val a_stdDeviation : Svg_types.number_optional_number Svg.wrap -> [> `StdDeviation ] Svg.attrib
val a_feMorphology_operator : [< `Erode | `Dilate ] Svg.wrap -> [> `OperatorMorphology ] Svg.attrib
val a_baseFrenquency : Svg_types.number_optional_number Svg.wrap -> [> `BaseFrequency ] Svg.attrib
val a_numOctaves : int Svg.wrap -> [> `NumOctaves ] Svg.attrib
val a_seed : Svg_types.number Svg.wrap -> [> `Seed ] Svg.attrib
val a_stitchTiles : [< `Stitch | `NoStitch ] Svg.wrap -> [> `StitchTiles ] Svg.attrib
val a_feTurbulence_type : [< `FractalNoise | `Turbulence ] Svg.wrap -> [> `TypeStitch ] Svg.attrib
  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

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

    Removed in SVG2

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

Events

Javascript events

val a_onabort : Xml.event_handler -> [> `OnAbort ] Svg.attrib
val a_onactivate : Xml.event_handler -> [> `OnActivate ] Svg.attrib
val a_onbegin : Xml.event_handler -> [> `OnBegin ] Svg.attrib
val a_onend : Xml.event_handler -> [> `OnEnd ] Svg.attrib
val a_onerror : Xml.event_handler -> [> `OnError ] Svg.attrib
val a_onfocusin : Xml.event_handler -> [> `OnFocusIn ] Svg.attrib
val a_onfocusout : Xml.event_handler -> [> `OnFocusOut ] Svg.attrib
val a_onload : Xml.event_handler -> [> `OnLoad ] Svg.attrib
  • deprecated

    Removed in SVG2

val a_onrepeat : Xml.event_handler -> [> `OnRepeat ] Svg.attrib
val a_onresize : Xml.event_handler -> [> `OnResize ] Svg.attrib
val a_onscroll : Xml.event_handler -> [> `OnScroll ] Svg.attrib
val a_onunload : Xml.event_handler -> [> `OnUnload ] Svg.attrib
val a_onzoom : Xml.event_handler -> [> `OnZoom ] Svg.attrib

Javascript mouse events

val a_onclick : Xml.mouse_event_handler -> [> `OnClick ] Svg.attrib
val a_onmousedown : Xml.mouse_event_handler -> [> `OnMouseDown ] Svg.attrib
val a_onmouseup : Xml.mouse_event_handler -> [> `OnMouseUp ] Svg.attrib
val a_onmouseover : Xml.mouse_event_handler -> [> `OnMouseOver ] Svg.attrib
val a_onmouseout : Xml.mouse_event_handler -> [> `OnMouseOut ] Svg.attrib
val a_onmousemove : Xml.mouse_event_handler -> [> `OnMouseMove ] Svg.attrib
val a_ontouchstart : Xml.touch_event_handler -> [> `OnTouchStart ] Svg.attrib

Javascript touch events

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

Elements

val txt : string Svg.wrap -> [> Svg_types.txt ] Svg.elt
  • deprecated

    Removed in SVG2

  • deprecated

    Removed in SVG2

type altglyphdef_content = [
  1. | `Ref of Svg_types.glyphref Svg.elt list
  2. | `Item of Svg_types.altglyphitem 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

val pcdata : string Svg.wrap -> [> Svg_types.txt ] Svg.elt
  • 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.

val tot : Xml.elt -> 'a Svg.elt
val toelt : 'a Svg.elt -> Xml.elt
val doc_toelt : Svg.doc -> Xml.elt
val to_xmlattribs : 'a Svg.attrib list -> Xml.attrib list
val to_attrib : Xml.attrib -> 'a Svg.attrib
module Unsafe : sig ... end

Unsafe features.