Skip to content
Snippets Groups Projects
Commit dd64b11f authored by Diego Rey's avatar Diego Rey
Browse files

Fixed 2D settings controls

parent 3666bb6f
Branches
No related tags found
No related merge requests found
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<label> <label>
<input <input
type="checkbox" type="checkbox"
name="settings.grid" name="grid"
class="form-control form-control-sm" class="form-control form-control-sm"
[checked]= settings.grid [checked]= settings.grid
(click)="toggleGrid()"> (click)="toggleGrid()">
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<label> <label>
<input <input
type="checkbox" type="checkbox"
name="settings.axis" name="axis"
class="form-control form-control-sm" class="form-control form-control-sm"
[checked]= settings.axis [checked]= settings.axis
(click)="toggleAxis()"> (click)="toggleAxis()">
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<label> <label>
<input <input
type="checkbox" type="checkbox"
name="settings.tip" name="tip"
class="form-control form-control-sm" class="form-control form-control-sm"
[checked]= settings.tip [checked]= settings.tip
(click)="toggleTip()"> (click)="toggleTip()">
......
...@@ -393,6 +393,7 @@ export class Graph2DComponent { ...@@ -393,6 +393,7 @@ export class Graph2DComponent {
*/ */
public toggleGrid = function () { public toggleGrid = function () {
this.instance.toggleGrid(); this.instance.toggleGrid();
this.settings.grid = !this.settings.grid;
} }
/** /**
...@@ -401,6 +402,7 @@ export class Graph2DComponent { ...@@ -401,6 +402,7 @@ export class Graph2DComponent {
*/ */
public toggleAxis = function () { public toggleAxis = function () {
this.instance.toggleAxis(); this.instance.toggleAxis();
this.settings.axis = !this.settings.axis;
} }
/** /**
...@@ -409,6 +411,7 @@ export class Graph2DComponent { ...@@ -409,6 +411,7 @@ export class Graph2DComponent {
*/ */
public toggleTip = function () { public toggleTip = function () {
this.instance.toggleTip(); this.instance.toggleTip();
this.settings.tip = !this.settings.tip;
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment