Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CustomGeometry

Describes a path geometry, that is defined by a markup string.

Use the following markup to define the geometry:

Markup Parameters Class
M p p Start point PathFigure
A r a l s p r Radius x,y
a Angle
l IsLargeArc (1 = true, 0 = false)
s Sweep direction (0 = clockwise, 1 = counterclockwise)
p End point
ArcSegment
L p p End point LineSegment
C c1 c2 p c1 First control point
c2 Second control point
p End point
CubicBezierSegment
Q c p c Control point
p End point
QuadraticBezierSegment
Z Closes the current figure

Points are written in the form of x,y, where x and y are either invariant floating point numbers (0.0) or integers.

Hierarchy

Implements

Index

Constructors

constructor

Properties

pathString

pathString: string

Gets or sets the markup string

transform

transform: Transform

Gets or sets a geometries transformation matrix. The default value is the identity transform.

Accessors

Private type

  • get type(): "custom"
  • Returns "custom"

Methods

measure

Private serialize

  • serialize(target: BufferWriter): void
  • Parameters

    • target: BufferWriter

    Returns void

Static create

  • Returns the geometry that is defined by the specified geometry description.

    Parameters

    Returns Geometry

Static createCustomGeometry

  • Returns the geometry that is defined by the specified geometry description.

    Parameters

    Returns CustomGeometry

Static measure

Generated using TypeDoc