opensheetmusicdisplay
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
23 lines (22 loc) • 1.03 kB
TypeScript
import Vex from "vexflow";
import VF = Vex.Flow;
import { GraphicalStaffEntry } from "../GraphicalStaffEntry";
import { VexFlowMeasure } from "./VexFlowMeasure";
import { SourceStaffEntry } from "../../VoiceData/SourceStaffEntry";
export declare class VexFlowStaffEntry extends GraphicalStaffEntry {
constructor(measure: VexFlowMeasure, sourceStaffEntry: SourceStaffEntry, staffEntryParent: VexFlowStaffEntry);
vfClefBefore: VF.ClefNote;
/**
* Calculates the staff entry positions from the VexFlow stave information and the tickabels inside the staff.
* This is needed in order to set the OSMD staff entries (which are almost the same as tickables) to the correct positions.
* It is also needed to be done after formatting!
*/
calculateXPosition(): void;
setMaxAccidentals(): number;
setModifierXOffsets(): void;
private applyModifierOffsets;
/**
* Calculate x offsets for overlapping string and fingering modifiers in a chord.
*/
private calculateModifierXOffsets;
}