SINGLE_LEFT and SINGLE are the same value for compatibility with older versions of vexflow which didn't have right sided stave connectors.
-Connector type:
Returns the CSS compatible font string.
Provide a CSS compatible font string (e.g., 'bold 16px Arial').
diff --git a/src/staveconnector.ts b/src/staveconnector.ts index 84ea6abe71..cd122e7a7e 100644 --- a/src/staveconnector.ts +++ b/src/staveconnector.ts @@ -34,8 +34,25 @@ function drawBoldDoubleLine(ctx: RenderContext, type: number, topX: number, topY * see {@link StaveConnector.type} & {@link StaveConnector.typeString} */ export type StaveConnectorType = - | typeof StaveConnector['type'][keyof typeof StaveConnector['type']] - | keyof typeof StaveConnector['typeString']; + | 'singleRight' + | 'singleLeft' + | 'single' + | 'double' + | 'brace' + | 'bracket' + | 'boldDoubleLeft' + | 'boldDoubleRight' + | 'thinDouble' + | 'none' + | 0 + | 1 + | 2 + | 3 + | 4 + | 5 + | 6 + | 7 + | 8; /** StaveConnector implements the connector lines between staves of a system. */ export class StaveConnector extends Element { @@ -55,7 +72,7 @@ export class StaveConnector extends Element { * with older versions of vexflow which didn't have right sided * stave connectors. */ - static readonly type = { + static readonly type: Record
Default font for text. This is not related to music engraving. Instead, see
-Flow.setMusicFont(...fontNames)
to customize the font for musical symbols placed on the score.