Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
three-spritetext
Advanced tools
A sprite based text component for ThreeJS. The text is drawn to canvas, converted into a Texture and then used as a material on a Sprite. Because a sprite is being used, the text will always face the camera, and have its orientation fixed relative to the camera.
import SpriteText from 'three-spritetext';
or
var SpriteText = require('three-spritetext');
or even
<script src="//unpkg.com/three-spritetext"></script>
then
var myText = new SpriteText('My text');
var myScene = new THREE.Scene();
myScene.add(myText);
SpriteText ([text, textHeight, color])
Property | Description | Default |
---|---|---|
text | The text to be displayed on the sprite. | |
textHeight | The height of the text. | 10 |
color | The color of the text. | white |
fontFace | The font type of the text. | Arial |
fontSize | The resolution of the text, in terms of vertical number of pixels. Lower values may cause text to look blurry. Higher values will yield sharper text, at the cost of performance. | 90 |
FAQs
A sprite based text component for ThreeJS
The npm package three-spritetext receives a total of 9,993 weekly downloads. As such, three-spritetext popularity was classified as popular.
We found that three-spritetext demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.