Skip to content

charton API


charton API / @chart-on/core / index / strokeLine

Function: strokeLine() ​

strokeLine(ctx, d, env, a, b): void

Defined in: packages/core/src/drawing/draw.ts:202

Stroke a→b with the drawing's line style, extended past the left and/or right anchor to the pane edge when the style sets extendLeft / extendRight.

Parameters ​

ctx ​

CanvasRenderingContext2D

d ​

ScreenDrawing

env ​

DrawingEnv

a ​

Point

b ​

Point

Returns ​

void