-
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.
WIP: landmark overlay on viewer works
WIP: on side-by-side mode, hiding landmarks & volume, lock inc volume
- Loading branch information
Showing
24 changed files
with
692 additions
and
83 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export { Landmark, LandmarkPair } from 'src/state/app/consts'; | ||
|
||
export const INCOMING_LM_COLOR = "#ffff00" | ||
export const REF_LM_COLOR = "#ffffff" |
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,27 +1,24 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { ListviewComponent } from './listview/listview.component'; | ||
import { MatTableModule } from '@angular/material/table'; | ||
import { ToolbarComponent } from './toolbar/toolbar.component'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { MatButtonModule } from '@angular/material/button'; | ||
import { MatDividerModule } from '@angular/material/divider'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { MatInputModule } from '@angular/material/input'; | ||
import { MatFormFieldModule } from '@angular/material/form-field'; | ||
import { SharedModule } from 'src/sharedModule/sharedModule'; | ||
import { OverlayComponent } from './overlay/overlay.component'; | ||
import { OverlayPositionPipe } from './overlay/overlayPosition.pipe'; | ||
|
||
@NgModule({ | ||
declarations: [ListviewComponent, ToolbarComponent], | ||
declarations: [ | ||
ListviewComponent, | ||
ToolbarComponent, | ||
OverlayComponent, | ||
OverlayPositionPipe | ||
], | ||
imports: [ | ||
CommonModule, | ||
MatTableModule, | ||
MatIconModule, | ||
MatButtonModule, | ||
MatDividerModule, | ||
FormsModule, | ||
MatInputModule, | ||
MatFormFieldModule, | ||
SharedModule, | ||
], | ||
exports: [ListviewComponent, ToolbarComponent], | ||
exports: [ListviewComponent, ToolbarComponent, OverlayComponent], | ||
}) | ||
export class LandmarksModule {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<ng-template [ngIf]="displayedLandmarks$ | async" let-displayedLandmarks> | ||
<ng-template ngFor [ngForOf]="displayedLandmarks" let-displayedLandmark> | ||
<div class="landmark-container" | ||
[style.transform]="displayedLandmark.position | overlayPosition" | ||
[style.color]="displayedLandmark.color"> | ||
|
||
<mat-icon class="position-icon" fontIcon="location_on"></mat-icon> | ||
</div> | ||
</ng-template> | ||
</ng-template> |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
:host | ||
{ | ||
pointer-events: none; | ||
position: relative; | ||
|
||
> * | ||
{ | ||
position: absolute; | ||
} | ||
} | ||
|
||
.landmark-container | ||
{ | ||
display: inline-flex; | ||
justify-content: center; | ||
align-items: flex-end; | ||
overflow: visible; | ||
width: 0; | ||
height: 0; | ||
|
||
> * | ||
{ | ||
color: inherit; | ||
flex: 0 0 auto; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { OverlayComponent } from './overlay.component'; | ||
|
||
describe('OverlayComponent', () => { | ||
let component: OverlayComponent; | ||
let fixture: ComponentFixture<OverlayComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ OverlayComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(OverlayComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.