Optional container: string | HTMLElementPrivate chordPrivate Optional containerPrivate Optional fontsPrivate Optional mirrorWidth of the area across which the diagram is mirrored in left-handed mode. Undefined if the diagram is not mirrored.
Private Optional rendererPrivate settingsStatic pluginsPrivate iswhether the diagram is mirrored because it's drawn for left-handed players
Private orientationPrivate rendererPrivate arcPrivate arcThe direction in which arc barre chords bulge: always towards the nut
Private coordinatesPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate drawPrivate effectiveThe fret label position in the final diagram. A vertical left-handed diagram is mirrored, so the fret label is on the opposite side.
Private fingerPrivate fretPrivate 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 redrawPrivate 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.