Skip to main content

Function: drawPath()

drawPath(svgDrawingHelper, annotationUID, pathUID, points, options): void

Draws an SVG path with the given points.

The closePath option, if true, draws a closed path (last point connected to the first).

Parameters​

• svgDrawingHelper: SVGDrawingHelper

• annotationUID: string

• pathUID: string

• points: Point2[] | Point2[][]

• options

• options.closePath?: boolean

• options.color?: string

• options.fillColor?: string

• options.fillOpacity?: number

• options.lineCap?: "butt" | "round" | "square"

• options.lineDash?: string

• options.lineJoin?: "round" | "miter" | "bevel"

• options.lineWidth?: number

• options.strokeOpacity?: number

• options.width?: number

Returns​

void

Defined in​

tools/src/drawingSvg/drawPath.ts:13