Skip to main content

Function: drawFan()

drawFan(svgDrawingHelper, annotationUID, fanUID, center, innerRadius, outerRadius, startAngle, endAngle, options, dataId, zIndex?): void

Draw a fan shape (circular sector) on an SVG element

Parameters

svgDrawingHelper: SVGDrawingHelper

The SVG drawing helper

annotationUID: string

The annotation unique identifier

fanUID: string

The fan shape unique identifier

center: Point2

The center point of the fan [x, y]

innerRadius: number

The inner radius of the fan

outerRadius: number

The outer radius of the fan

startAngle: number

The start angle of the fan in degrees

endAngle: number

The end angle of the fan in degrees

options = {}

Drawing options (color, fill, etc.)

dataId: string = ''

Optional data ID attribute

zIndex?: number

Optional z-index for controlling the stacking order

Returns

void

Defined in

tools/src/drawingSvg/drawFan.ts:24