little animation improvements
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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]'
|
||||
|
||||
Reference in New Issue
Block a user