- Preparing search index...
- The search index is not available
vexflow
Constructors
constructor
- new Renderer(context): Renderer
-
- new Renderer(canvas, backend): Renderer
-
Parameters
-
canvas: string | HTMLCanvasElement | HTMLDivElement
-
backend: number
Properties
Static
Optional
lastContext
Methods
resize
- resize(width, height): Renderer
-
Parameters
-
width: number
-
height: number
Static
buildContext
- buildContext(elementId, backend, width, height, background?): RenderContext
-
Parameters
-
elementId: string | HTMLCanvasElement | HTMLDivElement
-
backend: number
-
width: number
-
height: number
-
background: string = '#FFF'
Static
drawDashedLine
- drawDashedLine(context, fromX, fromY, toX, toY, dashPattern): void
-
Parameters
-
-
fromX: number
-
fromY: number
-
toX: number
-
toY: number
-
dashPattern: number[]
Returns void
Static
getCanvasContext
- getCanvasContext(elementId, width, height, background?): RenderContext
-
Parameters
-
elementId: string
-
width: number
-
height: number
-
Optional
background: string
Static
getSVGContext
- getSVGContext(elementId, width, height, background?): RenderContext
-
Parameters
-
elementId: string
-
width: number
-
height: number
-
Optional
background: string
Support Canvas & SVG rendering contexts.