Methods
drawSimpleLine
- drawSimpleLine(x1: number, y1: number, x2: number, y2: number, stroke: Stroke): void
-
Parameters
-
x1: number
-
y1: number
-
x2: number
-
y2: number
-
Returns void
drawText
- drawText(text: string, x: number, y: number, font: Font, maxWidth?: undefined | number, hAlign?: TextAlign, vAlign?: Baseline): void
-
Parameters
-
text: string
-
x: number
-
y: number
-
-
Optional maxWidth: undefined | number
-
-
Optional vAlign: Baseline
Returns void
labelLine
- labelLine(line: Line, font: Font, label: string, position?: undefined | number): void
-
Parameters
-
-
-
label: string
-
Optional position: undefined | number
Returns void
measureTextWidth
- measureTextWidth(text: string, font: Font): number
-
Parameters
Returns number
translate
- translate(offset: Point): void
Draws a complex line