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