A programmable container of molecules.
droplet | |
Preference Dialog | |
Properties | |
pref.name | string, ( r ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | bool, ( r, w ) |
pref. | bool, ( r, w ) |
parentBoxID | string, ( r ) |
parentBox | string, ( r ) |
childBoxes | array, ( r ) |
boxWidth | string, ( r ) |
boxHeight | string, ( r ) |
position | object, ( r ) |
size | object, ( r ) |
zIndex | int, ( r, w ) |
div | object, ( r ) |
draggable | bool, ( w ) |
droppable | bool, ( w ) |
molecules | array, ( r, w ) |
Functions | |
paint | |
getElementsByTagName | |
getElementById | |
$n | |
$ | |
$$ | |
refreshMolecules | |
isDropletAtPoint | |
center | |
show | |
hide | |
showAll | |
hideAll | |
showAllChildren | |
hideAllChildren | |
delete | |
rotateTo | |
rotateBy | |
moveTo | |
moveBy | |
resizeTo | |
resizeBy | |
addMolecule | |
getMolecules | |
$m | |
$mn | |
deepClone | |
clone | |
rename | |
serialize | |
dispatchEvent | |
dispatchEventWithData | |
refresh | |
attachToDroplet | |
detachFromDroplet | |
bringDropletToTop |
string, ( r )
The scriptable name of this droplet. This name can be set using rename method dynamically.
addMolecule(molecule);
Adds a molecule to this droplet. The new molecule is appended to the molecules array.
molecule | (object) a moleclule. |
N/A
deepClone: function( sameScene )
deepClone(cloneScene);
Creates a clone of this droplet and all its attached child droplets. if cloneScene is true, all child 3D molecules are duplicated and placed in the same 3D scene, otherwise, it is placed in a duplicated scene.
cloneScene | (bool) clone 3D scene. Default to false. |
N/A
dispatchEventWithData: function( evt_name, data_name, data )
dispatchEventWithData(event_name, obj_name, obj);
Dispatches a custom DOM event with the given event name and a data object with the given name to this droplet. The receiver of the event can use params[obj_name] to access passed data in a script molecule.
event_name | (string) event name. |
obj_name | (string) data object name. |
obj | (object) data object. |
N/A
paint: function()
getElementsByTagName: function( n )
getElementById: function( n )
$n: function( n )
$: function( n )
$$: function( n )
refreshMolecules: function()
center: function()
show: function()
hide: function()
showAll: function()
hideAll: function()
showAllChildren: function()
hideAllChildren: function()
deleteBox: function( deep )
rotateTo: function( d )
rotateBy: function( d )
moveTo: function( x, y )
moveBy: function( x, y )
resizeTo: function( x, y )
resizeBy: function( x, y )
deepClone: function( sameScene )
clone: function( sameScene )
rename: function( name )
serialize: function()
dispatchEvent: function( evt_name )
dispatchEventWithData: function( evt_name, data_name, data )
refresh: function()