Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface R2PathContext

Hierarchy

Implemented by

Index

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

Generated using TypeDoc