ViewportVisibilityPlugin class
Emits callbacks when schema elements meet a visibility threshold inside the viewport.
- Inheritance
-
- Object
- InteractivePlugin
- ViewportVisibilityPlugin
Constructors
- ViewportVisibilityPlugin({void onVisible(SchemaElement? element)?, double visibilityThreshold = 0.25})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onVisible → void Function(SchemaElement? element)?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visibilityThreshold → double
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onAttach(
RendererCore renderer) → void -
inherited
-
onMove(
RendererCore renderer, ScaleUpdateDetails details, double x, double y) → void -
override
-
onScale(
RendererCore renderer, ScaleUpdateDetails details, double scale) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited