fitScreen2 method
Resets all zooming and dragging and makes the chart fit exactly it's bounds. Output Matrix is available for those who wish to cache the object.
Implementation
void fitScreen2(Matrix4 outputMatrix) {
_minScaleX = 1;
_minScaleY = 1;
_matrixTouch.copyInto(outputMatrix);
outputMatrix
..storage[3] = 0
..storage[7] = 0
..storage[0] = 1
..storage[5] = 1;
List<double?> vals = valsBufferForFitScreen;
for (int i = 0; i < 16; i++) {
vals[i] = outputMatrix.storage[i];
}
}