UNPKG

953 BTypeScriptView Raw
1import { RenderingContext2D } from '../types';
2import { Property } from '../Property';
3import { Document } from './Document';
4import { Element } from './Element';
5import { PathElement } from './PathElement';
6import { StopElement } from './StopElement';
7export declare abstract class GradientElement extends Element {
8 readonly attributesToInherit: string[];
9 protected readonly stops: StopElement[];
10 constructor(document: Document, node: HTMLElement, captureTextNodes?: boolean);
11 abstract getGradient(ctx: RenderingContext2D, element: PathElement): CanvasGradient | null;
12 getGradientUnits(): string;
13 createGradient(ctx: RenderingContext2D, element: PathElement, parentOpacityProp: Property): string | CanvasGradient | CanvasPattern;
14 protected inheritStopContainer(stopsContainer: Element): void;
15 protected addParentOpacity(parentOpacityProp: Property, color: string): string;
16}
17//# sourceMappingURL=GradientElement.d.ts.map
\No newline at end of file