-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #594 from Somya-Bansal159/cartesian-grid-lint-fix
Fix linting error
- Loading branch information
Showing
3 changed files
with
94 additions
and
105 deletions.
There are no files selected for viewing
180 changes: 88 additions & 92 deletions
180
...omponents/ui-menu/view-options/cartesian-grid-config/cartesian-grid-config.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,94 +1,90 @@ | ||
<div> | ||
<h1 mat-dialog-title>Customize Cartesian Grid</h1> | ||
<div mat-dialog-content class="dialog-content"> | ||
<button | ||
mat-menu-item | ||
(click)=" | ||
showXYPlanesCheckbox._inputElement.nativeElement.click() | ||
" | ||
> | ||
<mat-checkbox | ||
#showXYPlanesCheckbox | ||
[(ngModel)]="gridConfig.showXY" | ||
(click)="$event.stopPropagation()" | ||
(change)="showXYPlanes($event)" | ||
>Show XY Planes | ||
</mat-checkbox> | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="xyPlaneSlider.focus()"> | ||
<mat-slider min="-300" [max]=scale step="300" thumbLabel> | ||
<input | ||
#xyPlaneSlider | ||
matSliderThumb | ||
[value]="gridConfig.zDistance" | ||
(input)="addXYPlanes($event)" | ||
/> | ||
</mat-slider> | ||
XY Plane ({{ calcPlanes(gridConfig.zDistance) }}) | ||
</button> | ||
<button | ||
mat-menu-item | ||
(click)=" | ||
showYZPlanesCheckbox._inputElement.nativeElement.click() | ||
" | ||
> | ||
<mat-checkbox | ||
#showYZPlanesCheckbox | ||
[(ngModel)]="gridConfig.showYZ" | ||
(click)="$event.stopPropagation()" | ||
(change)="showYZPlanes($event)" | ||
>Show YZ Planes | ||
</mat-checkbox> | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="yzPlaneSlider.focus()"> | ||
<mat-slider min="-300" [max]=scale step="300" thumbLabel> | ||
<input | ||
#yzPlaneSlider | ||
matSliderThumb | ||
[value]="gridConfig.xDistance" | ||
(input)="addYZPlanes($event)" | ||
/> | ||
</mat-slider> | ||
YZ Plane ({{ calcPlanes(gridConfig.xDistance) }}) | ||
</button> | ||
<button | ||
mat-menu-item | ||
(click)=" | ||
showZXPlanesCheckbox._inputElement.nativeElement.click() | ||
" | ||
> | ||
<mat-checkbox | ||
#showZXPlanesCheckbox | ||
[(ngModel)]="gridConfig.showZX" | ||
(click)="$event.stopPropagation()" | ||
(change)="showZXPlanes($event)" | ||
>Show ZX Planes | ||
</mat-checkbox> | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="zxPlaneSlider.focus()"> | ||
<mat-slider min="-300" [max]=scale step="300" thumbLabel> | ||
<input | ||
#zxPlaneSlider | ||
matSliderThumb | ||
[value]="gridConfig.yDistance" | ||
(input)="addZXPlanes($event)" | ||
/> | ||
</mat-slider> | ||
ZX Plane ({{ calcPlanes(gridConfig.yDistance) }}) | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="sparsitySlider.focus()"> | ||
<mat-slider min="1" max="5" step="1" thumbLabel> | ||
<input | ||
#sparsitySlider | ||
matSliderThumb | ||
[value]="gridConfig.sparsity" | ||
(input)="changeSparsity($event)" | ||
/> | ||
</mat-slider> | ||
Sparsity ({{ gridConfig.sparsity }}) | ||
</button> | ||
</div> | ||
<div mat-dialog-actions align="end"> | ||
<button mat-flat-button color="primary" (click)="onClose()" cdkFocusInitial>Close</button> | ||
</div> | ||
<h1 mat-dialog-title>Customize Cartesian Grid</h1> | ||
<div mat-dialog-content class="dialog-content"> | ||
<button | ||
mat-menu-item | ||
(click)="showXYPlanesCheckbox._inputElement.nativeElement.click()" | ||
> | ||
<mat-checkbox | ||
#showXYPlanesCheckbox | ||
[(ngModel)]="gridConfig.showXY" | ||
(click)="$event.stopPropagation()" | ||
(change)="showXYPlanes($event)" | ||
>Show XY Planes | ||
</mat-checkbox> | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="xyPlaneSlider.focus()"> | ||
<mat-slider min="-300" [max]="scale" step="300" thumbLabel> | ||
<input | ||
#xyPlaneSlider | ||
matSliderThumb | ||
[value]="gridConfig.zDistance" | ||
(input)="addXYPlanes($event)" | ||
/> | ||
</mat-slider> | ||
XY Plane ({{ calcPlanes(gridConfig.zDistance) }}) | ||
</button> | ||
<button | ||
mat-menu-item | ||
(click)="showYZPlanesCheckbox._inputElement.nativeElement.click()" | ||
> | ||
<mat-checkbox | ||
#showYZPlanesCheckbox | ||
[(ngModel)]="gridConfig.showYZ" | ||
(click)="$event.stopPropagation()" | ||
(change)="showYZPlanes($event)" | ||
>Show YZ Planes | ||
</mat-checkbox> | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="yzPlaneSlider.focus()"> | ||
<mat-slider min="-300" [max]="scale" step="300" thumbLabel> | ||
<input | ||
#yzPlaneSlider | ||
matSliderThumb | ||
[value]="gridConfig.xDistance" | ||
(input)="addYZPlanes($event)" | ||
/> | ||
</mat-slider> | ||
YZ Plane ({{ calcPlanes(gridConfig.xDistance) }}) | ||
</button> | ||
<button | ||
mat-menu-item | ||
(click)="showZXPlanesCheckbox._inputElement.nativeElement.click()" | ||
> | ||
<mat-checkbox | ||
#showZXPlanesCheckbox | ||
[(ngModel)]="gridConfig.showZX" | ||
(click)="$event.stopPropagation()" | ||
(change)="showZXPlanes($event)" | ||
>Show ZX Planes | ||
</mat-checkbox> | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="zxPlaneSlider.focus()"> | ||
<mat-slider min="-300" [max]="scale" step="300" thumbLabel> | ||
<input | ||
#zxPlaneSlider | ||
matSliderThumb | ||
[value]="gridConfig.yDistance" | ||
(input)="addZXPlanes($event)" | ||
/> | ||
</mat-slider> | ||
ZX Plane ({{ calcPlanes(gridConfig.yDistance) }}) | ||
</button> | ||
<button class="slider-btn" mat-menu-item (focus)="sparsitySlider.focus()"> | ||
<mat-slider min="1" max="5" step="1" thumbLabel> | ||
<input | ||
#sparsitySlider | ||
matSliderThumb | ||
[value]="gridConfig.sparsity" | ||
(input)="changeSparsity($event)" | ||
/> | ||
</mat-slider> | ||
Sparsity ({{ gridConfig.sparsity }}) | ||
</button> | ||
</div> | ||
<div mat-dialog-actions align="end"> | ||
<button mat-flat-button color="primary" (click)="onClose()" cdkFocusInitial> | ||
Close | ||
</button> | ||
</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