Search…
Paint

Hierarchy

  • Paint

Implements

Index

Properties

Methods

Properties

Optional fillStyle

fillStyle? : undefined | string
Implementation of PaintOverrides.fillStyle

font

font: Font = defaultFont

fontString

fontString: string = defaultPaintOptions.font

lineDash

lineDash: number[] = defaultPaintOptions.lineDash

lineRounding

lineRounding: boolean = defaultPaintOptions.lineRounding
Implementation of PaintOverrides.lineRounding

lineWidth

lineWidth: number = defaultPaintOptions.lineWidth

Optional strokeStyle

strokeStyle? : undefined | string

textAlign

textAlign: TextAlign = defaultPaintOptions.textAlign
Implementation of PaintOverrides.textAlign

textBaseline

textBaseline: TextBaseline = defaultPaintOptions.textBaseline
Implementation of PaintOverrides.textBaseline

textDirection

textDirection: CanvasDirection = defaultPaintOptions.textDirection
Implementation of PaintOverrides.textDirection

Static Readonly DEFAULT

DEFAULT: DeepReadonlyPaint = new Paint()

Methods

canDrawFill

canDrawFill(): boolean
Returns: boolean

canDrawStroke

canDrawStroke(): boolean
Returns: boolean

canDrawText

canDrawText(): boolean
Returns: boolean

clone

clone(): Paint‹›
Returns: Paint‹›

getLineHeight

getLineHeight(): number
Returns: number

isBright

isBright(): boolean
Returns: boolean

setFillStyle

setFillStyle(fill: string): this
Parameters:
Name
Type
fill
string
Returns: this

setFont

setFont(font: Font): this
Parameters:
Name
Type
font
Font
Returns: this

setLineDash

setLineDash(lineDash: number[]): this
Parameters:
Name
Type
lineDash
number[]
Returns: this

setLineRounding

setLineRounding(lineRounding: boolean): this
Parameters:
Name
Type
lineRounding
boolean
Returns: this

setLineWidth

setLineWidth(lineWidth: number): this
Parameters:
Name
Type
lineWidth
number
Returns: this

setStrokeStyle

setStrokeStyle(stroke: string): this
Parameters:
Name
Type
stroke
string
Returns: this

setTextAlign

setTextAlign(textAlign: TextAlign): this
Parameters:
Name
Type
textAlign
TextAlign
Returns: this

setTextBaseline

setTextBaseline(textBaseline: TextBaseline): this
Parameters:
Name
Type
textBaseline
Returns: this

setTextDirection

setTextDirection(textDirection: CanvasDirection): this
Parameters:
Name
Type
textDirection
CanvasDirection
Returns: this

snapshot

snapshot(): object
Returns: object
Last modified 9mo ago
Export as PDF
Copy link
On this page
Hierarchy
Implements
Index
Properties
Methods
Properties
Optional fillStyle
font
fontString
lineDash
lineRounding
lineWidth
Optional strokeStyle
textAlign
textBaseline
textDirection
Static Readonly DEFAULT
Methods
canDrawFill
canDrawStroke
canDrawText
clone
getLineHeight
isBright
setFillStyle
setFont
setLineDash
setLineRounding
setLineWidth
setStrokeStyle
setTextAlign
setTextBaseline
setTextDirection
snapshot