Class tQuery

root class

Class Summary
Constructor Attributes Constructor Name and Description
 
tQuery(object, rootnode)
Create a tQuery element

Method Summary

Class Detail

tQuery(object, rootnode)
Create a tQuery element
Parameters:
object
{THREE.Object3D} rootnode
Returns:
{tQuery.*} the tQuery object created

Field Detail

<static> tQuery.defaultObject3DMaterial
contains the default material to use when create tQuery.Object3D
Defined in: tquery.core.create.js.
<static> tQuery.now
precise version of Date.now() - It provide submillisecond precision based on window.performance.now() when available, fall back on Date.now() see http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision
<static> tQuery.VERSION
The version of tQuery

Method Detail

  • <static> {*} tQuery.data(object, key, value, mustNotExist)
    generic getter/setter
    Parameters:
    {Object} object
    the object in which store the data
    {String} key
    the key/name of the data to get/set
    {*} value
    the value to set (optional)
    {Boolean} mustNotExist
    if true, ensure that the key doesnt already exist, optional default to false
    Returns:
    {*} return the value stored in this object for this key
  • <static> {Boolean} tQuery.each(arr, callback)
    loop over a Array.
    Parameters:
    {Array} arr
    the array to traverse.
    {Function} callback
    the function to notify. function(element){ }. loop interrupted if it returns false
    Returns:
    {Boolean} return true if completed, false if interrupted
  • <static> tQuery.extend(obj, base, deep)
    extend function. mainly aimed at handling default values - jme: im not sure at all it is the proper one. http://jsapi.info/_/extend similar to jquery one but much smaller
    Parameters:
    obj
    base
    deep
  • <static> tQuery.Flow()
    Flow control - from https://github.com/jeromeetienne/gowiththeflow.js
  • <static> tQuery.inherit(childClass, parentClass)
    Make a child Class inherit from the parent class.
    Parameters:
    {Object} childClass
    the child class which gonna inherit
    {Object} parentClass
    the class which gonna be inherited
  • <static> tQuery.MicroeventMixin(destObj)
    microevents.js - https://github.com/jeromeetienne/microevent.js
    Parameters:
    destObj
  • <static> tQuery.removeData(mustExist, key, mustExist)
    Same as jQuery.removeData()
    Parameters:
    {Boolean} mustExist
    if true, ensure the key does exist, default to false
    key
    mustExist