Optional container: string | HTMLElementPrivate chordPrivate Optional containerPrivate Optional rendererPrivate settingsStatic pluginsPrivate orientationPrivate rendererPrivate arcPrivate coordinatesPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate fingerPrivate fretPrivate fretPrivate heightPrivate numPrivate numPrivate rectrotates coordinates of a rectangle if orientation is horizontal
x in vertical orientation
y in vertical orientation
width in vertical orientation
height in vertical orientation
Private stringPrivate stringXPosPrivate strokePrivate toExport the current chord diagram as an SVG string. Call this after draw.
The returned string is a standalone <svg> document (including the xmlns attribute), so it
can be written directly to a .svg file. This works both in the browser and in a headless
environment (see the constructor documentation).
Private topPrivate widthPrivate xPrivate yStatic Private getHelper method to get an options object from the 3rd array value for a finger, that can either be undefined, a string or and options object. This method will return an options object in any case, so it's easier to work with this third value.
Static pluginStatic sanityGenerated using TypeDoc
The element into which the chord diagram is rendered. This can either be a CSS selector or a DOM element. If omitted, the diagram is rendered detached from the DOM and can be exported as a string with toSvg. This is useful for generating SVG files in a Node.js script without a browser. Note that the detached mode is only supported for the default (
normal) chord diagram style.