gl-scatter-plot
Advanced tools
Comparing version 5.5.2 to 5.5.3
@@ -57,3 +57,3 @@ var shell = require("gl-now")({tickRate: 2}) | ||
}) | ||
select = createSelect(gl, [shell.height, shell.width]) | ||
select = createSelect(gl, [shell.width, shell.height]) | ||
}) | ||
@@ -64,3 +64,3 @@ | ||
//Update size of select buffer | ||
select.shape = [shell.height, shell.width] | ||
select.shape = [shell.width, shell.height] | ||
@@ -101,3 +101,3 @@ //Begin pass, look for points within 30 pixels of mouse | ||
model: [1/SCALE, 0, 0, 0, | ||
0, 1/SCALE, 0, 0, | ||
0, 3/SCALE, 0, 0, | ||
0, 0, 1/SCALE, 0, | ||
@@ -104,0 +104,0 @@ 0, 0, 0, 1] |
{ | ||
"name": "gl-scatter-plot", | ||
"version": "5.5.2", | ||
"version": "5.5.3", | ||
"description": "3D scatter plot", | ||
@@ -5,0 +5,0 @@ "main": "pointcloud.js", |
@@ -190,2 +190,10 @@ 'use strict' | ||
} | ||
var su = 0.0 | ||
var sv = 0.0 | ||
for(var j=0; j<4; ++j) { | ||
su += Math.pow(model[4*u+j], 2) | ||
sv += Math.pow(model[4*v+j], 2) | ||
} | ||
du[u] /= Math.sqrt(su) | ||
dv[v] /= Math.sqrt(sv) | ||
uniforms.axes = [du, dv] | ||
@@ -192,0 +200,0 @@ |
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
468092
703