← Back to Home
OMD · Core Component

omdDisplay

The primary engine for rendering interactive math equations and visualizations.

Overview

omdDisplay is the main entry point for rendering content in OMD. It attaches to a DOM element and manages the rendering loop, event handling, and updates for any OMD node passed to it.

Read Full API Documentation →

Basic Usage

import { omdDisplay, omdEquationNode } from '@teachinglab/omd';

// 1. Create the display instance
const container = document.getElementById('math-root');
const display = new omdDisplay(container);

// 2. Create content
const equation = omdEquationNode.fromString('2x + 5 = 15');

// 3. Render
display.render(equation);

Key Features