Prismv0.4
Reference

API

Supported public API exported from the package root.

Import Prism from the package root:

import { CanvasRuntime } from "@synthesisengineering/prism";

Everything outside the package root is not public API. Runtime internals, backend classes, and raw HTML-in-Canvas wrappers are internal.

Public exports

  • CanvasRuntime
  • type CanvasSurface
  • type CanvasBackendKind
  • type CanvasBackendPreference
  • type CanvasRuntimeOptions
  • type SurfaceOptions
  • type SurfaceBoundsInput
  • type PaintHandler
  • type UpdateHandler
  • type CanvasPoint

CanvasRuntime is the only constructible public runtime class.

CanvasSurface is a public TypeScript type. Surface instances are returned by registerSurface() and should not be constructed by apps.