Paint
- Paint
• fillStyle? : undefined | string
• fontString: string = defaultPaintOptions.font
• lineDash: number[] = defaultPaintOptions.lineDash
• lineRounding: boolean = defaultPaintOptions.lineRounding
• lineWidth: number = defaultPaintOptions.lineWidth
• strokeStyle? : undefined | string
• textDirection: CanvasDirection = defaultPaintOptions.textDirection
▸ canDrawFill(): boolean
Returns: boolean
▸ canDrawStroke(): boolean
Returns: boolean
▸ canDrawText(): boolean
Returns: boolean
▸ getLineHeight(): number
Returns: number
▸ isBright(): boolean
Returns: boolean
▸ setFillStyle(
fill
: string): thisParameters:
Name | Type |
---|---|
fill | string |
Returns: this
Parameters:
Name | Type |
---|---|
font |
Returns: this
▸ setLineDash(
lineDash
: number[]): thisParameters:
Name | Type |
---|---|
lineDash | number[] |
Returns: this
▸ setLineRounding(
lineRounding
: boolean): thisParameters:
Name | Type |
---|---|
lineRounding | boolean |
Returns: this
▸ setLineWidth(
lineWidth
: number): thisParameters:
Name | Type |
---|---|
lineWidth | number |
Returns: this
▸ setStrokeStyle(
stroke
: string): thisParameters:
Name | Type |
---|---|
stroke | string |
Returns: this
Parameters:
Name | Type |
---|---|
textAlign |
Returns: this
Parameters:
Name | Type |
---|---|
textBaseline |
Returns: this
▸ setTextDirection(
textDirection
: CanvasDirection): thisParameters:
Name | Type |
---|---|
textDirection | CanvasDirection |
Returns: this
▸ snapshot(): object
Returns: object
Last modified 1yr ago