InteractiveVSNodeView constructor

const InteractiveVSNodeView({
  1. Key? key,
  2. TransformationController? controller,
  3. double? width,
  4. double? height,
  5. double scaleFactor = kDefaultMouseScrollToScaleFactor,
  6. double maxScale = 2,
  7. double minScale = 0.01,
  8. bool scaleEnabled = true,
  9. bool panEnabled = true,
  10. required VSNodeDataProvider nodeDataProvider,
  11. 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,
});