ContentBoundsPolicy class

Generic runtime policy for content-bounds calculations.

This is intentionally product agnostic. Host applications may prefer a semantic root, while the base runtime falls back to root scene children.

Constructors

ContentBoundsPolicy({ContentBoundsElementSelector? preferredElementId, ContentBoundsFallbackSelector? fallbackElementIds})
const

Properties

fallbackElementIds → ContentBoundsFallbackSelector?
Optional fallback ids when the preferred element is absent or has no bounds.
final
hashCode → int
The hash code for this object.
no setterinherited
preferredElementId → ContentBoundsElementSelector?
Optional preferred root used for content-bounds fit/crop/thumb/export.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

fallbackIdsFor(CanvasSceneDocument scene) → Iterable<ElementId>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preferredIdFor(CanvasSceneDocument scene) → ElementId?
toString() → String
A string representation of this object.
inherited

Operators

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