Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowMusicSheetDrawer

Hierarchy

Index

Constructors

constructor

Properties

Private ctx

ctx: CanvasRenderingContext2D

drawingParameters

drawingParameters: DrawingParameters = new DrawingParameters()

Protected graphicalMusicSheet

graphicalMusicSheet: GraphicalMusicSheet

midiPlaybackAvailable

midiPlaybackAvailable: boolean

Private renderer

renderer: Renderer

Protected rules

splitScreenLineColor

splitScreenLineColor: number

Protected textMeasurer

textMeasurer: ITextMeasurer

Private vfctx

vfctx: CanvasContext

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

Protected drawBottomLine

Protected drawGroupBracket

Protected drawInstrumentBrace

Protected drawInstrumentBracket

drawLabel

drawLineAsHorizontalRectangle

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

drawLineAsHorizontalRectangleWithOffset

drawLineAsVerticalRectangle

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

drawLineAsVerticalRectangleWithOffset

Protected drawMeasure

Protected drawMusicSystem

Protected drawMusicSystemComponents

Protected drawOctaveShift

drawRectangle

Protected drawScrollIndicator

  • drawScrollIndicator(): void

Protected drawSelectionEndSymbol

Protected drawSelectionStartSymbol

drawSheet

Protected drawSkyLine

Protected drawSplitScreenLine

  • drawSplitScreenLine(): void

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): 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