Class SVGuitarChord

Hierarchy

  • SVGuitarChord

Constructors

Properties

chordInternal: Chord = ...
container: string | HTMLElement
rendererInternal?: Renderer
settings: ChordSettings = {}
plugins: SVGuitarPlugin[] = []

Accessors

Methods

  • rotates coordinates if orientation is horizontal

    Returns

    Parameters

    • x: number

      x in vertical orientation

    • y: number

      y in vertical orientation

    Returns {
        x: number;
        y: number;
    }

    • x: number
    • y: number
  • Returns {
        height: number;
        width: number;
    }

    • height: number
    • width: number
  • Parameters

    • y: number

    Returns number

  • Parameters

    • x: number
    • y: number
    • size: number
    • color: string
    • textSize: number
    • fontFamily: string
    • fingerOptions: FingerOptions
    • classNames: string[]

    Returns void

  • Parameters

    • x: number
    • y: number
    • size: number
    • color: string
    • fretMarketOptions: FretMarker
    • classNames: string[]

    Returns void

  • Parameters

    • y: number

    Returns number

  • Parameters

    • y: number

    Returns void

  • Parameters

    • shape: Shape
    • x: number
    • y: number
    • size: number
    • strokeWidth: number
    • strokeColor: string
    • fillColor: string
    • classNames: string[]

    Returns void

  • Parameters

    • size: number

    Returns number

  • Hack to prevent the empty space of the svg from being cut off without having to define a fixed width

    Parameters

    • y: number

    Returns void

  • Parameters

    • y: number

    Returns number

  • Parameters

    • y: number

    Returns number

  • Parameters

    • y: number

    Returns number

  • Parameters

    • startY: number

    Returns number[]

  • rotates height if orientation is horizontal

    Returns

    Parameters

    • height_: number

      height in vertical orientation

    • width: number

      width in vertical orientation

    Returns number

  • rotates coordinates of a rectangle if orientation is horizontal

    Returns

    Parameters

    • x: number

      x in vertical orientation

    • y: number

      y in vertical orientation

    • width: number

      width in vertical orientation

    • height: number

      height in vertical orientation

    Returns {
        height: number;
        width: number;
        x: number;
        y: number;
    }

    • height: number
    • width: number
    • x: number
    • y: number
  • Completely remove the diagram from the DOM

    Returns void

  • Parameters

    • stringIndex: number

    Returns number

  • rotates width if orientation is horizontal

    Returns

    Parameters

    • width_: number

      width in vertical orientation

    • height: number

      height in vertical orientation

    Returns number

  • rotates x value if orientation is horizontal

    Returns

    Parameters

    • x: number

      x in vertical orientation

    • y: number

      y in vertical orientation

    Returns number

  • rotates y value if orientation is horizontal

    Returns

    Parameters

    • x: number

      x in vertical orientation

    • y: number

      y in vertical orientation

    Returns number

  • Helper 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.

    Parameters

    Returns FingerOptions

Generated using TypeDoc