Skip to content

Intermact API Reference / @intermact/react / IntermactCanvasProps

Interface: IntermactCanvasProps ​

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

Props for IntermactCanvas.

Properties ​

autoplay? ​

readonly optional autoplay?: boolean

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


chrome? ​

readonly optional chrome?: (built) => ReactNode

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

Optional DOM chrome rendered above the canvas once the program is built.

Parameters ​

built ​

BuiltProgram

Returns ​

ReactNode


className? ​

readonly optional className?: string

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


controls? ​

readonly optional controls?: CanvasControls

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


fetchBinary? ​

readonly optional fetchBinary?: BinaryAssetFetcher

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

Resolve binary font assets during the build pass.


fetcher? ​

readonly optional fetcher?: AssetFetcher

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

Resolve text assets during the build pass.


interactive? ​

readonly optional interactive?: boolean

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

Enable pointer interaction (drag handles, pick) — default true.


keyboard? ​

readonly optional keyboard?: boolean

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

Enable keyboard transport (space/arrows/Home/End) — default true.


program ​

readonly program: IntermactProgram

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


seed? ​

readonly optional seed?: string | number

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


style? ​

readonly optional style?: CSSProperties

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

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