1 /**
  2  * Handle light
  3  *
  4  * @class include THREE.Light. It inherit from {@link tQuery.Node}
  5  * 
  6  * @borrows tQuery.Node#get as this.get
  7  * @borrows tQuery.Node#each as this.each
  8  * @borrows tQuery.Node#back as this.back
  9  *
 10  * @param {THREE.Light} object an instance or array of instance
 11 */
 12 tQuery.Light	= function(elements)
 13 {
 14 	// call parent ctor
 15 	tQuery.Light.parent.constructor.call(this, elements)
 16 
 17 	// sanity check - all items MUST be THREE.Light
 18 	this._lists.forEach(function(item){ console.assert(item instanceof THREE.Light); });
 19 };
 20 
 21 /**
 22  * inherit from tQuery.Node
 23  * - TODO this should inherit from tQuery.Object3D but but in inheritance
 24 */
 25 tQuery.inherit(tQuery.Light, tQuery.Object3D);
 26 
 27 /**
 28  * Make it pluginable
 29 */
 30 tQuery.pluginsInstanceOn(tQuery.Light);
 31 
 32 /**
 33  * define all acceptable attributes for this class
 34 */
 35 tQuery.mixinAttributes(tQuery.Light, {
 36 	color	: tQuery.convert.toThreeColor
 37 });
 38 
 39 
 40