Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VexFlowBackend Abstract

Hierarchy

Index

Constructors

Properties

canvas: HTMLElement
graphicalMusicPage: GraphicalMusicPage

The GraphicalMusicPage the backend is drawing from. Each backend only renders one GraphicalMusicPage, to which the coordinates are relative.

height: number
inner: HTMLElement
renderer: Renderer
width: number

Methods

  • clear(): void
  • free(): void
  • getCanvas(): HTMLElement
  • getCanvasSize(): number
  • getContext(): IRenderContext
  • getInnerElement(): HTMLElement
  • getRenderElement(): HTMLElement
  • getRenderer(): Renderer
  • getVexflowBackendType(): Backends
  • initialize(container: HTMLElement, zoom: number): void
  • removeAllChildrenFromContainer(container: HTMLElement): void
  • removeFromContainer(container: HTMLElement): void
  • renderLine(start: PointF2D, stop: PointF2D, color: string, lineWidth: number, id?: string): Node
  • renderPath(points: PointF2D[], fill: boolean, id?: string): Node
  • renderRectangle(rectangle: RectangleF2D, styleId: number, colorHex: string, alpha: number): Node
  • renderText(fontHeight: number, fontStyle: FontStyles, font: Fonts, text: string, heightInPixel: number, screenPosition: PointF2D, color?: string, fontFamily?: string): Node
  • resize(width: number, height: number): void
  • scale(k: number): void
  • translate(x: number, y: number): void

Generated using TypeDoc