@morozeckiy/dd-lib 0.7.94 → 0.7.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { HttpClient } from "@angular/common/http";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface IColorReplacementRule {
|
|
@@ -6,7 +6,7 @@ export interface IColorReplacementRule {
|
|
|
6
6
|
color: string;
|
|
7
7
|
attribute?: 'fill' | 'stroke' | 'both';
|
|
8
8
|
}
|
|
9
|
-
export declare class LibSvgViewerComponent implements OnChanges {
|
|
9
|
+
export declare class LibSvgViewerComponent implements OnChanges, OnDestroy {
|
|
10
10
|
private http;
|
|
11
11
|
private elementRef;
|
|
12
12
|
path: string;
|
|
@@ -16,13 +16,24 @@ export declare class LibSvgViewerComponent implements OnChanges {
|
|
|
16
16
|
height: string;
|
|
17
17
|
color: string;
|
|
18
18
|
containerClass: string;
|
|
19
|
+
fullSize: boolean;
|
|
19
20
|
colorRules: IColorReplacementRule[];
|
|
21
|
+
private svgCache;
|
|
22
|
+
private currentSvgUrl;
|
|
20
23
|
constructor(http: HttpClient, elementRef: ElementRef);
|
|
21
24
|
ngOnChanges(changes: SimpleChanges): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
22
26
|
private loadSvg;
|
|
27
|
+
private getSvgUrl;
|
|
28
|
+
private getSvgWithCache;
|
|
23
29
|
private renderSvg;
|
|
30
|
+
private applySvgAttributes;
|
|
31
|
+
private applyStyling;
|
|
24
32
|
private applyColorRules;
|
|
25
33
|
private applyColor;
|
|
34
|
+
private updateSvgStyles;
|
|
35
|
+
private clearSvgContainer;
|
|
36
|
+
static clearCache(): void;
|
|
26
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibSvgViewerComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibSvgViewerComponent, "dd-lib-svg-viewer", never, { "path": { "alias": "path"; "required": false; }; "pack": { "alias": "pack"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "color": { "alias": "color"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "colorRules": { "alias": "colorRules"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibSvgViewerComponent, "dd-lib-svg-viewer", never, { "path": { "alias": "path"; "required": false; }; "pack": { "alias": "pack"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "color": { "alias": "color"; "required": false; }; "containerClass": { "alias": "containerClass"; "required": false; }; "fullSize": { "alias": "fullSize"; "required": false; }; "colorRules": { "alias": "colorRules"; "required": false; }; }, {}, never, never, true, never>;
|
|
28
39
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|