Merge branch 'master' into unit-tests

This commit is contained in:
Piotr Pekala
2019-03-07 07:15:22 -08:00
7 changed files with 16 additions and 4 deletions

View File

@ -57,6 +57,12 @@ export class MovingTool {
});
};
// disable zooming on wheel
this.zoom.filter(() => {
const e: D3ZoomEvent<SVGSVGElement, any> = event;
return e.type === 'mousedown';
});
this.zoom.on('zoom', onZoom);
selection.call(this.zoom);
}

View File

@ -87,7 +87,7 @@
</mat-toolbar>
</div>
<div id="show-menu-wrapper" [ngClass]="{ shadowed: !drawTools.visibility }">
<div id="show-menu-wrapper" [ngClass]="{ shadowed: !drawTools.visibility }" *ngIf="!readonly">
<button class="arrow-button" mat-icon-button (click)="showMenu()"><mat-icon>keyboard_arrow_right</mat-icon></button>
</div>

View File

@ -21,11 +21,11 @@
>
</div>
<div>
<!-- <div>
<mat-checkbox [(ngModel)]="settings.angular_map"
>Enable experimental Angular Map (WARNING: IT CAN BREAK YOU LABS!)</mat-checkbox
>
</div>
</div> -->
</mat-expansion-panel>
</mat-accordion>
</div>

View File

@ -67,6 +67,10 @@ header {
width: 100%;
}
.container {
padding: 0%;
}
.mat-dialog-content > * {
width: 100%;
}

View File

@ -70,6 +70,7 @@ export class ServerService {
server.name = 'local';
server.host = host;
server.port = port;
server.location = 'local';
server.is_local = true;
this.create(server).then(created => {
resolve(created);