INNER CODE UNIT · Dart
scaledWidth
nabil6391/graphview · lib/GraphView.dart:536
final scaledWidth = bounds.width * scale;
final scaledHeight = bounds.height * scale;
final centerOffset = Offset(
(vp.width - scaledWidth) * widget.horizontalBias - bounds.left * scale,
(vp.height - scaledHeight) * widget.verticalBias - bounds.top * scale);
final target = Matrix4.identity()
..translate(centerOffset.dx, centerOffset.dy)
..scale(scale);
animateToMatrix(target);
}
void animateToMatrix(Matrix4 target) {
_panController.reset();
_panAnimation = Matrix4Tween(
begin: _transformationController.value, end: target)
.animate(