language
stringclasses
1 value
owner
stringlengths
2
15
repo
stringlengths
2
21
sha
stringlengths
45
45
message
stringlengths
7
36.3k
path
stringlengths
1
199
patch
stringlengths
15
102k
is_multipart
bool
2 classes
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/GeometryEditor.js
@@ -1,75 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.GeometryEditor = function ( geometry ) { - - this.geometry = geometry; - -}; - -Object.defineProperties( THREE.GeometryEditor.prototype, { - vertices: { - enumerable: true, - get: function() { return this.createVertexProxies(); } - }, - norm...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/IndexedTypedGeometry.js
@@ -1,28 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.IndexedTypedGeometry = function () { - - THREE.BufferGeometry.call( this ); - -}; - -THREE.IndexedTypedGeometry.prototype = Object.create( THREE.BufferGeometry.prototype ); -THREE.IndexedTypedGeometry.prototype.constructor = THREE.IndexedTypedG...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/PlaneTypedGeometry.js
@@ -1,92 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.PlaneTypedGeometry = function ( width, height, widthSegments, heightSegments ) { - - this.parameters = { - width: width, - ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/ProxyGeometry.js
@@ -1,755 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * @author kile / http://kile.stravaganza.org/ - * @author alteredq / http://alteredqualia.com/ - * @author mikael emtinger / http://gomo.se/ - * @author zz85 / http://www.lab4games.net/zz85/blog - * @author bhouston / http://exocortex.com - * @author jbai...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/TypedGeometry.js
@@ -1,120 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.TypedGeometry = function ( size ) { - - THREE.BufferGeometry.call( this ); - - if ( size !== undefined ) { - - this.setArrays( - new Float32Array( size * 3 * 3 ), - new Float32Array( size * 3 * 3 ), - new Float32Array( size * 3 * 2 ) -...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/BoxGeometry2.js
@@ -1,114 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Cube.as - */ - -THREE.BoxGeometry2 = function ( width, height, depth, widthSegments, heightSegments, depthSegments ) { - - var scope = this; - - th...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/Geometry2.js
@@ -1,20 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.Geometry2 = function ( size ) { - - THREE.BufferGeometry.call( this ); - - this.vertices = new THREE.Float32Attribute( size, 3 ); - this.normals = new THREE.Float32Attribute( size, 3 ); - this.uvs = new THREE.Float32Attribute( size, 2 ); - - th...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/Geometry2Loader.js
@@ -1,67 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.Geometry2Loader = function ( manager ) { - - this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; - -}; - -THREE.Geometry2Loader.prototype = { - - constructor: THREE.Geometry2Loader, - - load: function...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/Geometry3.js
@@ -1,32 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.Geometry3 = function ( size ) { - - THREE.BufferGeometry.call( this ); - - var verticesBuffer = new ArrayBuffer( size * 3 * 4 ); - var normalsBuffer = new ArrayBuffer( size * 3 * 4 ); - var uvsBuffer = new ArrayBuffer( size * 2 * 4 ); - - this....
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/Geometry4.js
@@ -1,85 +0,0 @@ -THREE.Geometry4 = function ( size ) { - - THREE.BufferGeometry.call( this ); - - var verticesBuffer = new ArrayBuffer( size * 3 * 4 ); - var normalsBuffer = new ArrayBuffer( size * 3 * 4 ); - var uvsBuffer = new ArrayBuffer( size * 2 * 4 ); - - this.attributes[ 'position' ] = { array: new Float32Array...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/Geometry5.js
@@ -1,78 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.Geometry5 = function ( size ) { - - THREE.BufferGeometry.call( this ); - - var verticesBuffer = new Float32Array( size * 3 ); - var normalsBuffer = new Float32Array( size * 3 ); - var uvsBuffer = new Float32Array( size * 2 ); - - this.vertices ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/Geometry5b.js
@@ -1,76 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.Geometry5b = function ( bufferGeometry ) { - - THREE.BufferGeometry.call( this ); - - this.attributes = bufferGeometry.attributes; - - var verticesBuffer = this.attributes.position.array; - var normalsBuffer = this.attributes.normal.array; - va...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/IndexedGeometry3.js
@@ -1,34 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.IndexedGeometry3 = function ( indices, size ) { - - THREE.BufferGeometry.call( this ); - - var verticesBuffer = new ArrayBuffer( size * 3 * 4 ); - var normalsBuffer = new ArrayBuffer( size * 3 * 4 ); - var uvsBuffer = new ArrayBuffer( size * 2 ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/IndexedGeometry5.js
@@ -1,80 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.IndexedGeometry5 = function ( indices, size ) { - - THREE.BufferGeometry.call( this ); - - var verticesBuffer = new Float32Array( size * 3 ); - var normalsBuffer = new Float32Array( size * 3 ); - var uvsBuffer = new Float32Array( size * 2 ); - ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/IndexedPlaneGeometry5.js
@@ -1,83 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.IndexedPlaneGeometry5 = function ( width, height, widthSegments, heightSegments ) { - - this.width = width; - this.height = h...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry.js
@@ -1,79 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.PlaneGeometry = function ( width, height, widthSegments, heightSegments ) { - - THREE.Geometry.call( this ); - - this.width =...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry2.js
@@ -1,76 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.PlaneGeometry2 = function ( width, height, widthSegments, heightSegments ) { - - THREE.Geometry2.call( this, ( widthSegments ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry2b.js
@@ -1,66 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.PlaneGeometry2b = function ( width, height, widthSegments, heightSegments ) { - - THREE.Geometry2.call( this, ( widthSegments...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry3.js
@@ -1,76 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.PlaneGeometry3 = function ( width, height, widthSegments, heightSegments ) { - - THREE.Geometry3.call( this, ( widthSegments ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry5.js
@@ -1,66 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as - */ - -THREE.PlaneGeometry5 = function ( width, height, widthSegments, heightSegments ) { - - THREE.Geometry5.call( this, ( widthSegments ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry6.js
@@ -1,30 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.PlaneGeometry6 = function ( width, height, widthSegments, heightSegments ) { - - THREE.PlaneBufferGeometry.call( this, width, height, widthSegments, heightSegments ); - - var indices = this.attributes.index.array; - var vertices = this.attribut...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/PlaneGeometry99.js
@@ -1,93 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - */ - -THREE.PlaneGeometry99 = function ( width, height, widthSegments, heightSegments ) { - - THREE.Geometry99.call( this ); - - this.parameters = { - width: width, - height: height, - widthSegments: widthSegments, - heightSegments: heightSegments - };...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/benchmark/TypedGeometry.js
@@ -1,178 +0,0 @@ -THREE.TypedVector2 = function ( array, offset ) { - - this.array = array; - this.offset = offset * 2; - -}; - -THREE.TypedVector2.prototype = { - - constructor: THREE.TypedVector2, - - get x () { - - return this.array[ this.offset ]; - - }, - - set x ( value ) { - - this.array[ this.offset ] = valu...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/MultiColor.js
@@ -1,39 +0,0 @@ -// Allows updating of multiple THREE.Color objects with the same value -// Used for face.color -> face.vertexColor[] compatibility layer for non-indexed geometry - -THREE.MultiColor = function(links) { - - this.links = links; - -}; - -THREE.MultiColor.prototype = Object.create( THREE.Color.prototype )...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/MultiVector3.js
@@ -1,40 +0,0 @@ -// Allows updating of multiple THREE.Vector3 objects with the same value -// Used for face.normal -> face.vertexNormal[] compatibility layer for FlatShading - -THREE.MultiVector3 = function(links) { - - this.links = links; - -}; - -THREE.MultiVector3.prototype = Object.create( THREE.Vector3.prototype ...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/ProxyColor.js
@@ -1,33 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * @author jbaicoianu / http://baicoianu.com/ - */ - -THREE.ProxyColor = function ( array, offset ) { - - this.array = array; - this.offset = offset; - -}; - -THREE.ProxyColor.prototype = Object.create( THREE.Color.prototype ); -THREE.ProxyColor.prototype.c...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/ProxyFace3.js
@@ -1,40 +0,0 @@ -/** - * @author jbaicoianu / http://baicoianu.com/ - */ - -THREE.ProxyFace3 = function ( array, offset, vertexNormals, vertexColors, vertexTangents ) { - - this.array = array; - this.offset = offset; - this.vertexNormals = vertexNormals || []; - this.vertexColors = vertexColors || []; - this.vertexTan...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/ProxyVector2.js
@@ -1,26 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * @author jbaicoianu / http://baicoianu.com/ - */ - -THREE.ProxyVector2 = function ( array, offset ) { - - this.array = array; - this.offset = offset; - -}; - -THREE.ProxyVector2.prototype = Object.create( THREE.Vector2.prototype ); -THREE.ProxyVector2.pr...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/ProxyVector3.js
@@ -1,30 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * @author jbaicoianu / http://baicoianu.com/ - */ - -THREE.ProxyVector3 = function ( array, offset ) { - - this.array = array; - this.offset = offset; - -}; - -THREE.ProxyVector3.prototype = Object.create( THREE.Vector3.prototype ); -THREE.ProxyVector3.pr...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/js/wip/proxies/ProxyVector4.js
@@ -1,34 +0,0 @@ -/** - * @author mrdoob / http://mrdoob.com/ - * @author jbaicoianu / http://baicoianu.com/ - */ - -THREE.ProxyVector4 = function ( array, offset ) { - - this.array = array; - this.offset = offset; - -}; - -THREE.ProxyVector4.prototype = Object.create( THREE.Vector4.prototype ); -THREE.ProxyVector4.pr...
true
Other
mrdoob
three.js
5456e02a145105374f1fc6365b1f462e407d0301.json
Remove wip / TypedGeometry Minecraft demo modified to use a mix of Geometry and BufferGeometry. See #6803.
examples/webgl_geometry_minecraft.html
@@ -49,10 +49,6 @@ <script src="js/Detector.js"></script> <script src="js/libs/stats.min.js"></script> - <script src="js/wip/TypedGeometry.js"></script> - <script src="js/wip/IndexedTypedGeometry.js"></script> - <script src="js/wip/PlaneTypedGeometry.js"></script> - <script> if ( ! Detector.webgl ) ...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
package.json
@@ -28,6 +28,7 @@ }, "homepage": "http://threejs.org/", "devDependencies": { - "jscs": "^1.13.1" + "jscs": "^1.13.1", + "lodash": "^3.10.0" } }
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/SmartComparer.js
@@ -0,0 +1,177 @@ +// Smart comparison of three.js objects. +// Identifies significant differences between two objects. +// Performs deep comparison. +// Comparison stops after the first difference is found. +// Provides an explanation for the failure. +function SmartComparer() { + 'use strict'; + + // Diagnostic messa...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/ImageUtils.test.js
@@ -63,21 +63,21 @@ QUnit.test( "test cached texture", function( assert ) { assert.ok( rtex1.image !== undefined, "texture 1 image is loaded" ); assert.equal( rtex1, tex1, "texture 1 callback is equal to return" ); - + var rtex2 = THREE.ImageUtils.loadTexture( good_url, undefined, function ( tex2 ) { - ...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/BoxGeometry.tests.js
@@ -0,0 +1,38 @@ +(function () { + + 'use strict'; + + var parameters = { + width: 10, + height: 20, + depth: 30, + widthSegments: 2, + heightSegments: 3, + depthSegments: 4, + }; + + var geometries; + var box, cube, boxWithSegments; + + QUnit.module( "Extras - Geometries - BoxGeometry", { + + beforeEach: functi...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/CircleBufferGeometry.tests.js
@@ -0,0 +1,38 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + segments: 20, + thetaStart: 0.1, + thetaLength: 0.2 + }; + + var geometries; + + QUnit.module( "Extras - Geometries - CircleBufferGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.CircleBufferGeo...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/CircleGeometry.tests.js
@@ -0,0 +1,38 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + segments: 20, + thetaStart: 0.1, + thetaLength: 0.2 + }; + + var geometries; + + QUnit.module( "Extras - Geometries - CircleGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.CircleGeometry(), + ...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/CylinderGeometry.tests.js
@@ -0,0 +1,46 @@ +(function () { + + 'use strict'; + + var parameters = { + radiusTop: 10, + radiusBottom: 20, + height: 30, + radialSegments: 20, + heightSegments: 30, + openEnded: true, + thetaStart: 0.1, + thetaLength: 2.0, + }; + + var geometries; + + QUnit.module( "Extras - Geometries - CylinderGeometry", ...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/DodecahedronGeometry.tests.js
@@ -0,0 +1,34 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + detail: undefined + }; + + var geometries; + + QUnit.module( "Extras - Geometries - DodecahedronGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.DodecahedronGeometry(), + new THREE.Dodecahedron...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/ExtrudeGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/IcosahedronGeometry.tests.js
@@ -0,0 +1,34 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + detail: undefined + }; + + var geometries; + + QUnit.module( "Extras - Geometries - IcosahedronGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.IcosahedronGeometry(), + new THREE.IcosahedronGeo...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/LatheGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/OctahedronGeometry.tests.js
@@ -0,0 +1,34 @@ +(function() { + + 'use strict'; + + var parameters = { + radius: 10, + detail: undefined + }; + + var geometries; + + QUnit.module( "Extras - Geometries - OctahedronGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.OctahedronGeometry(), + new THREE.OctahedronGeometr...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/ParametricGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/PlaneBufferGeometry.tests.js
@@ -0,0 +1,38 @@ +(function () { + + 'use strict'; + + var parameters = { + width: 10, + height: 30, + widthSegments: 3, + heightSegments: 5 + }; + + var geometries; + + QUnit.module( "Extras - Geometries - PlaneBufferGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.PlaneBufferGeomet...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/PlaneGeometry.tests.js
@@ -0,0 +1,38 @@ +(function () { + + 'use strict'; + + var parameters = { + width: 10, + height: 30, + widthSegments: 3, + heightSegments: 5 + }; + + var geometries; + + QUnit.module( "Extras - Geometries - PlaneGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.PlaneGeometry(), + n...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/PolyhedronGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/RingGeometry.tests.js
@@ -0,0 +1,42 @@ +(function () { + + 'use strict'; + + var parameters = { + innerRadius: 10, + outerRadius: 60, + thetaSegments: 12, + phiSegments: 14, + thetaStart: 0.1, + thetaLength: 2.0 + }; + + var geometries; + + QUnit.module( "Extras - Geometries - RingGeometry", { + + beforeEach: function() { + + geome...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/ShapeGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/SphereBufferGeometry.tests.js
@@ -0,0 +1,44 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + widthSegments: 20, + heightSegments: 30, + phiStart: 0.5, + phiLength: 1.0, + thetaStart: 0.4, + thetaLength: 2.0, + }; + + var geometries; + + QUnit.module( "Extras - Geometries - SphereBufferGeometry", { + + beforeEach: ...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/SphereGeometry.tests.js
@@ -0,0 +1,44 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + widthSegments: 20, + heightSegments: 30, + phiStart: 0.5, + phiLength: 1.0, + thetaStart: 0.4, + thetaLength: 2.0, + }; + + var geometries; + + QUnit.module( "Extras - Geometries - SphereGeometry", { + + beforeEach: functi...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/TetrahedronGeometry.tests.js
@@ -0,0 +1,34 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + detail: undefined + }; + + var geometries; + + QUnit.module( "Extras - Geometries - TetrahedronGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.TetrahedronGeometry(), + new THREE.TetrahedronGeo...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/TextGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/TorusGeometry.tests.js
@@ -0,0 +1,40 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + tube: 20, + radialSegments: 30, + tubularSegments: 10, + arc: 2.0, + }; + + var geometries; + + QUnit.module( "Extras - Geometries - TorusGeometry", { + + beforeEach: function() { + + geometries = [ + + new THREE.TorusG...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/TorusKnotGeometry.tests.js
@@ -0,0 +1,42 @@ +(function () { + + 'use strict'; + + var parameters = { + radius: 10, + tube: 20, + radialSegments: 30, + tubularSegments: 10, + p: 3, + q: 2, + heightScale: 2.0 + }; + + var geometries; + + QUnit.module( "Extras - Geometries - TorusKnotGeometry", { + + beforeEach: function() { + + geometrie...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/TubeGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/extras/geometries/WireframeGeometry.tests.js
@@ -0,0 +1 @@ +// TODO \ No newline at end of file
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/qunit-utils.js
@@ -5,13 +5,141 @@ QUnit.assert.success = function( message ) { // Equivalent to assert( true, message ); - QUnit.assert.push( true, undefined, undefined, message ); + QUnit.assert.push( true, undefined, undefined, message ); }; QUnit.assert.fail = function( message ) { // Equivalent to assert( false, m...
true
Other
mrdoob
three.js
faa8745f58c4ef155ab807f4ef04318ba021a3bd.json
Add unit tests Covers construction, cloning, json import/export. Use lodash from npm.
test/unit/unittests_three.html
@@ -7,9 +7,11 @@ </head> <body> <div id="qunit"></div> + <script src="../../node_modules/lodash/index.js"></script> <script src="qunit-1.18.0.js"></script> <script src="qunit-utils.js"></script> - + <script src="SmartComparer.js"></script> + <!-- add sources to test below --> <script src="../../b...
true
Other
mrdoob
three.js
6cc768f0b459a344f3f4464551576fbdb2e0626e.json
Remove recursive arg from Mesh.clone()
src/objects/Mesh.js
@@ -305,16 +305,16 @@ THREE.Mesh.prototype.raycast = ( function () { }() ); -THREE.Mesh.prototype.clone = function ( recursive ) { +THREE.Mesh.prototype.clone = function () { var mesh = new THREE.Mesh( this.geometry, this.material ); return this.cloneProperties( mesh ); }; -THREE.Mesh.prototype.clonePro...
false
Other
mrdoob
three.js
1c568ed1f547b94b2aa5315ec24a91ec34fe5e13.json
fix an issue wher buffers don't get deleted
src/renderers/webgl/WebGLGeometries.js
@@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLGeometries = function ( gl, info ) { +THREE.WebGLGeometries = function ( gl,properties, info ) { var geometries = {}; @@ -48,12 +48,12 @@ THREE.WebGLGeometries = function ( gl, info ) { for ( var name in buffergeometry.attributes ) { ...
true
Other
mrdoob
three.js
1c568ed1f547b94b2aa5315ec24a91ec34fe5e13.json
fix an issue wher buffers don't get deleted
src/renderers/webgl/WebGLObjects.js
@@ -8,7 +8,7 @@ THREE.WebGLObjects = function ( gl, properties, info ) { var morphInfluences = new Float32Array( 8 ); - var geometries = new THREE.WebGLGeometries( gl, info ); + var geometries = new THREE.WebGLGeometries( gl, properties, info ); //
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/js/controls/OrthographicTrackballControls.js
@@ -123,7 +123,7 @@ THREE.OrthographicTrackballControls = function ( object, domElement ) { var vector = new THREE.Vector2(); - return function ( pageX, pageY ) { + return function getMouseOnScreen ( pageX, pageY ) { vector.set( ( pageX - _this.screen.left ) / _this.screen.width, @@ -142,7 +142,7 @@...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/js/controls/TrackballControls.js
@@ -115,7 +115,7 @@ THREE.TrackballControls = function ( object, domElement ) { var vector = new THREE.Vector2(); - return function ( pageX, pageY ) { + return function getMouseOnScreen ( pageX, pageY ) { vector.set( ( pageX - _this.screen.left ) / _this.screen.width, @@ -132,7 +132,7 @@ THREE.Track...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/js/exporters/STLBinaryExporter.js
@@ -15,7 +15,7 @@ THREE.STLBinaryExporter.prototype = { var vector = new THREE.Vector3(); var normalMatrixWorld = new THREE.Matrix3(); - return function ( scene ) { + return function parse ( scene ) { var triangles = 0; scene.traverse( function ( object ) {
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/js/exporters/STLExporter.js
@@ -14,7 +14,7 @@ THREE.STLExporter.prototype = { var vector = new THREE.Vector3(); var normalMatrixWorld = new THREE.Matrix3(); - return function ( scene ) { + return function parse ( scene ) { var output = '';
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/js/renderers/RaytracingRenderer.js
@@ -103,7 +103,7 @@ THREE.RaytracingRenderer = function ( parameters ) { } - return function ( rayOrigin, rayDirection, outputColor, recursionDepth ) { + return function spawnRay ( rayOrigin, rayDirection, outputColor, recursionDepth ) { var ray = raycaster.ray; @@ -355,7 +355,7 @@ THREE.RaytracingRend...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/js/wip/TypedGeometry.js
@@ -40,7 +40,7 @@ THREE.TypedGeometry.prototype.merge = ( function () { var offset = 0; var normalMatrix = new THREE.Matrix3(); - return function ( geometry, matrix, startOffset ) { + return function merge ( geometry, matrix, startOffset ) { if ( startOffset !== undefined ) offset = startOffset;
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
examples/webgl_geometry_text2.html
@@ -77,7 +77,7 @@ <script> THREE.Shape.Utils.triangulateShape = ( function () { var pnlTriangulator = new PNLTRI.Triangulator(); - return function ( contour, holes ) { + return function triangulateShape ( contour, holes ) { // console.log("new Triangulation: PnlTri.js " + PNLTRI.REVISION ); ...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/extras/audio/Audio.js
@@ -123,7 +123,7 @@ THREE.Audio.prototype.updateMatrixWorld = ( function () { var position = new THREE.Vector3(); - return function ( force ) { + return function updateMatrixWorld ( force ) { THREE.Object3D.prototype.updateMatrixWorld.call( this, force );
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/extras/audio/AudioListener.js
@@ -23,7 +23,7 @@ THREE.AudioListener.prototype.updateMatrixWorld = ( function () { var orientation = new THREE.Vector3(); - return function ( force ) { + return function updateMatrixWorld ( force ) { THREE.Object3D.prototype.updateMatrixWorld.call( this, force );
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/extras/core/Gyroscope.js
@@ -1,65 +1,65 @@ -/** - * @author alteredq / http://alteredqualia.com/ - */ - -THREE.Gyroscope = function () { - - THREE.Object3D.call( this ); - -}; - -THREE.Gyroscope.prototype = Object.create( THREE.Object3D.prototype ); +/** + * @author alteredq / http://alteredqualia.com/ + */ + +THREE.Gyroscope = func...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/extras/helpers/ArrowHelper.js
@@ -22,7 +22,7 @@ THREE.ArrowHelper = ( function () { var coneGeometry = new THREE.CylinderGeometry( 0, 0.5, 1, 5, 1 ); coneGeometry.applyMatrix( new THREE.Matrix4().makeTranslation( 0, - 0.5, 0 ) ); - return function ( dir, origin, length, color, headLength, headWidth ) { + return function ArrowHelper ( dir, ori...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/extras/helpers/FaceNormalsHelper.js
@@ -59,7 +59,7 @@ THREE.FaceNormalsHelper.prototype.update = ( function () { var v1 = new THREE.Vector3(); var v2 = new THREE.Vector3(); - return function() { + return function update ( ) { this.object.updateMatrixWorld( true );
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/extras/helpers/VertexNormalsHelper.js
@@ -57,7 +57,7 @@ THREE.VertexNormalsHelper.prototype.update = ( function () { var v1 = new THREE.Vector3(); var v2 = new THREE.Vector3(); - return function() { + return function update ( ) { var keys = [ 'a', 'b', 'c' ];
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/loaders/Loader.js
@@ -1,398 +1,398 @@ -/** - * @author alteredq / http://alteredqualia.com/ - */ - -THREE.Loader = function () { - - this.onLoadStart = function () {}; - this.onLoadProgress = function () {}; - this.onLoadComplete = function () {}; - -}; - -THREE.Loader.prototype = { - - constructor: THREE.Loader, - - cro...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/math/Vector2.js
@@ -256,7 +256,7 @@ THREE.Vector2.prototype = { var min, max; - return function ( minVal, maxVal ) { + return function clampScalar ( minVal, maxVal ) { if ( min === undefined ) {
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/math/Vector3.js
@@ -486,7 +486,7 @@ THREE.Vector3.prototype = { var min, max; - return function ( minVal, maxVal ) { + return function clampScalar ( minVal, maxVal ) { if ( min === undefined ) {
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/math/Vector4.js
@@ -498,7 +498,7 @@ THREE.Vector4.prototype = { var min, max; - return function ( minVal, maxVal ) { + return function clampScalar ( minVal, maxVal ) { if ( min === undefined ) {
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/objects/LOD.js
@@ -73,7 +73,7 @@ THREE.LOD.prototype.raycast = ( function () { var matrixPosition = new THREE.Vector3(); - return function ( raycaster, intersects ) { + return function raycast ( raycaster, intersects ) { matrixPosition.setFromMatrixPosition( this.matrixWorld );
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/objects/Line.js
@@ -28,7 +28,7 @@ THREE.Line.prototype.raycast = ( function () { var ray = new THREE.Ray(); var sphere = new THREE.Sphere(); - return function ( raycaster, intersects ) { + return function raycast ( raycaster, intersects ) { var precision = raycaster.linePrecision; var precisionSq = precision * precision;
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/objects/Mesh.js
@@ -66,7 +66,7 @@ THREE.Mesh.prototype.raycast = ( function () { var vB = new THREE.Vector3(); var vC = new THREE.Vector3(); - return function ( raycaster, intersects ) { + return function raycast ( raycaster, intersects ) { var geometry = this.geometry; var material = this.material;
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/objects/PointCloud.js
@@ -21,7 +21,7 @@ THREE.PointCloud.prototype.raycast = ( function () { var inverseMatrix = new THREE.Matrix4(); var ray = new THREE.Ray(); - return function ( raycaster, intersects ) { + return function raycast ( raycaster, intersects ) { var object = this; var geometry = object.geometry;
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/objects/Skeleton.js
@@ -145,7 +145,7 @@ THREE.Skeleton.prototype.update = ( function () { var offsetMatrix = new THREE.Matrix4(); - return function () { + return function update ( ) { // flatten bone matrices to array
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/objects/Sprite.js
@@ -14,7 +14,7 @@ THREE.Sprite = ( function () { geometry.addAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) ); geometry.addAttribute( 'uv', new THREE.BufferAttribute( uvs, 2 ) ); - return function ( material ) { + return function Sprite ( material ) { THREE.Object3D.call( this ); @@ -34,7 ...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/renderers/WebGLRenderer.js
@@ -312,7 +312,7 @@ THREE.WebGLRenderer = function ( parameters ) { var array; - return function () { + return function getCompressedTextureFormats ( ) { if ( array !== undefined ) { @@ -439,7 +439,7 @@ THREE.WebGLRenderer = function ( parameters ) { var value; - return function () { + return ...
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/renderers/webgl/WebGLProgram.js
@@ -76,7 +76,7 @@ THREE.WebGLProgram = ( function () { } - return function ( renderer, code, material, parameters ) { + return function WebGLProgram ( renderer, code, material, parameters ) { var gl = renderer.context;
true
Other
mrdoob
three.js
22b4a311c7c1af6f56578153f2d3944ef8d90f17.json
add function definintion to closured functions
src/renderers/webgl/WebGLShader.js
@@ -14,7 +14,7 @@ THREE.WebGLShader = ( function () { }; - return function ( gl, type, string ) { + return function WebGLShader ( gl, type, string ) { var shader = gl.createShader( type );
true
Other
mrdoob
three.js
342d064345ea802c0fba82d1f389e3ae5800d7fe.json
add example usage
src/objects/Mesh.js
@@ -65,6 +65,11 @@ THREE.Mesh.prototype.raycast = ( function () { var vA = new THREE.Vector3(); var vB = new THREE.Vector3(); var vC = new THREE.Vector3(); + + var tempA = new THREE.Vector3(); + var tempB = new THREE.Vector3(); + var tempC = new THREE.Vector3(); + return function ( raycaster, intersects ) { ...
false
Other
mrdoob
three.js
38ad9b560e25db5d5fd596160652884ad5bd1bbd.json
Use version counter for texture updates. - Use version counter for texture updates. - WebGLTextures is not used (removed).
src/renderers/WebGLRenderer.js
@@ -3217,9 +3217,7 @@ THREE.WebGLRenderer = function ( parameters ) { } - this.uploadTexture = function ( texture, slot ) { - - var textureProperties = properties.get( texture ); + function uploadTexture( textureProperties, texture, slot ) { if ( textureProperties.__webglInit === undefined ) { @@ -3329,15...
true
Other
mrdoob
three.js
38ad9b560e25db5d5fd596160652884ad5bd1bbd.json
Use version counter for texture updates. - Use version counter for texture updates. - WebGLTextures is not used (removed).
src/renderers/webgl/WebGLTextures.js
@@ -1,41 +0,0 @@ -/** -* @author mrdoob / http://mrdoob.com/ -*/ - -THREE.WebGLTextures = function ( gl ) { - - var textures = {}; - - this.get = function ( texture ) { - - if ( textures[ texture.id ] !== undefined ) { - - return textures[ texture.id ]; - - } - - return this.create( texture ); - - }; - - this.crea...
true
Other
mrdoob
three.js
38ad9b560e25db5d5fd596160652884ad5bd1bbd.json
Use version counter for texture updates. - Use version counter for texture updates. - WebGLTextures is not used (removed).
src/textures/Texture.js
@@ -37,7 +37,7 @@ THREE.Texture = function ( image, mapping, wrapS, wrapT, magFilter, minFilter, f this.flipY = true; this.unpackAlignment = 4; // valid values: 1, 2, 4, 8 (see http://www.khronos.org/opengles/sdk/docs/man/xhtml/glPixelStorei.xml) - this._needsUpdate = false; + this.version = 0; this.onUpdate = ...
true
Other
mrdoob
three.js
d59c631422be24cfadd6ad51706dae37ba00113d.json
add code styling
package.json
@@ -26,5 +26,8 @@ "bugs": { "url": "https://github.com/mrdoob/three.js/issues" }, - "homepage": "http://threejs.org/" + "homepage": "http://threejs.org/", + "devDependencies": { + "jscs": "^1.13.1" + } }
true
Other
mrdoob
three.js
d59c631422be24cfadd6ad51706dae37ba00113d.json
add code styling
utils/codestyle/codestyle.sh
@@ -0,0 +1,5 @@ + +jscs "../../src" --fix --preset=mdcs +jscs "../../examples/js" --fix --preset=mdcs + +
true
Other
mrdoob
three.js
d59c631422be24cfadd6ad51706dae37ba00113d.json
add code styling
utils/codestyle/config.json
@@ -0,0 +1,13 @@ +{ + "preset": "mdcs", + "excludeFiles": [ + "build/**", + "docs/**", + "editor/**", + "examples/**", + "node_modules/**", + "test/**", + "utils/**" + ] + +} \ No newline at end of file
true
Other
mrdoob
three.js
5c07056cdd54d7c52d5eb304c502ab1fb748c52f.json
implement XHRLoader in STLLoader.js
examples/js/loaders/STLLoader.js
@@ -8,32 +8,28 @@ * Supports both binary and ASCII encoded files, with automatic detection of type. * * Limitations: - * Binary decoding supports "Magics" color format (http://en.wikipedia.org/wiki/STL_(file_format)#Color_in_binary_STL). - * There is perhaps some question as to how valid it is to always assume ...
false
Other
mrdoob
three.js
4a1c953d9cdc42be93ca5f7a4dd8cd74509213be.json
hook the loading manager in STLLoader.js
examples/js/loaders/STLLoader.js
@@ -2,6 +2,7 @@ * @author aleeper / http://adamleeper.com/ * @author mrdoob / http://mrdoob.com/ * @author gero3 / https://github.com/gero3 + * @author zinefer / https://github.com/zinefer * * Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs. * @@ -32,7 +33,9 ...
false
Other
mrdoob
three.js
9e64158db30626c7ee1ae70c4b7caecd70a37d51.json
Convert global variables to local variables This file is unnecessarily adding global variables with names like v, w, loader, etc. Polluting the global namespace is dangerous and makes everyone's code more prone to bugs. I simply added "var" declarations to convert the global variables to local variables.
examples/js/loaders/ColladaLoader.js
@@ -635,7 +635,7 @@ THREE.ColladaLoader = function () { var bones = []; setupSkeleton( skeleton, bones, -1 ); setupSkinningMatrices( bones, skinController.skin ); - v = new THREE.Vector3(); + var v = new THREE.Vector3(); var skinned = []; for (var i = 0; i < geometry.vertices.length; i ++) { @@ -648,...
false
Other
mrdoob
three.js
e48977f91658cc8cd896d2ac34445f232212c4f5.json
Remove unused variable in CombinedCamera.js
examples/js/cameras/CombinedCamera.js
@@ -29,8 +29,6 @@ THREE.CombinedCamera = function ( width, height, fov, near, far, orthoNear, orth this.toPerspective(); - var aspect = width / height; - }; THREE.CombinedCamera.prototype = Object.create( THREE.Camera.prototype );
false
Other
mrdoob
three.js
1b8645ccae0659da5bf6d3f999a8b24d147df83e.json
Fix comment typo
examples/js/cameras/CombinedCamera.js
@@ -129,7 +129,7 @@ THREE.CombinedCamera.prototype.setFov = function( fov ) { }; -// For mantaining similar API with PerspectiveCamera +// For maintaining similar API with PerspectiveCamera THREE.CombinedCamera.prototype.updateProjectionMatrix = function() {
false