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:

Returns: this


setFont

setFont(font: Font): this

Parameters:

Returns: this


setLineDash

setLineDash(lineDash: number[]): this

Parameters:

Returns: this


setLineRounding

setLineRounding(lineRounding: boolean): this

Parameters:

Returns: this


setLineWidth

setLineWidth(lineWidth: number): this

Parameters:

Returns: this


setStrokeStyle

setStrokeStyle(stroke: string): this

Parameters:

Returns: this


setTextAlign

setTextAlign(textAlign: TextAlign): this

Parameters:

Returns: this


setTextBaseline

setTextBaseline(textBaseline: TextBaseline): this

Parameters:

Returns: this


setTextDirection

setTextDirection(textDirection: CanvasDirection): this

Parameters:

Returns: this


snapshot

snapshot(): object

Returns: object

Last updated