MCPcopy Index your code
hub / github.com/replicate/scribble-diffusion / loadStartingPaths

Function loadStartingPaths

components/canvas.js:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }, []);
24
25 async function loadStartingPaths() {
26 await canvasRef.current.loadPaths(startingPaths);
27 setScribbleExists(true);
28 onChange();
29 }
30
31 const onChange = async () => {
32 const paths = await canvasRef.current.exportPaths();

Callers 1

canvas.jsFile · 0.85

Calls 1

onChangeFunction · 0.85

Tested by

no test coverage detected