Search
GeometryFactory.createRadialGeometry Method
See Also
 






Generates a radial bar geometry with the specified parameters.

Namespace: MindFusion.Gauges
File: GeometryFactory.js

 Syntax

JavaScript  Copy Code

function createRadialGeometry (centerX, centerY, startInnerRadius, startOuterRadius, endInnerRadius, endOuterRadius, startAngle, endAngle, capStart, capEnd, strokeInner, strokeOuter)

 Parameters

centerX

Number. The x-coordinate of the generated geometry.

centerY

Number. The y-coordinate of the generated geometry.

startInnerRadius

Number. The radius of the start point of the inner outline of the bar.

startOuterRadius

Number. The radius of the start point of the outer outline of the bar.

endInnerRadius

Number. The radius of the end point of the inner outline of the bar.

endOuterRadius

Number. The radius of the end point of the outer outline of the bar.

startAngle

Number. The start angle of the radial bar.

endAngle

Number. The end angle of the radial bar.

capStart

Boolean. A flag indicating whether to draw a stroke at the start of the bar.

capEnd

Boolean. A flag indicating whether to draw a stroke at the end of the bar.

strokeInner

Boolean. A flag indicating whether to draw a stroke at the inner curve of the bar.

strokeOuter

Boolean. A flag indicating whether to draw a stroke at the outer curve of the bar.

 Return Value

A PathFigure representing a radial bar with the specified parameters.

 See Also