Installation
Quick Start
The core engine works with any JavaScript environment:Core Engine API
createLogoSoup
Returns:LogoSoupEngine
process(options)
Triggers logo loading, measurement, and normalization.subscribe(listener)
Subscribes to state changes. Returns an unsubscribe function.getSnapshot()
Returns the current immutable state:destroy()
Cleans up resources, cancels in-flight work, and revokes blob URLs:State Management
The engine uses an immutable state model. The snapshot reference only changes when actual values change:Examples
- Basic Rendering
- Custom Grid
- Dynamic Updates
- Web Component
TypeScript
All core exports are fully typed:Utilities
getVisualCenterTransform
Computes the CSStransform for visual alignment:
"bounds"— Geometric center (no transform)"visual-center"— Visual center on both axes"visual-center-x"— Visual center horizontally"visual-center-y"— Visual center vertically (default)
See Also
- API Reference - Complete options reference
- Custom Adapters - Build your own framework adapter
- Alignment - How visual centering works