Skip to content

Intermact API Reference / @intermact/react / IntermactCanvas

Function: IntermactCanvas()

IntermactCanvas(__namedParameters): Element

Defined in: react/src/components/IntermactCanvas.tsx:141

Top-level React entry point (design.md §10, §15). Builds the program, hosts a React Three Fiber <Canvas> with an orthographic camera fit to the scene domain, drives the Player, and renders the scene with an optional timeline overlay. Multiple mounted viewports (design.md §10.4) are laid out by their normalized rects. HiDPI and resize are handled by R3F (dpr + ResizeObserver).

Parameters

__namedParameters

IntermactCanvasProps

Returns

Element

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)