import {GraphicalObject} from "./GraphicalObject"; import { VoiceEntry } from "../VoiceData/VoiceEntry"; import { BoundingBox } from "./BoundingBox"; import { GraphicalNote } from "./GraphicalNote"; import { GraphicalStaffEntry } from "./GraphicalStaffEntry"; /** * The graphical counterpart of a [[VoiceEntry]]. */ export class GraphicalVoiceEntry extends GraphicalObject { constructor(parentVoiceEntry: VoiceEntry, parentStaffEntry: GraphicalStaffEntry) { super(); this.parentVoiceEntry = parentVoiceEntry; this.parentStaffEntry = parentStaffEntry; this.PositionAndShape = new BoundingBox(this, parentStaffEntry ? parentStaffEntry.PositionAndShape : undefined, true); this.notes = []; } public parentVoiceEntry: VoiceEntry; public parentStaffEntry: GraphicalStaffEntry; public notes: GraphicalNote[]; }