|
3 | 3 | </div> |
4 | 4 | <svg [attr.width]="view.width" [attr.height]="ganttUpper.styles.headerHeight"> |
5 | 5 | <g> |
| 6 | + @for (point of view.secondaryDatePoints; track point.x) { |
| 7 | + @if (point.fill) { |
| 8 | + <rect |
| 9 | + [attr.x]="$index * view.cellWidth" |
| 10 | + y="0" |
| 11 | + [attr.width]="view.cellWidth" |
| 12 | + [attr.height]="ganttUpper.styles.headerHeight" |
| 13 | + [attr.fill]="point.fill" |
| 14 | + /> |
| 15 | + } |
| 16 | + <text |
| 17 | + class="secondary-text" |
| 18 | + [ngStyle]="point.style" |
| 19 | + [class.today]="point.additions?.isToday" |
| 20 | + [class.weekend]="point.additions?.isWeekend" |
| 21 | + [attr.x]="point.x" |
| 22 | + [attr.y]="point.y" |
| 23 | + > |
| 24 | + {{ point.text }} |
| 25 | + </text> |
| 26 | + } |
| 27 | + |
6 | 28 | @for (point of view.primaryDatePoints; track point.x) { |
7 | | - <text |
8 | | - class="primary-text" |
9 | | - [ngStyle]="point.style" |
10 | | - [class.today]="point.additions?.isToday" |
11 | | - [class.weekend]="point.additions?.isWeekend" |
12 | | - [attr.x]="point.x" |
13 | | - [attr.y]="point.y" |
14 | | - > |
15 | | - {{ point.text }} |
16 | | - </text> |
17 | | - } @for (point of view.secondaryDatePoints; track point.x) { |
18 | | - <text |
19 | | - class="secondary-text" |
20 | | - [ngStyle]="point.style" |
21 | | - [class.today]="point.additions?.isToday" |
22 | | - [class.weekend]="point.additions?.isWeekend" |
23 | | - [attr.x]="point.x" |
24 | | - [attr.y]="point.y" |
25 | | - > |
26 | | - {{ point.text }} |
27 | | - </text> |
| 29 | + <text |
| 30 | + class="primary-text" |
| 31 | + [ngStyle]="point.style" |
| 32 | + [class.today]="point.additions?.isToday" |
| 33 | + [class.weekend]="point.additions?.isWeekend" |
| 34 | + [attr.x]="point.x" |
| 35 | + [attr.y]="point.y" |
| 36 | + > |
| 37 | + {{ point.text }} |
| 38 | + </text> |
28 | 39 | } |
29 | 40 |
|
30 | 41 | <g> |
31 | 42 | @for (point of view.primaryDatePoints; track point.x) { |
32 | | - <line |
33 | | - [attr.x1]="($index + 1) * view.primaryWidth" |
34 | | - [attr.x2]="($index + 1) * view.primaryWidth" |
35 | | - [attr.y1]="0" |
36 | | - [attr.y2]="ganttUpper.styles.headerHeight" |
37 | | - class="primary-line" |
38 | | - ></line> |
| 43 | + <line |
| 44 | + [attr.x1]="($index + 1) * view.primaryWidth" |
| 45 | + [attr.x2]="($index + 1) * view.primaryWidth" |
| 46 | + [attr.y1]="0" |
| 47 | + [attr.y2]="ganttUpper.styles.headerHeight" |
| 48 | + class="primary-line" |
| 49 | + ></line> |
39 | 50 | } |
40 | 51 | </g> |
41 | 52 |
|
|
0 commit comments