Pixi-Drawable-TextInput
You need to create a text input with pixi but you don't want to use the dom of the canvas, this plugin allows you to draw your own text input
Documentation
Installation :
You can install pixi drawable text input with standard npm
npm install pixi-drawable-textinput
Or with yarn
yarn add pixi-drawable-textinput
Use :
Simple text input
;;;document.body.appendChildapp.view; ;option.style =;option.value = "A simple text input";;app.stage.addChildinput;
Complexe text input
;;;document.body.appendChildapp.view;;option.backgroundColorFocus =;option.backgroundColor =;option.multiLine = true;option.maxLength = 100;option.roundedBorder = 40;option.borderWidth = 5;option.style =;option.height = 60;option.width = 400;option.value = "A complexe text input"; option.cursorStyle = new InputCursorStyle;option.cursorStyle.distance = 0;option.cursorStyle.colorBlind =;option.cursorStyle.colorLow =;option.cursorStyle.width = 10;option.cursorStyle.speedSwap = 200;; app.stage.addChildinput;
to-do list
The project is open to any new proposal and correction pull request and issues I will take the necessary measures to advance the project
V1.0.32
- Fix cursor do not display
V1.0.3
- Update documentation
- Fix import
- Fix package
V1.0.2
- Add development test server
- Fix placeholder
- Fix alpha cursor
- Update height component for multiline
- Fix input out of field
- Create a documentation
- Fix cursor field empty
Futur
- Add mobile support
- Cursor up when key up and down when key down