ngx-x-browser-svg-mask
Version:
Angular attribute directive that handles cross browser considerations for applying SVG image masks in the DOM.
37 lines (33 loc) • 1.48 kB
TypeScript
import * as i0 from '@angular/core';
import { ElementRef } from '@angular/core';
declare class NgxXBrowserSVGMaskDirective {
private el;
mask: string;
/**
* Host binding to apply the svg image element node type attribute.
*/
private get svgMaskImage();
/**
* Host binding to apply the standard css style to non-image type element nodes.
*/
private get cssMaskImage();
/**
* Host binding to apply the webkit style to non-image type element nodes.
*/
private get cssWebkitMaskImage();
/**
* Read only property that calculates the direct url path for the image mask that we want to use.
*
* @return The mask with full url route designated.
*/
private get maskImage();
constructor(el: ElementRef);
static ɵfac: i0.ɵɵFactoryDeclaration<NgxXBrowserSVGMaskDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxXBrowserSVGMaskDirective, "[ngxSVGMask]", never, { "mask": { "alias": "ngxSVGMask"; "required": false; }; }, {}, never, never, false, never>;
}
declare class NgxXBrowserSVGMaskModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NgxXBrowserSVGMaskModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxXBrowserSVGMaskModule, [typeof NgxXBrowserSVGMaskDirective], never, [typeof NgxXBrowserSVGMaskDirective]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NgxXBrowserSVGMaskModule>;
}
export { NgxXBrowserSVGMaskDirective, NgxXBrowserSVGMaskModule };