Commit dd64b11f authored by Diego Rey's avatar Diego Rey
Browse files

Fixed 2D settings controls

parent 3666bb6f
...@@ -61,27 +61,27 @@ ...@@ -61,27 +61,27 @@
<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()">
Grilla Grilla
</label> </label>
<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()">
Ejes Ejes
</label> </label>
<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()">
Tip Tip
</label> </label>
......
...@@ -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;
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment