Socket
Socket
Sign inDemoInstall

gl-line3d

Package Overview
Dependencies
Maintainers
27
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-line3d - npm Package Compare versions

Comparing version 1.1.9 to 1.1.10

12

lines.js

@@ -64,2 +64,3 @@ 'use strict'

this.opacity = 1
this.hasAlpha = false
this.dirty = true

@@ -72,7 +73,7 @@ this.pixelRatio = 1

proto.isTransparent = function () {
return this.opacity < 1
return this.hasAlpha
}
proto.isOpaque = function () {
return this.opacity >= 1
return !this.hasAlpha
}

@@ -138,4 +139,9 @@

}
this.hasAlpha = false // default to no transparent draw
if ('opacity' in options) {
this.opacity = +options.opacity
if(this.opacity < 1) {
this.hasAlpha = true;
}
}

@@ -209,2 +215,4 @@

if(!this.hasAlpha && acolor[3] < 1) this.hasAlpha = true
var w0

@@ -211,0 +219,0 @@ if (Array.isArray(lineWidth)) {

2

package.json
{
"name": "gl-line3d",
"version": "1.1.9",
"version": "1.1.10",
"description": "3D line plot",

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

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