orpheus-osmd
Version:
An open source JavaScript engine for displaying MusicXML based on VexFlow.
25 lines (24 loc) • 909 B
TypeScript
import { TextAlignmentEnum } from "../../Common/Enums/TextAlignment";
import { Label } from "../Label";
import { BoundingBox } from "./BoundingBox";
import { Clickable } from "./Clickable";
/**
* The graphical counterpart of a Label
*/
export declare class GraphicalLabel extends Clickable {
private label;
/**
* Creates a new GraphicalLabel from a Label
* @param label label object containing text
* @param textHeight Height of text
* @param alignment Alignement like left, right, top, ...
* @param parent Parent Bounding Box where the label is attached to
*/
constructor(label: Label, textHeight: number, alignment: TextAlignmentEnum, parent?: BoundingBox);
get Label(): Label;
toString(): string;
/**
* Calculate GraphicalLabel's Borders according to its Alignment
*/
setLabelPositionAndShapeBorders(): void;
}