Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowMusicSheetDrawer

Hierarchy

Index

Constructors

constructor

Properties

Private backend

bottomLineVisible

bottomLineVisible: boolean = false

drawableBoundingBoxElement

drawableBoundingBoxElement: string = process.env.DRAW_BOUNDING_BOX_ELEMENT

drawingParameters

drawingParameters: DrawingParameters

Protected graphicalMusicSheet

graphicalMusicSheet: GraphicalMusicSheet

midiPlaybackAvailable

midiPlaybackAvailable: boolean

Protected rules

skyLineVisible

skyLineVisible: boolean = false

splitScreenLineColor

splitScreenLineColor: number

Protected textMeasurer

textMeasurer: ITextMeasurer

Private zoom

zoom: number = 1

Accessors

Mode

Protected leadSheet

  • get leadSheet(): boolean
  • set leadSheet(value: boolean): void

Methods

Protected activateSystemRendering

  • activateSystemRendering(systemId: number, absBoundingRect: RectangleF2D, systemBoundingBoxInPixels: RectangleF2D, createNewImage: boolean): boolean

Protected applyScreenTransformation

Protected applyScreenTransformationForRect

Protected applyScreenTransformations

calculatePixelDistance

  • calculatePixelDistance(unitDistance: number): number

clear

  • clear(): void

Protected drawBottomLine

Protected drawContinuousDynamic

Protected drawDashes

Protected drawExpressions

  • drawExpressions(staffline: StaffLine): void

Protected drawGraphicalLine

  • drawGraphicalLine(graphicalLine: GraphicalLine, lineWidth: number, colorOrStyle?: string): void

Protected drawGroupBracket

Protected drawInstantaneousDynamic

Protected drawInstrumentBrace

drawLabel

drawLine

  • drawLine(start: PointF2D, stop: PointF2D, color?: string, lineWidth?: number): void

drawLineAsHorizontalRectangle

  • drawLineAsHorizontalRectangle(line: GraphicalLine, layer: number): void

drawLineAsHorizontalRectangleWithOffset

drawLineAsVerticalRectangle

  • drawLineAsVerticalRectangle(line: GraphicalLine, layer: number): void

drawLineAsVerticalRectangleWithOffset

Protected drawLyricLines

Private drawLyrics

Protected drawMeasure

Protected drawMusicSystem

Protected drawMusicSystemComponents

Protected drawOctaveShifts

  • drawOctaveShifts(staffLine: StaffLine): void

drawRectangle

Private drawSampledLine

  • drawSampledLine(line: number[], startPosition: PointF2D, width: number, color?: string): void
  • Draw a line with a width and start point in a chosen color (used for skyline/bottom line debugging) from a simple array

    Parameters

    • line: number[]

      numeric array. 0 marks the base line. Direction given by sign. Dimensions in units

    • startPosition: PointF2D

      Start position in units

    • width: number

      Max line width in units

    • Default value color: string = "#FF0000FF"

      Color to paint in. Default is red

    Returns void

Protected drawScrollIndicator

  • drawScrollIndicator(): void

Protected drawSelectionEndSymbol

Protected drawSelectionStartSymbol

drawSheet

Protected drawSkyLine

Private drawSlur

Private drawSlurs

Protected drawSplitScreenLine

  • drawSplitScreenLine(): void

Private drawStaffEntry

Protected drawStaffLine

Protected drawStaffLines

Protected drawSymbol

Protected drawSystemLineObject

  • drawSystemLineObject(systemLine: SystemLine): void

Protected getSystemAbsBoundingRect

Protected getSytemBoundingBoxInPixels

Protected isVisible

Protected renderLabel

  • renderLabel(graphicalLabel: GraphicalLabel, layer: number, bitmapWidth: number, bitmapHeight: number, heightInPixel: number, screenPosition: PointF2D): void
  • Renders a Label to the screen (e.g. Title, composer..)

    Parameters

    • graphicalLabel: GraphicalLabel

      holds the label string, the text height in units and the font parameters

    • layer: number

      is the current rendering layer. There are many layers on top of each other to which can be rendered. Not needed for now.

    • bitmapWidth: number

      Not needed for now.

    • bitmapHeight: number

      Not needed for now.

    • heightInPixel: number

      the height of the text in screen coordinates

    • screenPosition: PointF2D

      the position of the lower left corner of the text in screen coordinates

    Returns void

Protected renderRectangle

  • renderRectangle(rectangle: RectangleF2D, layer: number, styleId: number, alpha: number): void

Protected renderSystemToScreen

resize

  • resize(x: number, y: number): void

scale

  • scale(k: number): void

translate

  • translate(x: number, y: number): void

Generated using TypeDoc