@p5-wrapper/react
Version:
A wrapper component that allows you to utilise P5 sketches within React apps.
6 lines (5 loc) • 389 B
TypeScript
import { type P5CanvasInstance } from "../contracts/P5CanvasInstance";
import { type Sketch } from "../contracts/Sketch";
import { type SketchProps } from "../contracts/SketchProps";
import { type Wrapper } from "../contracts/Wrapper";
export declare function createCanvasInstance<Props extends SketchProps = SketchProps>(sketch: Sketch<Props>, wrapper: Wrapper): P5CanvasInstance<Props>;