This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var noop = function(){}; | |
| function moveAlong ( object, shape, options ) { | |
| options = _.merge({ | |
| from: 0, | |
| to: 1, | |
| duration: null, | |
| speed: 50, | |
| start: true, | |
| yoyo: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var collection = [ | |
| { name:'dress', color:'red', price:100 }, | |
| { name:'shoes', color:'black', price:120 }, | |
| { name:'jacket', color:'blue', price:150 }, | |
| ]; | |
| var results = _.scored( collection, { price: {$lt:140}, color: {$any:['red', 'blue'] }); | |
| // [ { name:'dress', _score:1, ... }, { name:'shoes', _score:0.3, ... } ] | |
| // dress got a score of 1, because it matchs all statements | |
| // shoes got a score of 0.5, because it matchs half the statements |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| THREE.CamControls = function ( object, domElement ) { | |
| this.object = object; | |
| this.domElement = ( domElement !== undefined ) ? domElement : document; | |
| if ( domElement ) this.domElement.setAttribute( 'tabindex', -1 ); | |
| // API | |
| this.enabled = true; | |
| this.mouseEnabled = true; |