Module Js_of_ocaml__.Dom_svg
val xmlns : Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t
Types
class type svg_error = object ... end
exception
SVGError 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_PC
type angleUnitType
=
|
ANGLETYPE_UNKNOWN
|
ANGLETYPE_UNSPECIFIED
|
ANGLETYPE_DEG
|
ANGLETYPE_RAD
|
ANGLETYPE_GRAD
type colorType
=
|
COLORTYPE_UNKNOWN
|
COLORTYPE_RGBCOLOR
|
COLORTYPE_RGBCOLOR_ICCCOLOR
|
COLORTYPE_CURRENTCOLOR
type alignmentType
=
type meetOrSliceType
=
|
MEETORSLICE_UNKNOWN
|
MEETORSLICE_MEET
|
MEETORSLICE_SLICE
type transformType
=
|
TRANSFORM_UNKNOWN
|
TRANSFORM_MATRIX
|
TRANSFORM_TRANSLATE
|
TRANSFORM_SCALE
|
TRANSFORM_ROTATE
|
TRANSFORM_SKEWX
|
TRANSFORM_SKEWY
type zoomAndPanType
=
|
ZOOMANDPAN_UNKNOWN
|
ZOOMANDPAN_DISABLE
|
ZOOMANDPAN_MAGNIFY
type lengthAdjust
=
|
LENGTHADJUST_UNKNOWN
|
LENGTHADJUST_SPACING
|
LENGTHADJUST_SPACINGANDGLYPHS
type unitType
=
|
UNIT_TYPE_UNKNOWN
|
UNIT_TYPE_USERSPACEONUSE
|
UNIT_TYPE_OBJECTBOUNDINGBOX
type intentType
=
|
RENDERING_INTENT_UNKNOWN
|
RENDERING_INTENT_AUTO
|
RENDERING_INTENT_PERCEPTUAL
|
RENDERING_INTENT_RELATIVE_COLORIMETRIC
|
RENDERING_INTENT_SATURATION
|
RENDERING_INTENT_ABSOLUTE_COLORIMETRIC
type pathSegmentType
=
type textPathMethodType
=
|
TEXTPATH_METHODTYPE_UNKNOWN
|
TEXTPATH_METHODTYPE_ALIGN
|
TEXTPATH_METHODTYPE_STRETCH
type textPathSpacingType
=
|
TEXTPATH_SPACINGTYPE_UNKNOWN
|
TEXTPATH_SPACINGTYPE_AUTO
|
TEXTPATH_SPACINGTYPE_EXACT
type spreadMethodType
=
|
SPREADMETHOD_UNKNOWN
|
SPREADMETHOD_PAD
|
SPREADMETHOD_REFLECT
|
SPREADMETHOD_REPEAT
type suspendHandleID
class type 'a animated = object ... end
class type 'a list = object ... end
Elements
class type element = object ... end
and animatedBoolean = bool Js_of_ocaml.Js.t animated
and animatedEnumeration = int animated
and animatedInteger = int animated
and animatedNumber = float animated
and length = object ... end
and lengthList = length Js_of_ocaml.Js.t list
and angle = object ... end
and rgbColor = object ... end
and color = object ... end
and iccColor = object ... end
and rect = object ... end
and stylable = object ... end
and locatable = object ... end
and transformable = object ... end
and tests = object ... end
and langSpace = object ... end
and externalResourcesRequired = object ... end
and fitToViewBox = object ... end
and zoomAndPan = object ... end
and viewSpec = object ... end
and uriReference = object ... end
and document = object ... end
and svgElement = object ... end
and gElement = object ... end
and defsElement = object ... end
and descElement = object ... end
and titleElement = object ... end
and symbolElement = object ... end
and useElement = object ... end
and elementInstance = object ... end
and elementInstanceList = object ... end
and imageElement = object ... end
and switchElement = object ... end
and styleElement = object ... end
and point = object ... end
and pointList = point Js_of_ocaml.Js.t list
and matrix = object ... end
and transform = object ... end
and transformList = object ... end
and preserveAspectRatio = object ... end
and pathSeg = object ... end
and pathSegClosePath = pathSeg
and pathSegMoveto = object ... end
and pathSegLineto = object ... end
and pathSegCurvetoCubic = object ... end
and pathSegCurvetoQuadratic = object ... end
and pathSegArc = object ... end
and pathSegLinetoHorizontal = object ... end
and pathSegLinetoVertical = object ... end
and pathSegCurvetoCubicSmooth = object ... end
and pathSegCurvetoQuadraticSmooth = object ... end
and animatedPathData = object ... end
and pathElement = object ... end
and rectElement = object ... end
and circleElement = object ... end
and ellipseElement = object ... end
class type lineElement = object ... end
and animatedPoints = object ... end
and polyLineElement = object ... end
and polygonElement = object ... end
and textContentElement = object ... end
and textPositioningElement = object ... end
and textElement = object ... end
and trefElement = object ... end
and textPathElement = object ... end
and altGlyphElement = object ... end
and altGlyphDefElement = element
and altGlyphItemElement = element
and glyphRefElement = object ... end
and gradientElement = object ... end
and linearGradientElement = object ... end
and radialGradientElement = object ... end
and stopElement = object ... end
and patternElement = object ... end
and clipPathElement = object ... end
and maskElement = object ... end
and filterElement = object ... end
and cursorElement = object ... end
and aElement = object ... end
and viewElement = object ... end
and scriptElement = object ... end
and animationElement = object ... end
and animateElement = object ... end
and setElement = animationElement
and mPathElement = object ... end
and animateColorElement = object ... end
and fontElement = object ... end
and glyphElement = object ... end
class type fontFaceElement = element
class type fontFaceSrcElement = element
class type fontFaceUriElement = element
class type fontFaceFormatElement = element
class type fontFaceNameElement = element
class type metadataElement = element
class type foreignObjectElement = object ... end
Helper functions for creating Svg elements
val createElement : document Js_of_ocaml.Js.t -> string -> element Js_of_ocaml.Js.t
val createA : document Js_of_ocaml.Js.t -> aElement Js_of_ocaml.Js.t
val createAltGlyph : document Js_of_ocaml.Js.t -> altGlyphElement Js_of_ocaml.Js.t
val createAltGlyphDef : document Js_of_ocaml.Js.t -> altGlyphDefElement Js_of_ocaml.Js.t
val createAltGlyphItem : document Js_of_ocaml.Js.t -> altGlyphItemElement Js_of_ocaml.Js.t
val createAnimate : document Js_of_ocaml.Js.t -> animateElement Js_of_ocaml.Js.t
val createAnimateColor : document Js_of_ocaml.Js.t -> animateColorElement Js_of_ocaml.Js.t
val createAnimateMotion : document Js_of_ocaml.Js.t -> animateMotionElement Js_of_ocaml.Js.t
val createAnimateTransform : document Js_of_ocaml.Js.t -> animateTransformElement Js_of_ocaml.Js.t
val createCircle : document Js_of_ocaml.Js.t -> circleElement Js_of_ocaml.Js.t
val createClipPath : document Js_of_ocaml.Js.t -> clipPathElement Js_of_ocaml.Js.t
val createCursor : document Js_of_ocaml.Js.t -> cursorElement Js_of_ocaml.Js.t
val createDefs : document Js_of_ocaml.Js.t -> defsElement Js_of_ocaml.Js.t
val createDesc : document Js_of_ocaml.Js.t -> descElement Js_of_ocaml.Js.t
val createEllipse : document Js_of_ocaml.Js.t -> ellipseElement Js_of_ocaml.Js.t
val createFilter : document Js_of_ocaml.Js.t -> filterElement Js_of_ocaml.Js.t
val createFont : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.t
val createFontFace : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.t
val createFontFaceFormat : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.t
val createFontFaceName : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.t
val createFontFaceSrc : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.t
val createFontFaceUri : document Js_of_ocaml.Js.t -> fontElement Js_of_ocaml.Js.t
val createForeignObject : document Js_of_ocaml.Js.t -> foreignObjectElement Js_of_ocaml.Js.t
val createG : document Js_of_ocaml.Js.t -> gElement Js_of_ocaml.Js.t
val createGlyph : document Js_of_ocaml.Js.t -> glyphElement Js_of_ocaml.Js.t
val createGlyphRef : document Js_of_ocaml.Js.t -> glyphElement Js_of_ocaml.Js.t
val createhkern : document Js_of_ocaml.Js.t -> element Js_of_ocaml.Js.t
val createImage : document Js_of_ocaml.Js.t -> imageElement Js_of_ocaml.Js.t
val createLineElement : document Js_of_ocaml.Js.t -> lineElement Js_of_ocaml.Js.t
val createLinearElement : document Js_of_ocaml.Js.t -> linearGradientElement Js_of_ocaml.Js.t
val createMask : document Js_of_ocaml.Js.t -> maskElement Js_of_ocaml.Js.t
val createMetaData : document Js_of_ocaml.Js.t -> metadataElement Js_of_ocaml.Js.t
val createMissingGlyph : document Js_of_ocaml.Js.t -> glyphElement Js_of_ocaml.Js.t
val createMPath : document Js_of_ocaml.Js.t -> mPathElement Js_of_ocaml.Js.t
val createPath : document Js_of_ocaml.Js.t -> pathElement Js_of_ocaml.Js.t
val createPattern : document Js_of_ocaml.Js.t -> patternElement Js_of_ocaml.Js.t
val createPolygon : document Js_of_ocaml.Js.t -> polygonElement Js_of_ocaml.Js.t
val createPolyline : document Js_of_ocaml.Js.t -> polyLineElement Js_of_ocaml.Js.t
val createRadialgradient : document Js_of_ocaml.Js.t -> radialGradientElement Js_of_ocaml.Js.t
val createRect : document Js_of_ocaml.Js.t -> rectElement Js_of_ocaml.Js.t
val createScript : document Js_of_ocaml.Js.t -> scriptElement Js_of_ocaml.Js.t
val createSet : document Js_of_ocaml.Js.t -> setElement Js_of_ocaml.Js.t
val createStop : document Js_of_ocaml.Js.t -> stopElement Js_of_ocaml.Js.t
val createStyle : document Js_of_ocaml.Js.t -> styleElement Js_of_ocaml.Js.t
val createSvg : document Js_of_ocaml.Js.t -> svgElement Js_of_ocaml.Js.t
val createSwitch : document Js_of_ocaml.Js.t -> switchElement Js_of_ocaml.Js.t
val createSymbol : document Js_of_ocaml.Js.t -> symbolElement Js_of_ocaml.Js.t
val createTextElement : document Js_of_ocaml.Js.t -> textElement Js_of_ocaml.Js.t
val createTextpath : document Js_of_ocaml.Js.t -> textPathElement Js_of_ocaml.Js.t
val createTitle : document Js_of_ocaml.Js.t -> titleElement Js_of_ocaml.Js.t
val createTref : document Js_of_ocaml.Js.t -> trefElement Js_of_ocaml.Js.t
val createTspan : document Js_of_ocaml.Js.t -> tspanElement Js_of_ocaml.Js.t
val createUse : document Js_of_ocaml.Js.t -> useElement Js_of_ocaml.Js.t
val createView : document Js_of_ocaml.Js.t -> viewElement Js_of_ocaml.Js.t
val createvkern : document Js_of_ocaml.Js.t -> element Js_of_ocaml.Js.t
val svg_element : element Js_of_ocaml.Js.t Js_of_ocaml.Js.constr
val document : document Js_of_ocaml.Js.t
The current document
val getElementById : string -> element Js_of_ocaml.Js.t
getElementById id
returns the element with the idid
in the current document. It raisesNot_found
if there are no such element
module CoerceTo : sig ... end