SagaMapResponsiveConfig class
Complete responsive config used by SagaResponsiveResolver.
Every policy here is read by the rendering layer. If a knob would have no effect, it does not belong in this class.
Constructors
-
SagaMapResponsiveConfig({required List<
SagaMapBreakpoint> breakpoints, required SagaMapValuePolicy nodeSizePolicy, required SagaMapValuePolicy nodeSpacingPolicy, required SagaMapValuePolicy zoomPolicy, required SagaMapValuePolicy interactionRadiusPolicy, required SagaMapValuePolicy cameraPaddingPolicy, required SagaMapValuePolicy? maxLateralExtentPolicy, required SagaMapValuePolicy scrollSensitivityPolicy, required SagaMapPathAxis pathAxis}) -
const
Properties
-
breakpoints
→ List<
SagaMapBreakpoint> -
final
- cameraPaddingPolicy → SagaMapValuePolicy
-
Padding in pixels reserved at each end of the lateral axis, keeping nodes
off the map's edges.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactionRadiusPolicy → SagaMapValuePolicy
-
Multiplies a node's touch target relative to its visual size. Values above
1make nodes easier to hit without making them look bigger.final - maxLateralExtentPolicy → SagaMapValuePolicy?
-
Caps the map's extent along the lateral axis, in pixels.
final
- nodeSizePolicy → SagaMapValuePolicy
-
Multiplies the visual size of each node.
final
- nodeSpacingPolicy → SagaMapValuePolicy
-
Multiplies the chunk's extent along the path axis, and with it the gap
between consecutive nodes.
final
- pathAxis → SagaMapPathAxis
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scrollSensitivityPolicy → SagaMapValuePolicy
-
Multiplies drag distance while scrolling the map.
final
- zoomPolicy → SagaMapValuePolicy
-
Multiplies node size and path stroke widths together, as a single
viewport-driven zoom level.
final
Methods
-
copyWith(
{List< SagaMapBreakpoint> ? breakpoints, SagaMapValuePolicy? nodeSizePolicy, SagaMapValuePolicy? nodeSpacingPolicy, SagaMapValuePolicy? zoomPolicy, SagaMapValuePolicy? interactionRadiusPolicy, SagaMapValuePolicy? cameraPaddingPolicy, SagaMapValuePolicy? maxLateralExtentPolicy()?, SagaMapValuePolicy? scrollSensitivityPolicy, SagaMapPathAxis? pathAxis}) → SagaMapResponsiveConfig - Returns a copy with updated policy values.
-
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
Constants
- defaults → const SagaMapResponsiveConfig
- Built-in defaults tuned for mobile-first map readability.