phosphor-layout-api

Layout description interfaces + provider registry.

The shared vocabulary the zones and tiles libraries both speak. ILayoutSource is the canonical layout-producer contract. ILayoutSourceFactory and ILayoutSourceRegistry are the provider-side seams; LayoutSourceProviderRegistry + LayoutSourceBundle are the composition-root glue that lets a process advertise providers once. Plus the cross-cutting value types: LayoutId, AlgorithmMetadata, AspectRatioClass, EdgeGaps, CompositeLayoutSource, LayoutPreview.

Full API →

Key types

ILayoutSource
Canonical layout producer contract.
ILayoutSourceFactory
Builds an ILayoutSource for a given LayoutId.
ILayoutSourceRegistry
Read-side provider catalogue with contentsChanged.
LayoutSourceProviderRegistry
Process-wide "which providers exist" registrar.
CompositeLayoutSource
Multiplexes several ILayoutSources.
AlgorithmMetadata
Tiling algorithm self-description for picker UI.
LayoutPreview
Renderable thumbnail of any layout.

Dependencies

References