opensheetmusicdisplay
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
42 lines (41 loc) • 1.59 kB
TypeScript
import Vex from "vexflow";
import VF = Vex.Flow;
import { GraphicalOctaveShift } from "../GraphicalOctaveShift";
import { OctaveShift } from "../../VoiceData/Expressions/ContinuousExpressions/OctaveShift";
import { BoundingBox } from "../BoundingBox";
import { GraphicalStaffEntry } from "../GraphicalStaffEntry";
/**
* The vexflow adaptation of a graphical shift.
*/
export declare class VexFlowOctaveShift extends GraphicalOctaveShift {
/** Defines the note where the octave shift starts */
startNote: VF.StemmableNote;
/** Defines the note where the octave shift ends */
endNote: VF.StemmableNote;
/** Top or bottom of the staffline */
private position;
/** Supscript is a smaller text after the regular text (e.g. va after 8) */
private supscript;
/** Main text element */
private text;
/**
* Create a new vexflow ocatve shift
* @param octaveShift the object read by the ExpressionReader
* @param parent the bounding box of the parent
*/
constructor(octaveShift: OctaveShift, parent: BoundingBox);
/**
* Set a start note using a staff entry
* @param graphicalStaffEntry the staff entry that holds the start note
*/
setStartNote(graphicalStaffEntry: GraphicalStaffEntry): boolean;
/**
* Set an end note using a staff entry
* @param graphicalStaffEntry the staff entry that holds the end note
*/
setEndNote(graphicalStaffEntry: GraphicalStaffEntry): boolean;
/**
* Get the actual vexflow text bracket used for drawing
*/
getTextBracket(): VF.TextBracket;
}