Class RadialGradient

Abstraction of a Gradient or Texture.

Hierarchy (view full)

Implements

Constructors

Properties

_flagStops: boolean
parent: unknown
zzz: ZZZ

Accessors

  • get center(): G20
  • Returns G20

  • set center(center): void
  • Parameters

    Returns void

  • get focal(): G20
  • Returns G20

  • set focal(focal): void
  • Parameters

    Returns void

  • get id(): string
  • Returns string

  • set id(id): void
  • Parameters

    • id: string

    Returns void

  • get radius(): number
  • Returns number

  • set radius(radius): void
  • Parameters

    • radius: number

    Returns void

  • get spreadMethod(): "pad" | "reflect" | "repeat"
  • Indicates what happens if the gradient starts or ends inside the bounds of the target rectangle.

    Returns "pad" | "reflect" | "repeat"

  • set spreadMethod(spread): void
  • Parameters

    • spread: "pad" | "reflect" | "repeat"

    Returns void

  • get stops(): Stop[]
  • Returns Stop[]

  • set stops(stops): void
  • Parameters

    Returns void

  • get units(): "userSpaceOnUse" | "objectBoundingBox"
  • Indicates how coordinate values are interpreted by the renderer.

    Returns "userSpaceOnUse" | "objectBoundingBox"

  • set units(units): void
  • Parameters

    • units: "userSpaceOnUse" | "objectBoundingBox"

    Returns void

Methods

  • Indicates to the ColorProvider that it is being used in one less fill or stroke property. The ColorProvider is expected to remove itself from the SVG defs element when no longer used.

    Type Parameters

    • T

    Parameters

    Returns void

  • Returns void

  • Parameters

    • OptionaldirtyFlag: boolean

    Returns this

  • Indicates to the ColorProvider that it is being used in one more fill or stroke property. The ColorProvider is expected to add itself to the SVG defs element when being used.

    Type Parameters

    • T

    Parameters

    Returns void

  • Type Parameters

    • T

    Parameters

    Returns this

  • Provide the value that will be used in the fill or stroke attribute of the consuming element. Usually url(#${this.id}) for gradients and textures but may be e.g. an rgb() or #RRGGBB value.

    Returns string

  • Returns this