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
CanvasRuntimetype CanvasSurfacetype CanvasBackendKindtype CanvasBackendPreferencetype CanvasRuntimeOptionstype SurfaceOptionstype SurfaceBoundsInputtype PaintHandlertype UpdateHandlertype 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.