← Back to Home
OMD · Core Component

omdCanvas

A powerful surface for managing multiple expressions and free-form interactions.

Overview

omdCanvas extends the capabilities of omdDisplay by providing a 2D surface where multiple equations, visualizations, and other objects can coexist and be manipulated freely.

Read Full API Documentation →

Basic Usage

import { omdCanvas } from '@teachinglab/omd';

const canvas = new omdCanvas({
  width: 800,
  height: 600,
  expressions: [
    'y = x^2',
    'y = 2x + 1'
  ]
});

canvas.attachTo('#canvas-root');

Capabilities