Options
All
  • Public
  • Public/Protected
  • All
Menu

The styling to use in outlining a shape.

For more details on its individual properties, please see:

https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Fills_and_Strokes

Note that once a Stroke is constructed you cannot change its properties. To obtain a different Stroke style, simply construct a new Stroke object and assign it to a Shape's stroke property instead.

Hierarchy

  • Stroke

Index

Constructors

Properties

Accessors

Constructors

constructor

  • new Stroke(color?: Color, width?: number, linecap?: "butt" | "square" | "round", linejoin?: "miter" | "round" | "bevel"): Stroke
  • Parameters

    • Optional color: Color
    • Optional width: number
    • Optional linecap: "butt" | "square" | "round"
    • Optional linejoin: "miter" | "round" | "bevel"

    Returns Stroke

Properties

Static DEFAULT

DEFAULT: Stroke = new Stroke(Color.BLACK, 1)

The default stroke is has a width of 1 unit and is black.

Static NONE

NONE: Stroke = new Stroke(Color.BLACK, 0)

Strokes are commonly undesireable. Use this constant property when you do not want a Shape to have an outline.

Accessors

color

color:

linecap

linecap:

linejoin

linejoin:

width

width:

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc