GraphiteCanvas constructor
const
GraphiteCanvas({
- Key? key,
- required Size defaultCellSize,
- required Matrix matrix,
- required EdgeInsets cellPadding,
- required double contactEdgesDistance,
- required MatrixOrientation orientation,
- required double maxScale,
- required double minScale,
- required Clip clipBehavior,
- OverlayBuilder? overlayBuilder,
- EdgeLabels? edgeLabels,
- GestureEdgeTapDownCallback? onEdgeTapDown,
- GestureEdgeTapUpCallback? onEdgeTapUp,
- GestureEdgeLongPressStartCallback? onEdgeLongPressStart,
- GestureEdgeLongPressEndCallback? onEdgeLongPressEnd,
- GestureEdgeLongPressMoveUpdateCallback? onEdgeLongPressMoveUpdate,
- GestureEdgeForcePressStartCallback? onEdgeForcePressStart,
- GestureEdgeForcePressEndCallback? onEdgeForcePressEnd,
- GestureEdgeForcePressPeakCallback? onEdgeForcePressPeak,
- GestureEdgeForcePressUpdateCallback? onEdgeForcePressUpdate,
- GestureEdgeTapDownCallback? onEdgeSecondaryTapDown,
- GestureEdgeTapUpCallback? onEdgeSecondaryTapUp,
- GestureBackgroundTapCallback? onCanvasTap,
- EdgeStyleBuilder? styleBuilder,
- EdgePathBuilder? pathBuilder,
- GestureNodeTapDownCallback? onNodeTapDown,
- GestureNodeTapUpCallback? onNodeTapUp,
- GestureNodeLongPressStartCallback? onNodeLongPressStart,
- GestureNodeLongPressEndCallback? onNodeLongPressEnd,
- GestureNodeLongPressMoveUpdateCallback? onNodeLongPressMoveUpdate,
- GestureNodeForcePressStartCallback? onNodeForcePressStart,
- GestureNodeForcePressEndCallback? onNodeForcePressEnd,
- GestureNodeForcePressPeakCallback? onNodeForcePressPeak,
- GestureNodeForcePressUpdateCallback? onNodeForcePressUpdate,
- GestureNodePanStartCallback? onNodePanStart,
- GestureNodePanUpdateCallback? onNodePanUpdate,
- GestureNodePanDownCallback? onNodePanDown,
- GestureNodeTapDownCallback? onNodeSecondaryTapDown,
- GestureNodeTapUpCallback? onNodeSecondaryTapUp,
- NodeCellBuilder? builder,
Implementation
const GraphiteCanvas({
Key? key,
required this.defaultCellSize,
required this.matrix,
required this.cellPadding,
required this.contactEdgesDistance,
required this.orientation,
required this.maxScale,
required this.minScale,
required this.clipBehavior,
this.overlayBuilder,
this.edgeLabels,
this.onEdgeTapDown,
this.onEdgeTapUp,
this.onEdgeLongPressStart,
this.onEdgeLongPressEnd,
this.onEdgeLongPressMoveUpdate,
this.onEdgeForcePressStart,
this.onEdgeForcePressEnd,
this.onEdgeForcePressPeak,
this.onEdgeForcePressUpdate,
this.onEdgeSecondaryTapDown,
this.onEdgeSecondaryTapUp,
this.onCanvasTap,
this.styleBuilder,
this.pathBuilder,
this.onNodeTapDown,
this.onNodeTapUp,
this.onNodeLongPressStart,
this.onNodeLongPressEnd,
this.onNodeLongPressMoveUpdate,
this.onNodeForcePressStart,
this.onNodeForcePressEnd,
this.onNodeForcePressPeak,
this.onNodeForcePressUpdate,
this.onNodePanStart,
this.onNodePanUpdate,
this.onNodePanDown,
this.onNodeSecondaryTapDown,
this.onNodeSecondaryTapUp,
this.builder,
}) : super(key: key);