Lorem ipsum...some description, if necessary, for the API usage section.
- API Documentation
- Table of Contents
guitar-diagrams.mjs
Classguitar-diagrams-config.mjs
Classguitar-diagrams-config.mjs
Constructors (non-default)guitar-diagrams-config.mjs
Public Properties- canvasID (get)
- canvasID (set)
- colorFretboard (get)
- colorFretboard (set)
- colorNut (get)
- colorNut (set)
- colorNutOutline (get)
- colorNutOutline (set)
- colorFrets (get)
- colorFrets (set)
- colorStrings (get)
- colorStrings (set)
- colorFretMarker (get)
- colorFretMarker (set)
- colorDiagramBackground (get)
- colorDiagramBackground (set)
- colorLabel (get)
- colorLabel (set)
- markerStrokeWidth (get)
- markerStrokeWidth (set)
- markerFontSize (get)
- markerFontSize (set)
- fretCount (get)
- fretCount (set)
- scaleFactor (get)
- scaleFactor (set)
- orientHorizontally (get)
- orientHorizontally (set)
- fretMarkerEnabled (get)
- fretMarkerEnabled (set)
- fretStartingNumber (get)
- fretStartingNumber (set)
- stringNamesEnabled (get)
- stringNamesEnabled (set)
- stringNames (get)
- stringNames (set)
- downloadImageEnabled (get)
- downloadImageEnabled (set)
guitar-diagrams-config.mjs
Public Methods
guitar-diagrams-marker.mjs
Class
Constructor(s) in guitar-diagrams.mjs
go here... or None.
Static members in guitar-diagrams.mjs
go here... (We might need to talk about how to handled these.)
Properties in guitar-diagrams.mjs
go here...
Methods in guitar-diagrams.mjs
go here...
Constructor(s) in guitar-diagrams-config.mjs
go here...
Properties in guitar-diagrams-config.mjs
go here...
Exists as a property of the config property on the GuitarDiagrams object. Sets the ID attribute of the canvas HTML element.
- Parameters: None
- Return Value: {string} The ID attribute of the canvas HTML element.
- Default Value: {string} 'gdjCanvas'
Example:
console.log('Canvas ID: ' + gdj1.config.canvasID);
Exists as a property of the config property on the GuitarDiagrams object. Sets the ID attribute of the canvas HTML element.
- Parameters: {string} The ID attribute of the canvas HTML element.
- Return Value: None
- Default Value: {string} 'gdjCanvas'
Example:
gdj1.config.canvasID = 'diagram-1-canvas';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the fretboard.
- Parameters: None
- Return Value: {string} The HTML color code of the fretboard.
- Default Value: {string} '#795548'
Example:
console.log('Fretboard color: ' + gdj5.config.colorFretboard);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the fretboard.
- Parameters: {string} The HTML color code of the fretboard.
- Return Value: None
- Default Value: {string} '#795548'
Example:
gdj1.config.colorFretboard = '#FFE0B2';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the nut.
- Parameters: None
- Return Value: {string} The HTML color code of the nut.
- Default Value: {string} '#F2F3F4'
Example:
console.log(gdj1.config.colorNut);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the nut.
- Parameters: {string} The HTML color code of the nut.
- Return Value: None
- Default Value: {string} '#F2F3F4'
Example:
gdj1.config.colorNut = '#FFFFFF';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the nut outline.
- Parameters: None
- Return Value: {string} The HTML color code of the nut outline.
- Default Value: {string} '#000000'
Example:
console.log(gdj1.config.colorNutOutline);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the nut outline.
- Parameters: {string} The HTML color code of the nut outline.
- Return Value: None
- Default Value: {string} '#000000'
Example:
gdj1.config.colorNutOutline = '#7E5109';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the frets.
- Parameters: None
- Return Value: {string} The HTML color code of the frets.
- Default Value: {string} '#808B96'
Example:
console.log(gdj1.config.colorFrets);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the frets.
- Parameters: {string} The HTML color code of the nut outline.
- Return Value: None
- Default Value: {string} '#808B96'
Example:
gdj1.config.colorFrets = '#AEB6BF';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the strings.
- Parameters: None
- Return Value: {string} The HTML color code of the strings.
- Default Value: {string} '#CFD8DC'
Example:
console.log(gdj1.config.colorStrings);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the strings.
- Parameters: {string} The HTML color code of the strings.
- Return Value: None
- Default Value: {string} '#CFD8DC'
Example:
gdj1.config.colorStrings = '#566573';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the fret markers.
- Parameters: None
- Return Value: {string} The HTML color code of the fret markers.
- Default Value: {string} '#FFFFFF'
Example:
console.log(gdj1.config.colorFretMarker);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the fret markers.
- Parameters: {string} The HTML color code of the fret markers.
- Return Value: None
- Default Value: {string} '#FFFFFF'
Example:
gdj1.config.colorFretMarker = '#424949';
Exists as a property of the config property on the GuitarDiagrams object. Gets the HTML color code of the diagram background.
- Parameters: None
- Return Value: {string} The HTML color code of the diagram background.
- Default Value: {string} null
Example:
console.log(gdj1.config.colorDiagramBackground);
Exists as a property of the config property on the GuitarDiagrams object. Sets the HTML color code of the diagram background.
- Parameters: {string} The HTML color code of the diagram background.
- Return Value: None
- Default Value: {string} null
Example:
gdj1.config.colorDiagramBackground = '#000000';
Exists as a property of the config property on the GuitarDiagrams object. Gets HTML color code of the label text for string names and fret number.
- Parameters: None
- Return Value: {string} The HTML color code of the label text for string names and fret number.
- Default Value: {string} '#000000'
Example:
console.log(gdj1.config.colorLabel);
Exists as a property of the config property on the GuitarDiagrams object. Sets HTML color code of the label text for string names and fret number.
- Parameters: {string} The HTML color code of the label text for string names and fret number.
- Return Value: None
- Default Value: {string} '#000000'
Example:
gdj1.config.colorLabel = '#000000';
Exists as a property of the config property on the GuitarDiagrams object. Gets the marker's stroke width.
- Parameters: None
- Return Value: {number} The marker's stroke width.
- Default Value: {number} 2
Example:
console.log(gdj1.markerStrokeWidth);
Exists as a property of the config property on the GuitarDiagrams object. Sets the marker's stroke width.
- Parameters: {number} The marker's stroke width.
- Return Value: None
- Default Value: {number} 2
Example:
gdj1.config.markerStrokeWidth = 1;
Exists as a property of the config property on the GuitarDiagrams object. Gets the marker's font size.
- Parameters: None
- Return Value: {number} The marker's font size.
- Default Value: {number} 16
Example:
console.log(gdj1.config.markerFontSize);
Exists as a property of the config property on the GuitarDiagrams object. Sets the marker's font size.
- Parameters: {number} The marker's font size.
- Return Value: None
- Default Value: {number} 16
Example:
gdj1.config.markerFontSize = 10;
Exists as a property of the config property on the GuitarDiagrams object. Gets the number of frets on the diagram.
- Parameters: None
- Return Value: {number} The number of frets on the diagram.
- Default Value: {number} 5
Example:
console.log(gdj1.config.fretCount);
Exists as a property of the config property on the GuitarDiagrams object. Sets the number of frets on the diagram.
- Parameters: {number} The number of frets on the diagram.
- Return Value: None
- Default Value: {number} 5
Example:
gdj1.config.fretCount = 3;
Exists as a property of the config property on the GuitarDiagrams object. Gets the scale factor of the diagram.
- Parameters: None
- Return Value: {number} The scale factor of the diagram.
- Default Value: {number} 1
Example:
console.log(gdj1.config.scaleFactor);
Exists as a property of the config property on the GuitarDiagrams object. Sets the scale factor of the diagram.
- Parameters: {number} The scale factor of the diagram.
- Return Value: None
- Default Value: {number} 1
Example:
gdj1.config.scaleFactor = .6;
Exists as a property of the config property on the GuitarDiagrams object. Gets the horizontal status of the diagram.
- Parameters: None
- Return Value: {boolean} The horizontal status of diagram.
- Default Value: {boolean} false;
Example:
console.log(gdj1.config.orientHorizontally);
Exists as a property of the config property on the GuitarDiagrams object. Sets the horizontal status of the diagram.
- Parameters: {boolean} The horizontal status of diagram.
- Return Value: None
- Default Value: {boolean} false;
Example:
gdj1.config.orientHorizontally = true;
Exists as a property of the config property on the GuitarDiagrams object. Gets the enabled status of fret markers.
- Parameters: None
- Return Value: {boolean} The enabled status of fret markers.
- Default Value: {boolean} true;
Example:
console.log(gdj1.config.fretMarkerEnabled);
Exists as a property of the config property on the GuitarDiagrams object. Sets the enabled status of fret markers.
- Parameters: {boolean} The enabled status of fret markers.
- Return Value: None
- Default Value: {boolean} true;
Example:
gdj1.config.fretMarkerEnabled = true;
Exists as a property of the config property on the GuitarDiagrams object. Gets the starting fret number.
- Parameters: None
- Return Value: {number} The starting fret number.
- Default Value: {number} 0;
Example:
console.log(gdj1.config.fretStartingNumber);
Exists as a property of the config property on the GuitarDiagrams object. Sets the starting fret number.
- Parameters: {number} The starting fret number.
- Return Value: None
- Default Value: {number} 0;
Example:
gdj1.config.fretStartingNumber = 3;
Exists as a property of the config property on the GuitarDiagrams object. Gets the enabled status of string names.
- Parameters: None
- Return Value: {boolean} The enabled status of string names.
- Default Value: {boolean} false;
Example:
console.log(gdj1.config.stringNamesEnabled);
Exists as a property of the config property on the GuitarDiagrams object. Sets the enabled status of string names.
- Parameters: {boolean} The enabled status of string names.
- Return Value: None
- Default Value: {boolean} false;
Example:
gdj1.config.stringNamesEnabled = true;
Exists as a property of the config property on the GuitarDiagrams object. Gets the array of string names.
- Parameters: None
- Return Value: {array} The array of string names.
- Default Value: {array} ['E','A','D','G','B','e'];
Example:
console.log(gdj1.config.stringNames);
Exists as a property of the config property on the GuitarDiagrams object. Sets the array of string names.
- Parameters: {array} The array of string names.
- Return Value: None
- Default Value: {array} ['E','A','D','G','B','e'];
Example:
gdj1.config.stringNames = ['D','A','D','G'];
Exists as a property of the config property on the GuitarDiagrams object. Gets the enabled status of the download image button.
- Parameters: None
- Return Value: {boolean} The enabled status of the download image button.
- Default Value: {boolean} false;
Example:
console.log(gdj1.config.downloadImageEnabled);
Exists as a property of the config property on the GuitarDiagrams object. Sets the enabled status of the download image button.
- Parameters: {boolean} The enabled status of the download image button.
- Return Value: None
- Default Value: {boolean} false;
Example:
gdj1.config.downloadImageEnabled = true;
None.
Constructor(s) in guitar-diagram-marker.mjs
go here... (There's only a default constructor as of now.)
Properties in guitar-diagrams-marker.mjs
go here...
Methods in guitar-diagrams-marker.mjs
go here...