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 | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/MD2Character.js | @@ -195,7 +195,7 @@ THREE.MD2Character = function () {
return textures;
- };
+ }
function createPart( geometry, skinMap ) {
@@ -229,14 +229,14 @@ THREE.MD2Character = function () {
return mesh;
- };
+ }
function checkLoadingComplete() {
scope.loadCounter -= 1;
if ( sc... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/MD2CharacterComplex.js | @@ -518,7 +518,7 @@ THREE.MD2CharacterComplex = function () {
return textures;
- };
+ }
function createPart( geometry, skinMap ) {
@@ -546,14 +546,14 @@ THREE.MD2CharacterComplex = function () {
return mesh;
- };
+ }
function checkLoadingComplete() {
scope.loadCounter -= 1;
... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/MarchingCubes.js | @@ -196,31 +196,31 @@ THREE.MarchingCubes = function ( resolution, material, enableUvs, enableColors )
this.compNorm( q1 );
this.VIntX( q * 3, this.vlist, this.nlist, 0, isol, fx, fy, fz, field0, field1 );
- };
+ }
if ( bits & 2 ) {
this.compNorm( q1 );
this.compNorm( q1y );
thi... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/Ocean.js | @@ -18,7 +18,7 @@
// Assign optional parameters as variables and object properties
function optionalParameter(value, defaultValue) {
return value !== undefined ? value : defaultValue;
- };
+ }
options = options || {};
this.clearColor = optionalParameter(options.CLEAR_COLOR, [ 1.0, 1.0, 1.0, 0.0 ]);
this.ge... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/UCSCharacter.js | @@ -89,7 +89,7 @@ THREE.UCSCharacter = function() {
}
return textures;
- };
+ }
function createMaterials( skins ) {
var materials = []; | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/WaterShader.js | @@ -109,7 +109,7 @@ THREE.Water = function ( renderer, camera, scene, options ) {
function optionalParameter ( value, defaultValue ) {
return value !== undefined ? value : defaultValue;
- };
+ }
options = options || {};
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/controls/FirstPersonControls.js | @@ -271,7 +271,7 @@ THREE.FirstPersonControls = function ( object, domElement ) {
};
- };
+ }
this.handleResize();
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/controls/FlyControls.js | @@ -252,7 +252,7 @@ THREE.FlyControls = function ( object, domElement ) {
};
- };
+ }
this.domElement.addEventListener( 'contextmenu', function ( event ) { event.preventDefault(); }, false );
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/controls/VRControls.js | @@ -25,7 +25,7 @@ THREE.VRControls = function ( object, onError ) {
if ( onError ) onError( 'HMD not available' );
- };
+ }
if ( navigator.getVRDevices ) {
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/exporters/SceneExporter.js | @@ -189,7 +189,7 @@ THREE.SceneExporter.prototype = {
if ( THREE[ constants[ i ] ] === c ) return LabelString( constants[ i ] );
- };
+ }
return "";
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/loaders/AWDLoader.js | @@ -113,7 +113,7 @@ THREE.AWDLoader = (function () {
this._accuracyProps = false;
- };
+ }
AWDLoader.prototype = Object.create( THREE.Loader.prototype ); | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/loaders/BinaryLoader.js | @@ -217,7 +217,7 @@ THREE.BinaryLoader.prototype.createBinModel = function ( data, callback, texture
return ( n % 4 ) ? ( 4 - n % 4 ) : 0;
- };
+ }
function parseMetaData( data, offset ) {
@@ -294,7 +294,7 @@ THREE.BinaryLoader.prototype.createBinModel = function ( data, callback, texture
return ... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/loaders/ColladaLoader.js | @@ -442,7 +442,7 @@ THREE.ColladaLoader = function () {
geometry.morphTargets.push( { name: "target_Z", vertices: geometry.vertices } );
- };
+ }
function createSkin ( geometry, ctrl, applyBindShape ) {
@@ -826,7 +826,7 @@ THREE.ColladaLoader = function () {
}
- };
+ }
function createKinematics(... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/loaders/TGALoader.js | @@ -228,7 +228,7 @@ THREE.TGALoader.prototype._parser = function ( buffer ) {
return imageData;
- };
+ }
function tgaGetImageData16bits(imageData, y_start, y_step, y_end, x_start, x_step, x_end, image) {
@@ -247,7 +247,7 @@ THREE.TGALoader.prototype._parser = function ( buffer ) {
return imageData;
... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/loaders/UTF8Loader.js | @@ -577,7 +577,7 @@ THREE.UTF8Loader.prototype.downloadMesh = function ( path, name, meshEntry, deco
}
- };
+ }
getHttpRequest( path, function( req, e ) {
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/loaders/deprecated/SceneLoader.js | @@ -155,7 +155,7 @@ THREE.SceneLoader.prototype = {
}
- };
+ }
// toplevel loader function, delegates to handle_children
@@ -515,15 +515,15 @@ THREE.SceneLoader.prototype = {
}
- };
+ }
function handle_mesh( geo, mat, id ) {
result.geometries[ id ] = geo;
result.face_materials[... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/renderers/WebGLDeferredRenderer.js | @@ -966,7 +966,7 @@ THREE.WebGLDeferredRenderer = function ( parameters ) {
}
- };
+ }
this.render = function ( scene, camera ) {
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/renderers/plugins/DepthPassPlugin.js | @@ -225,6 +225,6 @@ THREE.DepthPassPlugin = function () {
? object.material.materials[ 0 ]
: object.material;
- };
+ }
}; | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/js/wip/ProxyGeometry.js | @@ -578,7 +578,7 @@ THREE.ProxyGeometry.prototype.mergeVertices = function () {
}
- };
+ }
// if faces are completely degenerate after merging vertices, we | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/misc_controls_fly.html | @@ -240,7 +240,7 @@
composer.addPass( renderModel );
composer.addPass( effectFilm );
- };
+ }
function onWindowResize( event ) {
@@ -254,7 +254,7 @@
composer.reset();
- };
+ }
function animate() {
@@ -263,7 +263,7 @@
render();
stats.update();
- };
+ }
f... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/misc_fps.html | @@ -227,7 +227,7 @@
uniforms : skyboxShader.uniforms, depthWrite : false, side : THREE.BackSide
})
);
- };
+ }
function makePlatform( jsonUrl, textureUrl, textureQuality ) {
var placeholder = new THREE.Object3D();
@@ -249,7 +249,7 @@
});
return placeholder;
- };
+ }
... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_camera.html | @@ -176,7 +176,7 @@
}
- };
+ }
//
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_decals.html | @@ -296,7 +296,7 @@
} );
decals = [];
- };
+ }
function mergeDecals() {
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_geometry_extrude_shapes2.html | @@ -407,7 +407,7 @@
camera.updateProjectionMatrix();
renderer.setSize( window.innerWidth, window.innerHeight );
- };
+ }
function onDocumentMouseDown( event ) {
@@ -419,28 +419,28 @@
mouseXOnMouseDown = event.clientX - windowHalfX;
targetRotationOnMouseDown = targetRotation;
- };
+ }
function ... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_materials_cubemap_dynamic.html | @@ -791,7 +791,7 @@
}
- };
+ }
function onKeyUp ( event ) {
@@ -811,7 +811,7 @@
}
- };
+ }
// | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_morphtargets_md2_control.html | @@ -300,7 +300,7 @@
}
- };
+ }
function onKeyUp ( event ) {
@@ -324,7 +324,7 @@
}
- };
+ }
//
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_objects_update.html | @@ -175,7 +175,7 @@
}
object.geometry.groupsNeedUpdate = true;
- };
+ }
function render() {
@@ -191,7 +191,7 @@
scene.add(objectToggleAddRemove);
- };
+ }
} else {
@@ -202,9 +202,9 @@
scene.remove(objectToggleAddRemove);
... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_particles_shapes.html | @@ -432,7 +432,7 @@
pointLight.color.setHSL( hue, 0.8, 0.5 );
- };
+ }
};
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_shaders_sky.html | @@ -125,7 +125,7 @@
gui.add( effectController, "reileigh", 0.0, 4, 0.001 ).onChange( guiChanged );
gui.add( effectController, "mieCoefficient", 0.0, 0.1, 0.001 ).onChange( guiChanged );
gui.add( effectController, "mieDirectionalG", 0.0, 1, 0.001 ).onChange( guiChanged );
- gui.add( effectController, "... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_sprites.html | @@ -136,7 +136,7 @@
updateHUDSprites();
- };
+ }
function updateHUDSprites () {
@@ -154,7 +154,7 @@
spriteBR.position.set( width - imageWidth, - height + imageHeight, 1 ); // bottom right
spriteC.position.set( 0, 0, 1 ); // center
- };
+ }
function onWindowResize() {
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | examples/webgl_terrain_dynamic.html | @@ -588,7 +588,7 @@
}
- };
+ }
//
@@ -613,7 +613,7 @@
renderer.render( sceneTmp, cameraOrtho, target, true );
- };
+ }
//
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/core/Geometry.js | @@ -739,7 +739,7 @@ THREE.Geometry.prototype = {
}
- };
+ }
// if faces are completely degenerate after merging vertices, we | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/core/Object3D.js | @@ -309,7 +309,7 @@ THREE.Object3D.prototype = {
return this;
- };
+ }
if ( object === this ) {
@@ -351,7 +351,7 @@ THREE.Object3D.prototype = {
}
- };
+ }
var index = this.children.indexOf( object );
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/extras/FontUtils.js | @@ -41,7 +41,7 @@ THREE.FontUtils = {
throw "The font " + this.face + " with " + this.weight + " weight and " + this.style + " style is missing."
- };
+ }
},
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/extras/core/CurvePath.js | @@ -111,7 +111,7 @@ THREE.CurvePath.prototype.getCurveLengths = function() {
return this.cacheLengths;
- };
+ }
// Get length of subsurve
// Push sums into cached array | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/extras/core/Path.js | @@ -45,7 +45,7 @@ THREE.Path.prototype.fromPoints = function ( vectors ) {
this.lineTo( vectors[ v ].x, vectors[ v ].y );
- };
+ }
};
@@ -508,7 +508,7 @@ THREE.Path.prototype.toShapes = function( isCCW, noHoles ) {
//THREE.log("shape", shapes);
return shapes;
- };
+ }
function isPointInsidePolyg... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/loaders/JSONLoader.js | @@ -421,7 +421,7 @@ THREE.JSONLoader.prototype.parse = function ( json, texturePath ) {
}
- };
+ }
function parseSkin() {
var influencesPerVertex = ( json.influencesPerVertex !== undefined ) ? json.influencesPerVertex : 2;
@@ -471,7 +471,7 @@ THREE.JSONLoader.prototype.parse = function ( json, tex... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/math/Spline.js | @@ -171,6 +171,6 @@ THREE.Spline = function ( points ) {
return ( 2 * ( p1 - p2 ) + v0 + v1 ) * t3 + ( - 3 * ( p1 - p2 ) - 2 * v0 - v1 ) * t2 + v0 * t + p1;
- };
+ }
}; | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/renderers/webgl/WebGLBuffers.js | @@ -51,7 +51,7 @@ THREE.WebGLBuffers = function ( gl, info, extensions, getBufferMaterial ) {
}
- };
+ }
this.initPointCloudBuffers = function ( geometry, object ) {
| true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/renderers/webgl/WebGLObjects.js | @@ -158,7 +158,7 @@ THREE.WebGLObjects = function ( gl, info, extensions, getBufferMaterial ) {
}
);
- };
+ }
function addBufferImmediate( objlist, object ) {
@@ -172,7 +172,7 @@ THREE.WebGLObjects = function ( gl, info, extensions, getBufferMaterial ) {
}
);
- };
+ }
//
@@ -213,7 +213,7 @... | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/renderers/webgl/WebGLShadowMap.js | @@ -528,6 +528,6 @@ THREE.WebGLShadowMap = function ( _renderer, _lights, _objects ) {
? object.material.materials[ 0 ]
: object.material;
- };
+ }
}; | true |
Other | mrdoob | three.js | b0f0c3bd1ad3adf88cf333ecc610282682f52be5.json | Remove unnecessary semicolons | src/renderers/webgl/plugins/SpritePlugin.js | @@ -345,7 +345,7 @@ THREE.SpritePlugin = function ( renderer, sprites ) {
return program;
- };
+ }
function painterSortStable ( a, b ) {
@@ -359,6 +359,6 @@ THREE.SpritePlugin = function ( renderer, sprites ) {
}
- };
+ }
}; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_geometry_birds.html | @@ -55,21 +55,21 @@
_goal = target;
- }
+ };
this.setAvoidWalls = function ( value ) {
_avoidWalls = value;
- }
+ };
this.setWorldSize = function ( width, height, depth ) {
_width = width;
_height = height;
_depth = depth;
- }
+ };
this.ru... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_interactive_particles.html | @@ -38,7 +38,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();
- }
+ };
var programStroke = function ( context ) {
@@ -47,7 +47,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.stroke();
- }
+ };
var INTERSECTED;
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_lights_pointlights.html | @@ -80,7 +80,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();
- }
+ };
var sprite = new THREE.Sprite( new THREE.SpriteCanvasMaterial( { color: 0xff0040, program: program } ) );
light1.add( sprite ); | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_materials.html | @@ -106,7 +106,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();
- }
+ };
// Lights
@@ -167,7 +167,7 @@
function loadImage( path ) {
var image = document.createElement( 'img' );
- var texture = new THREE.Texture( image, THREE.UVMapping )
+ var texture = new THREE... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_materials_video.html | @@ -140,7 +140,7 @@
particle = new THREE.Sprite( material );
particle.position.x = ix * separation - ( ( amountx * separation ) / 2 );
- particle.position.y = -153
+ particle.position.y = -153;
particle.position.z = iy * separation - ( ( amounty * separation ) / 2 );
particle.sca... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_particles_random.html | @@ -54,7 +54,7 @@
context.arc( 0, 0, 0.5, 0, PI2, true );
context.fill();
- }
+ };
group = new THREE.Group();
scene.add( group ); | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_particles_shapes.html | @@ -154,7 +154,7 @@
context.lineWidth = 0.5; //0.05
context.stroke();
- }
+ };
var setTargetParticle = function() {
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/canvas_particles_sprites.html | @@ -120,7 +120,7 @@
var particle = this instanceof THREE.Sprite ? this : particle;
var delay = delay !== undefined ? delay : 0;
- particle.position.set( 0, 0, 0 )
+ particle.position.set( 0, 0, 0 );
particle.scale.x = particle.scale.y = Math.random() * 32 + 16;
new TWEEN.Tween( particle ) | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/css3d_sprites.html | @@ -71,7 +71,7 @@
var object = new THREE.CSS3DSprite( image.cloneNode() );
object.position.x = Math.random() * 4000 - 2000,
object.position.y = Math.random() * 4000 - 2000,
- object.position.z = Math.random() * 4000 - 2000
+ object.position.z = Math.random() * 4000 - 2000;
scene.ad... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/AudioObject.js | @@ -154,7 +154,7 @@ THREE.AudioObject = function ( url, volume, playbackRate, loop ) {
_this.source.buffer = _this.context.createBuffer( request.response, true );
_this.source.noteOn( 0 );
- }
+ };
request.send();
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/BlendCharacter.js | @@ -124,7 +124,7 @@ THREE.BlendCharacter = function () {
}
- }
+ };
this.play = function(animName, weight) {
@@ -231,13 +231,13 @@ THREE.BlendCharacter = function () {
this.weightSchedule.length = 0;
this.warpSchedule.length = 0;
- }
+ };
this.showSkeleton = function( boolean ) {
this.skel... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/BlendCharacterGui.js | @@ -78,7 +78,7 @@ function BlendCharacterGui(animations) {
playback.open();
blending.open();
- }
+ };
var getAnimationData = function() {
@@ -94,7 +94,7 @@ function BlendCharacterGui(animations) {
}
};
- }
+ };
controls.start = function() {
@@ -144,7 +144,7 @@ function BlendCharacterGui(ani... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/Cloth.js | @@ -86,7 +86,7 @@ Particle.prototype.integrate = function(timesq) {
this.position = newPos;
this.a.set(0, 0, 0);
-}
+};
var diff = new THREE.Vector3();
@@ -243,7 +243,7 @@ function simulate(time) {
ballPosition.z = -Math.sin(Date.now() / 600) * 90 ; //+ 40;
- ballPosition.x = Math.cos(Date.now() / 400)... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/CurveExtras.js | @@ -217,7 +217,7 @@ var scaleTo = function(x, y, t) {
var r = y - x;
return t * r + x;
-}
+};
THREE.Curves.FigureEightPolynomialKnot = THREE.Curve.create(
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/ImprovedNoise.js | @@ -68,4 +68,4 @@ var ImprovedNoise = function () {
}
}
-}
+}; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/MD2Character.js | @@ -29,7 +29,7 @@ THREE.MD2Character = function () {
this.loadCounter = config.weapons.length * 2 + config.skins.length + 1;
- var weaponsTextures = []
+ var weaponsTextures = [];
for ( var i = 0; i < config.weapons.length; i ++ ) weaponsTextures[ i ] = config.weapons[ i ][ 1 ];
// SKINS
@@ -79... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/MD2CharacterComplex.js | @@ -142,7 +142,7 @@ THREE.MD2CharacterComplex = function () {
this.loadCounter = config.weapons.length * 2 + config.skins.length + 1;
- var weaponsTextures = []
+ var weaponsTextures = [];
for ( var i = 0; i < config.weapons.length; i ++ ) weaponsTextures[ i ] = config.weapons[ i ][ 1 ];
// SKIN... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/MarchingCubes.js | @@ -794,7 +794,7 @@ THREE.edgeTable = new Int32Array([
0xe90, 0xf99, 0xc93, 0xd9a, 0xa96, 0xb9f, 0x895, 0x99c,
0x69c, 0x795, 0x49f, 0x596, 0x29a, 0x393, 0x99, 0x190,
0xf00, 0xe09, 0xd03, 0xc0a, 0xb06, 0xa0f, 0x905, 0x80c,
-0x70c, 0x605, 0x50f, 0x406, 0x30a, 0x203, 0x109, 0x0 ])
+0x70c, 0x605, 0x50f, 0x406, 0x30a... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/SimplexNoise.js | @@ -55,7 +55,7 @@ SimplexNoise.prototype.dot = function(g, x, y) {
SimplexNoise.prototype.dot3 = function(g, x, y, z) {
return g[0] * x + g[1] * y + g[2] * z;
-}
+};
SimplexNoise.prototype.dot4 = function(g, x, y, z, w) {
return g[0] * x + g[1] * y + g[2] * z + g[3] * w; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/SimulationRenderer.js | @@ -130,7 +130,7 @@ function SimulationRenderer(WIDTH, renderer) {
mesh.material = passThruShader;
uniforms.texture.value = input;
renderer.render( scene, camera, output );
- }
+ };
this.renderPosition = function(position, velocity, output, delta) {
@@ -141,7 +141,7 @@ function SimulationRenderer(WIDTH, ... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/Sparks.js | @@ -213,8 +213,8 @@ SPARKS.Emitter.prototype = {
* Events called by emitter.dispatchEvent()
*
*/
-SPARKS.EVENT_PARTICLE_CREATED = "created"
-SPARKS.EVENT_PARTICLE_UPDATED = "updated"
+SPARKS.EVENT_PARTICLE_CREATED = "created";
+SPARKS.EVENT_PARTICLE_UPDATED = "updated";
SPARKS.EVENT_PARTICLE_DEAD = "dead";
SPAR... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/UCSCharacter.js | @@ -75,7 +75,7 @@ THREE.UCSCharacter = function() {
mesh.morphTargetInfluences[ i ] = influences[ scope.morphs[ i ] ] / 100;
}
}
- }
+ };
function loadTextures( baseUrl, textureUrls ) {
var mapping = THREE.UVMapping;
@@ -122,4 +122,4 @@ THREE.UCSCharacter = function() {
}
-}
+}; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/cameras/CombinedCamera.js | @@ -16,7 +16,7 @@ THREE.CombinedCamera = function ( width, height, fov, near, far, orthoNear, orth
this.fov = fov;
this.left = -width / 2;
- this.right = width / 2
+ this.right = width / 2;
this.top = height / 2;
this.bottom = -height / 2;
@@ -106,7 +106,7 @@ THREE.CombinedCamera.prototype.setSize = functio... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/controls/EditorControls.js | @@ -255,7 +255,7 @@ THREE.EditorControls = function ( object, domElement ) {
return closest;
- }
+ };
switch ( event.touches.length ) {
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/controls/MouseControls.js | @@ -45,7 +45,7 @@ THREE.MouseControls = function ( object ) {
mouseQuat.x.setFromAxisAngle( xVector, this.orientation.x );
mouseQuat.y.setFromAxisAngle( yVector, this.orientation.y );
- object.quaternion.copy(mouseQuat.y).multiply(mouseQuat.x)
+ object.quaternion.copy(mouseQuat.y).multiply(mouseQuat.x);
re... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/controls/OrthographicTrackballControls.js | @@ -176,7 +176,7 @@ THREE.OrthographicTrackballControls = function ( object, domElement ) {
_eye.copy( _this.object.position ).sub( _this.target );
- vector.copy( _this.object.up ).setLength( mouseOnBall.y )
+ vector.copy( _this.object.up ).setLength( mouseOnBall.y );
vector.add( objectUp.copy( _this.ob... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/crossfade/scenes.js | @@ -47,7 +47,7 @@ function generateGeometry(objectType, numObjects) {
}
else if ( objectType == "sphere" )
{
- geom = new THREE.IcosahedronGeometry( 1, 1 )
+ geom = new THREE.IcosahedronGeometry( 1, 1 );
scale.y = scale.z = scale.x;
color.setRGB( Math.random() + 0.1, 0, 0 );
} | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/crossfade/transition.js | @@ -103,19 +103,19 @@ function Transition ( sceneA, sceneB ) {
this.quadmaterial.uniforms.threshold.value = value;
- }
+ };
this.useTexture = function ( value ) {
this.quadmaterial.uniforms.useTexture.value = value ? 1 : 0;
- }
+ };
this.setTexture = function ( i ) {
this.quadmaterial.u... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/curves/NURBSSurface.js | @@ -24,7 +24,7 @@ THREE.NURBSSurface = function ( degree1, degree2, knots1, knots2 /* arrays of re
// ensure Vector4 for control points
for (var i = 0; i < len1; ++ i) {
- this.controlPoints[i] = []
+ this.controlPoints[i] = [];
for (var j = 0; j < len2; ++ j) {
var point = controlPoints[i][j];
this.... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/exporters/OBJExporter.js | @@ -13,7 +13,7 @@ THREE.OBJExporter.prototype = {
var output = '';
var indexVertex = 0;
- var indexVertexUvs = 0
+ var indexVertexUvs = 0;
var indexNormals = 0;
var parseObject = function ( child ) { | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/exporters/SceneExporter.js | @@ -751,4 +751,4 @@ THREE.SceneExporter.prototype = {
}
-}
+}; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/geometries/DecalGeometry.js | @@ -3,13 +3,13 @@ THREE.DecalVertex = function( v, n ) {
this.vertex = v;
this.normal = n;
-}
+};
THREE.DecalVertex.prototype.clone = function() {
return new THREE.DecalVertex( this.vertex.clone(), this.normal.clone() );
-}
+};
THREE.DecalGeometry = function( mesh, position, rotation, dimensions, chec... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/libs/msgpack-js.js | @@ -147,7 +147,7 @@ exports.encode = function (value) {
var view = new DataView(buffer);
encode(value, view, 0);
return buffer;
-}
+};
exports.decode = decode;
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/AWDLoader.js | @@ -74,7 +74,7 @@ THREE.AWDLoader = (function () {
return tex;
}
- }
+ };
@@ -172,7 +172,7 @@ THREE.AWDLoader = (function () {
return this.trunk;
- }
+ };
@@ -240,7 +240,7 @@ THREE.AWDLoader = (function () {
block.data = assetData;
block.id = blockId;
- }
+ };
AWDLoader.proto... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/AssimpJSONLoader.js | @@ -235,7 +235,7 @@ THREE.AssimpJSONLoader.prototype = {
has_textures.push(keyname);
loader.setCrossOrigin(this.crossOrigin);
- var material_url = scope.texturePath + '/' + prop.value
+ var material_url = scope.texturePath + '/' + prop.value;
material_url = material_url.replace(/\\/g, '... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/ColladaLoader.js | @@ -115,7 +115,7 @@ THREE.ColladaLoader = function () {
}
- }
+ };
request.open( "GET", url, true );
request.send( null ); | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/MTLLoader.js | @@ -87,7 +87,7 @@ THREE.MTLLoader.prototype = {
}
var materialCreator = new THREE.MTLLoader.MaterialCreator( this.baseUrl, this.options );
- materialCreator.crossOrigin = this.crossOrigin
+ materialCreator.crossOrigin = this.crossOrigin;
materialCreator.setMaterials( materialsInfo );
return materialCrea... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/OBJLoader.js | @@ -205,7 +205,7 @@ THREE.OBJLoader.prototype = {
// f vertex//normal vertex//normal vertex//normal ...
- var face_pattern4 = /f( +(-?\d+)\/\/(-?\d+))( +(-?\d+)\/\/(-?\d+))( +(-?\d+)\/\/(-?\d+))( +(-?\d+)\/\/(-?\d+))?/
+ var face_pattern4 = /f( +(-?\d+)\/\/(-?\d+))( +(-?\d+)\/\/(-?\d+))( +(-?\d+)\/\/(-?\d+))( ... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/OBJMTLLoader.js | @@ -225,7 +225,7 @@ THREE.OBJMTLLoader.prototype = {
// f vertex//normal vertex//normal vertex//normal ...
- var face_pattern4 = /f( +(\d+)\/\/(\d+))( +(\d+)\/\/(\d+))( +(\d+)\/\/(\d+))( +(\d+)\/\/(\d+))?/
+ var face_pattern4 = /f( +(\d+)\/\/(\d+))( +(\d+)\/\/(\d+))( +(\d+)\/\/(\d+))( +(\d+)\/\/(\d+))?/;
... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/PDBLoader.js | @@ -176,5 +176,5 @@ THREE.PDBLoader.prototype = {
}
-}
+};
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/PLYLoader.js | @@ -164,11 +164,11 @@ THREE.PLYLoader.prototype = {
for ( var i = 0; i < lines.length; i ++ ) {
var line = lines[ i ];
- line = line.trim()
+ line = line.trim();
if ( line === "" ) { continue; }
lineValues = line.split( /\s+/ );
- lineType = lineValues.shift()
- line = lineValues.join(" ")
+ ... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/PVRLoader.js | @@ -61,15 +61,15 @@ THREE.PVRLoader._parseV3 = function ( pvrDatas ) {
format = THREE.RGB_PVRTC_2BPPV1_Format;
break;
case 1 : // PVRTC 2bpp RGBA
- bpp = 2
+ bpp = 2;
format = THREE.RGBA_PVRTC_2BPPV1_Format;
break;
case 2 : // PVRTC 4bpp RGB
- bpp = 4
+ bpp = 4;
format = THREE.RGB_PVRT... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/STLLoader.js | @@ -269,7 +269,7 @@ if ( typeof DataView === 'undefined') {
this.byteLength = byteLength || buffer.byteLength || buffer.length;
this._isString = typeof buffer === "string";
- }
+ };
DataView.prototype = {
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/VRMLLoader.js | @@ -357,7 +357,7 @@ THREE.VRMLLoader.prototype = {
r: parseFloat(parts[1]),
g: parseFloat(parts[2]),
b: parseFloat(parts[3])
- }
+ };
break;
@@ -373,7 +373,7 @@ THREE.VRMLLoader.prototype = {
x: parseFloat(parts[1]),
y: parseFloat(parts[2]),
... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/ctm/CTMLoader.js | @@ -72,7 +72,7 @@ THREE.CTMLoader.prototype.loadParts = function( url, callback, parameters ) {
}
- }
+ };
xhr.open( "GET", url, true );
xhr.setRequestHeader( "Content-Type", "text/plain" );
@@ -179,7 +179,7 @@ THREE.CTMLoader.prototype.load = function( url, callback, parameters ) {
}
- }
+ };
x... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/ctm/CTMWorker.js | @@ -16,4 +16,4 @@ self.onmessage = function( event ) {
self.postMessage( files );
self.close();
-}
+}; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/deprecated/SceneLoader.js | @@ -1012,7 +1012,7 @@ THREE.SceneLoader.prototype = {
var wrapMap = {
"repeat": THREE.RepeatWrapping,
"mirror": THREE.MirroredRepeatWrapping
- }
+ };
if ( wrapMap[ textureJSON.wrap[ 0 ] ] !== undefined ) texture.wrapS = wrapMap[ textureJSON.wrap[ 0 ] ];
if ( wrapMap[ textureJSO... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/gltf/glTFAnimation.js | @@ -45,7 +45,7 @@ THREE.glTFAnimation = function(interps)
{
this.createInterpolators(interps);
}
-}
+};
THREE.glTFAnimation.prototype.createInterpolators = function(interps)
{
@@ -56,7 +56,7 @@ THREE.glTFAnimation.prototype.createInterpolators = function(interps)
this.interps.push(interp);
this.duratio... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/gltf/glTFLoader.js | @@ -14,7 +14,7 @@ THREE.glTFLoader = function (showStatus) {
this.shadersLoaded = 0;
this.shaders = {};
THREE.Loader.call( this, showStatus );
-}
+};
THREE.glTFLoader.prototype = Object.create( THREE.Loader.prototype );
THREE.glTFLoader.prototype.constructor = THREE.glTFLoader;
@@ -107,7 +107,7 @@ THREE.glTFL... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/loaders/gltf/glTFLoaderUtils.js | @@ -137,7 +137,7 @@ THREE.GLTFLoaderUtils = Object.create(Object, {
processResourceDelegate.handleError = function(errorCode, info) {
request.delegate.handleError(errorCode, info);
- }
+ };
this._loadStream(request.path, request.type, processResourceDelegate);
} | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/modifiers/ExplodeModifier.js | @@ -40,4 +40,4 @@ THREE.ExplodeModifier.prototype.modify = function ( geometry ) {
geometry.vertices = vertices;
delete geometry.__tmpVertices;
-}
+}; | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/modifiers/SubdivisionModifier.js | @@ -136,7 +136,7 @@ THREE.SubdivisionModifier.prototype.modify = function ( geometry ) {
var metaVertices, sourceEdges;
// new stuff.
- var sourceEdges, newEdgeVertices, newSourceVertices
+ var sourceEdges, newEdgeVertices, newSourceVertices;
oldVertices = geometry.vertices; // { x, y, z}
oldFa... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/renderers/CanvasRenderer.js | @@ -138,7 +138,7 @@ THREE.CanvasRenderer = function ( parameters ) {
}
- }
+ };
// WebGLRenderer compatibility
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/renderers/Projector.js | @@ -786,7 +786,7 @@ THREE.Projector = function () {
var line = new THREE.RenderableLine();
_linePool.push( line );
_linePoolLength ++;
- _lineCount ++
+ _lineCount ++;
return line;
}
@@ -802,7 +802,7 @@ THREE.Projector = function () {
var sprite = new THREE.RenderableSprite();
_spritePo... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/renderers/RaytracingRenderer.js | @@ -302,7 +302,7 @@ THREE.RaytracingRenderer = function ( parameters ) {
var eta = material.refractionRatio;
- var dotNI = rayDirection.dot( normalVector )
+ var dotNI = rayDirection.dot( normalVector );
var k = 1.0 - eta * eta * ( 1.0 - dotNI * dotNI );
if ( k < 0.0 ) {
@@ -528,7 +528,7... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/renderers/SVGRenderer.js | @@ -64,7 +64,7 @@ THREE.SVGRenderer = function () {
}
- }
+ };
this.setQuality = function( quality ) {
| true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/utils/GeometryUtils.js | @@ -148,7 +148,7 @@ THREE.GeometryUtils = {
}
- var result = binarySearch( 0, cumulativeAreas.length - 1 )
+ var result = binarySearch( 0, cumulativeAreas.length - 1 );
return result;
}
@@ -242,7 +242,7 @@ THREE.GeometryUtils = {
}
- var result = binarySearch( 0, cumulativeAreas.length - ... | true |
Other | mrdoob | three.js | eb68622a6e8431450c40361cccd0061514d2f711.json | Add missing semicolons | examples/js/utils/ShadowMapViewer.js | @@ -154,7 +154,7 @@ THREE.ShadowMapViewer = function ( light ) {
userAutoClearSetting = renderer.autoClear;
renderer.autoClear = false; // To allow render overlay
- renderer.clearDepth()
+ renderer.clearDepth();
renderer.render( scene, camera );
renderer.autoClear = userAutoClearSetting; //Restore... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.