Options
All
  • Public
  • Public/Protected
  • All
Menu

A JS Class representing the HTML-Path D attribute

Hierarchy

  • PathData

Index

Constructors

constructor

Properties

Private _inner

_inner: string

Methods

arcRelativeTo

  • arcRelativeTo(x: number, y: number, rx: number, ry: number, xAxisRotation: number, largeArcFlag: boolean, sweepFlag: boolean): this
  • Appends an arc to a certain point relative to where the last action ended to the PathData

    Note / Arguments

    For further information: Look here

    Parameters

    • x: number
    • y: number
    • rx: number
    • ry: number
    • xAxisRotation: number
    • largeArcFlag: boolean
    • sweepFlag: boolean

    Returns this

arcTo

  • arcTo(x: number, y: number, rx: number, ry: number, xAxisRotation: number, largeArcFlag: boolean, sweepFlag: boolean): this
  • Appends an arc to a certain point to the PathData

    Note / Arguments

    For further information: Look here

    Parameters

    • x: number
    • y: number
    • rx: number
    • ry: number
    • xAxisRotation: number
    • largeArcFlag: boolean
    • sweepFlag: boolean

    Returns this

closePath

  • closePath(): this

curveRelativeTo

  • curveRelativeTo(endX: number, endY: number, control1X: number, control1Y: number, control2X: number, control2Y: number): this
  • Appends a curve to a certain point relative to where the last action ended to the PathData, using control point 1 & 2

    Note / Arguments

    For further information: Look here

    Parameters

    • endX: number
    • endY: number
    • control1X: number
    • control1Y: number
    • control2X: number
    • control2Y: number

    Returns this

curveTo

  • curveTo(endX: number, endY: number, control1X: number, control1Y: number, control2X: number, control2Y: number): this
  • Appends a curve to a certain point to the PathData, using control point 1 & 2

    Note / Arguments

    For further information: Look here

    Parameters

    • endX: number
    • endY: number
    • control1X: number
    • control1Y: number
    • control2X: number
    • control2Y: number

    Returns this

horizontalLineRelativeTo

  • horizontalLineRelativeTo(x: number): this

horizontalLineTo

  • horizontalLineTo(x: number): this

lineRelativeTo

  • lineRelativeTo(x: number, y: number): this

lineTo

  • lineTo(x: number, y: number): this

moveTo

  • moveTo(x: number, y: number): this

quadraticCurveRelativeTo

  • quadraticCurveRelativeTo(endX: number, endY: number, controlX: number, controlY: number): this
  • Appends a quadratic curve to a certain point relative to where the last action ended to the PathData, using control point 1

    Note / Arguments

    For further information: Look here

    Parameters

    • endX: number
    • endY: number
    • controlX: number
    • controlY: number

    Returns this

quadraticCurveTo

  • quadraticCurveTo(endX: number, endY: number, controlX: number, controlY: number): this
  • Appends a quadratic curve to a certain point to the PathData, using control point 1

    Note / Arguments

    For further information: Look here

    Parameters

    • endX: number
    • endY: number
    • controlX: number
    • controlY: number

    Returns this

quadraticStringRelativeTo

  • quadraticStringRelativeTo(x: number, y: number): this
  • Appends a quadratic curve (following a quadratic curve) to a certain point relative to where the last action ended to the PathData, smoothing out the curve using the previous quadratic curve

    Note / Arguments

    For further information: Look here

    Parameters

    • x: number
    • y: number

    Returns this

quadraticStringTo

  • quadraticStringTo(x: number, y: number): this
  • Appends a quadratic curve (following a quadratic curve) to a certain point to the PathData, smoothing out the curve using the previous quadratic curve

    Note / Arguments

    For further information: Look here

    Parameters

    • x: number
    • y: number

    Returns this

smoothCurveRelativeTo

  • smoothCurveRelativeTo(endX: number, endY: number, controlX: number, controlY: number): this
  • Appends a smooth curve (following a normal curve) to a certain point relative to where the last action ended to the PathData, using control point 2

    Note / Arguments

    For further information: Look here

    Parameters

    • endX: number
    • endY: number
    • controlX: number
    • controlY: number

    Returns this

smoothCurveTo

  • smoothCurveTo(endX: number, endY: number, control1X: number, control1Y: number, control2X: number, control2Y: number): this
  • Appends a smooth curve (following a normal curve) to a certain point to the PathData, using control point 2

    Note / Arguments

    For further information: Look here

    Parameters

    • endX: number
    • endY: number
    • control1X: number
    • control1Y: number
    • control2X: number
    • control2Y: number

    Returns this

toString

  • toString(): string

verticalLineRelativeTo

  • verticalLineRelativeTo(y: number): this

verticalLineTo

  • verticalLineTo(y: number): this

Generated using TypeDoc