Class PathFigure

A PathFigure represents a section of a Geometry}. It is a single connected series of two-dimensional geometric PathSegments.

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(sx?: number, sy?: number, filled?: boolean): PathFigure

Constructs an empty figure. The optional arguments specify the starting point of the figure. You'll want to add a new instance of a PathFigure to the Geometry#figures list of a Geometry.

Parameters

  • sx?: number optional

    optional: the X coordinate of the start point (default is zero).

  • sy?: number optional

    optional: the Y coordinate of the start point (default is zero).

  • filled?: boolean optional

    optional: whether the figure is filled (default is true).

Returns

PathFigure

Properties

public isFilled: boolean

Gets or sets whether this PathFigure is drawn filled.

public isShadowed: boolean

Gets or sets whether this PathFigure will render a shadow if one is defined.

public segments: List

Gets or sets the List of PathSegments that define this PathFigure.

public startX: number

Gets or sets the starting point X coordinate of the PathFigure.

public startY: number

Gets or sets the starting point Y coordinate of the PathFigure.

Methods

public copy(): PathFigure

Create a copy of this PathFigure, with the same values and segments.

Returns

PathFigure