Methods
Static Private calculateTextPos
- calculateTextPos(ctx: CanvasRenderingContext2D, flip: boolean, length: number, position: number): void
-
Parameters
-
ctx: CanvasRenderingContext2D
-
flip: boolean
-
length: number
-
position: number
Returns void
Static Private createLineContext
- createLineContext(ctx: CanvasRenderingContext2D, line: Line): void
-
Parameters
-
ctx: CanvasRenderingContext2D
-
Returns void
Static Private drawBallTip
- drawBallTip(ctx: CanvasRenderingContext2D, style: any): number
-
Parameters
-
ctx: CanvasRenderingContext2D
-
style: any
Returns number
Static Private drawDiamondTip
- drawDiamondTip(ctx: CanvasRenderingContext2D, style: any): number
-
Parameters
-
ctx: CanvasRenderingContext2D
-
style: any
Returns number
Static drawLine
-
Parameters
-
ctx: CanvasRenderingContext2D
-
-
-
-
Returns void
Static Private drawLineTip
- drawLineTip(ctx: CanvasRenderingContext2D, tip: LineTip): number
-
Parameters
-
ctx: CanvasRenderingContext2D
-
Returns number
Static Private drawTriangleTip
- drawTriangleTip(ctx: CanvasRenderingContext2D, style: any): number
-
Parameters
-
ctx: CanvasRenderingContext2D
-
style: any
Returns number
Static labelLine
- labelLine(ctx: CanvasRenderingContext2D, line: Line, font: Font, label: string, position: number, usePdfFix?: boolean): void
-
Parameters
-
ctx: CanvasRenderingContext2D
-
-
-
label: string
-
position: number
-
Default value usePdfFix: boolean = false
Returns void
This helper makes it easier to draw lines