diff --git a/package-lock.json b/package-lock.json index c6bad10..fd468b4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2950,9 +2950,9 @@ "dev": true }, "handlebars": { - "version": "4.4.3", - "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.4.3.tgz", - "integrity": "sha512-B0W4A2U1ww3q7VVthTKfh+epHx+q4mCt6iK+zEAzbMBpWQAwxCeKxEGpj/1oQTpzPXDNSOG7hmG14TsISH50yw==", + "version": "4.7.3", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.3.tgz", + "integrity": "sha512-SRGwSYuNfx8DwHD/6InAPzD6RgeruWLT+B8e8a7gGs8FWgHzlExpTFMEq2IA6QpAfOClpKHy6+8IqTjeBCu6Kg==", "dev": true, "requires": { "neo-async": "^2.6.0", @@ -5782,9 +5782,9 @@ "dev": true }, "three": { - "version": "0.110.0", - "resolved": "https://registry.npmjs.org/three/-/three-0.110.0.tgz", - "integrity": "sha512-wlurH8XBO9Sd5VIw8nBa+taLR20kqaI4e9FiuMh6tqK8eOS2q2R+ZoUyufbyDTVTHhs8GiTbv0r2CMLkwerFJg==", + "version": "0.113.2", + "resolved": "https://registry.npmjs.org/three/-/three-0.113.2.tgz", + "integrity": "sha512-x3vrKW41/UtbWbWduWKGlfIc043SvHWr3YltehYq+UGb9YglQ2oztNGvl2eut05JtNSmP11Mh3t6Xak5/0e+Fg==", "dev": true }, "throat": { @@ -6038,14 +6038,23 @@ "dev": true }, "uglify-js": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.1.tgz", - "integrity": "sha512-+dSJLJpXBb6oMHP+Yvw8hUgElz4gLTh82XuX68QiJVTXaE5ibl6buzhNkQdYhBlIhozWOC9ge16wyRmjG4TwVQ==", + "version": "3.7.7", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.7.7.tgz", + "integrity": "sha512-FeSU+hi7ULYy6mn8PKio/tXsdSXN35lm4KgV2asx00kzrLU9Pi3oAslcJT70Jdj7PHX29gGUPOT6+lXGBbemhA==", "dev": true, "optional": true, "requires": { - "commander": "2.20.0", + "commander": "~2.20.3", "source-map": "~0.6.1" + }, + "dependencies": { + "commander": { + "version": "2.20.3", + "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", + "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", + "dev": true, + "optional": true + } } }, "union-value": { diff --git a/package.json b/package.json index f3022f1..d9ca6d7 100644 --- a/package.json +++ b/package.json @@ -38,14 +38,14 @@ "@types/node": "^12.12.3", "jest": "^24.9.0", "standard-version": "^7.0.0", - "three": "^0.110.0", + "three": "^0.113.2", "ts-jest": "^24.1.0", "tslint": "^5.20.0", "tslint-config-standard": "^8.0.1", "typescript": "^3.6.4" }, "peerDependencies": { - "three": ">= 0.104.0 < 1" + "three": ">= 0.113.0 < 1" }, "files": [ "lib/**/*" diff --git a/src/index.ts b/src/index.ts index b462d95..c02e71d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -80,7 +80,7 @@ export class CSG { } } const inv = new Matrix4().getInverse(toMatrix); - geom.applyMatrix(inv); + geom.applyMatrix4(inv); geom.verticesNeedUpdate = geom.elementsNeedUpdate = geom.normalsNeedUpdate = true; geom.computeBoundingSphere(); geom.computeBoundingBox();