Js_of_ocaml.Dom_svgDOM SVG binding
This is a partial binding to the DOM SVG API.
val xmlns : Js.js_string Js.tTypes
class type svg_error = object ... endexception SVGError of svg_errortype alignmentType = | PRESERVEASPECTRATIO_UNKNOWN| PRESERVEASPECTRATIO_NONE| PRESERVEASPECTRATIO_XMINYMIN| PRESERVEASPECTRATIO_XMIDYMIN| PRESERVEASPECTRATIO_XMAXYMIN| PRESERVEASPECTRATIO_XMINYMID| PRESERVEASPECTRATIO_XMIDYMID| PRESERVEASPECTRATIO_XMAXYMID| PRESERVEASPECTRATIO_XMINYMAX| PRESERVEASPECTRATIO_XMIDYMAX| PRESERVEASPECTRATIO_XMAXYMAXtype pathSegmentType = | PATHSEG_UNKNOWN| PATHSEG_CLOSEPATH| PATHSEG_MOVETO_ABS| PATHSEG_MOVETO_REL| PATHSEG_LINETO_ABS| PATHSEG_LINETO_REL| PATHSEG_CURVETO_CUBIC_ABS| PATHSEG_CURVETO_CUBIC_REL| PATHSEG_CURVETO_QUADRATIC_ABS| PATHSEG_CURVETO_QUADRATIC_REL| PATHSEG_ARC_ABS| PATHSEG_ARC_REL| PATHSEG_LINETO_HORIZONTAL_ABS| PATHSEG_LINETO_HORIZONTAL_REL| PATHSEG_LINETO_VERTICAL_ABS| PATHSEG_LINETO_VERTICAL_REL| PATHSEG_CURVETO_CUBIC_SMOOTH_ABS| PATHSEG_CURVETO_CUBIC_SMOOTH_REL| PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS| PATHSEG_CURVETO_QUADRATIC_SMOOTH_RELclass type 'a animated = object ... endclass type 'a list = object ... endclass type element = object ... endclass type animatedString = Js.js_string Js.t animatedclass type animatedBoolean = bool Js.t animatedclass type stringList = Js.js_string Js.t listclass type animatedEnumeration = int animatedclass type animatedUnitType = unitType animatedclass type animatedInteger = int animatedclass type animatedNumber = Js.number_t animatedclass type numberList = Js.number_t listclass type animatedNumberList = numberList Js.t animatedclass type length = object ... endclass type animatedLength = length Js.t animatedclass type lengthList = length Js.t listclass type animatedLengthList = lengthList Js.t animatedclass type angle = object ... endclass type animatedAngle = angle Js.t animatedclass type rgbColor = object ... endclass type color = object ... endclass type iccColor = object ... endclass type rect = object ... endclass type animatedRect = rect Js.t animatedclass type stylable = object ... endclass type locatable = object ... endclass type transformable = object ... endclass type tests = object ... endclass type langSpace = object ... endclass type externalResourcesRequired = object ... endclass type graphicsElement = object ... endclass type geometryElement = object ... endclass type unknownElement = graphicsElementclass type fitToViewBox = object ... endclass type zoomAndPan = object ... endclass type viewSpec = object ... endclass type uriReference = object ... endclass type document = object ... endclass type svgElement = object ... endclass type gElement = object ... endclass type defsElement = object ... endclass type descElement = object ... endclass type titleElement = object ... endclass type symbolElement = object ... endclass type useElement = object ... endclass type elementInstance = object ... endclass type elementInstanceList = object ... endclass type imageElement = object ... endclass type switchElement = object ... endclass type styleElement = object ... endclass type cssStyleSheet = object ... endclass type point = object ... endclass type matrix = object ... endclass type transform = object ... endclass type transformList = object ... endclass type animatedTransformList = transformList Js.t animatedclass type preserveAspectRatio = object ... endclass type animatedPreserveAspectRatio = preserveAspectRatio Js.t animatedclass type pathSeg = object ... endclass type pathSegClosePath = pathSegclass type pathSegMoveto = object ... endclass type pathSegLineto = object ... endclass type pathSegCurvetoCubic = object ... endclass type pathSegCurvetoQuadratic = object ... endclass type pathSegArc = object ... endclass type pathSegLinetoHorizontal = object ... endclass type pathSegLinetoVertical = object ... endclass type pathSegCurvetoCubicSmooth = object ... endclass type pathSegCurvetoQuadraticSmooth = object ... endclass type pathSegList = pathSeg Js.t listclass type animatedPathData = object ... endclass type pathElement = object ... endclass type rectElement = object ... endclass type circleElement = object ... endclass type ellipseElement = object ... endclass type lineElement = object ... endclass type animatedPoints = object ... endclass type polyLineElement = object ... endclass type polygonElement = object ... endclass type textContentElement = object ... endclass type textPositioningElement = object ... endclass type textElement = object ... endclass type tspanElement = textPositioningElementclass type trefElement = object ... endclass type textPathElementMethod = textPathMethodType animatedclass type textPathElementSpacing = textPathSpacingType animatedclass type textPathElement = object ... endclass type altGlyphElement = object ... endclass type altGlyphDefElement = elementclass type altGlyphItemElement = elementclass type glyphRefElement = object ... endclass type animatedMarkerUnit = markerUnitType animatedclass type animatedMarkerOrient = markerOrientType animatedclass type markerElement = object ... endclass type animatedSpreadMethod = spreadMethodType animatedclass type gradientElement = object ... endclass type linearGradientElement = object ... endclass type radialGradientElement = object ... endclass type stopElement = object ... endclass type patternElement = object ... endclass type clipPathElement = object ... endclass type maskElement = object ... endclass type filterElement = object ... endclass type filterPrimitiveStandardAttributes = object ... endclass type animatedBlendMode = blendModeType animatedclass type animatedColorMatrixType = colorMatrixType animatedclass type animatedComponentTransferType = componentTransferType animatedclass type animatedCompositeOperator = compositeOperatorType animatedclass type animatedEdgeMode = edgeModeType animatedclass type animatedChannelSelector = channelSelectorType animatedclass type animatedMorphologyOperator = morphologyOperatorType animatedclass type animatedTurbulenceType = turbulenceType animatedclass type animatedStitchType = stitchType animatedclass type feBlendElement = object ... endclass type feColorMatrixElement = object ... endclass type feComponentTransferElement = object ... endclass type componentTransferFunctionElement = object ... endclass type feFuncRElement = componentTransferFunctionElementclass type feFuncGElement = componentTransferFunctionElementclass type feFuncBElement = componentTransferFunctionElementclass type feFuncAElement = componentTransferFunctionElementclass type feCompositeElement = object ... endclass type feConvolveMatrixElement = object ... endclass type feDiffuseLightingElement = object ... endclass type feDistantLightElement = object ... endclass type fePointLightElement = object ... endclass type feSpotLightElement = object ... endclass type feDisplacementMapElement = object ... endclass type feFloodElement = object ... endclass type feGaussianBlurElement = object ... endclass type feImageElement = object ... endclass type feMergeElement = object ... endclass type feMergeNodeElement = object ... endclass type feMorphologyElement = object ... endclass type feOffsetElement = object ... endclass type feSpecularLightingElement = object ... endclass type feTileElement = object ... endclass type feTurbulenceElement = object ... endclass type feDropShadowElement = object ... endclass type cursorElement = object ... endclass type aElement = object ... endclass type viewElement = object ... endclass type scriptElement = object ... endclass type animationElement = object ... endclass type animateElement = object ... endclass type setElement = animationElementclass type animateMotionElement = animationElementclass type mPathElement = object ... endclass type animateColorElement = object ... endclass type animateTransformElement = animationElementclass type fontElement = object ... endclass type glyphElement = object ... endclass type fontFaceElement = elementclass type fontFaceSrcElement = elementclass type fontFaceUriElement = elementclass type fontFaceFormatElement = elementclass type fontFaceNameElement = elementclass type metadataElement = elementclass type foreignObjectElement = object ... endval 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 createGlyph : document Js.t -> glyphElement Js.tval createGlyphRef : document Js.t -> glyphElement 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 createMarker : document Js.t -> markerElement Js.tval createFeBlend : document Js.t -> feBlendElement Js.tval createFeColorMatrix : document Js.t -> feColorMatrixElement Js.tval createFeComponentTransfer :
document Js.t ->
feComponentTransferElement Js.tval createFeFuncR : document Js.t -> feFuncRElement Js.tval createFeFuncG : document Js.t -> feFuncGElement Js.tval createFeFuncB : document Js.t -> feFuncBElement Js.tval createFeFuncA : document Js.t -> feFuncAElement Js.tval createFeComposite : document Js.t -> feCompositeElement Js.tval createFeConvolveMatrix : document Js.t -> feConvolveMatrixElement Js.tval createFeDiffuseLighting : document Js.t -> feDiffuseLightingElement Js.tval createFeDistantLight : document Js.t -> feDistantLightElement Js.tval createFePointLight : document Js.t -> fePointLightElement Js.tval createFeSpotLight : document Js.t -> feSpotLightElement Js.tval createFeDisplacementMap : document Js.t -> feDisplacementMapElement Js.tval createFeFlood : document Js.t -> feFloodElement Js.tval createFeGaussianBlur : document Js.t -> feGaussianBlurElement Js.tval createFeImage : document Js.t -> feImageElement Js.tval createFeMerge : document Js.t -> feMergeElement Js.tval createFeMergeNode : document Js.t -> feMergeNodeElement Js.tval createFeMorphology : document Js.t -> feMorphologyElement Js.tval createFeOffset : document Js.t -> feOffsetElement Js.tval createFeSpecularLighting : document Js.t -> feSpecularLightingElement Js.tval createFeTile : document Js.t -> feTileElement Js.tval createFeTurbulence : document Js.t -> feTurbulenceElement Js.tval createFeDropShadow : document Js.t -> feDropShadowElement Js.tgetElementById id returns the element with the id id in the current document. It raises Not_found if there are no such element
module CoerceTo : sig ... end