-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
232 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ quote_type = single | |
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false | ||
|
||
[*.scss] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,4 @@ testem.log | |
# System files | ||
.DS_Store | ||
Thumbs.db | ||
.nx/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.19.1 | ||
v20.14.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 25 additions & 25 deletions
50
projects/demo-showcase/src/app/page-structure-viewer/sections/section-chains.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
@if (chains$ | async; as chains) { | ||
<!-- Section: color chains --> | ||
<div class="row mb-3"> | ||
<!-- Example --> | ||
<div class="col-9"> | ||
<div class="rounded squared overflow-hidden shadow-sm"> | ||
<!-- Viewer instance --> | ||
<ngx-structure-viewer [settings]="settings" [source]="source" [loci]="chains"></ngx-structure-viewer> | ||
</div> | ||
<!-- Section: color chains --> | ||
<div class="row mb-3"> | ||
<!-- Example --> | ||
<div class="col-9"> | ||
<div class="rounded squared overflow-hidden shadow-sm"> | ||
<!-- Viewer instance --> | ||
<ngx-structure-viewer [settings]="settings" [source]="source" [loci]="chains"></ngx-structure-viewer> | ||
</div> | ||
<!-- Description --> | ||
<div class="col-3 pt-0 p-3"> | ||
<h2>Color chain</h2> | ||
<div class="d-flex flex-column gap-2"> | ||
<!-- Loop through each chain --> | ||
@for (chain of chains; track $index) { | ||
<div class="flex-1"> | ||
<div class="d-flex flex-row gap-2"> | ||
<!-- Show color --> | ||
<div class="d-block flex-shrink-0 p-2" [style.background-color]="chain.color"> | ||
<!-- Empty div --> | ||
</div> | ||
<!-- Show input code --> | ||
<code class="bg-body-tertiary flex-grow-1 p-3"> | ||
<pre class="m-0">{{ chain | json }}</pre> | ||
</code> | ||
</div> | ||
<!-- Description --> | ||
<div class="col-3 pt-0 p-3"> | ||
<h2>Color chain</h2> | ||
<div class="d-flex flex-column gap-2"> | ||
<!-- Loop through each chain --> | ||
@for (chain of chains; track $index) { | ||
<div class="flex-1"> | ||
<div class="d-flex flex-row gap-2"> | ||
<!-- Show color --> | ||
<div class="d-block flex-shrink-0 p-2" [style.background-color]="chain.color"> | ||
<!-- Empty div --> | ||
</div> | ||
<!-- Show input code --> | ||
<code class="bg-body-tertiary flex-grow-1 p-3"> | ||
<pre class="m-0">{{ chain | json }}</pre> | ||
</code> | ||
</div> | ||
} | ||
</div> | ||
} | ||
</div> | ||
</div> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 15 additions & 5 deletions
20
projects/ngx-features-viewer/src/lib/ngx-features-viewer.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,22 @@ | ||
<div style="position: relative; display: block; width: 100%; height: 100%;" #root> | ||
<!-- Case inner label exists --> | ||
@if (label) { | ||
<!-- Case template for left label exists --> | ||
@if (labelLeft) { | ||
<!-- Loop through each trace, generate custom tooltip --> | ||
@for(kv of featuresService.traces | keyvalue; track $index) { | ||
<!-- Then, generate trace as specified in the given template --> | ||
<div [id]="'label-' + kv.key" tabindex=0 (click)="drawService.onLabelClick(kv.value)" (keyup)="drawService.onLabelClick(kv.value)"> | ||
<ng-container [ngTemplateOutlet]="label.templateRef" [ngTemplateOutletContext]="{ trace: kv.value }"></ng-container> | ||
<div [id]="'label-left-' + kv.key" tabindex=0 (click)="drawService.onLabelClick(kv.value)" (keyup)="drawService.onLabelClick(kv.value)"> | ||
<ng-container [ngTemplateOutlet]="labelLeft.templateRef" [ngTemplateOutletContext]="{ trace: kv.value }"></ng-container> | ||
</div> | ||
} | ||
} | ||
</div> | ||
<!-- Case template for right label exists --> | ||
@if(labelRight) { | ||
<!-- Loop through each trace, generate custom tooltip --> | ||
@for(kv of featuresService.traces | keyvalue; track $index) { | ||
<!-- Then, generate trace as specified in the given template --> | ||
<div [id]="'label-right-' + kv.key" tabindex=0> | ||
<ng-container [ngTemplateOutlet]="labelRight.templateRef" [ngTemplateOutletContext]="{ trace: kv.value }"></ng-container> | ||
</div> | ||
} | ||
} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.