Gathering detailed insights and metrics for pixi-drawable-textinput
Gathering detailed insights and metrics for pixi-drawable-textinput
Gathering detailed insights and metrics for pixi-drawable-textinput
Gathering detailed insights and metrics for pixi-drawable-textinput
npm install pixi-drawable-textinput
Typescript
Module System
68.4
Supply Chain
98.9
Quality
75.4
Maintenance
50
Vulnerability
95.1
License
TypeScript (87.97%)
JavaScript (11.26%)
HTML (0.77%)
Total Downloads
2,970
Last Day
2
Last Week
9
Last Month
50
Last Year
501
7 Stars
34 Commits
3 Forks
1 Watching
16 Branches
2 Contributors
Minified
Minified + Gzipped
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
Cumulative downloads
Total Downloads
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
1
3
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
You can install pixi drawable text input with standard npm
npm install pixi-drawable-textinput
Or with yarn
yarn add pixi-drawable-textinput
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);
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
The project is open to any new proposal and correction pull request and issues I will take the necessary measures to advance the project
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
60 existing vulnerabilities detected
Details
Score
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