gl-line3d
Advanced tools
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)) { |
{ | ||
"name": "gl-line3d", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "3D line plot", | ||
@@ -5,0 +5,0 @@ "main": "lines.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21155
496