Paint
Optional
fillStyle• fillStyle? : undefined | string
Implementation of PaintOverrides.fillStyle
• font: Font = defaultFont
• fontString: string = defaultPaintOptions.font
• lineDash: number[] = defaultPaintOptions.lineDash
• lineRounding: boolean = defaultPaintOptions.lineRounding
Implementation of PaintOverrides.lineRounding
• lineWidth: number = defaultPaintOptions.lineWidth
Optional
strokeStyle• strokeStyle? : undefined | string
• textAlign: TextAlign = defaultPaintOptions.textAlign
Implementation of PaintOverrides.textAlign
• textBaseline: TextBaseline = defaultPaintOptions.textBaseline
Implementation of PaintOverrides.textBaseline
• textDirection: CanvasDirection = defaultPaintOptions.textDirection
Implementation of PaintOverrides.textDirection
Static
Readonly
DEFAULT▪ DEFAULT: DeepReadonly‹Paint› = new Paint()
▸ canDrawFill(): boolean
Returns: boolean
▸ canDrawStroke(): boolean
Returns: boolean
▸ canDrawText(): boolean
Returns: boolean
▸ clone(): Paint‹›
Returns: Paint‹›
▸ getLineHeight(): number
Returns: number
▸ isBright(): boolean
Returns: boolean
▸ setFillStyle(fill
: string): this
Parameters:
Returns: this
▸ setFont(font
: Font): this
Parameters:
Returns: this
▸ setLineDash(lineDash
: number[]): this
Parameters:
Returns: this
▸ setLineRounding(lineRounding
: boolean): this
Parameters:
Returns: this
▸ setLineWidth(lineWidth
: number): this
Parameters:
Returns: this
▸ setStrokeStyle(stroke
: string): this
Parameters:
Returns: this
▸ setTextAlign(textAlign
: TextAlign): this
Parameters:
Returns: this
▸ setTextBaseline(textBaseline
: TextBaseline): this
Parameters:
Returns: this
▸ setTextDirection(textDirection
: CanvasDirection): this
Parameters:
Returns: this
▸ snapshot(): object
Returns: object
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
Name | Type |
---|---|
fill
string
font
lineDash
number[]
lineRounding
boolean
lineWidth
number
stroke
string
textAlign
textBaseline
textDirection
CanvasDirection