Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SvgContext

Implements

Index

Constructors

constructor

  • Parameters

    Returns SvgContext

Properties

fillStyle

fillStyle: string | CanvasGradient | CanvasPattern

Readonly pathContext

pathContext: PathContext

Readonly pathFlags

pathFlags: number

Readonly pathView

pathView: null | SvgView

Readonly precision

precision: number

strokeStyle

strokeStyle: string | CanvasGradient | CanvasPattern

Readonly view

view: SvgView

Static Readonly FillFlag

FillFlag: number

Static Readonly FillRuleFlag

FillRuleFlag: number

Static Readonly PathFlag

PathFlag: number

Static Readonly StrokeFlag

StrokeFlag: 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

beginPath

  • beginPath(): void
  • Returns void

beginSvg

  • beginSvg(): void
  • 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

Protected createPathContext

  • Returns PathContext

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

fill

  • Parameters

    Returns void

finalizePath

  • finalizePath(): void
  • Returns void

finalizeSvg

  • finalizeSvg(): void
  • Returns void

Protected getOrCreatePathContext

  • Returns PathContext

Protected getPathContext

  • Returns PathContext

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

nextPathView

  • Returns null | SvgView

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

setPathFlags

  • setPathFlags(pathFlags: number): void
  • Parameters

    • pathFlags: number

    Returns void

setPathView

  • setPathView(pathView: null | SvgView): void
  • Parameters

    Returns void

setPrecision

  • setPrecision(precision: number): void
  • Parameters

    • precision: number

    Returns void

stroke

  • stroke(): void
  • Returns void

Generated using TypeDoc