CanvasMovePolicy mixin

Optimized implementation of CanvasPolicy.

It enabled only pan of the canvas.

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

Implemented types

Properties

canUpdateCanvasModel bool
getter/setter pairoverride
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 pairoverride
transformScale double
getter/setter pairoverride

Methods

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

Operators

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