Options
All
  • Public
  • Public/Protected
  • All
Menu

An easy way to create multiple stop elements

Basically an stack with the stop method to add a new stop

Hierarchy

  • SVGStops

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

Properties

Private _stops

_stops: SVGNode[]

Accessors

head

Methods

copy

every

  • every(f: (node: SVGNode, index: number, array: SVGNode[]) => boolean): boolean

forEach

  • forEach(f: (node: SVGNode, index: number, array: SVGNode[]) => void): void

map

mapHead

  • mapHead(f: (node: SVGNode) => void): this

pop

  • pop(): this

push

some

  • some(f: (node: SVGNode, index: number, array: SVGNode[]) => boolean): boolean

stop

  • stop(offset: AttributeValue, stopColor?: AttributeValue, stopOpacity?: AttributeValue): this
  • Create a gradient stop

    Parameters

    • offset: AttributeValue

      offset from 0-1 of the stop

    • Optional stopColor: AttributeValue

      Optional color of the stop (default is black)

    • Optional stopOpacity: AttributeValue

      Optional opacity from 0-1 of the stop (default is 1)

    Returns this

Generated using TypeDoc