@obliczeniowo/elementary
Version:
Library made in Angular version 20
56 lines (50 loc) • 1.87 kB
TypeScript
import * as i0 from '@angular/core';
import * as i2 from '@angular/common';
interface GradientPoints {
color: string;
offset: number;
opacity: number;
}
interface GradientDef {
points: GradientPoints[];
x1?: number | string;
x2?: number | string;
y1?: number | string;
y2?: number | string;
}
/**
* Gradient svg object.
*
* @example
*
* <svg>
* <def>
* <g obl-svg-linear-gradient [gradient]="gradientDefObject" [name]="gradientId"></g>
* </def>
* ...
* </svg>
*/
declare class SvgLinearGradientComponent {
/** required gradient definition object */
gradient: GradientDef;
/** If set then use coordinates measured as px not percentage of object filled with it */
gradientUnits: 'userSpaceOnUse' | undefined;
/** required parameter used as unique id */
name: string;
static ɵfac: i0.ɵɵFactoryDeclaration<SvgLinearGradientComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SvgLinearGradientComponent, "g[obl-svg-linear-gradient]", never, { "gradient": { "alias": "gradient"; "required": false; }; "gradientUnits": { "alias": "gradientUnits"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
}
declare class SvgModule {
static ɵfac: i0.ɵɵFactoryDeclaration<SvgModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<SvgModule, [typeof SvgLinearGradientComponent], [typeof i2.CommonModule], [typeof SvgLinearGradientComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<SvgModule>;
}
declare const ns = "http://www.w3.org/2000/svg";
declare const xlink = "http://www.w3.org/1999/xlink";
declare class Style {
styles: any;
toString(): string;
constructor(styleObject: any);
}
export { Style, SvgLinearGradientComponent, SvgModule, ns, xlink };
export type { GradientDef, GradientPoints };