Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Classes

Type aliases

Type aliases

Point: { x: number; y: number }

Point - A point on the canvas set by coordinates.

Type declaration

  • Readonly x: number

    X coordinate of point.

  • Readonly y: number

    Y coordinate of point.

Stroke: { cap: CanvasLineCap; color: string; join: CanvasLineJoin; maxWidth: number; miterLimit: number; points: Point[]; width: number }

Stroke - A line between two or more Points.

Type declaration

  • Readonly cap: CanvasLineCap

    {@link CanvasLineCap|Canvas line cap} of the stroke: "butt" | "round" | "square".

  • Readonly color: string

    Color of the stroke.

  • Readonly join: CanvasLineJoin

    {@link CanvasLineJoin|Canvas line join} of the stroke: "bevel" | "miter" | "round".

  • Readonly maxWidth: number

    Max width of the stroke.

  • Readonly miterLimit: number

    Miter limit of the stroke.

  • Readonly points: Point[]

    Points of stroke.

  • Readonly width: number

    Width of the stroke.

Generated using TypeDoc