Module Js_of_ocaml__.Dom_svg
val xmlns : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.tTypes
class type svg_error = object ... endexceptionSVGError of svg_error
type lengthUnitType=|LENGTHTYPE_UNKNOWN|LENGTHTYPE_NUMBER|LENGTHTYPE_PERCENTAGE|LENGTHTYPE_EMS|LENGTHTYPE_EXS|LENGTHTYPE_PX|LENGTHTYPE_CM|LENGTHTYPE_MM|LENGTHTYPE_IN|LENGTHTYPE_PT|LENGTHTYPE_PCtype angleUnitType=|ANGLETYPE_UNKNOWN|ANGLETYPE_UNSPECIFIED|ANGLETYPE_DEG|ANGLETYPE_RAD|ANGLETYPE_GRADtype colorType=|COLORTYPE_UNKNOWN|COLORTYPE_RGBCOLOR|COLORTYPE_RGBCOLOR_ICCCOLOR|COLORTYPE_CURRENTCOLORtype alignmentType=type meetOrSliceType=|MEETORSLICE_UNKNOWN|MEETORSLICE_MEET|MEETORSLICE_SLICEtype transformType=|TRANSFORM_UNKNOWN|TRANSFORM_MATRIX|TRANSFORM_TRANSLATE|TRANSFORM_SCALE|TRANSFORM_ROTATE|TRANSFORM_SKEWX|TRANSFORM_SKEWYtype zoomAndPanType=|ZOOMANDPAN_UNKNOWN|ZOOMANDPAN_DISABLE|ZOOMANDPAN_MAGNIFYtype lengthAdjust=|LENGTHADJUST_UNKNOWN|LENGTHADJUST_SPACING|LENGTHADJUST_SPACINGANDGLYPHStype unitType=|UNIT_TYPE_UNKNOWN|UNIT_TYPE_USERSPACEONUSE|UNIT_TYPE_OBJECTBOUNDINGBOXtype intentType=|RENDERING_INTENT_UNKNOWN|RENDERING_INTENT_AUTO|RENDERING_INTENT_PERCEPTUAL|RENDERING_INTENT_RELATIVE_COLORIMETRIC|RENDERING_INTENT_SATURATION|RENDERING_INTENT_ABSOLUTE_COLORIMETRICtype pathSegmentType=type textPathMethodType=|TEXTPATH_METHODTYPE_UNKNOWN|TEXTPATH_METHODTYPE_ALIGN|TEXTPATH_METHODTYPE_STRETCHtype textPathSpacingType=|TEXTPATH_SPACINGTYPE_UNKNOWN|TEXTPATH_SPACINGTYPE_AUTO|TEXTPATH_SPACINGTYPE_EXACTtype spreadMethodType=|SPREADMETHOD_UNKNOWN|SPREADMETHOD_PAD|SPREADMETHOD_REFLECT|SPREADMETHOD_REPEATtype suspendHandleID
class type 'a animated = object ... endclass type 'a list = object ... endElements
class type element = object ... endand animatedBoolean = bool Js_of_ocaml.Js.t animatedand animatedEnumeration = int animatedand animatedInteger = int animatedand animatedNumber = float animatedand length = object ... endand lengthList = length Js_of_ocaml.Js.t listand angle = object ... endand rgbColor = object ... endand color = object ... endand iccColor = object ... endand rect = object ... endand stylable = object ... endand locatable = object ... endand transformable = object ... endand tests = object ... endand langSpace = object ... endand externalResourcesRequired = object ... endand fitToViewBox = object ... endand zoomAndPan = object ... endand viewSpec = object ... endand uriReference = object ... endand document = object ... endand svgElement = object ... endand gElement = object ... endand defsElement = object ... endand descElement = object ... endand titleElement = object ... endand symbolElement = object ... endand useElement = object ... endand elementInstance = object ... endand elementInstanceList = object ... endand imageElement = object ... endand switchElement = object ... endand styleElement = object ... endand point = object ... endand pointList = point Js_of_ocaml.Js.t listand matrix = object ... endand transform = object ... endand transformList = object ... endand preserveAspectRatio = object ... endand pathSeg = object ... endand pathSegClosePath = pathSegand pathSegMoveto = object ... endand pathSegLineto = object ... endand pathSegCurvetoCubic = object ... endand pathSegCurvetoQuadratic = object ... endand pathSegArc = object ... endand pathSegLinetoHorizontal = object ... endand pathSegLinetoVertical = object ... endand pathSegCurvetoCubicSmooth = object ... endand pathSegCurvetoQuadraticSmooth = object ... endand animatedPathData = object ... endand pathElement = object ... endand rectElement = object ... endand circleElement = object ... endand ellipseElement = object ... endclass type lineElement = object ... endand animatedPoints = object ... endand polyLineElement = object ... endand polygonElement = object ... endand textContentElement = object ... endand textPositioningElement = object ... endand textElement = object ... endand trefElement = object ... endand textPathElement = object ... endand altGlyphElement = object ... endand altGlyphDefElement = elementand altGlyphItemElement = elementand glyphRefElement = object ... endand gradientElement = object ... endand linearGradientElement = object ... endand radialGradientElement = object ... endand stopElement = object ... endand patternElement = object ... endand clipPathElement = object ... endand maskElement = object ... endand filterElement = object ... endand cursorElement = object ... endand aElement = object ... endand viewElement = object ... endand scriptElement = object ... endand animationElement = object ... endand animateElement = object ... endand setElement = animationElementand mPathElement = object ... endand animateColorElement = object ... endand fontElement = object ... endand glyphElement = object ... endclass type fontFaceElement = elementclass type fontFaceSrcElement = elementclass type fontFaceUriElement = elementclass type fontFaceFormatElement = elementclass type fontFaceNameElement = elementclass type metadataElement = elementclass type foreignObjectElement = object ... endHelper functions for creating Svg elements
val createElement : document Js_of_ocaml.Js.t -> string -> element Js_of_ocaml.Js.tval createA : document Js_of_ocaml.Js.t -> aElement Js_of_ocaml.Js.tval createAltGlyph : document Js_of_ocaml.Js.t -> altGlyphElement Js_of_ocaml.Js.tval createAltGlyphDef : document Js_of_ocaml.Js.t -> altGlyphDefElement Js_of_ocaml.Js.tval createAltGlyphItem : document Js_of_ocaml.Js.t -> altGlyphItemElement Js_of_ocaml.Js.tval createAnimate : document Js_of_ocaml.Js.t -> animateElement Js_of_ocaml.Js.tval createAnimateColor : document Js_of_ocaml.Js.t -> animateColorElement Js_of_ocaml.Js.tval createAnimateMotion : document Js_of_ocaml.Js.t -> animateMotionElement Js_of_ocaml.Js.tval createAnimateTransform : document Js_of_ocaml.Js.t -> animateTransformElement Js_of_ocaml.Js.tval createCircle : document Js_of_ocaml.Js.t -> circleElement Js_of_ocaml.Js.tval createClipPath : document Js_of_ocaml.Js.t -> clipPathElement Js_of_ocaml.Js.tval createCursor : document Js_of_ocaml.Js.t -> cursorElement Js_of_ocaml.Js.tval createDefs : document Js_of_ocaml.Js.t -> defsElement Js_of_ocaml.Js.tval createDesc : document Js_of_ocaml.Js.t -> descElement Js_of_ocaml.Js.tval createEllipse : document Js_of_ocaml.Js.t -> ellipseElement Js_of_ocaml.Js.tval createFilter : document Js_of_ocaml.Js.t -> filterElement Js_of_ocaml.Js.tval createFont : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.tval createFontFace : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.tval createFontFaceFormat : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.tval createFontFaceName : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.tval createFontFaceSrc : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.tval createFontFaceUri : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.tval createForeignObject : document Js_of_ocaml.Js.t -> foreignObjectElement Js_of_ocaml.Js.tval createG : document Js_of_ocaml.Js.t -> gElement Js_of_ocaml.Js.tval createGlyph : document Js_of_ocaml.Js.t -> glyphElement Js_of_ocaml.Js.tval createGlyphRef : document Js_of_ocaml.Js.t -> glyphElement Js_of_ocaml.Js.tval createhkern : document Js_of_ocaml.Js.t -> element Js_of_ocaml.Js.tval createImage : document Js_of_ocaml.Js.t -> imageElement Js_of_ocaml.Js.tval createLineElement : document Js_of_ocaml.Js.t -> lineElement Js_of_ocaml.Js.tval createLinearElement : document Js_of_ocaml.Js.t -> linearGradientElement Js_of_ocaml.Js.tval createMask : document Js_of_ocaml.Js.t -> maskElement Js_of_ocaml.Js.tval createMetaData : document Js_of_ocaml.Js.t -> metadataElement Js_of_ocaml.Js.tval createMissingGlyph : document Js_of_ocaml.Js.t -> glyphElement Js_of_ocaml.Js.tval createMPath : document Js_of_ocaml.Js.t -> mPathElement Js_of_ocaml.Js.tval createPath : document Js_of_ocaml.Js.t -> pathElement Js_of_ocaml.Js.tval createPattern : document Js_of_ocaml.Js.t -> patternElement Js_of_ocaml.Js.tval createPolygon : document Js_of_ocaml.Js.t -> polygonElement Js_of_ocaml.Js.tval createPolyline : document Js_of_ocaml.Js.t -> polyLineElement Js_of_ocaml.Js.tval createRadialgradient : document Js_of_ocaml.Js.t -> radialGradientElement Js_of_ocaml.Js.tval createRect : document Js_of_ocaml.Js.t -> rectElement Js_of_ocaml.Js.tval createScript : document Js_of_ocaml.Js.t -> scriptElement Js_of_ocaml.Js.tval createSet : document Js_of_ocaml.Js.t -> setElement Js_of_ocaml.Js.tval createStop : document Js_of_ocaml.Js.t -> stopElement Js_of_ocaml.Js.tval createStyle : document Js_of_ocaml.Js.t -> styleElement Js_of_ocaml.Js.tval createSvg : document Js_of_ocaml.Js.t -> svgElement Js_of_ocaml.Js.tval createSwitch : document Js_of_ocaml.Js.t -> switchElement Js_of_ocaml.Js.tval createSymbol : document Js_of_ocaml.Js.t -> symbolElement Js_of_ocaml.Js.tval createTextElement : document Js_of_ocaml.Js.t -> textElement Js_of_ocaml.Js.tval createTextpath : document Js_of_ocaml.Js.t -> textPathElement Js_of_ocaml.Js.tval createTitle : document Js_of_ocaml.Js.t -> titleElement Js_of_ocaml.Js.tval createTref : document Js_of_ocaml.Js.t -> trefElement Js_of_ocaml.Js.tval createTspan : document Js_of_ocaml.Js.t -> tspanElement Js_of_ocaml.Js.tval createUse : document Js_of_ocaml.Js.t -> useElement Js_of_ocaml.Js.tval createView : document Js_of_ocaml.Js.t -> viewElement Js_of_ocaml.Js.tval createvkern : document Js_of_ocaml.Js.t -> element Js_of_ocaml.Js.tval svg_element : element Js_of_ocaml.Js.t Js_of_ocaml.Js.constrval document : document Js_of_ocaml.Js.tThe current document
val getElementById : string -> element Js_of_ocaml.Js.tgetElementById idreturns the element with the ididin the current document. It raisesNot_foundif there are no such element
module CoerceTo : sig ... end