Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

canvas: HTMLElement
ctx: CanvasContext
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
zoom: number

Accessors

  • get CanvasRenderingCtx(): CanvasRenderingContext2D

Methods

  • clear(): void
  • free(): void
  • getCanvas(): HTMLElement
  • getCanvasSize(): number
  • getContext(): CanvasContext
  • getInnerElement(): HTMLElement
  • getRenderElement(): HTMLElement
  • getRenderer(): Renderer
  • getVexflowBackendType(): Backends
  • initialize(container: HTMLElement, zoom: number): void
  • initializeHeadless(width?: number, height?: 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