Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

three-bmfont-text

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

three-bmfont-text - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

2

package.json
{
"name": "three-bmfont-text",
"version": "2.2.1",
"version": "2.3.0",
"description": "renders BMFont files in ThreeJS with word-wrapping",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -10,2 +10,3 @@ var assign = require('object-assign');

var map = opt.map;
var negate = typeof opt.negate === 'boolean' ? opt.negate : true;

@@ -17,2 +18,3 @@ // remove to satisfy r73

delete opt.opacity;
delete opt.negate;

@@ -51,3 +53,3 @@ return assign({

'void main() {',
' vec3 sample = 1.0 - texture2D(map, vUv).rgb;',
' vec3 sample = ' + (negate ? '1.0 - ' : '') + 'texture2D(map, vUv).rgb;',
' float sigDist = median(sample.r, sample.g, sample.b) - 0.5;',

@@ -54,0 +56,0 @@ ' float alpha = clamp(sigDist/fwidth(sigDist) + 0.5, 0.0, 1.0);',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc