(container, w, h)
| 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(); |