MCPcopy Create free account
hub / github.com/DavidHDev/react-bits / createAndInit

Function createAndInit

src/tailwind/TextAnimations/ASCIIText/ASCIIText.jsx:418–427  ·  view source on GitHub ↗
(container, w, h)

Source from the content-addressed store, hash-verified

416 let ro = null;
417
418 const createAndInit = async (container, w, h) => {
419 const instance = new CanvAscii(
420 { text, asciiFontSize, textFontSize, textColor, planeBaseHeight, enableWaves },
421 container,
422 w,
423 h
424 );
425 await instance.init();
426 return instance;
427 };
428
429 const setup = async () => {
430 const { width, height } = containerRef.current.getBoundingClientRect();

Callers 1

setupFunction · 0.70

Calls 1

initMethod · 0.95

Tested by

no test coverage detected