Skip to main content

Function: drawPolyline()

drawPolyline(svgDrawingHelper, annotationUID, polylineUID, points, options): void

Draws an SVG polyline with the given points.

The closePath option, if true, draws a closed polyline, with the last point connected to the first.

Parameters

svgDrawingHelper: SVGDrawingHelper

annotationUID: string

polylineUID: string

points: Point2[]

options

options.closePath?: boolean

options.color?: string

options.fillColor?: string

options.fillOpacity?: number

options.lineDash?: string

options.lineWidth?: number

options.width?: number

Returns

void

Defined in

tools/src/drawingSvg/drawPolyline.ts:13