Commit b3be2e89 authored by ifagian's avatar ifagian
Browse files

Arreglo controles grilla y axes

parent d517c3e4
...@@ -4519,7 +4519,7 @@ ...@@ -4519,7 +4519,7 @@
"dev": true "dev": true
}, },
"graph3D": { "graph3D": {
"version": "git://github.com/ifagian/graph3D.git#7ccf98694a6c2afc03f39d5f8bbe548f28c3538d", "version": "git://github.com/ifagian/graph3D.git#c0b284a2503343898fbba1fba17040e6fc97f717",
"from": "git://github.com/ifagian/graph3D.git#master", "from": "git://github.com/ifagian/graph3D.git#master",
"requires": { "requires": {
"gif.js": "^0.2.0", "gif.js": "^0.2.0",
......
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
(click)="toggleAxis()"> (click)="toggleAxis()">
{{ "i18n.object.axes" | translate | titleCase }} {{ "i18n.object.axes" | translate | titleCase }}
</label> </label>
<label> <!-- <label>
<input <input
type="checkbox" type="checkbox"
name="tip" name="tip"
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
[checked]= settings.tip [checked]= settings.tip
(click)="toggleTip()"> (click)="toggleTip()">
{{ "i18n.object.tip" | translate | titleCase }} {{ "i18n.object.tip" | translate | titleCase }}
</label> </label> -->
<label [class.disabled]="funciones.length === 0"> <label [class.disabled]="funciones.length === 0">
<input <input
type="checkbox" type="checkbox"
......
...@@ -434,6 +434,8 @@ export class Graph2DComponent { ...@@ -434,6 +434,8 @@ export class Graph2DComponent {
let bounding = this.getBounding(); let bounding = this.getBounding();
this.instance = functionPlot({ this.instance = functionPlot({
target: '#graph2D-container', target: '#graph2D-container',
grid: this.settings.grid,
axis: this.settings.axis,
width: bounding.width, width: bounding.width,
height: bounding.height, height: bounding.height,
tip: { tip: {
...@@ -463,7 +465,8 @@ export class Graph2DComponent { ...@@ -463,7 +465,8 @@ export class Graph2DComponent {
target: '#graph2D-container', target: '#graph2D-container',
width: bounding.width, width: bounding.width,
height: bounding.height, height: bounding.height,
grid: true, grid: this.settings.grid,
axis: this.settings.axis,
xAxis: { xAxis: {
scale: 'linear', scale: 'linear',
domain: { domain: {
...@@ -506,7 +509,8 @@ export class Graph2DComponent { ...@@ -506,7 +509,8 @@ export class Graph2DComponent {
target: '#graph2D-container', target: '#graph2D-container',
width: bounding.width, width: bounding.width,
height: bounding.height, height: bounding.height,
grid: true, grid: this.settings.grid,
axis: this.settings.axis,
xAxis: { xAxis: {
scale: 'linear', scale: 'linear',
domain: { domain: {
...@@ -569,6 +573,8 @@ export class Graph2DComponent { ...@@ -569,6 +573,8 @@ export class Graph2DComponent {
let bounding = $this.getBounding(); let bounding = $this.getBounding();
$this.instance = functionPlot({ $this.instance = functionPlot({
target: '#graph2D-container', target: '#graph2D-container',
grid: this.settings.grid,
axis: this.settings.axis,
width: bounding.width, width: bounding.width,
height: bounding.height, height: bounding.height,
xAxis: { xAxis: {
......
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