Module Js_of_ocaml.Dom_svg
DOM SVG binding
This is a partial binding to the DOM SVG API.
val xmlns : Js.js_string 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.t animatedand stringList = Js.js_string Js.t listand animatedEnumeration = int animatedand animatedInteger = int animatedand animatedNumber = float animatedand numberList = Js.number Js.t listand length = object ... endand animatedLength = length Js.t animatedand lengthList = length Js.t listand angle = object ... endand animatedAngle = angle Js.t animatedand rgbColor = object ... endand color = object ... endand iccColor = object ... endand rect = object ... endand animatedRect = rect Js.t animatedand 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 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 pathSegList = pathSeg Js.t listand 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.t -> string -> element Js.tval createA : document Js.t -> aElement Js.tval createAltGlyph : document Js.t -> altGlyphElement Js.tval createAltGlyphDef : document Js.t -> altGlyphDefElement Js.tval createAltGlyphItem : document Js.t -> altGlyphItemElement Js.tval createAnimate : document Js.t -> animateElement Js.tval createAnimateColor : document Js.t -> animateColorElement Js.tval createAnimateMotion : document Js.t -> animateMotionElement Js.tval createAnimateTransform : document Js.t -> animateTransformElement Js.tval createCircle : document Js.t -> circleElement Js.tval createClipPath : document Js.t -> clipPathElement Js.tval createCursor : document Js.t -> cursorElement Js.tval createDefs : document Js.t -> defsElement Js.tval createDesc : document Js.t -> descElement Js.tval createEllipse : document Js.t -> ellipseElement Js.tval createFilter : document Js.t -> filterElement Js.tval createFont : document Js.t -> fontElement Js.tval createFontFace : document Js.t -> fontElement Js.tval createFontFaceFormat : document Js.t -> fontElement Js.tval createFontFaceName : document Js.t -> fontElement Js.tval createFontFaceSrc : document Js.t -> fontElement Js.tval createFontFaceUri : document Js.t -> fontElement Js.tval createForeignObject : document Js.t -> foreignObjectElement Js.tval createG : document Js.t -> gElement Js.tval createGlyph : document Js.t -> glyphElement Js.tval createGlyphRef : document Js.t -> glyphElement Js.tval createhkern : document Js.t -> element Js.tval createImage : document Js.t -> imageElement Js.tval createLineElement : document Js.t -> lineElement Js.tval createLinearElement : document Js.t -> linearGradientElement Js.tval createMask : document Js.t -> maskElement Js.tval createMetaData : document Js.t -> metadataElement Js.tval createMissingGlyph : document Js.t -> glyphElement Js.tval createMPath : document Js.t -> mPathElement Js.tval createPath : document Js.t -> pathElement Js.tval createPattern : document Js.t -> patternElement Js.tval createPolygon : document Js.t -> polygonElement Js.tval createPolyline : document Js.t -> polyLineElement Js.tval createRadialgradient : document Js.t -> radialGradientElement Js.tval createRect : document Js.t -> rectElement Js.tval createScript : document Js.t -> scriptElement Js.tval createSet : document Js.t -> setElement Js.tval createStop : document Js.t -> stopElement Js.tval createStyle : document Js.t -> styleElement Js.tval createSvg : document Js.t -> svgElement Js.tval createSwitch : document Js.t -> switchElement Js.tval createSymbol : document Js.t -> symbolElement Js.tval createTextElement : document Js.t -> textElement Js.tval createTextpath : document Js.t -> textPathElement Js.tval createTitle : document Js.t -> titleElement Js.tval createTref : document Js.t -> trefElement Js.tval createTspan : document Js.t -> tspanElement Js.tval createUse : document Js.t -> useElement Js.tval createView : document Js.t -> viewElement Js.tval createvkern : document Js.t -> element Js.tval svg_element : element Js.t Js.constrval document : document Js.tThe current document
val getElementById : string -> element Js.tgetElementById idreturns the element with the ididin the current document. It raisesNot_foundif there are no such element
module CoerceTo : sig ... end