@ebuilding/bi 2.3.9
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.
- package/LICENSE +0 -0
- package/README.md +0 -0
- package/basic/index.d.ts +1 -0
- package/basic/src/components/basic.service.d.ts +19 -0
- package/basic/src/components/card1/index.d.ts +19 -0
- package/basic/src/components/card2/index.d.ts +19 -0
- package/basic/src/components/card3/index.d.ts +19 -0
- package/basic/src/components/card4/index.d.ts +19 -0
- package/basic/src/components/image/index.d.ts +17 -0
- package/basic/src/components/line1/index.d.ts +13 -0
- package/basic/src/components/line2/index.d.ts +13 -0
- package/basic/src/components/number/index.d.ts +18 -0
- package/basic/src/components/table/index.d.ts +18 -0
- package/basic/src/components/text/index.d.ts +16 -0
- package/basic/src/components/time1/index.d.ts +22 -0
- package/basic/src/components/time2/index.d.ts +23 -0
- package/basic/src/default/index.d.ts +20 -0
- package/basic/src/index.module.d.ts +19 -0
- package/basic/src/public_api.d.ts +2 -0
- package/border/index.d.ts +1 -0
- package/border/src/components/1/index.d.ts +17 -0
- package/border/src/components/10/index.d.ts +16 -0
- package/border/src/components/11/index.d.ts +20 -0
- package/border/src/components/12/index.d.ts +18 -0
- package/border/src/components/2/index.d.ts +19 -0
- package/border/src/components/3/index.d.ts +21 -0
- package/border/src/components/4/index.d.ts +27 -0
- package/border/src/components/5/index.d.ts +23 -0
- package/border/src/components/6/index.d.ts +29 -0
- package/border/src/components/7/index.d.ts +24 -0
- package/border/src/components/8/index.d.ts +18 -0
- package/border/src/components/9/index.d.ts +17 -0
- package/border/src/components/basic.service.d.ts +28 -0
- package/border/src/default/index.d.ts +21 -0
- package/border/src/index.module.d.ts +19 -0
- package/border/src/public_api.d.ts +2 -0
- package/decorator/index.d.ts +1 -0
- package/decorator/src/components/1/index.d.ts +15 -0
- package/decorator/src/components/10/index.d.ts +19 -0
- package/decorator/src/components/11/index.d.ts +15 -0
- package/decorator/src/components/12/index.d.ts +15 -0
- package/decorator/src/components/13/index.d.ts +22 -0
- package/decorator/src/components/2/index.d.ts +15 -0
- package/decorator/src/components/3/index.d.ts +15 -0
- package/decorator/src/components/4/index.d.ts +15 -0
- package/decorator/src/components/5/index.d.ts +15 -0
- package/decorator/src/components/6/index.d.ts +15 -0
- package/decorator/src/components/7/index.d.ts +18 -0
- package/decorator/src/components/8/index.d.ts +15 -0
- package/decorator/src/components/9/index.d.ts +19 -0
- package/decorator/src/components/basic.service.d.ts +19 -0
- package/decorator/src/default/index.d.ts +21 -0
- package/decorator/src/index.module.d.ts +20 -0
- package/decorator/src/public_api.d.ts +2 -0
- package/fesm2022/bi.basic.mjs +888 -0
- package/fesm2022/bi.basic.mjs.map +1 -0
- package/fesm2022/bi.border.mjs +1383 -0
- package/fesm2022/bi.border.mjs.map +1 -0
- package/fesm2022/bi.decorator.mjs +1340 -0
- package/fesm2022/bi.decorator.mjs.map +1 -0
- package/fesm2022/ebuilding-bi.mjs +3580 -0
- package/fesm2022/ebuilding-bi.mjs.map +1 -0
- package/index.d.ts +3 -0
- package/package.json +32 -0
|
@@ -0,0 +1,1340 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Directive, Component, ViewContainerRef, ViewChild, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import * as i3 from '@ebuilding/base/shared.pipe';
|
|
7
|
+
import { GramPipeModule } from '@ebuilding/base/shared.pipe';
|
|
8
|
+
import * as i1 from '@ebuilding/base/shared.srv/global.event';
|
|
9
|
+
import { Guid } from '@ebuilding/base/shared.util/guid';
|
|
10
|
+
|
|
11
|
+
class BasicService {
|
|
12
|
+
globalSrv;
|
|
13
|
+
_data = null;
|
|
14
|
+
transform = null;
|
|
15
|
+
width = 0;
|
|
16
|
+
height = 0;
|
|
17
|
+
set data(value) {
|
|
18
|
+
this._data = value;
|
|
19
|
+
this.initPageData(value);
|
|
20
|
+
}
|
|
21
|
+
get data() {
|
|
22
|
+
return this._data;
|
|
23
|
+
}
|
|
24
|
+
set rd(value) {
|
|
25
|
+
if (value != undefined && value != null) {
|
|
26
|
+
this.initPageData(this.data);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
constructor(globalSrv) {
|
|
30
|
+
this.globalSrv = globalSrv;
|
|
31
|
+
}
|
|
32
|
+
ngOnDestroy() {
|
|
33
|
+
}
|
|
34
|
+
initPageData(value) {
|
|
35
|
+
if (this.data) {
|
|
36
|
+
let x = parseFloat((this.data.width / this.width).toFixed(2));
|
|
37
|
+
let y = parseFloat((this.data.height / this.height).toFixed(2));
|
|
38
|
+
this.transform = `scale(${x}, ${y})`;
|
|
39
|
+
this.initDecorator();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
initDecorator() { }
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
44
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.15", type: BasicService, isStandalone: true, inputs: { data: "data", rd: "rd" }, ngImport: i0 });
|
|
45
|
+
}
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BasicService, decorators: [{
|
|
47
|
+
type: Directive
|
|
48
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }], propDecorators: { data: [{
|
|
49
|
+
type: Input
|
|
50
|
+
}], rd: [{
|
|
51
|
+
type: Input
|
|
52
|
+
}] } });
|
|
53
|
+
|
|
54
|
+
class DecoratorComponent1 extends BasicService {
|
|
55
|
+
globalSrv;
|
|
56
|
+
width = 200;
|
|
57
|
+
height = 50;
|
|
58
|
+
svgTemplate = ``;
|
|
59
|
+
constructor(globalSrv) {
|
|
60
|
+
super(globalSrv);
|
|
61
|
+
this.globalSrv = globalSrv;
|
|
62
|
+
}
|
|
63
|
+
ngOnInit() {
|
|
64
|
+
}
|
|
65
|
+
initDecorator() {
|
|
66
|
+
let template = `
|
|
67
|
+
<svg width="${this.data.width}" height="${this.data.height}" style="transform:${this.transform}">
|
|
68
|
+
<rect fill="${this.data.decorator.mainColor}" x="17.797619047619047" y="8.75" width="2.5" height="2.5">
|
|
69
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.4007378824996928"
|
|
70
|
+
repeatCount="indefinite"></animate>
|
|
71
|
+
</rect>
|
|
72
|
+
<rect fill="${this.data.decorator.mainColor}" x="36.845238095238095" y="8.75" width="2.5" height="2.5">
|
|
73
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.2703866789872844"
|
|
74
|
+
repeatCount="indefinite"></animate>
|
|
75
|
+
</rect>
|
|
76
|
+
<rect fill="${this.data.decorator.mainColor}" x="65.41666666666667" y="8.75" width="2.5" height="2.5"></rect>
|
|
77
|
+
<rect fill="${this.data.decorator.mainColor}" x="93.98809523809524" y="8.75" width="2.5" height="2.5"></rect>
|
|
78
|
+
|
|
79
|
+
<rect fill="${this.data.decorator.mainColor}" x="160.6547619047619" y="8.75" width="2.5" height="2.5"></rect>
|
|
80
|
+
|
|
81
|
+
<rect fill="${this.data.decorator.mainColor}" x="17.797619047619047" y="18.75" width="2.5" height="2.5">
|
|
82
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.585853099066676"
|
|
83
|
+
repeatCount="indefinite"></animate>
|
|
84
|
+
</rect>
|
|
85
|
+
<rect fill="${this.data.decorator.mainColor}" x="46.36904761904762" y="18.75" width="2.5" height="2.5"></rect>
|
|
86
|
+
<rect fill="${this.data.decorator.mainColor}" x="74.94047619047619" y="18.75" width="2.5" height="2.5"></rect>
|
|
87
|
+
<rect fill="${this.data.decorator.mainColor}" x="93.98809523809524" y="18.75" width="2.5" height="2.5"></rect>
|
|
88
|
+
<rect fill="${this.data.decorator.mainColor}" x="103.51190476190476" y="18.75" width="2.5" height="2.5"></rect>
|
|
89
|
+
<rect fill="${this.data.decorator.mainColor}" x="132.08333333333334" y="18.75" width="2.5" height="2.5"></rect>
|
|
90
|
+
|
|
91
|
+
<rect fill="${this.data.decorator.mainColor}" x="8.273809523809524" y="28.75" width="2.5" height="2.5"></rect>
|
|
92
|
+
<rect fill="${this.data.decorator.mainColor}" x="36.845238095238095" y="28.75" width="2.5" height="2.5"></rect>
|
|
93
|
+
<rect fill="${this.data.decorator.mainColor}" x="46.36904761904762" y="28.75" width="2.5" height="2.5"></rect>
|
|
94
|
+
<rect fill="${this.data.decorator.mainColor}" x="55.89285714285714" y="28.75" width="2.5" height="2.5"></rect>
|
|
95
|
+
|
|
96
|
+
<rect fill="${this.data.decorator.mainColor}" x="170.17857142857142" y="28.75" width="2.5" height="2.5">
|
|
97
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.7408332360887258"
|
|
98
|
+
repeatCount="indefinite"></animate>
|
|
99
|
+
</rect>
|
|
100
|
+
<rect fill="${this.data.decorator.mainColor}" x="189.22619047619048" y="28.75" width="2.5" height="2.5"></rect>
|
|
101
|
+
<rect fill="${this.data.decorator.mainColor}" x="8.273809523809524" y="38.75" width="2.5" height="2.5"></rect>
|
|
102
|
+
<rect fill="${this.data.decorator.mainColor}" x="27.32142857142857" y="38.75" width="2.5" height="2.5"></rect>
|
|
103
|
+
<rect fill="${this.data.decorator.mainColor}" x="46.36904761904762" y="38.75" width="2.5" height="2.5">
|
|
104
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.6532613131714866"
|
|
105
|
+
repeatCount="indefinite"></animate>
|
|
106
|
+
</rect>
|
|
107
|
+
<rect fill="${this.data.decorator.mainColor}" x="74.94047619047619" y="38.75" width="2.5" height="2.5"></rect>
|
|
108
|
+
<rect fill="${this.data.decorator.mainColor}" x="113.03571428571428" y="38.75" width="2.5" height="2.5"></rect>
|
|
109
|
+
<rect fill="${this.data.decorator.mainColor}" x="151.13095238095238" y="38.75" width="2.5" height="2.5">
|
|
110
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.7141722761264608"
|
|
111
|
+
repeatCount="indefinite"></animate>
|
|
112
|
+
</rect>
|
|
113
|
+
<rect fill="${this.data.decorator.mainColor}" x="170.17857142857142" y="38.75" width="2.5" height="2.5">
|
|
114
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};transparent" dur="1s" begin="1.6865071622280947"
|
|
115
|
+
repeatCount="indefinite"></animate>
|
|
116
|
+
</rect>
|
|
117
|
+
<rect fill="${this.data.decorator.mainColor}" x="179.70238095238096" y="38.75" width="2.5" height="2.5"></rect>
|
|
118
|
+
<rect fill="${this.data.decorator.secondColor}" x="187.97619047619048" y="17.5" width="5" height="5">
|
|
119
|
+
<animate attributeName="width" values="0;5" dur="2s" repeatCount="indefinite"></animate>
|
|
120
|
+
<animate attributeName="height" values="0;5" dur="2s" repeatCount="indefinite"></animate>
|
|
121
|
+
<animate attributeName="x" values="190.47619047619048;187.97619047619048" dur="2s" repeatCount="indefinite">
|
|
122
|
+
</animate>
|
|
123
|
+
<animate attributeName="y" values="20;17.5" dur="2s" repeatCount="indefinite"></animate>
|
|
124
|
+
</rect>
|
|
125
|
+
<rect fill="${this.data.decorator.secondColor}" x="131.42857142857142" y="17.5" width="40" height="5">
|
|
126
|
+
<animate attributeName="width" values="0;40;0" dur="2s" repeatCount="indefinite"></animate>
|
|
127
|
+
<animate attributeName="x" values="171.42857142857142;131.42857142857142;171.42857142857142" dur="2s"
|
|
128
|
+
repeatCount="indefinite"></animate>
|
|
129
|
+
</rect>
|
|
130
|
+
</svg>
|
|
131
|
+
`;
|
|
132
|
+
this.svgTemplate = template;
|
|
133
|
+
}
|
|
134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent1, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
135
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent1, isStandalone: true, selector: "decorator1", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [":host ::ng-deep{width:100%;height:100%;display:inline-block}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
136
|
+
}
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent1, decorators: [{
|
|
138
|
+
type: Component,
|
|
139
|
+
args: [{ selector: 'decorator1', imports: [
|
|
140
|
+
CommonModule,
|
|
141
|
+
FormsModule, ReactiveFormsModule,
|
|
142
|
+
GramPipeModule
|
|
143
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [":host ::ng-deep{width:100%;height:100%;display:inline-block}\n"] }]
|
|
144
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
145
|
+
|
|
146
|
+
class DecoratorComponent2 extends BasicService {
|
|
147
|
+
globalSrv;
|
|
148
|
+
width = 300;
|
|
149
|
+
height = 35;
|
|
150
|
+
svgTemplate = ``;
|
|
151
|
+
constructor(globalSrv) {
|
|
152
|
+
super(globalSrv);
|
|
153
|
+
this.globalSrv = globalSrv;
|
|
154
|
+
}
|
|
155
|
+
ngOnInit() {
|
|
156
|
+
}
|
|
157
|
+
initDecorator() {
|
|
158
|
+
let template = `
|
|
159
|
+
<svg width="${this.data.width}" height="${this.data.height}" style="transform:${this.transform}">
|
|
160
|
+
<rect fill="${this.data.decorator.mainColor}" x="8.038461538461538" y="8.166666666666666" width="7" height="7">
|
|
161
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.6939015385550487s" begin="1.9399920856617765"
|
|
162
|
+
repeatCount="indefinite"></animate>
|
|
163
|
+
</rect>
|
|
164
|
+
<rect fill="${this.data.decorator.mainColor}" x="19.576923076923077" y="8.166666666666666" width="7" height="7"></rect>
|
|
165
|
+
<rect fill="${this.data.decorator.mainColor}" x="31.115384615384613" y="8.166666666666666" width="7" height="7"></rect>
|
|
166
|
+
<rect fill="${this.data.decorator.mainColor}" x="42.65384615384615" y="8.166666666666666" width="7" height="7">
|
|
167
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.6181223528378998s" begin="1.5813407003554452"
|
|
168
|
+
repeatCount="indefinite"></animate>
|
|
169
|
+
</rect>
|
|
170
|
+
<rect fill="${this.data.decorator.mainColor}" x="54.19230769230769" y="8.166666666666666" width="7" height="7"></rect>
|
|
171
|
+
<rect fill="${this.data.decorator.mainColor}" x="65.73076923076923" y="8.166666666666666" width="7" height="7">
|
|
172
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.420212821915367s" begin="0.8615430854946635"
|
|
173
|
+
repeatCount="indefinite"></animate>
|
|
174
|
+
</rect>
|
|
175
|
+
<rect fill="${this.data.decorator.mainColor}" x="77.26923076923077" y="8.166666666666666" width="7" height="7"></rect>
|
|
176
|
+
<rect fill="${this.data.decorator.mainColor}" x="88.8076923076923" y="8.166666666666666" width="7" height="7"></rect>
|
|
177
|
+
<rect fill="${this.data.decorator.mainColor}" x="100.34615384615384" y="8.166666666666666" width="7" height="7"></rect>
|
|
178
|
+
<rect fill="${this.data.decorator.mainColor}" x="111.88461538461539" y="8.166666666666666" width="7" height="7"></rect>
|
|
179
|
+
<rect fill="${this.data.decorator.mainColor}" x="123.42307692307692" y="8.166666666666666" width="7" height="7"></rect>
|
|
180
|
+
<rect fill="${this.data.decorator.mainColor}" x="134.96153846153845" y="8.166666666666666" width="7" height="7"></rect>
|
|
181
|
+
<rect fill="${this.data.decorator.mainColor}" x="146.5" y="8.166666666666666" width="7" height="7">
|
|
182
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.7653535115838577s" begin="1.7287632898666847"
|
|
183
|
+
repeatCount="indefinite"></animate>
|
|
184
|
+
</rect>
|
|
185
|
+
<rect fill="${this.data.decorator.mainColor}" x="158.03846153846155" y="8.166666666666666" width="7" height="7">
|
|
186
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.4374089631940516s" begin="1.434960418461435"
|
|
187
|
+
repeatCount="indefinite"></animate>
|
|
188
|
+
</rect>
|
|
189
|
+
<rect fill="${this.data.decorator.mainColor}" x="169.57692307692307" y="8.166666666666666" width="7" height="7"></rect>
|
|
190
|
+
<rect fill="${this.data.decorator.mainColor}" x="181.1153846153846" y="8.166666666666666" width="7" height="7"></rect>
|
|
191
|
+
<rect fill="${this.data.decorator.mainColor}" x="192.65384615384616" y="8.166666666666666" width="7" height="7"></rect>
|
|
192
|
+
<rect fill="${this.data.decorator.mainColor}" x="204.19230769230768" y="8.166666666666666" width="7" height="7">
|
|
193
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.7547544598305156s" begin="0.6558397303658849"
|
|
194
|
+
repeatCount="indefinite"></animate>
|
|
195
|
+
</rect>
|
|
196
|
+
<rect fill="${this.data.decorator.mainColor}" x="215.73076923076923" y="8.166666666666666" width="7" height="7"></rect>
|
|
197
|
+
<rect fill="${this.data.decorator.mainColor}" x="227.26923076923077" y="8.166666666666666" width="7" height="7">
|
|
198
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.899278341715892s" begin="0.5640319508514504"
|
|
199
|
+
repeatCount="indefinite"></animate>
|
|
200
|
+
</rect>
|
|
201
|
+
<rect fill="${this.data.decorator.mainColor}" x="238.8076923076923" y="8.166666666666666" width="7" height="7"></rect>
|
|
202
|
+
<rect fill="${this.data.decorator.mainColor}" x="250.34615384615384" y="8.166666666666666" width="7" height="7"></rect>
|
|
203
|
+
<rect fill="${this.data.decorator.mainColor}" x="261.88461538461536" y="8.166666666666666" width="7" height="7">
|
|
204
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.0292146042175951s" begin="0.5538660426504616"
|
|
205
|
+
repeatCount="indefinite"></animate>
|
|
206
|
+
</rect>
|
|
207
|
+
<rect fill="${this.data.decorator.mainColor}" x="273.4230769230769" y="8.166666666666666" width="7" height="7"></rect>
|
|
208
|
+
<rect fill="${this.data.decorator.mainColor}" x="284.96153846153845" y="8.166666666666666" width="7" height="7"></rect>
|
|
209
|
+
<rect fill="${this.data.decorator.mainColor}" x="8.038461538461538" y="19.833333333333332" width="7" height="7"></rect>
|
|
210
|
+
<rect fill="${this.data.decorator.mainColor}" x="19.576923076923077" y="19.833333333333332" width="7" height="7"></rect>
|
|
211
|
+
<rect fill="${this.data.decorator.mainColor}" x="31.115384615384613" y="19.833333333333332" width="7" height="7">
|
|
212
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.3077290555388084s" begin="1.644163162106782"
|
|
213
|
+
repeatCount="indefinite"></animate>
|
|
214
|
+
</rect>
|
|
215
|
+
<rect fill="${this.data.decorator.mainColor}" x="42.65384615384615" y="19.833333333333332" width="7" height="7"></rect>
|
|
216
|
+
<rect fill="${this.data.decorator.mainColor}" x="54.19230769230769" y="19.833333333333332" width="7" height="7"></rect>
|
|
217
|
+
<rect fill="${this.data.decorator.mainColor}" x="65.73076923076923" y="19.833333333333332" width="7" height="7">
|
|
218
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.1502139679254386s" begin="0.22088420935450337"
|
|
219
|
+
repeatCount="indefinite"></animate>
|
|
220
|
+
</rect>
|
|
221
|
+
<rect fill="${this.data.decorator.mainColor}" x="77.26923076923077" y="19.833333333333332" width="7" height="7">
|
|
222
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.171898936715557s" begin="0.9231688099502069"
|
|
223
|
+
repeatCount="indefinite"></animate>
|
|
224
|
+
</rect>
|
|
225
|
+
<rect fill="${this.data.decorator.mainColor}" x="88.8076923076923" y="19.833333333333332" width="7" height="7"></rect>
|
|
226
|
+
<rect fill="${this.data.decorator.mainColor}" x="100.34615384615384" y="19.833333333333332" width="7" height="7"></rect>
|
|
227
|
+
<rect fill="${this.data.decorator.mainColor}" x="111.88461538461539" y="19.833333333333332" width="7" height="7">
|
|
228
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.8944443495945935s" begin="1.19309272707756"
|
|
229
|
+
repeatCount="indefinite"></animate>
|
|
230
|
+
</rect>
|
|
231
|
+
<rect fill="${this.data.decorator.mainColor}" x="123.42307692307692" y="19.833333333333332" width="7" height="7"></rect>
|
|
232
|
+
<rect fill="${this.data.decorator.mainColor}" x="134.96153846153845" y="19.833333333333332" width="7" height="7">
|
|
233
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.5989992208642025s" begin="0.9616475491226768"
|
|
234
|
+
repeatCount="indefinite"></animate>
|
|
235
|
+
</rect>
|
|
236
|
+
<rect fill="${this.data.decorator.mainColor}" x="146.5" y="19.833333333333332" width="7" height="7"></rect>
|
|
237
|
+
<rect fill="${this.data.decorator.mainColor}" x="158.03846153846155" y="19.833333333333332" width="7" height="7">
|
|
238
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.843108956648455s" begin="1.7204124524000197"
|
|
239
|
+
repeatCount="indefinite"></animate>
|
|
240
|
+
</rect>
|
|
241
|
+
<rect fill="${this.data.decorator.mainColor}" x="169.57692307692307" y="19.833333333333332" width="7" height="7">
|
|
242
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.3020330862923748s" begin="0.20708535541848638"
|
|
243
|
+
repeatCount="indefinite"></animate>
|
|
244
|
+
</rect>
|
|
245
|
+
<rect fill="${this.data.decorator.mainColor}" x="181.1153846153846" y="19.833333333333332" width="7" height="7"></rect>
|
|
246
|
+
<rect fill="${this.data.decorator.mainColor}" x="192.65384615384616" y="19.833333333333332" width="7" height="7">
|
|
247
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.4420630346486827s" begin="1.3803983202132302"
|
|
248
|
+
repeatCount="indefinite"></animate>
|
|
249
|
+
</rect>
|
|
250
|
+
<rect fill="${this.data.decorator.mainColor}" x="204.19230769230768" y="19.833333333333332" width="7" height="7"></rect>
|
|
251
|
+
<rect fill="${this.data.decorator.mainColor}" x="215.73076923076923" y="19.833333333333332" width="7" height="7"></rect>
|
|
252
|
+
<rect fill="${this.data.decorator.mainColor}" x="227.26923076923077" y="19.833333333333332" width="7" height="7"></rect>
|
|
253
|
+
<rect fill="${this.data.decorator.mainColor}" x="238.8076923076923" y="19.833333333333332" width="7" height="7">
|
|
254
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.2935452210855247s" begin="1.7862024994711616"
|
|
255
|
+
repeatCount="indefinite"></animate>
|
|
256
|
+
</rect>
|
|
257
|
+
<rect fill="${this.data.decorator.mainColor}" x="250.34615384615384" y="19.833333333333332" width="7" height="7">
|
|
258
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.7415724566618818s" begin="1.512871624416912"
|
|
259
|
+
repeatCount="indefinite"></animate>
|
|
260
|
+
</rect>
|
|
261
|
+
<rect fill="${this.data.decorator.mainColor}" x="261.88461538461536" y="19.833333333333332" width="7" height="7">
|
|
262
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.8337454556888064s" begin="0.7800928194202288"
|
|
263
|
+
repeatCount="indefinite"></animate>
|
|
264
|
+
</rect>
|
|
265
|
+
<rect fill="${this.data.decorator.mainColor}" x="273.4230769230769" y="19.833333333333332" width="7" height="7"></rect>
|
|
266
|
+
<rect fill="${this.data.decorator.mainColor}" x="284.96153846153845" y="19.833333333333332" width="7" height="7">
|
|
267
|
+
<animate attributeName="fill" values="${this.data.decorator.mainColor};${this.data.decorator.secondColor}" dur="1.2381779599767428s" begin="0.4759196513841868"
|
|
268
|
+
repeatCount="indefinite"></animate>
|
|
269
|
+
</rect>
|
|
270
|
+
</svg>
|
|
271
|
+
`;
|
|
272
|
+
this.svgTemplate = template;
|
|
273
|
+
}
|
|
274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent2, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent2, isStandalone: true, selector: "decorator2", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
276
|
+
}
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent2, decorators: [{
|
|
278
|
+
type: Component,
|
|
279
|
+
args: [{ selector: 'decorator2', imports: [
|
|
280
|
+
CommonModule,
|
|
281
|
+
FormsModule, ReactiveFormsModule,
|
|
282
|
+
GramPipeModule
|
|
283
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>" }]
|
|
284
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
285
|
+
|
|
286
|
+
class DecoratorComponent3 extends BasicService {
|
|
287
|
+
globalSrv;
|
|
288
|
+
width = 350;
|
|
289
|
+
height = 20;
|
|
290
|
+
svgTemplate = ``;
|
|
291
|
+
constructor(globalSrv) {
|
|
292
|
+
super(globalSrv);
|
|
293
|
+
this.globalSrv = globalSrv;
|
|
294
|
+
}
|
|
295
|
+
ngOnInit() {
|
|
296
|
+
}
|
|
297
|
+
initDecorator() {
|
|
298
|
+
let template = `
|
|
299
|
+
<svg width="${this.data}" heigh]="${this.data.height}">
|
|
300
|
+
<rect x="0" y="${this.data.height / 2}" width="${this.data.width}" height="1" fill="${this.data.decorator.mainColor}">
|
|
301
|
+
<animate attributeName="width" from="0" to="${this.data.width}" dur="${this.data.decorator.dur}s" calcMode="spline" keyTimes="0;1"
|
|
302
|
+
keySplines=".42,0,.58,1" repeatCount="indefinite"></animate>
|
|
303
|
+
</rect>
|
|
304
|
+
<rect x="0" y="${this.data.height / 2}" width="1" height="1" fill="#fff">
|
|
305
|
+
<animate attributeName="x" from="0" to="${this.data.width}" dur="${this.data.decorator.dur}s" calcMode="spline" keyTimes="0;1"
|
|
306
|
+
keySplines="0.42,0,0.58,1" repeatCount="indefinite"></animate>
|
|
307
|
+
</rect>
|
|
308
|
+
</svg>
|
|
309
|
+
`;
|
|
310
|
+
this.svgTemplate = template;
|
|
311
|
+
}
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent3, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
313
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent3, isStandalone: true, selector: "decorator3", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
314
|
+
}
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent3, decorators: [{
|
|
316
|
+
type: Component,
|
|
317
|
+
args: [{ selector: 'decorator3', imports: [
|
|
318
|
+
CommonModule,
|
|
319
|
+
FormsModule, ReactiveFormsModule,
|
|
320
|
+
GramPipeModule
|
|
321
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>" }]
|
|
322
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
323
|
+
|
|
324
|
+
class DecoratorComponent4 extends BasicService {
|
|
325
|
+
globalSrv;
|
|
326
|
+
width = 20;
|
|
327
|
+
height = 350;
|
|
328
|
+
svgTemplate = ``;
|
|
329
|
+
constructor(globalSrv) {
|
|
330
|
+
super(globalSrv);
|
|
331
|
+
this.globalSrv = globalSrv;
|
|
332
|
+
}
|
|
333
|
+
ngOnInit() {
|
|
334
|
+
}
|
|
335
|
+
initDecorator() {
|
|
336
|
+
let template = `
|
|
337
|
+
<svg width="${this.data.width}" height="${this.data.height}">
|
|
338
|
+
<rect x="${this.data.width / 2}" y="0" width="1" height="${this.data.height}" fill="${this.data.decorator.mainColor}">
|
|
339
|
+
<animate attributeName="height" from="0" to="${this.data.height}" dur="${this.data.decorator.dur}s" calcMode="spline" keyTimes="0;1"
|
|
340
|
+
keySplines=".42,0,.58,1" repeatCount="indefinite"></animate>
|
|
341
|
+
</rect>
|
|
342
|
+
<rect x="${this.data.width / 2}" y="0" width="1" height="1">
|
|
343
|
+
<animate attributeName="y" from="0" to="${this.data.height}" dur="${this.data.decorator.dur}s" calcMode="spline" keyTimes="0;1"
|
|
344
|
+
keySplines="0.42,0,0.58,1" repeatCount="indefinite"></animate>
|
|
345
|
+
</rect>
|
|
346
|
+
</svg>
|
|
347
|
+
`;
|
|
348
|
+
this.svgTemplate = template;
|
|
349
|
+
}
|
|
350
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent4, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
351
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent4, isStandalone: true, selector: "decorator4", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
352
|
+
}
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent4, decorators: [{
|
|
354
|
+
type: Component,
|
|
355
|
+
args: [{ selector: 'decorator4', imports: [
|
|
356
|
+
CommonModule,
|
|
357
|
+
FormsModule, ReactiveFormsModule,
|
|
358
|
+
GramPipeModule
|
|
359
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>" }]
|
|
360
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
361
|
+
|
|
362
|
+
class DecoratorComponent5 extends BasicService {
|
|
363
|
+
globalSrv;
|
|
364
|
+
width = 5;
|
|
365
|
+
height = 320;
|
|
366
|
+
svgTemplate = ``;
|
|
367
|
+
constructor(globalSrv) {
|
|
368
|
+
super(globalSrv);
|
|
369
|
+
this.globalSrv = globalSrv;
|
|
370
|
+
}
|
|
371
|
+
ngOnInit() {
|
|
372
|
+
}
|
|
373
|
+
initPageData(value) {
|
|
374
|
+
let template = `
|
|
375
|
+
<div style="width: 5px; height: ${this.data.height}px; animation-dur: ${this.data.decorator.dur}s;">
|
|
376
|
+
<svg width="5" height="${this.data.height}">
|
|
377
|
+
<polyline points="2.5, 0 2.5, ${this.data.height}" stroke="${this.data.decorator.mainColor}"></polyline>
|
|
378
|
+
<polyline stroke-width="3" stroke-dasharray="20, 80" stroke-dashoffset="-30" points="2.5, 0 2.5, ${this.data.height}" class="bold-line" stroke="${this.data.decorator.secondColor}"></polyline>
|
|
379
|
+
</svg>
|
|
380
|
+
</div>
|
|
381
|
+
`;
|
|
382
|
+
this.svgTemplate = template;
|
|
383
|
+
}
|
|
384
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent5, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
385
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent5, isStandalone: true, selector: "decorator5", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [":host ::ng-deep .dv-border-box{position:relative;width:100%;height:100%}:host ::ng-deep .dv-border-box div{width:5px;height:320px;animation-dur:3s;animation:ani-height ease-in-out infinite;left:50%;margin-left:-2px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;position:absolute;-webkit-box-flex:1;-webkit-flex:1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
386
|
+
}
|
|
387
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent5, decorators: [{
|
|
388
|
+
type: Component,
|
|
389
|
+
args: [{ selector: 'decorator5', imports: [
|
|
390
|
+
CommonModule,
|
|
391
|
+
FormsModule, ReactiveFormsModule,
|
|
392
|
+
GramPipeModule
|
|
393
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [":host ::ng-deep .dv-border-box{position:relative;width:100%;height:100%}:host ::ng-deep .dv-border-box div{width:5px;height:320px;animation-dur:3s;animation:ani-height ease-in-out infinite;left:50%;margin-left:-2px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;position:absolute;-webkit-box-flex:1;-webkit-flex:1}\n"] }]
|
|
394
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
395
|
+
|
|
396
|
+
class DecoratorComponent6 extends BasicService {
|
|
397
|
+
globalSrv;
|
|
398
|
+
width = 320;
|
|
399
|
+
height = 5;
|
|
400
|
+
svgTemplate = ``;
|
|
401
|
+
constructor(globalSrv) {
|
|
402
|
+
super(globalSrv);
|
|
403
|
+
this.globalSrv = globalSrv;
|
|
404
|
+
}
|
|
405
|
+
ngOnInit() {
|
|
406
|
+
}
|
|
407
|
+
initPageData(value) {
|
|
408
|
+
let template = `
|
|
409
|
+
<div style="width: ${this.data.width}px; height: 5px; animation-dur: ${this.data.decorator.dur}s;">
|
|
410
|
+
<svg width="${this.data.width}" height="5">
|
|
411
|
+
<polyline points="0, 2.5 ${this.data.width}, 2.5" stroke="${this.data.decorator.mainColor}"></polyline>
|
|
412
|
+
<polyline stroke-width="3" stroke-dasharray="20, 80" stroke-dashoffset="-30" points="0, 2.5 ${this.data.width}, 2.5"
|
|
413
|
+
class="bold-line" stroke="${this.data.decorator.secondColor}"></polyline>
|
|
414
|
+
</svg>
|
|
415
|
+
</div>
|
|
416
|
+
`;
|
|
417
|
+
this.svgTemplate = template;
|
|
418
|
+
}
|
|
419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent6, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
420
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent6, isStandalone: true, selector: "decorator6", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
421
|
+
}
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent6, decorators: [{
|
|
423
|
+
type: Component,
|
|
424
|
+
args: [{ selector: 'decorator6', imports: [
|
|
425
|
+
CommonModule,
|
|
426
|
+
FormsModule, ReactiveFormsModule,
|
|
427
|
+
GramPipeModule
|
|
428
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\" class=\"dv-border-box\"></div>\r\n</ng-container>" }]
|
|
429
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
430
|
+
|
|
431
|
+
class DecoratorComponent7 extends BasicService {
|
|
432
|
+
globalSrv;
|
|
433
|
+
width = 350;
|
|
434
|
+
height = 50;
|
|
435
|
+
svgTemplate = ``;
|
|
436
|
+
constructor(globalSrv) {
|
|
437
|
+
super(globalSrv);
|
|
438
|
+
this.globalSrv = globalSrv;
|
|
439
|
+
}
|
|
440
|
+
ngOnInit() {
|
|
441
|
+
}
|
|
442
|
+
initPageData(value) {
|
|
443
|
+
this.svgTemplate = this.generateSvg();
|
|
444
|
+
}
|
|
445
|
+
generateSvg() {
|
|
446
|
+
// 生成 SVG 字符串
|
|
447
|
+
return `
|
|
448
|
+
<svg width="${this.data.width}" height="${this.data.height}">
|
|
449
|
+
${this.generatePolyline1(this.data.width, this.data.height)}
|
|
450
|
+
${this.generatePolyline2(this.data.width, this.data.height)}
|
|
451
|
+
</svg>`;
|
|
452
|
+
}
|
|
453
|
+
generatePolyline1(width, height) {
|
|
454
|
+
const scaleX = width / 349;
|
|
455
|
+
const scaleY = height / 49;
|
|
456
|
+
const startX = width * 1.101594414139372;
|
|
457
|
+
const polyline = `
|
|
458
|
+
<polyline fill="transparent" stroke-width="3"
|
|
459
|
+
points="0,${scaleY * 9.8} ${scaleX * 62.82},${scaleY * 9.8} ${scaleX * 69.8},${scaleY * 19.6} ${scaleX * 87.25},${scaleY * 19.6} ${scaleX * 94.23},${scaleY * 29.4} ${scaleX * 251.28},${scaleY * 29.4} ${scaleX * 261.75},${scaleY * 19.6} ${scaleX * 279.2},${scaleY * 19.6} ${scaleX * 286.18},${scaleY * 9.8} ${scaleX * 349},${scaleY * 9.8}"
|
|
460
|
+
stroke="${this.data.decorator.mainColor}">
|
|
461
|
+
<animate attributeName="stroke-dasharray" attributeType="XML"
|
|
462
|
+
from="0, ${startX / 2}, 0, ${startX / 2}" to="0, 0, ${startX}, 0" dur="${this.data.decorator.dur}s" begin="0s"
|
|
463
|
+
calcMode="spline" keyTimes="0;1" keySplines="0.4,1,0.49,0.98" repeatCount="indefinite"></animate>
|
|
464
|
+
</polyline>
|
|
465
|
+
`;
|
|
466
|
+
return polyline.trim();
|
|
467
|
+
}
|
|
468
|
+
generatePolyline2(width, height) {
|
|
469
|
+
const startX = (width) * 0.3999999999997135;
|
|
470
|
+
const dashArrayFrom = `0, ${startX / 2}, 0, ${startX / 2}`;
|
|
471
|
+
const dashArrayTo = `0, 0, ${startX}, 0`;
|
|
472
|
+
const points = `${width * 0.3},${height * 0.8} ${width * 0.6999999999971347},${height * 0.8}`;
|
|
473
|
+
// 创建 polyline 元素的字符串
|
|
474
|
+
const polyline = `
|
|
475
|
+
<polyline fill="transparent" stroke-width="2" points="${points}" stroke="${this.data.decorator.secondColor}">
|
|
476
|
+
<animate attributeName="stroke-dasharray" attributeType="XML"
|
|
477
|
+
from="${dashArrayFrom}" to="${dashArrayTo}"
|
|
478
|
+
dur="${this.data.decorator.dur}s" begin="0s" calcMode="spline" keyTimes="0;1" keySplines=".4,1,.49,.98" repeatCount="indefinite">
|
|
479
|
+
</animate>
|
|
480
|
+
</polyline>
|
|
481
|
+
`;
|
|
482
|
+
return polyline.trim();
|
|
483
|
+
}
|
|
484
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent7, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
485
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent7, isStandalone: true, selector: "decorator7", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
486
|
+
}
|
|
487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent7, decorators: [{
|
|
488
|
+
type: Component,
|
|
489
|
+
args: [{ selector: 'decorator7', imports: [
|
|
490
|
+
CommonModule,
|
|
491
|
+
FormsModule, ReactiveFormsModule,
|
|
492
|
+
GramPipeModule
|
|
493
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
494
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
495
|
+
|
|
496
|
+
class DecoratorComponent8 extends BasicService {
|
|
497
|
+
globalSrv;
|
|
498
|
+
width = 300;
|
|
499
|
+
height = 35;
|
|
500
|
+
svgTemplate = ``;
|
|
501
|
+
constructor(globalSrv) {
|
|
502
|
+
super(globalSrv);
|
|
503
|
+
this.globalSrv = globalSrv;
|
|
504
|
+
}
|
|
505
|
+
ngOnInit() {
|
|
506
|
+
}
|
|
507
|
+
initDecorator() {
|
|
508
|
+
let template = `
|
|
509
|
+
<svg width="300px" height="35px" style="transform: ${this.transform};">
|
|
510
|
+
<rect fill="${this.data.decorator.secondColor}" x="3.8170731707317076" y="13" width="7" height="9">
|
|
511
|
+
<animate attributeName="y" values="16.22372575208566;13;16.22372575208566" dur="1.9193014841319482s"
|
|
512
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
513
|
+
repeatCount="indefinite"></animate>
|
|
514
|
+
<animate attributeName="height" values="2.552548495828684;9;2.552548495828684" dur="1.9193014841319482s"
|
|
515
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
516
|
+
repeatCount="indefinite"></animate>
|
|
517
|
+
</rect>
|
|
518
|
+
<rect fill="${this.data.decorator.secondColor}" x="11.134146341463415" y="11.5" width="7" height="12">
|
|
519
|
+
<animate attributeName="y" values="14.587694746499118;11.5;14.587694746499118" dur="1.9574817329592584s"
|
|
520
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
521
|
+
repeatCount="indefinite"></animate>
|
|
522
|
+
<animate attributeName="height" values="5.824610507001764;12;5.824610507001764" dur="1.9574817329592584s"
|
|
523
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
524
|
+
repeatCount="indefinite"></animate>
|
|
525
|
+
</rect>
|
|
526
|
+
<rect fill="${this.data.decorator.mainColor}" x="18.451219512195124" y="9.5" width="7" height="16">
|
|
527
|
+
<animate attributeName="y" values="9.684908096502733;9.5;9.684908096502733" dur="1.879920899418064s"
|
|
528
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
529
|
+
repeatCount="indefinite"></animate>
|
|
530
|
+
<animate attributeName="height" values="15.630183806994534;16;15.630183806994534" dur="1.879920899418064s"
|
|
531
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
532
|
+
repeatCount="indefinite"></animate>
|
|
533
|
+
</rect>
|
|
534
|
+
<rect fill="${this.data.decorator.mainColor}" x="25.76829268292683" y="5.5" width="7" height="24">
|
|
535
|
+
<animate attributeName="y" values="8.31138669149416;5.5;8.31138669149416" dur="2.279891112806586s"
|
|
536
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
537
|
+
repeatCount="indefinite"></animate>
|
|
538
|
+
<animate attributeName="height" values="18.37722661701168;24;18.37722661701168" dur="2.279891112806586s"
|
|
539
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
540
|
+
repeatCount="indefinite"></animate>
|
|
541
|
+
</rect>
|
|
542
|
+
<rect fill="${this.data.decorator.mainColor}" x="33.08536585365854" y="13" width="7" height="9">
|
|
543
|
+
<animate attributeName="y" values="17.484301435131716;13;17.484301435131716" dur="1.8820786211494718s"
|
|
544
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
545
|
+
repeatCount="indefinite"></animate>
|
|
546
|
+
<animate attributeName="height" values="0.03139712973656894;9;0.03139712973656894" dur="1.8820786211494718s"
|
|
547
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
548
|
+
repeatCount="indefinite"></animate>
|
|
549
|
+
</rect>
|
|
550
|
+
<rect fill="${this.data.decorator.secondColor}" x="40.40243902439025" y="13.5" width="7" height="8">
|
|
551
|
+
<animate attributeName="y" values="15.636474751626057;13.5;15.636474751626057" dur="1.8882143222931982s"
|
|
552
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
553
|
+
repeatCount="indefinite"></animate>
|
|
554
|
+
<animate attributeName="height" values="3.7270504967478875;8;3.7270504967478875" dur="1.8882143222931982s"
|
|
555
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
556
|
+
repeatCount="indefinite"></animate>
|
|
557
|
+
</rect>
|
|
558
|
+
<rect fill="${this.data.decorator.secondColor}" x="47.71951219512195" y="1.5" width="7" height="32">
|
|
559
|
+
<animate attributeName="y" values="6.765480306699441;1.5;6.765480306699441" dur="1.874184294326255s"
|
|
560
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
561
|
+
repeatCount="indefinite"></animate>
|
|
562
|
+
<animate attributeName="height" values="21.469039386601118;32;21.469039386601118" dur="1.874184294326255s"
|
|
563
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
564
|
+
repeatCount="indefinite"></animate>
|
|
565
|
+
</rect>
|
|
566
|
+
<rect fill="${this.data.decorator.secondColor}" x="55.03658536585366" y="14" width="7" height="7">
|
|
567
|
+
<animate attributeName="y" values="17.02110302527124;14;17.02110302527124" dur="2.490206927917178s"
|
|
568
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
569
|
+
repeatCount="indefinite"></animate>
|
|
570
|
+
<animate attributeName="height" values="0.9577939494575174;7;0.9577939494575174" dur="2.490206927917178s"
|
|
571
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
572
|
+
repeatCount="indefinite"></animate>
|
|
573
|
+
</rect>
|
|
574
|
+
<rect fill="${this.data.decorator.secondColor}" x="62.35365853658537" y="11.5" width="7" height="12">
|
|
575
|
+
<animate attributeName="y" values="16.433842195954014;11.5;16.433842195954014" dur="2.2406112100804476s"
|
|
576
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
577
|
+
repeatCount="indefinite"></animate>
|
|
578
|
+
<animate attributeName="height" values="2.132315608091975;12;2.132315608091975" dur="2.2406112100804476s"
|
|
579
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
580
|
+
repeatCount="indefinite"></animate>
|
|
581
|
+
</rect>
|
|
582
|
+
<rect fill="${this.data.decorator.mainColor}" x="69.67073170731707" y="12.5" width="7" height="10">
|
|
583
|
+
<animate attributeName="y" values="17.198717591613022;12.5;17.198717591613022" dur="2.3863669196404134s"
|
|
584
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
585
|
+
repeatCount="indefinite"></animate>
|
|
586
|
+
<animate attributeName="height" values="0.6025648167739561;10;0.6025648167739561" dur="2.3863669196404134s"
|
|
587
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
588
|
+
repeatCount="indefinite"></animate>
|
|
589
|
+
</rect>
|
|
590
|
+
<rect fill="${this.data.decorator.mainColor}" x="76.98780487804878" y="12.5" width="7" height="10">
|
|
591
|
+
<animate attributeName="y" values="13.854121210216467;12.5;13.854121210216467" dur="1.5496906432252497s"
|
|
592
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
593
|
+
repeatCount="indefinite"></animate>
|
|
594
|
+
<animate attributeName="height" values="7.291757579567064;10;7.291757579567064" dur="1.5496906432252497s"
|
|
595
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
596
|
+
repeatCount="indefinite"></animate>
|
|
597
|
+
</rect>
|
|
598
|
+
<rect fill="${this.data.decorator.mainColor}" x="84.3048780487805" y="12.5" width="7" height="10">
|
|
599
|
+
<animate attributeName="y" values="13.749541962152952;12.5;13.749541962152952" dur="2.0326781748109966s"
|
|
600
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
601
|
+
repeatCount="indefinite"></animate>
|
|
602
|
+
<animate attributeName="height" values="7.500916075694097;10;7.500916075694097" dur="2.0326781748109966s"
|
|
603
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
604
|
+
repeatCount="indefinite"></animate>
|
|
605
|
+
</rect>
|
|
606
|
+
<rect fill="${this.data.decorator.mainColor}" x="91.6219512195122" y="10.5" width="7" height="14">
|
|
607
|
+
<animate attributeName="y" values="13.549514124252724;10.5;13.549514124252724" dur="1.8720409701842267s"
|
|
608
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
609
|
+
repeatCount="indefinite"></animate>
|
|
610
|
+
<animate attributeName="height" values="7.90097175149455;14;7.90097175149455" dur="1.8720409701842267s"
|
|
611
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
612
|
+
repeatCount="indefinite"></animate>
|
|
613
|
+
</rect>
|
|
614
|
+
<rect fill="${this.data.decorator.mainColor}" x="98.9390243902439" y="10" width="7" height="15">
|
|
615
|
+
<animate attributeName="y" values="13.842004977727129;10;13.842004977727129" dur="2.4551927018408337s"
|
|
616
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
617
|
+
repeatCount="indefinite"></animate>
|
|
618
|
+
<animate attributeName="height" values="7.315990044545742;15;7.315990044545742" dur="2.4551927018408337s"
|
|
619
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
620
|
+
repeatCount="indefinite"></animate>
|
|
621
|
+
</rect>
|
|
622
|
+
<rect fill="${this.data.decorator.secondColor}" x="106.25609756097562" y="13" width="7" height="9">
|
|
623
|
+
<animate attributeName="y" values="13.445357718840306;13;13.445357718840306" dur="1.733430691288683s"
|
|
624
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
625
|
+
repeatCount="indefinite"></animate>
|
|
626
|
+
<animate attributeName="height" values="8.10928456231939;9;8.10928456231939" dur="1.733430691288683s"
|
|
627
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
628
|
+
repeatCount="indefinite"></animate>
|
|
629
|
+
</rect>
|
|
630
|
+
<rect fill="${this.data.decorator.mainColor}" x="113.57317073170732" y="13" width="7" height="9">
|
|
631
|
+
<animate attributeName="y" values="14.3642583245489;13;14.3642583245489" dur="2.2936049720379597s"
|
|
632
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
633
|
+
repeatCount="indefinite"></animate>
|
|
634
|
+
<animate attributeName="height" values="6.2714833509022005;9;6.2714833509022005" dur="2.2936049720379597s"
|
|
635
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
636
|
+
repeatCount="indefinite"></animate>
|
|
637
|
+
</rect>
|
|
638
|
+
<rect fill="${this.data.decorator.secondColor}" x="120.89024390243902" y="12.5" width="7" height="10">
|
|
639
|
+
<animate attributeName="y" values="15.053352616841154;12.5;15.053352616841154" dur="1.9977746678159636s"
|
|
640
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
641
|
+
repeatCount="indefinite"></animate>
|
|
642
|
+
<animate attributeName="height" values="4.893294766317691;10;4.893294766317691" dur="1.9977746678159636s"
|
|
643
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
644
|
+
repeatCount="indefinite"></animate>
|
|
645
|
+
</rect>
|
|
646
|
+
<rect fill="${this.data.decorator.secondColor}" x="128.20731707317074" y="11.5" width="7" height="12">
|
|
647
|
+
<animate attributeName="y" values="14.77633280938325;11.5;14.77633280938325" dur="2.0809742365917954s"
|
|
648
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
649
|
+
repeatCount="indefinite"></animate>
|
|
650
|
+
<animate attributeName="height" values="5.4473343812335004;12;5.4473343812335004" dur="2.0809742365917954s"
|
|
651
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
652
|
+
repeatCount="indefinite"></animate>
|
|
653
|
+
</rect>
|
|
654
|
+
<rect fill="${this.data.decorator.mainColor}" x="135.52439024390245" y="9" width="7" height="17">
|
|
655
|
+
<animate attributeName="y" values="10.215099993280838;9;10.215099993280838" dur="2.2482195293409166s"
|
|
656
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
657
|
+
repeatCount="indefinite"></animate>
|
|
658
|
+
<animate attributeName="height" values="14.569800013438325;17;14.569800013438325" dur="2.2482195293409166s"
|
|
659
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
660
|
+
repeatCount="indefinite"></animate>
|
|
661
|
+
</rect>
|
|
662
|
+
<rect fill="${this.data.decorator.mainColor}" x="142.84146341463415" y="12" width="7" height="11">
|
|
663
|
+
<animate attributeName="y" values="16.475468126383543;12;16.475468126383543" dur="2.422039959221712s"
|
|
664
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
665
|
+
repeatCount="indefinite"></animate>
|
|
666
|
+
<animate attributeName="height" values="2.049063747232915;11;2.049063747232915" dur="2.422039959221712s"
|
|
667
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
668
|
+
repeatCount="indefinite"></animate>
|
|
669
|
+
</rect>
|
|
670
|
+
<rect fill="${this.data.decorator.secondColor}" x="150.15853658536585" y="12" width="7" height="11">
|
|
671
|
+
<animate attributeName="y" values="12.765530243869248;12;12.765530243869248" dur="1.5758380000109493s"
|
|
672
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
673
|
+
repeatCount="indefinite"></animate>
|
|
674
|
+
<animate attributeName="height" values="9.468939512261503;11;9.468939512261503" dur="1.5758380000109493s"
|
|
675
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
676
|
+
repeatCount="indefinite"></animate>
|
|
677
|
+
</rect>
|
|
678
|
+
<rect fill="${this.data.decorator.secondColor}" x="157.47560975609755" y="8.5" width="7" height="18">
|
|
679
|
+
<animate attributeName="y" values="11.247619232410663;8.5;11.247619232410663" dur="1.9101922020253537s"
|
|
680
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
681
|
+
repeatCount="indefinite"></animate>
|
|
682
|
+
<animate attributeName="height" values="12.504761535178671;18;12.504761535178671" dur="1.9101922020253537s"
|
|
683
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
684
|
+
repeatCount="indefinite"></animate>
|
|
685
|
+
</rect>
|
|
686
|
+
<rect fill="${this.data.decorator.secondColor}" x="164.7926829268293" y="0" width="7" height="35">
|
|
687
|
+
<animate attributeName="y" values="11.07117879104485;0;11.07117879104485" dur="1.5050324774960475s"
|
|
688
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
689
|
+
repeatCount="indefinite"></animate>
|
|
690
|
+
<animate attributeName="height" values="12.857642417910299;35;12.857642417910299" dur="1.5050324774960475s"
|
|
691
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
692
|
+
repeatCount="indefinite"></animate>
|
|
693
|
+
</rect>
|
|
694
|
+
<rect fill="${this.data.decorator.mainColor}" x="172.109756097561" y="10" width="7" height="15">
|
|
695
|
+
<animate attributeName="y" values="11.547147204786938;10;11.547147204786938" dur="1.9113600258811372s"
|
|
696
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
697
|
+
repeatCount="indefinite"></animate>
|
|
698
|
+
<animate attributeName="height" values="11.905705590426122;15;11.905705590426122" dur="1.9113600258811372s"
|
|
699
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
700
|
+
repeatCount="indefinite"></animate>
|
|
701
|
+
</rect>
|
|
702
|
+
<rect fill="${this.data.decorator.secondColor}" x="179.4268292682927" y="13" width="7" height="9">
|
|
703
|
+
<animate attributeName="y" values="16.23244066387419;13;16.23244066387419" dur="1.6576201023396238s"
|
|
704
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
705
|
+
repeatCount="indefinite"></animate>
|
|
706
|
+
<animate attributeName="height" values="2.5351186722516204;9;2.5351186722516204" dur="1.6576201023396238s"
|
|
707
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
708
|
+
repeatCount="indefinite"></animate>
|
|
709
|
+
</rect>
|
|
710
|
+
<rect fill="${this.data.decorator.mainColor}" x="186.7439024390244" y="1.5" width="7" height="32">
|
|
711
|
+
<animate attributeName="y" values="4.589717285817084;1.5;4.589717285817084" dur="1.7669509673758628s"
|
|
712
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
713
|
+
repeatCount="indefinite"></animate>
|
|
714
|
+
<animate attributeName="height" values="25.820565428365832;32;25.820565428365832" dur="1.7669509673758628s"
|
|
715
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
716
|
+
repeatCount="indefinite"></animate>
|
|
717
|
+
</rect>
|
|
718
|
+
<rect fill="${this.data.decorator.secondColor}" x="194.0609756097561" y="9.5" width="7" height="16">
|
|
719
|
+
<animate attributeName="y" values="12.922910612143342;9.5;12.922910612143342" dur="2.3921373525736804s"
|
|
720
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
721
|
+
repeatCount="indefinite"></animate>
|
|
722
|
+
<animate attributeName="height" values="9.154178775713316;16;9.154178775713316" dur="2.3921373525736804s"
|
|
723
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
724
|
+
repeatCount="indefinite"></animate>
|
|
725
|
+
</rect>
|
|
726
|
+
<rect fill="${this.data.decorator.secondColor}" x="201.3780487804878" y="14" width="7" height="7">
|
|
727
|
+
<animate attributeName="y" values="15.464522095356593;14;15.464522095356593" dur="1.6164308478978615s"
|
|
728
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
729
|
+
repeatCount="indefinite"></animate>
|
|
730
|
+
<animate attributeName="height" values="4.070955809286815;7;4.070955809286815" dur="1.6164308478978615s"
|
|
731
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
732
|
+
repeatCount="indefinite"></animate>
|
|
733
|
+
</rect>
|
|
734
|
+
<rect fill="${this.data.decorator.secondColor}" x="208.69512195121953" y="10" width="7" height="15">
|
|
735
|
+
<animate attributeName="y" values="16.35600823348775;10;16.35600823348775" dur="2.0604276018369085s"
|
|
736
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
737
|
+
repeatCount="indefinite"></animate>
|
|
738
|
+
<animate attributeName="height" values="2.2879835330245046;15;2.2879835330245046" dur="2.0604276018369085s"
|
|
739
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
740
|
+
repeatCount="indefinite"></animate>
|
|
741
|
+
</rect>
|
|
742
|
+
<rect fill="${this.data.decorator.mainColor}" x="216.01219512195124" y="4" width="7" height="27">
|
|
743
|
+
<animate attributeName="y" values="11.112288451861373;4;11.112288451861373" dur="2.3171665982951763s"
|
|
744
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
745
|
+
repeatCount="indefinite"></animate>
|
|
746
|
+
<animate attributeName="height" values="12.775423096277255;27;12.775423096277255" dur="2.3171665982951763s"
|
|
747
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
748
|
+
repeatCount="indefinite"></animate>
|
|
749
|
+
</rect>
|
|
750
|
+
<rect fill="${this.data.decorator.mainColor}" x="223.32926829268294" y="10" width="7" height="15">
|
|
751
|
+
<animate attributeName="y" values="15.123181886550437;10;15.123181886550437" dur="2.4536445934424487s"
|
|
752
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
753
|
+
repeatCount="indefinite"></animate>
|
|
754
|
+
<animate attributeName="height" values="4.753636226899127;15;4.753636226899127" dur="2.4536445934424487s"
|
|
755
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
756
|
+
repeatCount="indefinite"></animate>
|
|
757
|
+
</rect>
|
|
758
|
+
<rect fill="${this.data.decorator.secondColor}" x="230.64634146341464" y="11" width="7" height="13">
|
|
759
|
+
<animate attributeName="y" values="11.153864165479337;11;11.153864165479337" dur="2.026570396437095s"
|
|
760
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
761
|
+
repeatCount="indefinite"></animate>
|
|
762
|
+
<animate attributeName="height" values="12.692271669041324;13;12.692271669041324" dur="2.026570396437095s"
|
|
763
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
764
|
+
repeatCount="indefinite"></animate>
|
|
765
|
+
</rect>
|
|
766
|
+
<rect fill="${this.data.decorator.mainColor}" x="237.96341463414635" y="9.5" width="7" height="16">
|
|
767
|
+
<animate attributeName="y" values="10.205849402676597;9.5;10.205849402676597" dur="1.9311692847667918s"
|
|
768
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
769
|
+
repeatCount="indefinite"></animate>
|
|
770
|
+
<animate attributeName="height" values="14.588301194646807;16;14.588301194646807" dur="1.9311692847667918s"
|
|
771
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
772
|
+
repeatCount="indefinite"></animate>
|
|
773
|
+
</rect>
|
|
774
|
+
<rect fill="${this.data.decorator.secondColor}" x="245.28048780487805" y="10.5" width="7" height="14">
|
|
775
|
+
<animate attributeName="y" values="16.180877579111698;10.5;16.180877579111698" dur="1.9705155570401023s"
|
|
776
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
777
|
+
repeatCount="indefinite"></animate>
|
|
778
|
+
<animate attributeName="height" values="2.6382448417766033;14;2.6382448417766033" dur="1.9705155570401023s"
|
|
779
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
780
|
+
repeatCount="indefinite"></animate>
|
|
781
|
+
</rect>
|
|
782
|
+
<rect fill="${this.data.decorator.secondColor}" x="252.59756097560978" y="11" width="7" height="13">
|
|
783
|
+
<animate attributeName="y" values="14.803937070734275;11;14.803937070734275" dur="1.536264553364164s"
|
|
784
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
785
|
+
repeatCount="indefinite"></animate>
|
|
786
|
+
<animate attributeName="height" values="5.39212585853145;13;5.39212585853145" dur="1.536264553364164s"
|
|
787
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
788
|
+
repeatCount="indefinite"></animate>
|
|
789
|
+
</rect>
|
|
790
|
+
<rect fill="${this.data.decorator.secondColor}" x="259.9146341463415" y="12" width="7" height="11">
|
|
791
|
+
<animate attributeName="y" values="12.862610930654657;12;12.862610930654657" dur="2.1036543751583303s"
|
|
792
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
793
|
+
repeatCount="indefinite"></animate>
|
|
794
|
+
<animate attributeName="height" values="9.274778138690683;11;9.274778138690683" dur="2.1036543751583303s"
|
|
795
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
796
|
+
repeatCount="indefinite"></animate>
|
|
797
|
+
</rect>
|
|
798
|
+
<rect fill="${this.data.decorator.secondColor}" x="267.2317073170732" y="11.5" width="7" height="12">
|
|
799
|
+
<animate attributeName="y" values="14.215797285058805;11.5;14.215797285058805" dur="1.7326305696266322s"
|
|
800
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
801
|
+
repeatCount="indefinite"></animate>
|
|
802
|
+
<animate attributeName="height" values="6.568405429882388;12;6.568405429882388" dur="1.7326305696266322s"
|
|
803
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
804
|
+
repeatCount="indefinite"></animate>
|
|
805
|
+
</rect>
|
|
806
|
+
<rect fill="${this.data.decorator.mainColor}" x="274.5487804878049" y="13" width="7" height="9">
|
|
807
|
+
<animate attributeName="y" values="15.080354180507161;13;15.080354180507161" dur="2.033946295131261s"
|
|
808
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
809
|
+
repeatCount="indefinite"></animate>
|
|
810
|
+
<animate attributeName="height" values="4.839291638985678;9;4.839291638985678" dur="2.033946295131261s"
|
|
811
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
812
|
+
repeatCount="indefinite"></animate>
|
|
813
|
+
</rect>
|
|
814
|
+
<rect fill="${this.data.decorator.secondColor}" x="281.8658536585366" y="11.5" width="7" height="12">
|
|
815
|
+
<animate attributeName="y" values="15.599631345992517;11.5;15.599631345992517" dur="2.3347658396495947s"
|
|
816
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
817
|
+
repeatCount="indefinite"></animate>
|
|
818
|
+
<animate attributeName="height" values="3.800737308014967;12;3.800737308014967" dur="2.3347658396495947s"
|
|
819
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
820
|
+
repeatCount="indefinite"></animate>
|
|
821
|
+
</rect>
|
|
822
|
+
<rect fill="${this.data.decorator.mainColor}" x="289.1829268292683" y="9" width="7" height="17">
|
|
823
|
+
<animate attributeName="y" values="9.44779313792679;9;9.44779313792679" dur="1.907553220791245s"
|
|
824
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
825
|
+
repeatCount="indefinite"></animate>
|
|
826
|
+
<animate attributeName="height" values="16.10441372414642;17;16.10441372414642" dur="1.907553220791245s"
|
|
827
|
+
keyTimes="0;0.5;1" calcMode="spline" keySplines="0.42,0,0.58,1;0.42,0,0.58,1" begin="0s"
|
|
828
|
+
repeatCount="indefinite"></animate>
|
|
829
|
+
</rect>
|
|
830
|
+
</svg>
|
|
831
|
+
`;
|
|
832
|
+
this.svgTemplate = template;
|
|
833
|
+
}
|
|
834
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent8, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
835
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent8, isStandalone: true, selector: "decorator8", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
836
|
+
}
|
|
837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent8, decorators: [{
|
|
838
|
+
type: Component,
|
|
839
|
+
args: [{ selector: 'decorator8', imports: [
|
|
840
|
+
CommonModule,
|
|
841
|
+
FormsModule, ReactiveFormsModule,
|
|
842
|
+
GramPipeModule
|
|
843
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
844
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
845
|
+
|
|
846
|
+
class DecoratorComponent9 extends BasicService {
|
|
847
|
+
globalSrv;
|
|
848
|
+
width = 350;
|
|
849
|
+
height = 50;
|
|
850
|
+
svgTemplate = ``;
|
|
851
|
+
points1 = "";
|
|
852
|
+
points2 = "";
|
|
853
|
+
points3 = "";
|
|
854
|
+
constructor(globalSrv) {
|
|
855
|
+
super(globalSrv);
|
|
856
|
+
this.globalSrv = globalSrv;
|
|
857
|
+
}
|
|
858
|
+
ngOnInit() {
|
|
859
|
+
}
|
|
860
|
+
initPageData(value) {
|
|
861
|
+
const centerX = this.data.width / this.width;
|
|
862
|
+
this.points1 = `0, 0 30, ${24.5 * centerX}`;
|
|
863
|
+
this.points2 = `20, 0 50, ${24.5 * centerX} ${this.data.width}, ${24.5 * centerX}`;
|
|
864
|
+
this.points3 = `0, ${this.data.height - 3}, 200, ${this.data.height - 3}`;
|
|
865
|
+
this.initDecorator();
|
|
866
|
+
}
|
|
867
|
+
initDecorator() {
|
|
868
|
+
let template = `
|
|
869
|
+
<svg width="${this.data.width}" height="${this.data.height}">
|
|
870
|
+
<polyline stroke-width="2" fill="transparent" points="${this.points1}" stroke="${this.data.decorator.mainColor}"></polyline>
|
|
871
|
+
<polyline stroke-width="2" fill="transparent" points="${this.points2}" stroke="${this.data.decorator.mainColor}"></polyline>
|
|
872
|
+
<polyline fill="transparent" stroke-width="3" points="${this.points3}" stroke="${this.data.decorator.secondColor}"></polyline>
|
|
873
|
+
</svg>
|
|
874
|
+
`;
|
|
875
|
+
this.svgTemplate = template;
|
|
876
|
+
}
|
|
877
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent9, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
878
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent9, isStandalone: true, selector: "decorator9", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
879
|
+
}
|
|
880
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent9, decorators: [{
|
|
881
|
+
type: Component,
|
|
882
|
+
args: [{ selector: 'decorator9', imports: [
|
|
883
|
+
CommonModule,
|
|
884
|
+
FormsModule, ReactiveFormsModule,
|
|
885
|
+
GramPipeModule
|
|
886
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
887
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
888
|
+
|
|
889
|
+
class DecoratorComponent10 extends BasicService {
|
|
890
|
+
globalSrv;
|
|
891
|
+
width = 350;
|
|
892
|
+
height = 50;
|
|
893
|
+
points1 = "";
|
|
894
|
+
points2 = "";
|
|
895
|
+
points3 = "";
|
|
896
|
+
svgTemplate = ``;
|
|
897
|
+
constructor(globalSrv) {
|
|
898
|
+
super(globalSrv);
|
|
899
|
+
this.globalSrv = globalSrv;
|
|
900
|
+
}
|
|
901
|
+
ngOnInit() {
|
|
902
|
+
}
|
|
903
|
+
initPageData(value) {
|
|
904
|
+
const centerX = this.data.width / this.width;
|
|
905
|
+
this.points1 = `${this.data.width}, 0 ${this.data.width - 30}, ${centerX * 24.5}`;
|
|
906
|
+
this.points2 = `${this.data.width - 20}, 0 ${this.data.width - 50}, ${centerX * 24.5} 0, ${centerX * 24.5}`;
|
|
907
|
+
this.points3 = `${this.data.width}, ${this.data.height * 0.97}, ${this.data.width - 200}, ${this.data.height * 0.97}`;
|
|
908
|
+
this.initDecorator();
|
|
909
|
+
}
|
|
910
|
+
initDecorator() {
|
|
911
|
+
let template = `
|
|
912
|
+
<svg width="${this.data.width}" height="${this.data.height}">
|
|
913
|
+
<polyline stroke-width="2" fill="transparent" points="${this.points1}" stroke="${this.data.decorator.mainColor}"></polyline>
|
|
914
|
+
<polyline stroke-width="2" fill="transparent" points="${this.points2}" stroke="${this.data.decorator.mainColor}"></polyline>
|
|
915
|
+
<polyline fill="transparent" stroke-width="3" points="${this.points3}" stroke="${this.data.decorator.secondColor}"></polyline>
|
|
916
|
+
</svg>
|
|
917
|
+
`;
|
|
918
|
+
this.svgTemplate = template;
|
|
919
|
+
}
|
|
920
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent10, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
921
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent10, isStandalone: true, selector: "decorator10", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
922
|
+
}
|
|
923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent10, decorators: [{
|
|
924
|
+
type: Component,
|
|
925
|
+
args: [{ selector: 'decorator10', imports: [
|
|
926
|
+
CommonModule,
|
|
927
|
+
FormsModule, ReactiveFormsModule,
|
|
928
|
+
GramPipeModule
|
|
929
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
930
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
931
|
+
|
|
932
|
+
class DecoratorComponent11 extends BasicService {
|
|
933
|
+
globalSrv;
|
|
934
|
+
width = 100;
|
|
935
|
+
height = 100;
|
|
936
|
+
svgTemplate = ``;
|
|
937
|
+
constructor(globalSrv) {
|
|
938
|
+
super(globalSrv);
|
|
939
|
+
this.globalSrv = globalSrv;
|
|
940
|
+
}
|
|
941
|
+
ngOnInit() {
|
|
942
|
+
}
|
|
943
|
+
initDecorator() {
|
|
944
|
+
let template = `
|
|
945
|
+
<svg width="100px" height="100px" style="transform: ${this.transform};">
|
|
946
|
+
<defs>
|
|
947
|
+
<polygon id="decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3"
|
|
948
|
+
points="15, 46.5, 21, 47.5, 21, 52.5, 15, 53.5"></polygon>
|
|
949
|
+
</defs>
|
|
950
|
+
<circle cx="50" cy="50" r="45" fill="transparent" stroke-width="10" stroke-dasharray="80, 100, 30, 100"
|
|
951
|
+
stroke="${this.data.decorator.secondColor}">
|
|
952
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}"
|
|
953
|
+
repeatCount="indefinite"></animateTransform>
|
|
954
|
+
</circle>
|
|
955
|
+
<circle cx="50" cy="50" r="45" fill="transparent" stroke-width="6" stroke-dasharray="50, 66, 100, 66"
|
|
956
|
+
stroke="${this.data.decorator.mainColor}">
|
|
957
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;-360 50 50" dur="${this.data.decorator.dur}"
|
|
958
|
+
repeatCount="indefinite"></animateTransform>
|
|
959
|
+
</circle>
|
|
960
|
+
<circle cx="50" cy="50" r="38" fill="transparent" stroke="rgba(3,166,224,0.3)" stroke-width="1"
|
|
961
|
+
stroke-dasharray="5, 1"></circle>
|
|
962
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="${this.data.decorator.mainColor}"
|
|
963
|
+
stroke="${this.data.decorator.secondColor}">
|
|
964
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0s"
|
|
965
|
+
repeatCount="indefinite"></animateTransform>
|
|
966
|
+
</use>
|
|
967
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="${this.data.decorator.mainColor}"
|
|
968
|
+
stroke="${this.data.decorator.secondColor}">
|
|
969
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0.15s"
|
|
970
|
+
repeatCount="indefinite"></animateTransform>
|
|
971
|
+
</use>
|
|
972
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="${this.data.decorator.mainColor}"
|
|
973
|
+
stroke="${this.data.decorator.secondColor}">
|
|
974
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0.${this.data.decorator.dur}"
|
|
975
|
+
repeatCount="indefinite"></animateTransform>
|
|
976
|
+
</use>
|
|
977
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
978
|
+
fill="transparent">
|
|
979
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0.45s"
|
|
980
|
+
repeatCount="indefinite"></animateTransform>
|
|
981
|
+
</use>
|
|
982
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
983
|
+
stroke="${this.data.decorator.secondColor}">
|
|
984
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0.6s"
|
|
985
|
+
repeatCount="indefinite"></animateTransform>
|
|
986
|
+
</use>
|
|
987
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
988
|
+
stroke="${this.data.decorator.secondColor}">
|
|
989
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0.75s"
|
|
990
|
+
repeatCount="indefinite"></animateTransform>
|
|
991
|
+
</use>
|
|
992
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
993
|
+
fill="transparent">
|
|
994
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="0.9s"
|
|
995
|
+
repeatCount="indefinite"></animateTransform>
|
|
996
|
+
</use>
|
|
997
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
998
|
+
stroke="${this.data.decorator.secondColor}">
|
|
999
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.05s"
|
|
1000
|
+
repeatCount="indefinite"></animateTransform>
|
|
1001
|
+
</use>
|
|
1002
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
1003
|
+
fill="transparent">
|
|
1004
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.2s"
|
|
1005
|
+
repeatCount="indefinite"></animateTransform>
|
|
1006
|
+
</use>
|
|
1007
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
1008
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1009
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.35s"
|
|
1010
|
+
repeatCount="indefinite"></animateTransform>
|
|
1011
|
+
</use>
|
|
1012
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
1013
|
+
fill="transparent">
|
|
1014
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.5s"
|
|
1015
|
+
repeatCount="indefinite"></animateTransform>
|
|
1016
|
+
</use>
|
|
1017
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="${this.data.decorator.mainColor}"
|
|
1018
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1019
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.65s"
|
|
1020
|
+
repeatCount="indefinite"></animateTransform>
|
|
1021
|
+
</use>
|
|
1022
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
1023
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1024
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.8s"
|
|
1025
|
+
repeatCount="indefinite"></animateTransform>
|
|
1026
|
+
</use>
|
|
1027
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
1028
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1029
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="1.95s"
|
|
1030
|
+
repeatCount="indefinite"></animateTransform>
|
|
1031
|
+
</use>
|
|
1032
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
1033
|
+
fill="transparent">
|
|
1034
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="2.1s"
|
|
1035
|
+
repeatCount="indefinite"></animateTransform>
|
|
1036
|
+
</use>
|
|
1037
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="transparent"
|
|
1038
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1039
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="2.25s"
|
|
1040
|
+
repeatCount="indefinite"></animateTransform>
|
|
1041
|
+
</use>
|
|
1042
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
1043
|
+
fill="${this.data.decorator.mainColor}">
|
|
1044
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="2.4s"
|
|
1045
|
+
repeatCount="indefinite"></animateTransform>
|
|
1046
|
+
</use>
|
|
1047
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" stroke="${this.data.decorator.secondColor}"
|
|
1048
|
+
fill="${this.data.decorator.mainColor}">
|
|
1049
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="2.55s"
|
|
1050
|
+
repeatCount="indefinite"></animateTransform>
|
|
1051
|
+
</use>
|
|
1052
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="${this.data.decorator.mainColor}"
|
|
1053
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1054
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="2.7s"
|
|
1055
|
+
repeatCount="indefinite"></animateTransform>
|
|
1056
|
+
</use>
|
|
1057
|
+
<use xlink:href="#decoration-9-polygon-8276782a24494d2fb35734d912a2c8b3" fill="${this.data.decorator.mainColor}"
|
|
1058
|
+
stroke="${this.data.decorator.secondColor}">
|
|
1059
|
+
<animateTransform attributeName="transform" type="rotate" values="0 50 50;360 50 50" dur="${this.data.decorator.dur}" begin="2.85s"
|
|
1060
|
+
repeatCount="indefinite"></animateTransform>
|
|
1061
|
+
</use>
|
|
1062
|
+
<circle cx="50" cy="50" r="26" fill="transparent" stroke="rgba(3,166,224,0.3)" stroke-width="1"
|
|
1063
|
+
stroke-dasharray="5, 1"></circle>
|
|
1064
|
+
</svg>
|
|
1065
|
+
`;
|
|
1066
|
+
this.svgTemplate = template;
|
|
1067
|
+
}
|
|
1068
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent11, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1069
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent11, isStandalone: true, selector: "decorator11", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
1070
|
+
}
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent11, decorators: [{
|
|
1072
|
+
type: Component,
|
|
1073
|
+
args: [{ selector: 'decorator11', imports: [
|
|
1074
|
+
CommonModule,
|
|
1075
|
+
FormsModule, ReactiveFormsModule,
|
|
1076
|
+
GramPipeModule
|
|
1077
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
1078
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
1079
|
+
|
|
1080
|
+
class DecoratorComponent12 extends BasicService {
|
|
1081
|
+
globalSrv;
|
|
1082
|
+
width = 350;
|
|
1083
|
+
height = 50;
|
|
1084
|
+
svgTemplate = ``;
|
|
1085
|
+
constructor(globalSrv) {
|
|
1086
|
+
super(globalSrv);
|
|
1087
|
+
this.globalSrv = globalSrv;
|
|
1088
|
+
}
|
|
1089
|
+
ngOnInit() {
|
|
1090
|
+
}
|
|
1091
|
+
initDecorator() {
|
|
1092
|
+
let id1 = Guid.createId();
|
|
1093
|
+
let id2 = Guid.createId();
|
|
1094
|
+
let id3 = Guid.createId();
|
|
1095
|
+
let id4 = Guid.createId();
|
|
1096
|
+
let id5 = Guid.createId();
|
|
1097
|
+
let id6 = Guid.createId();
|
|
1098
|
+
let id7 = Guid.createId();
|
|
1099
|
+
let template = `
|
|
1100
|
+
<svg width="${this.data.width}" height="${this.data.height}" style="transform: ${this.transform}">
|
|
1101
|
+
<polyline stroke-width="2" points="0, 24.5 349, 24.5" stroke="${this.data.decorator.secondColor}"></polyline>
|
|
1102
|
+
<polyline stroke-width="2" points="5, 24.5 66.8, 24.5" stroke-dasharray="0, 69.8" fill="freeze"
|
|
1103
|
+
stroke="${this.data.decorator.mainColor}">
|
|
1104
|
+
<animate id="${id1}" attributeName="stroke-dasharray"
|
|
1105
|
+
values="0, 69.8;69.8, 0;" dur="3s" begin="${id3}.end" fill="freeze">
|
|
1106
|
+
</animate>
|
|
1107
|
+
<animate attributeName="stroke-dasharray" values="69.8, 0;0, 69.8" dur="0.01s"
|
|
1108
|
+
begin="${id2}.end" fill="freeze"></animate>
|
|
1109
|
+
</polyline>
|
|
1110
|
+
<polyline stroke-width="2" points="72.8, 24.5 276.2, 24.5" stroke-dasharray="0, 209.4" stroke="${this.data.decorator.mainColor}">
|
|
1111
|
+
<animate id="${id4}" attributeName="stroke-dasharray"
|
|
1112
|
+
values="0, 209.4;209.4, 0" dur="3s" begin="${id5}.end + 1s"
|
|
1113
|
+
fill="freeze"></animate>
|
|
1114
|
+
<animate attributeName="stroke-dasharray" values="209.4, 0;0, 209.4" dur="0.01s"
|
|
1115
|
+
begin="${id2}.end" fill="freeze"></animate>
|
|
1116
|
+
</polyline>
|
|
1117
|
+
<polyline stroke-width="2" points="282.2, 24.5 344, 24.5" stroke-dasharray="0, 69.8" stroke="${this.data.decorator.mainColor}">
|
|
1118
|
+
<animate id="${id6}" attributeName="stroke-dasharray"
|
|
1119
|
+
values="0, 69.8;69.8, 0" dur="3s" begin="${id7}.end + 1s"
|
|
1120
|
+
fill="freeze"></animate>
|
|
1121
|
+
<animate attributeName="stroke-dasharray" values="69.8, 0;0, 104.7" dur="0.01s"
|
|
1122
|
+
begin="${id2}.end" fill="freeze"></animate>
|
|
1123
|
+
</polyline>
|
|
1124
|
+
<circle cx="2" cy="24.5" r="2" fill="${this.data.decorator.secondColor}">
|
|
1125
|
+
<animate id="${id3}" attributeName="fill"
|
|
1126
|
+
values="${this.data.decorator.secondColor};${this.data.decorator.mainColor}" begin="0s;${id2}.end"
|
|
1127
|
+
dur="0.3s" fill="freeze"></animate>
|
|
1128
|
+
</circle>
|
|
1129
|
+
<circle cx="69.8" cy="24.5" r="2" fill="${this.data.decorator.secondColor}">
|
|
1130
|
+
<animate id="${id5}" attributeName="fill"
|
|
1131
|
+
values="${this.data.decorator.secondColor};${this.data.decorator.mainColor}" begin="${id1}.end" dur="0.3s"
|
|
1132
|
+
fill="freeze"></animate>
|
|
1133
|
+
<animate attributeName="fill" values="${this.data.decorator.secondColor};${this.data.decorator.secondColor}" dur="0.01s"
|
|
1134
|
+
begin="${id2}.end" fill="freeze"></animate>
|
|
1135
|
+
</circle>
|
|
1136
|
+
<circle cx="279.2" cy="24.5" r="2" fill="${this.data.decorator.secondColor}">
|
|
1137
|
+
<animate id="${id7}" attributeName="fill"
|
|
1138
|
+
values="${this.data.decorator.secondColor};${this.data.decorator.mainColor}" begin="${id4}.end" dur="0.3s"
|
|
1139
|
+
fill="freeze"></animate>
|
|
1140
|
+
<animate attributeName="fill" values="${this.data.decorator.secondColor};${this.data.decorator.secondColor}" dur="0.01s"
|
|
1141
|
+
begin="${id2}.end" fill="freeze"></animate>
|
|
1142
|
+
</circle>
|
|
1143
|
+
<circle cx="347" cy="24.5" r="2" fill="${this.data.decorator.secondColor}">
|
|
1144
|
+
<animate id="${id2}" attributeName="fill"
|
|
1145
|
+
values="${this.data.decorator.secondColor};${this.data.decorator.mainColor}" begin="${id6}.end" dur="0.3s"
|
|
1146
|
+
fill="freeze"></animate>
|
|
1147
|
+
<animate attributeName="fill" values="${this.data.decorator.secondColor};${this.data.decorator.secondColor}" dur="0.01s"
|
|
1148
|
+
begin="${id2}.end" fill="freeze"></animate>
|
|
1149
|
+
</circle>
|
|
1150
|
+
</svg>
|
|
1151
|
+
`;
|
|
1152
|
+
this.svgTemplate = template;
|
|
1153
|
+
}
|
|
1154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent12, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1155
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent12, isStandalone: true, selector: "decorator12", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
1156
|
+
}
|
|
1157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent12, decorators: [{
|
|
1158
|
+
type: Component,
|
|
1159
|
+
args: [{ selector: 'decorator12', imports: [
|
|
1160
|
+
CommonModule,
|
|
1161
|
+
FormsModule, ReactiveFormsModule,
|
|
1162
|
+
GramPipeModule
|
|
1163
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
1164
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
1165
|
+
|
|
1166
|
+
class DecoratorComponent13 extends BasicService {
|
|
1167
|
+
globalSrv;
|
|
1168
|
+
width = 349;
|
|
1169
|
+
height = 49;
|
|
1170
|
+
svgTemplate = ``;
|
|
1171
|
+
points1 = "20 39, 25 45, 55 45 60 39";
|
|
1172
|
+
points2 = "329 10, 324 4, 294 4 289 10";
|
|
1173
|
+
points3 = "329 39, 324 45, 294 45 289 39";
|
|
1174
|
+
points4 = `
|
|
1175
|
+
20 10, 5 24.5 20 39
|
|
1176
|
+
329 39 344 24.5 329 10
|
|
1177
|
+
`;
|
|
1178
|
+
points5 = "25 18, 15 24.5 25 31";
|
|
1179
|
+
points6 = "324 18, 334 24.5 324 31";
|
|
1180
|
+
constructor(globalSrv) {
|
|
1181
|
+
super(globalSrv);
|
|
1182
|
+
this.globalSrv = globalSrv;
|
|
1183
|
+
}
|
|
1184
|
+
ngOnInit() {
|
|
1185
|
+
}
|
|
1186
|
+
initPageData(value) {
|
|
1187
|
+
this.points1 = `20 ${this.data.height - 10}, 25 ${this.data.height - 4}, 55 ${this.data.height - 4} 60 ${this.data.height - 10}`;
|
|
1188
|
+
this.points2 = `${this.data.width - 20} 10, ${this.data.width - 25} 4, ${this.data.width - 55} 4 ${this.data.width - 60} 10`;
|
|
1189
|
+
this.points3 = `${this.data.width - 20} ${this.data.height - 10}, ${this.data.width - 25} ${this.data.height - 4}, ${this.data.width - 55} ${this.data.height - 4} ${this.data.width - 60} ${this.data.height - 10}`;
|
|
1190
|
+
this.points4 = `
|
|
1191
|
+
20 10, 5 ${this.data.height / 2} 20 ${this.data.height - 10}
|
|
1192
|
+
${this.data.width - 20} ${this.data.height - 10} ${this.data.width - 5} ${this.data.height / 2} ${this.data.width - 20} 10
|
|
1193
|
+
`;
|
|
1194
|
+
this.points5 = `25 18, 15 ${this.data.height / 2} 25 ${this.data.height - 18}`;
|
|
1195
|
+
this.points6 = `${this.data.width - 25} 18, ${this.data.width - 15} ${this.data.height / 2} ${this.data.width - 25} ${this.data.height - 18}`;
|
|
1196
|
+
this.initDecorator();
|
|
1197
|
+
}
|
|
1198
|
+
initDecorator() {
|
|
1199
|
+
let template = `
|
|
1200
|
+
<svg width="${this.data.width}" height="${this.data.height}">
|
|
1201
|
+
<polygon fill="rgba(44,247,254,0.1)" points="20 10, 25 4, 55 4 60 10" stroke="${this.data.decorator.secondColor}"></polygon>
|
|
1202
|
+
<polygon fill="rgba(44,247,254,0.1)" points="${this.points1}" stroke="${this.data.decorator.secondColor}"></polygon>
|
|
1203
|
+
<polygon fill="rgba(44,247,254,0.1)" points="${this.points2}" stroke="${this.data.decorator.secondColor}"></polygon>
|
|
1204
|
+
<polygon fill="rgba(44,247,254,0.1)" points="${this.points3}" stroke="${this.data.decorator.secondColor}"></polygon>
|
|
1205
|
+
|
|
1206
|
+
<polygon fill="rgba(26,152,252,0.2)" points="${this.points4}" stroke="${this.data.decorator.mainColor}"></polygon>
|
|
1207
|
+
|
|
1208
|
+
<polyline fill="transparent" stroke="${this.data.decorator.mainColor}" points="${this.points5}"></polyline>
|
|
1209
|
+
<polyline fill="transparent" stroke="${this.data.decorator.mainColor}" points="${this.points6}"></polyline>
|
|
1210
|
+
</svg>
|
|
1211
|
+
`;
|
|
1212
|
+
this.svgTemplate = template;
|
|
1213
|
+
}
|
|
1214
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent13, deps: [{ token: i1.GramGlobalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1215
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DecoratorComponent13, isStandalone: true, selector: "decorator13", providers: [], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }] });
|
|
1216
|
+
}
|
|
1217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DecoratorComponent13, decorators: [{
|
|
1218
|
+
type: Component,
|
|
1219
|
+
args: [{ selector: 'decorator13', imports: [
|
|
1220
|
+
CommonModule,
|
|
1221
|
+
FormsModule, ReactiveFormsModule,
|
|
1222
|
+
GramPipeModule
|
|
1223
|
+
], providers: [], template: "<ng-container *ngIf=\"data!!\">\r\n <div [innerHTML]=\"svgTemplate | safeHtml\"></div>\r\n</ng-container>" }]
|
|
1224
|
+
}], ctorParameters: () => [{ type: i1.GramGlobalService }] });
|
|
1225
|
+
|
|
1226
|
+
const dynamicComponents = {
|
|
1227
|
+
decorator1: DecoratorComponent1,
|
|
1228
|
+
decorator2: DecoratorComponent2,
|
|
1229
|
+
decorator3: DecoratorComponent3,
|
|
1230
|
+
decorator4: DecoratorComponent4,
|
|
1231
|
+
decorator5: DecoratorComponent5,
|
|
1232
|
+
decorator6: DecoratorComponent6,
|
|
1233
|
+
decorator7: DecoratorComponent7,
|
|
1234
|
+
decorator8: DecoratorComponent8,
|
|
1235
|
+
decorator9: DecoratorComponent9,
|
|
1236
|
+
decorator10: DecoratorComponent10,
|
|
1237
|
+
decorator11: DecoratorComponent11,
|
|
1238
|
+
decorator12: DecoratorComponent12,
|
|
1239
|
+
decorator13: DecoratorComponent13
|
|
1240
|
+
};
|
|
1241
|
+
class GramBiDecoratorComponent {
|
|
1242
|
+
componentFactoryResolver;
|
|
1243
|
+
_data = null;
|
|
1244
|
+
type = null;
|
|
1245
|
+
component;
|
|
1246
|
+
set data(value) {
|
|
1247
|
+
this._data = value;
|
|
1248
|
+
this.renderComponent();
|
|
1249
|
+
}
|
|
1250
|
+
get data() {
|
|
1251
|
+
return this._data;
|
|
1252
|
+
}
|
|
1253
|
+
set rd(value) {
|
|
1254
|
+
if (this.component) {
|
|
1255
|
+
this.component.instance['rd'] = value;
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
/**
|
|
1259
|
+
* 动态子组件
|
|
1260
|
+
*/
|
|
1261
|
+
componentHost;
|
|
1262
|
+
ngOnInit() { }
|
|
1263
|
+
constructor(componentFactoryResolver) {
|
|
1264
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
1265
|
+
}
|
|
1266
|
+
renderComponent() {
|
|
1267
|
+
if (this.data.secondType) {
|
|
1268
|
+
this.type = this.data.secondType;
|
|
1269
|
+
}
|
|
1270
|
+
if (this.type) {
|
|
1271
|
+
if (this.componentHost) {
|
|
1272
|
+
this.componentHost.clear();
|
|
1273
|
+
const compFactory = this.componentFactoryResolver.resolveComponentFactory(dynamicComponents[this.type]);
|
|
1274
|
+
this.component = this.componentHost.createComponent(compFactory);
|
|
1275
|
+
this.component.instance['data'] = this.data;
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}
|
|
1279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramBiDecoratorComponent, deps: [{ token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
|
|
1280
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramBiDecoratorComponent, isStandalone: true, selector: "gram-bi-decorator", inputs: { data: "data", rd: "rd" }, viewQueries: [{ propertyName: "componentHost", first: true, predicate: ["componentHost"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container #componentHost></ng-container>", styles: [":host ::ng-deep{width:100%;height:100%;display:inline-block}:host ::ng-deep svg{transform-origin:left top}\n"] });
|
|
1281
|
+
}
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramBiDecoratorComponent, decorators: [{
|
|
1283
|
+
type: Component,
|
|
1284
|
+
args: [{ selector: 'gram-bi-decorator', template: "<ng-container #componentHost></ng-container>", styles: [":host ::ng-deep{width:100%;height:100%;display:inline-block}:host ::ng-deep svg{transform-origin:left top}\n"] }]
|
|
1285
|
+
}], ctorParameters: () => [{ type: i0.ComponentFactoryResolver }], propDecorators: { data: [{
|
|
1286
|
+
type: Input
|
|
1287
|
+
}], rd: [{
|
|
1288
|
+
type: Input
|
|
1289
|
+
}], componentHost: [{
|
|
1290
|
+
type: ViewChild,
|
|
1291
|
+
args: ['componentHost', { read: ViewContainerRef, static: true }]
|
|
1292
|
+
}] } });
|
|
1293
|
+
|
|
1294
|
+
const COMPONENTS = [GramBiDecoratorComponent];
|
|
1295
|
+
const COMPONENTS_NOROUNT = [
|
|
1296
|
+
DecoratorComponent1,
|
|
1297
|
+
DecoratorComponent2,
|
|
1298
|
+
DecoratorComponent3,
|
|
1299
|
+
DecoratorComponent4,
|
|
1300
|
+
DecoratorComponent5,
|
|
1301
|
+
DecoratorComponent6,
|
|
1302
|
+
DecoratorComponent7,
|
|
1303
|
+
DecoratorComponent8,
|
|
1304
|
+
DecoratorComponent9,
|
|
1305
|
+
DecoratorComponent10,
|
|
1306
|
+
DecoratorComponent11,
|
|
1307
|
+
DecoratorComponent12,
|
|
1308
|
+
DecoratorComponent13
|
|
1309
|
+
];
|
|
1310
|
+
class GramBiDecoratorModule {
|
|
1311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramBiDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1312
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramBiDecoratorModule, imports: [GramBiDecoratorComponent, DecoratorComponent1,
|
|
1313
|
+
DecoratorComponent2,
|
|
1314
|
+
DecoratorComponent3,
|
|
1315
|
+
DecoratorComponent4,
|
|
1316
|
+
DecoratorComponent5,
|
|
1317
|
+
DecoratorComponent6,
|
|
1318
|
+
DecoratorComponent7,
|
|
1319
|
+
DecoratorComponent8,
|
|
1320
|
+
DecoratorComponent9,
|
|
1321
|
+
DecoratorComponent10,
|
|
1322
|
+
DecoratorComponent11,
|
|
1323
|
+
DecoratorComponent12,
|
|
1324
|
+
DecoratorComponent13], exports: [GramBiDecoratorComponent] });
|
|
1325
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramBiDecoratorModule, imports: [COMPONENTS_NOROUNT] });
|
|
1326
|
+
}
|
|
1327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramBiDecoratorModule, decorators: [{
|
|
1328
|
+
type: NgModule,
|
|
1329
|
+
args: [{
|
|
1330
|
+
imports: [...COMPONENTS, ...COMPONENTS_NOROUNT],
|
|
1331
|
+
exports: [...COMPONENTS],
|
|
1332
|
+
}]
|
|
1333
|
+
}] });
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Generated bundle index. Do not edit.
|
|
1337
|
+
*/
|
|
1338
|
+
|
|
1339
|
+
export { GramBiDecoratorComponent, GramBiDecoratorModule };
|
|
1340
|
+
//# sourceMappingURL=bi.decorator.mjs.map
|