- makeHelper(ctxOrCanvasEl, canvasBounds?): {
ctx: CanvasRenderingContext2D;
arc(arcsToDraw: ArcPositioned | ArcPositioned[], opts: Visual.Drawing.DrawingOpts): void;
bezier(bezierToDraw: QuadraticBezier | CubicBezier, opts?: Visual.Drawing.DrawingOpts): void;
circle(circlesToDraw: CirclePositioned | CirclePositioned[], opts: Visual.Drawing.DrawingOpts): void;
connectedPoints(pointsToDraw: Point[], opts?: Visual.Drawing.DrawingOpts & Partial<ConnectedPointsOptions>): void;
dot(dotPosition: Point | Point[], opts?: DotOpts): void;
line(lineToDraw: Line | Line[], opts?: Visual.Drawing.DrawingOpts): void;
paths(pathsToDraw: Path[], opts?: Visual.Drawing.DrawingOpts): void;
pointLabels(pointsToDraw: Point[], opts?: Visual.Drawing.DrawingOpts): void;
rect(rectsToDraw:
| Rect
| RectPositioned
| RectPositioned[]
| Rect[], opts?: RectOpts): void;
textBlock(lines: string[], opts: Visual.Drawing.DrawingOpts & {
anchor: Point;
anchorPadding?: number;
bounds?: RectPositioned;
}): void;
} ctx: CanvasRenderingContext2D
arc:function
- arc(arcsToDraw, opts): void
Returns void
bezier:function
- bezier(bezierToDraw, opts?): void
Returns void
circle:function
- circle(circlesToDraw, opts): void
Returns void
connectedPoints:function
- connectedPoints(pointsToDraw, opts?): void
Returns void
dot:function
- dot(dotPosition, opts?): void
Returns void
line:function
- line(lineToDraw, opts?): void
Returns void
paths:function
- paths(pathsToDraw, opts?): void
Returns void
pointLabels:function
- pointLabels(pointsToDraw, opts?): void
Returns void
rect:function
- rect(rectsToDraw, opts?): void
Returns void
textBlock:function
- textBlock(lines, opts): void
Returns void
Makes a helper object that wraps together a bunch of drawing functions that all use the same drawing context