Skip to content

@putianyi888/vue3-plots


Defined in: geometry.ts:290

Annular sector defined by center point, inner and outer radii, start angle, and sweep angle.

Angles are in degrees. 0 points right, and positive values rotate clockwise in SVG coordinates.

Extends

Constructors

Constructor

new AnnularSector(cx, cy, innerRadius, outerRadius, startAngle, sweep): AnnularSector

Defined in: geometry.ts:293

Parameters

ParameterTypeDescription
cxnumberCenter x coordinate.
cynumberCenter y coordinate.
innerRadiusnumberInner radius.
outerRadiusnumberOuter radius.
startAnglenumberStart angle in degrees.
sweepnumberSweep angle in degrees.

Returns

AnnularSector

Overrides

Shape.constructor

Properties

PropertyModifierTypeDefault valueDescriptionOverridesDefined in
cxreadonlynumberundefinedCenter x coordinate.-geometry.ts:295
cyreadonlynumberundefinedCenter y coordinate.-geometry.ts:297
innerRadiusreadonlynumberundefinedInner radius.-geometry.ts:299
outerRadiusreadonlynumberundefinedOuter radius.-geometry.ts:301
startAnglereadonlynumberundefinedStart angle in degrees.-geometry.ts:303
sweepreadonlynumberundefinedSweep angle in degrees.-geometry.ts:305
typereadonly"annular-sector"'annular-sector'-Shape.typegeometry.ts:291

Methods

contains()

contains(point): boolean

Defined in: geometry.ts:316

Checks whether a point is inside or on the annular sector boundary.

Parameters

ParameterTypeDescription
pointPointPoint to test.

Returns

boolean

Whether the point is contained by the annular sector.

Overrides

Shape.contains


svgPath()

svgPath(): string

Defined in: geometry.ts:325

Generates an SVG path string for the annular sector.

Returns

string

SVG path data.

Overrides

Shape.svgPath