CanvasControlPolicy mixin

Optimized implementation of CanvasPolicy.

It enabled pan and zoom of the canvas.

It uses onCanvasScaleStart, onCanvasScaleUpdate, onCanvasScaleEnd, onCanvasPointerSignal. Feel free to override other functions from CanvasPolicy and add them to PolicySet.

Mixin Applications

Properties

canUpdateCanvasModel bool
getter/setter pair
canvasReader ↔ CanvasReader
Allows you to read all data from diagram/canvas model.
getter/setter pairinherited
canvasWriter ↔ CanvasWriter
Allows you to change diagram/canvas model data.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transformPosition Offset
getter/setter pair
transformScale double
getter/setter pair

Methods

disposeAnimationController() → void
getAnimationController() AnimationController?
initializePolicy(CanvasReader canvasReader, CanvasWriter canvasWriter) → void
Initialize policy in DiagramEditorContext.
inherited
keepScaleInBounds(double scale, double canvasScale) double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCanvasPointerSignal(PointerSignalEvent event) → void
onCanvasScaleEnd(ScaleEndDetails details) → void
onCanvasScaleStart(ScaleStartDetails details) → void
onCanvasScaleUpdate(ScaleUpdateDetails details) → void
setAnimationController(AnimationController animationController) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited