Skip to content

Commit 8d18408

Browse files
committed
chore: logging
1 parent 6d905ec commit 8d18408

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ui-chart/utils/ViewPortHandler.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
import { CanvasView, Matrix, Rect, RectF } from '@nativescript-community/ui-canvas';
21
import { TypedArray } from '@nativescript-community/arraybuffers';
3-
import { Utils } from './Utils';
2+
import { Trace } from '@nativescript/core';
3+
import { CanvasView, Matrix, Rect, RectF } from '@nativescript-community/ui-canvas';
4+
import { CLog, CLogTypes, Utils } from './Utils';
45

56
const EPSILON = 0.0001;
7+
const LOG_TAG = 'ViewPortHandler';
68

79
/**
810
* Class that contains information about the charts current viewport settings, including offsets, scale & translation
@@ -341,6 +343,9 @@ export class ViewPortHandler {
341343
* @return
342344
*/
343345
public refresh(newMatrix: Matrix, chart: CanvasView, invalidate) {
346+
if (Trace.isEnabled()) {
347+
CLog(CLogTypes.info, LOG_TAG, 'refresh:', newMatrix);
348+
}
344349
this.mMatrixTouch.set(newMatrix);
345350

346351
// make sure scale and translation are within their bounds

0 commit comments

Comments
 (0)