You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

gl-line-plot

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-line-plot - npm Package Compare versions

Comparing version
2.1.0
to
2.2.0
+16
-10
lines.js

@@ -107,9 +107,9 @@ 'use strict'

proto.update = function(options) {
if("pickId" in options) {
if('pickId' in options) {
this.pickId = options.pickId
}
if("lineWidth" in options) {
if('lineWidth' in options) {
this.lineWidth = options.lineWidth
}
if("dashScale" in options) {
if('dashScale' in options) {
this.dashScale = options.dashScale

@@ -124,3 +124,3 @@ }

//Default color
var colors = options.color || options.colors || [0,0,0]
var colors = options.color || options.colors || [0,0,0,1]

@@ -154,7 +154,13 @@ //Recalculate buffer data

}
if(acolor.length === 3) {
acolor = [acolor[0], acolor[1], acolor[2], 1]
}
if(bcolor.length === 3) {
bcolor = [bcolor[0], bcolor[1], bcolor[2], 1]
}
var t0 = arcLength
arcLength += distance(a, b)
buffer.push(a[0], a[1], a[2], t0, acolor[0], acolor[1], acolor[2],
b[0], b[1], b[2], arcLength, bcolor[0], bcolor[1], bcolor[2])
buffer.push(a[0], a[1], a[2], t0, acolor[0], acolor[1], acolor[2], acolor[3],
b[0], b[1], b[2], arcLength, bcolor[0], bcolor[1], bcolor[2], bcolor[3])

@@ -256,3 +262,3 @@ vertexCount += 2

'offset': 0,
'stride': 28
'stride': 32
},

@@ -263,9 +269,9 @@ {

'offset': 12,
'stride': 28
'stride': 32
},
{
'buffer': buffer,
'size': 3,
'size': 4,
'offset': 16,
'stride': 28
'stride': 32
}

@@ -272,0 +278,0 @@ ])

{
"name": "gl-line-plot",
"version": "2.1.0",
"version": "2.2.0",
"description": "3D line plot",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet