Interface CanvasPath_D3Shape

Deprecated

This interface is used to bridge the gap between two incompatible versions of TypeScript (see #25944). Use CanvasPathMethods instead with TS <= 3.0 and CanvasPath with TS >= 3.1.

interface CanvasPath_D3Shape {
    arc(x, y, radius, startAngle, endAngle, anticlockwise?): void;
    arcTo(x1, y1, x2, y2, radius): void;
    bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y): void;
    closePath(): void;
    ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise?): void;
    lineTo(x, y): void;
    moveTo(x, y): void;
    quadraticCurveTo(cpx, cpy, x, y): void;
    rect(x, y, w, h): void;
}

Methods

  • Parameters

    • x: number
    • y: number
    • radius: number
    • startAngle: number
    • endAngle: number
    • Optional anticlockwise: boolean

    Returns void

  • Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • radius: number

    Returns void

  • Parameters

    • cp1x: number
    • cp1y: number
    • cp2x: number
    • cp2y: number
    • x: number
    • y: number

    Returns void

  • Returns void

  • Parameters

    • x: number
    • y: number
    • radiusX: number
    • radiusY: number
    • rotation: number
    • startAngle: number
    • endAngle: number
    • Optional anticlockwise: boolean

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • cpx: number
    • cpy: number
    • x: number
    • y: number

    Returns void

  • Parameters

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

    Returns void