- Preparing search index...
- The search index is not available
vexflow
Class RenderContextAbstract
Accessors
Abstract
fillStyle
- get fillStyle(): string | CanvasGradient | CanvasPattern
-
Returns string | CanvasGradient | CanvasPattern
- set fillStyle(style): void
-
Parameters
-
style: string | CanvasGradient | CanvasPattern
Returns void
font
- get font(): string
-
Returns string
- set font(f): void
-
Returns void
Abstract
strokeStyle
- get strokeStyle(): string | CanvasGradient | CanvasPattern
-
Returns string | CanvasGradient | CanvasPattern
- set strokeStyle(style): void
-
Parameters
-
style: string | CanvasGradient | CanvasPattern
Returns void
Static
CATEGORY
- get CATEGORY(): string
-
Returns string
Methods
Abstract
add
- add(child): void
-
Returns void
Abstract
arc
- arc(x, y, radius, startAngle, endAngle, counterclockwise): RenderContext
-
Parameters
-
x: number
-
y: number
-
radius: number
-
startAngle: number
-
endAngle: number
-
counterclockwise: boolean
Abstract
bezierCurveTo
- bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y): RenderContext
-
Parameters
-
cp1x: number
-
cp1y: number
-
cp2x: number
-
cp2y: number
-
x: number
-
y: number
Abstract
clear
- clear(): void
-
Returns void
Abstract
clearRect
- clearRect(x, y, width, height): RenderContext
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
Abstract
closeGroup
- closeGroup(): void
-
Returns void
Abstract
fillRect
- fillRect(x, y, width, height): RenderContext
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
Abstract
fillText
- fillText(text, x, y): RenderContext
-
Parameters
-
text: string
-
x: number
-
y: number
Abstract
getFont
- getFont(): string
-
Returns string
Abstract
openGroup
- openGroup(cls?, id?, attrs?): any
-
Parameters
-
Optional
cls: string
-
Optional
id: string
-
Returns any
Abstract
quadraticCurveTo
- quadraticCurveTo(cpx, cpy, x, y): RenderContext
-
Parameters
-
cpx: number
-
cpy: number
-
x: number
-
y: number
Abstract
rect
- rect(x, y, width, height): RenderContext
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
Abstract
resize
- resize(width, height): RenderContext
-
Parameters
-
width: number
-
height: number
Abstract
setBackgroundFillStyle
Abstract
setFont
- setFont(f?, size?, weight?, style?): RenderContext
-
Parameters
-
Optional
f: string | FontInfo
-
Optional
size: string | number
-
Optional
weight: string | number
-
Optional
style: string
This is kept for backwards compatibility with 3.0.9.
Deprecated
use
setFont(...)
instead since it now supports CSS font shorthand.