90+ severe exploits, almost 400 total security issues were resolved.
This is somewhat expected for ~6700 packages worth of dependencies.
TODO:
Consider removing lock file so NPM always installs updated dependencies.
This raises the package.json version above 1.6.0 (the stable release).
Some relevant keywords were added for better search results.
Also, gulp-util isn't used anywhere, and it's officially deprecated.
It should be removed as a dependency.
This patches the condition where d3 scaleX invert results in 0 radius.
Exact console warning for reference:
THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0
When the point's scale is set to 0, 0, 0, the position becomes 0, 0, 0,
and ultimately, all of the matrix elements become 0, which is invalid.
Specifically for Matrix3, ThreeJS can't invert something with all zeros.
Here, we avoid this mishap by simply making the radius super duper tiny.
0.000000001 is pretty close to 0, and it won't make Three flip out.
TODO: Fix d3 scaleX invert calls so we don't get a bunch of bad returns.
This patches the condition where first 4 Matrix4 elements are 0.
Exact console warning for reference:
THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0
This sometimes occurs with measurements. These elements will always be
factored with the other elements when getInverse() is called,
meaning the result will be 0 (an invalid state with no inverse).
In these cases, ThreeJS will return an identity Matrix4. We can sidestep
a bunch of math, saving CPU cycles, by checking these 4 values.
If all are 0 or don't exist, the determinant will always be 0.
TODO: Eventually, we should figure out how to prevent invalid Matrix4s.
For now, this is better than wasting CPU and forcing Three to help us.
This has the same name as the ProfileWindowController, but goes unused.
Only calls render() anyway, and hasn't changed in 2 years.
Use the controller to actually set profiles.