Skip to content

Documentation / @ripl/canvas / applyCanvasStroke

Function: applyCanvasStroke()

applyCanvasStroke(ctx, element): void

Defined in: canvas/src/helpers.ts:235

Strokes a canvas path or text element, dispatching text-along-path when applicable.

Parameters

ParameterType
ctxCanvasRenderingContext2D
elementContextText | CanvasPath

Returns

void