-
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.
Move layer model from component to service
- Also made metrics object observable for async pipe
- Loading branch information
1 parent
9b290a2
commit efb5ff4
Showing
3 changed files
with
79 additions
and
90 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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<div class="metrics" *ngIf="showMetrics"> | ||
<div> | ||
<span class="label">FPS</span><span>{{ metrics?.fps | number: '1.0-3' }}</span> | ||
</div> | ||
<div> | ||
<span class="label">CPU time</span><span>{{ metrics?.cpuTime | number: '1.0-3' }}</span> | ||
</div> | ||
<div> | ||
<span class="label">GPU time</span><span>{{ metrics?.gpuTime | number: '1.0-3' }}</span> | ||
</div> | ||
<div> | ||
<span class="label">GPU memory</span><span>{{ metrics?.gpuMemory }}</span> | ||
</div> | ||
<div> | ||
<span class="label">FPS</span><span>{{ (metrics$ | async)?.fps | number: '1.0-3' }}</span> | ||
</div> | ||
<div> | ||
<span class="label">CPU time</span><span>{{ (metrics$ | async)?.cpuTime | number: '1.0-3' }}</span> | ||
</div> | ||
<div> | ||
<span class="label">GPU time</span><span>{{ (metrics$ | async)?.gpuTime | number: '1.0-3' }}</span> | ||
</div> | ||
<div> | ||
<span class="label">GPU memory</span><span>{{ (metrics$ | async)?.gpuMemory }}</span> | ||
</div> | ||
</div> | ||
<div class="map" #deckGlMap> | ||
</div> | ||
<div *ngIf="showLoader"> | ||
<div class="loader"> | ||
</div> | ||
<div class="tile"> | ||
T: {{ loadedTileId }} | ||
</div> | ||
<div class="loader"> | ||
</div> | ||
<div class="tile"> | ||
T: {{ loadedTileId }} | ||
</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