| 12345678910111213141516171819202122232425262728293031 |
- import { GraphicalInstantaneousDynamicExpression } from "../GraphicalInstantaneousDynamicExpression";
- import { InstantaneousDynamicExpression, DynamicEnum } from "../../VoiceData/Expressions/InstantaneousDynamicExpression";
- import { GraphicalLabel } from "../GraphicalLabel";
- import { Label } from "../../Label";
- import { TextAlignmentEnum } from "../../../Common/Enums/TextAlignment";
- import { FontStyles } from "../../../Common/Enums/FontStyles";
- import { StaffLine } from "../StaffLine";
- import { GraphicalMeasure } from "../GraphicalMeasure";
- export class VexFlowInstantaneousDynamicExpression extends GraphicalInstantaneousDynamicExpression {
- constructor(instantaneousDynamicExpression: InstantaneousDynamicExpression, staffLine: StaffLine, measure: GraphicalMeasure) {
- super(instantaneousDynamicExpression, staffLine, measure);
- this.label = new GraphicalLabel(new Label(this.Expression),
- this.rules.ContinuousDynamicTextHeight,
- TextAlignmentEnum.CenterCenter,
- this.PositionAndShape);
- this.label.Label.fontStyle = FontStyles.BoldItalic;
- this.label.setLabelPositionAndShapeBorders();
- this.PositionAndShape.calculateBoundingBox();
- }
- get InstantaneousDynamic(): InstantaneousDynamicExpression {
- return this.mInstantaneousDynamicExpression;
- }
- get Expression(): string {
- return DynamicEnum[this.mInstantaneousDynamicExpression.DynEnum];
- }
- }
|