Skip to content

Intermact API Reference / @intermact/react / SceneView

Function: SceneView() ​

SceneView(__namedParameters): Element

Defined in: render-r3f/dist/index.d.ts:54

In-canvas R3F component (design.md §15). Hosts a framework-free ThreeSceneView (@intermact/render-three), fits the orthographic camera to the scene domain on resize, advances the Player via useFrame, and diffs each snapshot onto the three.js scene graph — no per-frame React reconciliation.

Parameters ​

__namedParameters ​

autoplay? ​

boolean

domain ​

{ x: Interval; y: Interval; }

domain.x ​

Interval

domain.y ​

Interval

fit? ​

NonNullable<"stretch" | "contain" | "cover" | undefined>

interactive? ​

boolean

onFrame? ​

(snapshot) => void

player ​

Player

Returns ​

Element

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