gltf-bounding-box
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "gltf-bounding-box", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Computes the global bounding box of a gltf model", | ||
@@ -64,5 +64,5 @@ "main": "dist/gltf-bounding-box.js", | ||
"dependencies": { | ||
"lodash": "^4.17.4", | ||
"lodash": "^4.17.5", | ||
"matrixmath": "^2.2.2" | ||
} | ||
} |
@@ -74,2 +74,5 @@ import { Matrix } from 'matrixmath'; | ||
// Specify identity matrix if not present | ||
const nodeMatrix = node[childNodeName].matrix || [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; | ||
return parentNodeName ? | ||
@@ -79,3 +82,3 @@ | ||
[ | ||
nodes[childNodeName].matrix, | ||
nodeMatrix, | ||
...this.getParentNodesMatrices(parentNodeName, nodes), | ||
@@ -85,3 +88,3 @@ ].filter(matrix => matrix) : | ||
// If not, only return the current matrix (if any) | ||
[nodes[childNodeName].matrix] || []; | ||
[nodeMatrix]; | ||
}, | ||
@@ -88,0 +91,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2495416
23
20498
Updatedlodash@^4.17.5