@ng-blue-duct-tape/svg-draw-stroke
Version:
Angular library that allows you to access elements inside SVG for further animation
25 lines (24 loc) • 1.09 kB
TypeScript
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
import { StrokeElement } from './svg-draw-stroke.common';
import * as i0 from "@angular/core";
export declare class SvgDrawStrokeDirective implements AfterViewInit {
private _element;
_renderer: Renderer2;
manualInit: boolean;
strokeLinecap: 'butt' | 'round' | 'square' | false;
strokeLinecapAll: boolean;
private _isSvgElement;
private _isInit;
stokeElements: StrokeElement[];
nativeElement: SVGElement | undefined;
constructor(_element: ElementRef<SVGElement>, _renderer: Renderer2);
ngAfterViewInit(): void;
init(): void;
private _checkElementType;
private _getStrokeNodes;
private _setNativeElement;
private _setStrokeDasharray;
private _setStrokeLinecap;
static ɵfac: i0.ɵɵFactoryDeclaration<SvgDrawStrokeDirective, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<SvgDrawStrokeDirective, "[bdtSvgDrawStroke]", never, { "manualInit": "manualInit"; "strokeLinecap": "strokeLinecap"; "strokeLinecapAll": "strokeLinecapAll"; }, {}, never>;
}