three#EventDispatcher JavaScript Examples
The following examples show how to use
three#EventDispatcher.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: OrbitControls.js From AudioPlayer with MIT License | 5 votes |
OrbitControls.prototype = Object.create(EventDispatcher.prototype);
Example #2
Source File: OrbitControls.js From AudioPlayer with MIT License | 5 votes |
MapControls.prototype = Object.create(EventDispatcher.prototype);
Example #3
Source File: OrbitControls.js From canvas with Apache License 2.0 | 5 votes |
OrbitControls.prototype = Object.create( EventDispatcher.prototype );
Example #4
Source File: OrbitControls.js From canvas with Apache License 2.0 | 5 votes |
MapControls.prototype = Object.create( EventDispatcher.prototype );
Example #5
Source File: index.js From map33.js with MIT License | 5 votes |
InfiniteGridHelper.prototype = { ...Mesh.prototype, ...Object3D.prototype, ...EventDispatcher.prototype, };
Example #6
Source File: OrbitControls.js From FirstPersonCameraControl with MIT License | 5 votes |
OrbitControls.prototype = Object.create(EventDispatcher.prototype);
Example #7
Source File: OrbitControls.js From FirstPersonCameraControl with MIT License | 5 votes |
MapControls.prototype = Object.create(EventDispatcher.prototype);
Example #8
Source File: OrbitControls.js From threejs-tutorial with MIT License | 5 votes |
OrbitControls.prototype = Object.create( EventDispatcher.prototype );
Example #9
Source File: OrbitControls.js From threejs-tutorial with MIT License | 5 votes |
MapControls.prototype = Object.create( EventDispatcher.prototype );
Example #10
Source File: OrbitControls.js From three-viewer with MIT License | 5 votes |
OrbitControls.prototype = Object.create( EventDispatcher.prototype );
Example #11
Source File: OrbitControls.js From three-viewer with MIT License | 5 votes |
MapControls.prototype = Object.create( EventDispatcher.prototype );
Example #12
Source File: orbitcontrols.js From architect3d with MIT License | 4 votes |
OrbitControls.prototype = Object.assign(Object.create( EventDispatcher.prototype ), {
constructor: OrbitControls,
center:
{
get: function ()
{
console.warn( 'OrbitControls: .center has been renamed to .target' );
return this.target;
}
},
// backward compatibility
noZoom:
{
get: function ()
{
console.warn( 'OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.' );
return ! this.enableZoom;
},
set: function ( value )
{
console.warn( 'OrbitControls: .noZoom has been deprecated. Use .enableZoom instead.' );
this.enableZoom = ! value;
}
},
noRotate:
{
get: function ()
{
console.warn( 'OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.' );
return ! this.enableRotate;
},
set: function ( value )
{
console.warn( 'OrbitControls: .noRotate has been deprecated. Use .enableRotate instead.' );
this.enableRotate = ! value;
}
},
noPan:
{
get: function ()
{
console.warn( 'OrbitControls: .noPan has been deprecated. Use .enablePan instead.' );
return ! this.enablePan;
},
set: function ( value )
{
console.warn( 'OrbitControls: .noPan has been deprecated. Use .enablePan instead.' );
this.enablePan = ! value;
}
},
noKeys:
{
get: function ()
{
console.warn( 'OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.' );
return ! this.enableKeys;
},
set: function ( value )
{
console.warn( 'OrbitControls: .noKeys has been deprecated. Use .enableKeys instead.' );
this.enableKeys = ! value;
}
},
staticMoving:
{
get: function ()
{
console.warn( 'OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.' );
return ! this.enableDamping;
},
set: function ( value )
{
console.warn( 'OrbitControls: .staticMoving has been deprecated. Use .enableDamping instead.' );
this.enableDamping = ! value;
}
},
dynamicDampingFactor:
{
get: function ()
{
console.warn( 'OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.' );
return this.dampingFactor;
},
set: function ( value )
{
console.warn( 'OrbitControls: .dynamicDampingFactor has been renamed. Use .dampingFactor instead.' );
this.dampingFactor = value;
}
}
});