import { BoundingBox } from './boundingbox'; import { Element } from './element'; import { Note } from './note'; import { RenderContext } from './rendercontext'; export interface StaveHairpinRenderOptions { /** Widen the arms gradually near the closed tip, then more rapidly toward the open end. */ flared?: boolean; /** Draw an open niente circle at the closed end of the wedge. */ niente?: boolean; rightShiftTicks?: number; leftShiftTicks?: number; leftShiftPx: number; rightShiftPx: number; height: number; yShift: number; } export declare class StaveHairpin extends Element { static get CATEGORY(): string; protected hairpin: number; protected position: number; renderOptions: StaveHairpinRenderOptions; protected notes: Record; protected firstNote?: Note; protected lastNote?: Note; static readonly type: { CRESC: number; DECRESC: number; }; static FormatByTicksAndDraw(ctx: RenderContext, formatter: { pixelsPerTick: number; }, notes: Record, type: number, position: number, options: StaveHairpinRenderOptions): void; /** * Create a new hairpin from the specified notes. * * @param {!Object} notes The notes to tie up. * Notes is a struct that has: * * { * firstNote: Note, * lastNote: Note, * } * @param {!Object} type The type of hairpin */ constructor(notes: Record, type: number); setPosition(position: number): this; setRenderOptions(options: StaveHairpinRenderOptions): this; /** * Set the notes to attach this hairpin to. * * @param {!Object} notes The start and end notes. */ setNotes(notes: Record): this; /** Both endpoints are required for a complete wedge on a single system. */ getNotes(): readonly (Note | undefined)[]; private layoutBaseline?; private layoutLeft; private layoutRight; /** A phrase baseline passes through the middle of the wedge; trims clear adjacent dynamics. */ setLayoutBaseline(y?: number, left?: number, right?: number): void; private parameters; private edges; /** Horizontal extents for spacing adjacent dynamics, including the diameter of a circled tip. */ getLayoutEdges(): { top: number; left: number; right: number; height: number; }; getBoundingBox(): BoundingBox; renderHairpin(params: { firstX: number; lastX: number; firstY: number; lastY: number; staffHeight: number; }): void; draw(): void; }