InteractiveVSNodeView constructor
const
InteractiveVSNodeView({
- Key? key,
- TransformationController? controller,
- double? width,
- double? height,
- double scaleFactor = kDefaultMouseScrollToScaleFactor,
- double maxScale = 2,
- double minScale = 0.01,
- bool scaleEnabled = true,
- bool panEnabled = true,
- required VSNodeDataProvider nodeDataProvider,
- VSNodeView? baseNodeView,
Wraps VSNodeView in an InteractiveViewer this enables pan and zoom
Creates a SizedBox of given width and height that will function as a canvas
Width and height default to their coresponding screen dimension. If one of them is omited there will be no panning on that axis
Implementation
const InteractiveVSNodeView({
super.key,
this.controller,
this.width,
this.height,
this.scaleFactor = kDefaultMouseScrollToScaleFactor,
this.maxScale = 2,
this.minScale = 0.01,
this.scaleEnabled = true,
this.panEnabled = true,
required this.nodeDataProvider,
this.baseNodeView,
});