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

Fixed 2D settings controls

parent 3666bb6f
......@@ -61,27 +61,27 @@
<label>
<input
type="checkbox"
name="settings.grid"
name="grid"
class="form-control form-control-sm"
[checked]=settings.grid
[checked]= settings.grid
(click)="toggleGrid()">
Grilla
</label>
<label>
<input
type="checkbox"
name="settings.axis"
name="axis"
class="form-control form-control-sm"
[checked]=settings.axis
[checked]= settings.axis
(click)="toggleAxis()">
Ejes
</label>
<label>
<input
type="checkbox"
name="settings.tip"
name="tip"
class="form-control form-control-sm"
[checked]=settings.tip
[checked]= settings.tip
(click)="toggleTip()">
Tip
</label>
......
......@@ -393,6 +393,7 @@ export class Graph2DComponent {
*/
public toggleGrid = function () {
this.instance.toggleGrid();
this.settings.grid = !this.settings.grid;
}
/**
......@@ -401,6 +402,7 @@ export class Graph2DComponent {
*/
public toggleAxis = function () {
this.instance.toggleAxis();
this.settings.axis = !this.settings.axis;
}
/**
......@@ -409,6 +411,7 @@ export class Graph2DComponent {
*/
public toggleTip = function () {
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