gl-scatter-plot
Advanced tools
Comparing version 5.1.0 to 5.2.0
{ | ||
"name": "gl-scatter-plot", | ||
"version": "5.1.0", | ||
"version": "5.2.0", | ||
"description": "3D scatter plot", | ||
@@ -5,0 +5,0 @@ "main": "pointcloud.js", |
@@ -79,3 +79,3 @@ 'use strict' | ||
this.highlightColor = [0,0,0] | ||
this.highlightColor = [0,0,0,1] | ||
this.highlightId = [1,1,1,1] | ||
@@ -153,3 +153,3 @@ | ||
this.highlightId = [1,1,1,1] | ||
this.highlightColor = [0,0,0] | ||
this.highlightColor = [0,0,0,1] | ||
} else { | ||
@@ -161,5 +161,9 @@ var a0 = pointId &0xff | ||
if(color) { | ||
this.highlightColor = color | ||
if(color.length === 3) { | ||
this.highlightColor = [color[0], color[1], color[2], 1] | ||
} else { | ||
this.highlightColor = color | ||
} | ||
} else { | ||
this.highlightColor = [0,0,0] | ||
this.highlightColor = [0,0,0,1] | ||
} | ||
@@ -230,3 +234,3 @@ } | ||
pointBuf.push(point[0], point[1], point[2]) | ||
colorBuf.push(color[0], color[1], color[2]) | ||
colorBuf.push(color[0], color[1], color[2], color[3]) | ||
idBuf.push(pickCounter) | ||
@@ -261,4 +265,7 @@ var x = positions[c[k]] | ||
} else { | ||
color = [0,0,0] | ||
color = [0,0,0,1] | ||
} | ||
if(color.length === 3) { | ||
color = [color[0], color[1], color[2], 1] | ||
} | ||
@@ -275,2 +282,5 @@ var lineColor | ||
} | ||
if(lineColor.length === 3) { | ||
lineColor = [lineColor[0], lineColor[1], lineColor[2], 1] | ||
} | ||
@@ -393,3 +403,3 @@ var size | ||
buffer: colorBuffer, | ||
size: 3, | ||
size: 4, | ||
type: gl.FLOAT | ||
@@ -396,0 +406,0 @@ }, |
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
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
458748
467