|
410 | 410 | </div>
|
411 | 411 | </div>
|
412 | 412 | </div>
|
413 |
| - {#if $encoding === 'color'} |
414 |
| - {#if $signalType === 'direction'} |
415 |
| - <div class="trend-legend-grouping"> |
416 |
| - <ul class="legend-labels"> |
417 |
| - <li> |
418 |
| - <div class="color-block" style="background-color: {DIRECTION_THEME.increasing}" /> |
419 |
| - {@html DIRECTION_THEME.increasingIcon} |
420 |
| - Increasing |
421 |
| - </li> |
422 |
| - <li> |
423 |
| - <div class="color-block" style="background-color: {DIRECTION_THEME.steady}" /> |
424 |
| - {@html DIRECTION_THEME.steadyIcon} |
425 |
| - Steady |
426 |
| - </li> |
427 |
| - <li> |
428 |
| - <div class="color-block" style="background-color: {DIRECTION_THEME.decreasing}" /> |
429 |
| - {@html DIRECTION_THEME.decreasingIcon} |
430 |
| - Decreasing |
431 |
| - </li> |
432 |
| - </ul> |
433 |
| - </div> |
434 |
| - {:else if isCountSignal($currentSensor)} |
| 413 | + {#if $signalType === 'direction'} |
| 414 | + <div class="trend-legend-grouping"> |
| 415 | + <ul class="legend-labels"> |
| 416 | + <li> |
| 417 | + <div class="color-block" style="background-color: {DIRECTION_THEME.increasing}" /> |
| 418 | + {@html DIRECTION_THEME.increasingIcon} |
| 419 | + Increasing |
| 420 | + </li> |
| 421 | + <li> |
| 422 | + <div class="color-block" style="background-color: {DIRECTION_THEME.steady}" /> |
| 423 | + {@html DIRECTION_THEME.steadyIcon} |
| 424 | + Steady |
| 425 | + </li> |
| 426 | + <li> |
| 427 | + <div class="color-block" style="background-color: {DIRECTION_THEME.decreasing}" /> |
| 428 | + {@html DIRECTION_THEME.decreasingIcon} |
| 429 | + Decreasing |
| 430 | + </li> |
| 431 | + </ul> |
| 432 | + </div> |
| 433 | + {:else if $encoding === 'color'} |
| 434 | + {#if isCountSignal($currentSensor)} |
435 | 435 | <div class="legend-grouping">
|
436 | 436 | <ul class="legend-labels">
|
437 | 437 | {#each labels as [label1, label2]}
|
|
0 commit comments