Class RadialGradient

Hierarchy (view full)

Implements

  • ColorProvider

Constructors

Properties

_change: Variable<RadialGradient> = ...
_flagStops: boolean = false
change$: Observable<RadialGradient> = ...
parent: unknown
zzz: ZZZ

Accessors

  • get id(): string
  • Returns string

  • set id(id): void
  • Parameters

    • id: string

    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

    • viewDOM: ViewDOM<T>
    • defs: T

    Returns void

  • 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

    • viewDOM: ViewDOM<T>
    • defs: T

    Returns void

  • 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