What a mounted canvas offers its extensions beyond the controller.
Read the document, scene, selection and camera state from controller;
its getters, hoverScreenPoint and moveGuides are observable in an
Observer. A host expires when the canvas unmounts or its controller
changes; then every member throws StateError.
Properties
- camera → DiagramCamera
-
Viewport mathematics and navigation for this canvas. Moves stop the
canvas's own camera animation first.
no setter
- context → BuildContext
-
no setter
- controller → DiagramController
-
no setter
- frameClock → DiagramFrameClock
-
Frame time for animated overlays.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverScreenPoint → DiagramPoint?
-
The pointer over the canvas in viewport coordinates, or null.
no setter
-
moveGuides
→ List<
DiagramMoveGuide> -
Guides the installed move adjusters show for the current move, such as
alignment snaplines.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedIds
→ Set<
String> -
The elements whose selection chrome the canvas shows: the selected
elements, or the element whose text, content or path points are
selected.
no setter
Methods
-
beginGesture(
DiagramToolPointer pointer, DiagramToolGesture gesture) → void - Starts a tool gesture owned by the calling behavior. Editing canvases only.
-
hitsSelectionHandle(
DiagramPoint screen) → bool -
Whether
screenhits a handle of the selection. Editing canvases only. -
hitText(
ResolvedTextStory text, DiagramPoint local) → DiagramTextPosition -
The text position at
localintext. Editing canvases only. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited