Installations
npm install pixi-drawable-textinput
Developer Guide
Typescript
Yes
Module System
CommonJS
Score
68.4
Supply Chain
98.9
Quality
75.4
Maintenance
50
Vulnerability
95.1
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (87.97%)
JavaScript (11.26%)
HTML (0.77%)
Developer
Osarel
Download Statistics
Total Downloads
2,970
Last Day
2
Last Week
9
Last Month
50
Last Year
501
GitHub Statistics
7 Stars
34 Commits
3 Forks
1 Watching
16 Branches
2 Contributors
Bundle Size
395.16 kB
Minified
104.31 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.33
Package Id
pixi-drawable-textinput@1.0.33
Unpacked Size
24.72 kB
Size
6.44 kB
File Count
16
Total Downloads
Cumulative downloads
Total Downloads
2,970
Last day
100%
2
Compared to previous day
Last week
-70%
9
Compared to previous week
Last month
163.2%
50
Compared to previous month
Last year
-52.6%
501
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Dev Dependencies
3
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
1import * as PIXI from "pixi.js"; 2import TextInput, {InputOption} from "pixi-drawable-textinput"; 3const app = new PIXI.Application({ 4 width: 400, 5 height: 200, 6 backgroundColor: 0x1099bb 7}); 8document.body.appendChild(app.view); 9 10var option = new InputOption(); 11option.style = { fontSize: 12 }; 12option.value = "A simple text input"; 13var input = new TextInput(option); 14app.stage.addChild(input);
Complexe text input
1import * as PIXI from "pixi.js"; 2import TextInput, {InputOption, InputCursorStyle} from "pixi-drawable-textinput"; 3const app = new PIXI.Application({ 4 width: 800, 5 height: 400, 6 backgroundColor: 0x1099bb 7}); 8document.body.appendChild(app.view); 9var option = new InputOption(); 10option.backgroundColorFocus = { color: 0xcffbff, aplha: 1 }; 11option.backgroundColor = { color: 0xe02f5e, aplha: 1 }; 12option.multiLine = true; 13option.maxLength = 100; 14option.roundedBorder = 40; 15option.borderWidth = 5; 16option.style = { 17 fontFamily: "Arial", 18 fontSize: 36, 19 fontStyle: "italic", 20 fontWeight: "bold", 21 fill: ["#ffffff", "#00ff99"], // gradient 22 stroke: "#4a1850", 23 strokeThickness: 5, 24 dropShadow: true, 25 dropShadowColor: "#000000", 26 dropShadowBlur: 4, 27 dropShadowAngle: Math.PI / 6, 28 dropShadowDistance: 6 29 }; 30option.height = 60; 31option.width = 400; 32option.value = "A complexe text input"; 33 34option.cursorStyle = new InputCursorStyle(); 35option.cursorStyle.distance = 0; 36option.cursorStyle.colorBlind = { color: 0xff0000, alpha: 1 }; 37option.cursorStyle.colorLow = { color: 0x00ffff, alpha: 0.5 }; 38option.cursorStyle.width = 10; 39option.cursorStyle.speedSwap = 200; 40var input = new TextInput(option); 41 42app.stage.addChild(input); 43
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
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/26 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Reason
60 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-x9w5-v3q2-3rhw
- Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5
- Warn: Project is vulnerable to: GHSA-257v-vj4p-3w2h
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-vh7m-p724-62c2
- Warn: Project is vulnerable to: GHSA-r9p9-mrjm-926w
- Warn: Project is vulnerable to: GHSA-434g-2637-qmqr
- Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m
- Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw
- Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p
- Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747
- Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44
- Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988
- Warn: Project is vulnerable to: GHSA-vfrc-7r7c-w9mx
- Warn: Project is vulnerable to: GHSA-7wwv-vh3v-89cq
- Warn: Project is vulnerable to: GHSA-7r28-3m3f-r2pr
- Warn: Project is vulnerable to: GHSA-r8j5-h5cx-65gg
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-92xj-mqp7-vmcj
- Warn: Project is vulnerable to: GHSA-wxgw-qj99-44c2
- Warn: Project is vulnerable to: GHSA-5rrq-pxf6-6jx5
- Warn: Project is vulnerable to: GHSA-8fr3-hfg3-gpgp
- Warn: Project is vulnerable to: GHSA-gf8q-jrpm-jvxq
- Warn: Project is vulnerable to: GHSA-2r2c-g63r-vccr
- Warn: Project is vulnerable to: GHSA-cfm4-qjh2-4765
- Warn: Project is vulnerable to: GHSA-x4jg-mjrx-434g
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-6fx8-h7jm-663j
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-566m-qj78-rww5
- Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j
- Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg
- Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
Score
1.7
/10
Last Scanned on 2025-02-03
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More