2
0

little animation improvements

This commit is contained in:
2018-09-03 09:43:40 +02:00
parent a238574aaf
commit d323d9d600
4 changed files with 10 additions and 8 deletions

View File

@@ -182,6 +182,7 @@ export class NlsGraphsComponent implements OnChanges {
);
if (this.config.autoHeight) {
// Snap bottom and top to window limits
return {
start: {
x: totalCenter.x - baseCenter.x,
@@ -196,7 +197,7 @@ export class NlsGraphsComponent implements OnChanges {
center: totalCenter
};
} else {
// Adjust matrix relatively to window size
return {
start: {
x: totalCenter.x - baseCenter.x,

View File

@@ -28,7 +28,7 @@ import { NlsCanvasService } from './../services/canvas.service';
import { NlsMathService } from './../services/math.service';
import { NlsGraphService } from '../services/graph.service';
const ANIMATION_INTERVAL = 60;
const ANIMATION_INTERVAL = 30;
@Directive({
selector: '[nlsGuilloche]'