diff --git a/Frontend Angular 4/package-lock.json b/Frontend Angular 4/package-lock.json index df45be9d87d5f05e23f580b388e21f71a79ef76b..e451e26484c6d060483a471d028637d7dd99bfe1 100644 --- a/Frontend Angular 4/package-lock.json +++ b/Frontend Angular 4/package-lock.json @@ -4139,8 +4139,8 @@ "dev": true }, "function-plot": { - "version": "git://github.com/diego-rey/function-plot.git#925138ee94815e91f48c82b1dca9d55901aeb20e", - "from": "git://github.com/diego-rey/function-plot.git#feature/mutigraf", + "version": "git://github.com/diego-rey/function-plot.git#81713c85f1fb90ff0f41a3dade1bcd831e80b6fa", + "from": "git://github.com/diego-rey/function-plot.git#feature/integration-multigraf-shape", "requires": { "array-range": "^1.0.1", "built-in-math-eval": "^0.3.0", diff --git a/Frontend Angular 4/package.json b/Frontend Angular 4/package.json index d660e698680606f3743eedf98411f27668d98924..5d10bb8b521e0b6fd8664ddd0e92cbde085b1532 100755 --- a/Frontend Angular 4/package.json +++ b/Frontend Angular 4/package.json @@ -24,7 +24,7 @@ "core-js": "^2.4.1", "d3": "^4.12.2", "font-awesome": "^4.7.0", - "function-plot": "git://github.com/diego-rey/function-plot.git#feature/mutigraf", + "function-plot": "git://github.com/diego-rey/function-plot.git#feature/integration-multigraf-shape", "graph3D": "git://github.com/ifagian/graph3D#master", "ionicons": "^3.0.0", "jq-console": "^2.13.2", diff --git a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html index 939fcb1eff9fb19def085ad40dbfc2c5cc958889..c6085c07ab27aee3ecdecd1901995f03cb85ae21 100755 --- a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html +++ b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.html @@ -86,6 +86,31 @@ Tip </label> </div> + <hr> + <div class="setting-section"> + <label> + <input + type="checkbox" + [checked]=animation.boton + (click)="multiGraf(value)"> + Multi gráfica + </label> + <div style="display: flex;"> + <span style="margin-right: 8px; align-self: center;"> + Zoom + </span> + <input + type="number" + class="form-control form-control-sm" + [(ngModel)]="animation.zoo" + [max]="1000000" + [min]="8" + (change)="setZoom()" + style="width: 70px;" + /> + </div> + </div> + <hr> <div class="animation-controls setting-section" [class.disabled]="animation.data.length === 0"> <label>Velocidad de animación:</label> @@ -114,8 +139,7 @@ </ng-template> <!-- Animation --> - <!-- <div class="animation" *ngIf="animation.data.length>0"> --> - <div class="animation"> + <div class="animation" *ngIf="animation.data.length>0"> <button class="btn btn-sm btn-secondary btn-play" data-placement="bottom" *ngIf="!animation.playing" diff --git a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts index 457088f8475e9347f2558f9c75e44ff17ee1b146..bedc95a0c8ff58ed72867b624368ab4c322037e0 100755 --- a/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts +++ b/Frontend Angular 4/src/app/layout/plotter/graph2D/graph2D.component.ts @@ -162,6 +162,7 @@ export class Graph2DComponent { }); } let bounding = this.getBounding(); + console.log(bounding); this.instance = functionPlot({ target: '#graph2D-container', width: bounding.width, @@ -265,12 +266,11 @@ export class Graph2DComponent { onResize(event){ let instance = this.instance; let bounding = this.getBounding(); - //if (bounding.width > 0) { - console.log('yes'); + if (bounding.width > 0) { instance.options.width = bounding.width; instance.options.height = bounding.height; instance.build(); - //} + } } onClickMe(event) { @@ -368,7 +368,7 @@ export class Graph2DComponent { * @desc Show and Hide Grid */ public toggleGrid = function () { - //this.instance.toggleGrid(); + this.instance.toggleGrid(); } /** @@ -376,7 +376,7 @@ export class Graph2DComponent { * @desc Show and Hide Axis */ public toggleAxis = function () { - //this.instance.toggleAxis(); + this.instance.toggleAxis(); } /** @@ -384,7 +384,7 @@ export class Graph2DComponent { * @desc Show and Hide Tip */ public toggleTip = function () { - //this.instance.toggleTip(); + this.instance.toggleTip(); } /**