Mwni / pixi-text-input

Plugin for pixi.js which provides a convenient way of adding a text input to the pixijs-stage.
161 stars 44 forks source link

Not work with PIXI v7 and not work in TypeScript #43

Closed tolmasoft closed 7 months ago

tolmasoft commented 8 months ago

I'm modify original code and all working. This is not the best solution, but for now it suits me.

before use!

window.PIXI = PIXI;

And declare window.PIXI in index.d.ts! declare global { interface Window { PIXI: any } }

textinput.ts

Mwni commented 7 months ago

This is indeed suboptimal. I will pay attention to it in the next update.