Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • PathContext

Implements

Index

Constructors

constructor

  • Returns PathContext

Properties

d

d: string

Readonly precision

precision: number

x0

x0: number

x1

x1: number

y0

y0: number

y1

y1: number

Static Epsilon

Epsilon: number

Accessors

anglePrecision

  • get anglePrecision(): number
  • Returns number

Methods

arc

  • arc(cx: number, cy: number, r: number, a0: number, a1: number, ccw?: boolean): void
  • Parameters

    • cx: number
    • cy: number
    • r: number
    • a0: number
    • a1: number
    • Optional ccw: boolean

    Returns void

arcTo

  • arcTo(x1: number, y1: number, x2: number, y2: number, r: number): void
  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • r: number

    Returns void

bezierCurveTo

  • bezierCurveTo(x1: number, y1: number, x2: number, y2: number, x: number, y: number): void
  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • x: number
    • y: number

    Returns void

closePath

  • closePath(): void
  • Returns void

ellipse

  • ellipse(cx: number, cy: number, rx: number, ry: number, phi: number, a0: number, a1: number, ccw?: boolean): void
  • Parameters

    • cx: number
    • cy: number
    • rx: number
    • ry: number
    • phi: number
    • a0: number
    • a1: number
    • Optional ccw: boolean

    Returns void

lineTo

  • lineTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

moveTo

  • moveTo(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

quadraticCurveTo

  • quadraticCurveTo(x1: number, y1: number, x: number, y: number): void
  • Parameters

    • x1: number
    • y1: number
    • x: number
    • y: number

    Returns void

rect

  • rect(x: number, y: number, w: number, h: number): void
  • Parameters

    • x: number
    • y: number
    • w: number
    • h: number

    Returns void

setPrecision

  • setPrecision(precision: number): void
  • Parameters

    • precision: number

    Returns void

toString

  • toString(): string
  • Returns string

Generated using TypeDoc