@types/three
Advanced tools
Comparing version 0.83.2 to 0.83.3
{ | ||
"name": "@types/three", | ||
"version": "0.83.2", | ||
"version": "0.83.3", | ||
"description": "TypeScript definitions for three.js", | ||
"license": "MIT", | ||
"author": "Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>", | ||
"author": "Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>", | ||
"main": "", | ||
@@ -17,4 +17,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "5e2bb86102b6e4251f149241de88fc6bf3cab510aaa4e497c610cfaa2f4352fd", | ||
"typesPublisherContentHash": "e20e2f2451c7e1f50d0129dfa7e8c88878dd891ab667c6cc19358d8a5a8b2e36", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Tue, 07 Feb 2017 20:53:02 GMT | ||
* Last updated: Thu, 09 Feb 2017 22:09:34 GMT | ||
* Dependencies: webvr-api | ||
@@ -17,2 +17,2 @@ * Global values: Detector, THREE | ||
# Credits | ||
These definitions were written by Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>. | ||
These definitions were written by Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>. |
// Type definitions for three.js (CanvasRenderer.js) | ||
// Project: https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CanvasRenderer.js | ||
// Definitions by: Satoru Kimura <https://github.com/gyohk> | ||
// Definitions by: Satoru Kimura < https://github.com/gyohk > | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
declare namespace THREE { | ||
export interface SpriteCanvasMaterialParameters extends MaterialParameters{ | ||
export interface SpriteCanvasMaterialParameters extends MaterialParameters { | ||
color?: number; | ||
@@ -33,25 +33,43 @@ program?: (context: any, color: Color) => void; | ||
sortElements: boolean; | ||
info: { render: { vertices: number; faces: number; }; }; | ||
info: {render: {vertices: number; faces: number;};}; | ||
supportsVertexTextures(): void; | ||
setFaceCulling(): void; | ||
getPixelRatio(): number; | ||
setPixelRatio(value: number): void; | ||
setSize(width: number, height: number, updateStyle?: boolean): void; | ||
setViewport(x: number, y: number, width: number, height: number): void; | ||
setScissor(): void; | ||
enableScissorTest(): void; | ||
setClearColor(color: Color, opacity?: number): void; | ||
setClearColor(color: string, opacity?: number): void; | ||
setClearColor(color: number, opacity?: number): void; | ||
setClearColor(color: Color | string | number, opacity?: number): void; | ||
// setClearColor(color: string, opacity?: number): void; | ||
// setClearColor(color: number, opacity?: number): void; | ||
setClearColorHex(hex: number, alpha?: number): void; | ||
getClearColor(): Color; | ||
getClearAlpha(): number; | ||
getMaxAnisotropy(): number; | ||
clear(): void; | ||
clearColor(): void; | ||
clearDepth(): void; | ||
clearStencil(): void; | ||
render(scene: Scene, camera: Camera): void; | ||
} | ||
} |
@@ -7,5 +7,4 @@ // Type definitions for three.js (CopyShader.js) | ||
declare namespace THREE { | ||
export var CopyShader: Shader; | ||
export var CopyShader: Shader; | ||
} |
@@ -10,3 +10,2 @@ // Type definitions for three.js (CSS3DRenderer.js) | ||
declare namespace THREE { | ||
@@ -28,7 +27,8 @@ class CSS3DObject extends Object3D { | ||
domElement:HTMLElement; | ||
domElement: HTMLElement; | ||
setSize(width: number, height: number): void; | ||
render(scene: THREE.Scene, camera: THREE.Camera): void; | ||
} | ||
} |
@@ -7,20 +7,23 @@ // Type definitions for three.js (EditorControls.js) | ||
declare namespace THREE { | ||
class EditorControls extends EventDispatcher { | ||
class EditorControls extends EventDispatcher { | ||
constructor(object: Camera, domElement?:HTMLElement); | ||
constructor(object: Camera, domElement?: HTMLElement); | ||
enabled: boolean; | ||
center: THREE.Vector3; | ||
enabled: boolean; | ||
center: THREE.Vector3; | ||
focus(target: THREE.Object3D, frame: boolean): void; | ||
pan(delta: THREE.Vector3): void; | ||
zoom(delta: THREE.Vector3): void; | ||
rotate(delta: THREE.Vector3): void; | ||
dispose(): void; | ||
focus(target: THREE.Object3D, frame: boolean): void; | ||
} | ||
pan(delta: THREE.Vector3): void; | ||
zoom(delta: THREE.Vector3): void; | ||
rotate(delta: THREE.Vector3): void; | ||
dispose(): void; | ||
} | ||
} |
@@ -7,23 +7,25 @@ // Type definitions for three.js (EffectComposer.js) | ||
declare namespace THREE { | ||
export class EffectComposer { | ||
constructor(renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget); | ||
renderTarget1: WebGLRenderTarget; | ||
renderTarget2: WebGLRenderTarget; | ||
writeBuffer: WebGLRenderTarget; | ||
readBuffer: WebGLRenderTarget; | ||
passes: any[]; | ||
copyPass: ShaderPass; | ||
swapBuffers(): void; | ||
declare namespace THREE { | ||
export class EffectComposer { | ||
constructor( renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget); | ||
addPass(pass: any): void; | ||
renderTarget1: WebGLRenderTarget; | ||
renderTarget2: WebGLRenderTarget; | ||
writeBuffer: WebGLRenderTarget; | ||
readBuffer: WebGLRenderTarget; | ||
passes: any[]; | ||
copyPass: ShaderPass; | ||
insertPass(pass: any, index: number): void; | ||
swapBuffers(): void; | ||
addPass(pass: any): void; | ||
insertPass(pass: any, index: number): void; | ||
render(delta?: number): void; | ||
reset(renderTarget?: WebGLRenderTarget): void; | ||
setSize( width: number, height: number ): void; | ||
} | ||
render(delta?: number): void; | ||
reset(renderTarget?: WebGLRenderTarget): void; | ||
setSize(width: number, height: number): void; | ||
} | ||
} |
@@ -11,2 +11,3 @@ // Type definitions for three.js | ||
constructor(object: Camera, domElement?: HTMLElement); | ||
object: THREE.Object3D; | ||
@@ -42,5 +43,7 @@ target: THREE.Vector3; | ||
mouseDragOn: boolean; | ||
update(delta: number): void; | ||
dispose(): void; | ||
} | ||
} |
@@ -7,24 +7,23 @@ // Type definitions for three.js (MaskPass.js) | ||
declare namespace THREE { | ||
export class MaskPass { | ||
constructor( scene: Scene, camera: Camera); | ||
export class MaskPass { | ||
constructor(scene: Scene, camera: Camera); | ||
scene: Scene; | ||
camera: Camera; | ||
enabled: boolean; | ||
clear: boolean; | ||
needsSwap: boolean; | ||
inverse: boolean; | ||
scene: Scene; | ||
camera: Camera; | ||
enabled: boolean; | ||
clear: boolean; | ||
needsSwap: boolean; | ||
inverse: boolean; | ||
render(renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, delta: number): void; | ||
} | ||
} | ||
export class ClearMaskPass { | ||
constructor(); | ||
export class ClearMaskPass { | ||
constructor(); | ||
enabled: boolean; | ||
enabled: boolean; | ||
render(renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, delta: number): void; | ||
} | ||
} | ||
} |
@@ -7,3 +7,2 @@ // Type definitions for three.js (OrbitControls.js) | ||
declare namespace THREE { | ||
@@ -38,4 +37,4 @@ class OrbitControls { | ||
enableKeys: boolean; | ||
keys: { LEFT: number; UP: number; RIGHT: number; BOTTOM: number; }; | ||
mouseButtons: { ORBIT: MOUSE; ZOOM: MOUSE; PAN: MOUSE; }; | ||
keys: {LEFT: number; UP: number; RIGHT: number; BOTTOM: number;}; | ||
mouseButtons: {ORBIT: MOUSE; ZOOM: MOUSE; PAN: MOUSE;}; | ||
enableDamping: boolean; | ||
@@ -46,12 +45,23 @@ dampingFactor: number; | ||
rotateLeft(angle?: number): void; | ||
rotateUp(angle?: number): void; | ||
panLeft(distance?: number): void; | ||
panUp(distance?: number): void; | ||
pan(deltaX: number, deltaY: number): void; | ||
dollyIn(dollyScale: number): void; | ||
dollyOut(dollyScale: number): void; | ||
update(): void; | ||
reset(): void; | ||
dispose(): void; | ||
getPolarAngle(): number; | ||
getAzimuthalAngle(): number; | ||
@@ -61,6 +71,9 @@ | ||
addEventListener(type: string, listener: (event: any) => void): void; | ||
hasEventListener(type: string, listener: (event: any) => void): void; | ||
removeEventListener(type: string, listener: (event: any) => void): void; | ||
dispatchEvent(event: { type: string; target: any; }): void; | ||
dispatchEvent(event: {type: string; target: any;}): void; | ||
} | ||
} |
@@ -7,46 +7,51 @@ // Type definitions for three.js (OrthographicTrackballControls.js) | ||
declare namespace THREE { | ||
export class OrthographicTrackballControls extends EventDispatcher { | ||
constructor(object: Camera, domElement?: HTMLElement); | ||
declare module THREE { | ||
class OrthographicTrackballControls extends EventDispatcher { | ||
constructor(object:Camera, domElement?:HTMLElement); | ||
object: Camera; | ||
domElement: HTMLElement; | ||
object:Camera; | ||
domElement:HTMLElement; | ||
// API | ||
enabled: boolean; | ||
screen: {left: number; top: number; width: number; height: number}; | ||
radius: number; | ||
rotateSpeed: number; | ||
zoomSpeed: number; | ||
panSpeed: number; | ||
noRotate: boolean; | ||
noZoom: boolean; | ||
noPan: boolean; | ||
noRoll: boolean; | ||
staticMoving: boolean; | ||
dynamicDampingFactor: number; | ||
keys: number[]; | ||
// API | ||
enabled:boolean; | ||
screen:{ left: number; top: number; width: number; height: number }; | ||
radius:number; | ||
rotateSpeed:number; | ||
zoomSpeed:number; | ||
panSpeed:number; | ||
noRotate:boolean; | ||
noZoom:boolean; | ||
noPan:boolean; | ||
noRoll:boolean; | ||
staticMoving:boolean; | ||
dynamicDampingFactor:number; | ||
keys:number[]; | ||
target: THREE.Vector3; | ||
target: THREE.Vector3; | ||
position0: THREE.Vector3; | ||
target0: THREE.Vector3; | ||
up0: THREE.Vector3; | ||
position0: THREE.Vector3; | ||
target0: THREE.Vector3; | ||
up0: THREE.Vector3; | ||
left0: number; | ||
right0: number; | ||
top0: number; | ||
bottom0: number; | ||
left0: number; | ||
right0: number; | ||
top0: number; | ||
bottom0: number; | ||
update(): void; | ||
update():void; | ||
reset():void; | ||
checkDistances():void; | ||
zoomCamera():void; | ||
panCamera():void; | ||
rotateCamera():void; | ||
reset(): void; | ||
handleResize():void; | ||
handleEvent(event: any):void; | ||
} | ||
checkDistances(): void; | ||
zoomCamera(): void; | ||
panCamera(): void; | ||
rotateCamera(): void; | ||
handleResize(): void; | ||
handleEvent(event: any): void; | ||
} | ||
} |
@@ -7,3 +7,2 @@ // Type definitions for three.js (Projector.js) | ||
declare namespace THREE { | ||
@@ -15,3 +14,3 @@ // Renderers / Renderables ///////////////////////////////////////////////////////////////////// | ||
id: number; | ||
object: Object; | ||
object: any; | ||
z: number; | ||
@@ -63,3 +62,3 @@ } | ||
id: number; | ||
object: Object; | ||
object: any; | ||
x: number; | ||
@@ -66,0 +65,0 @@ y: number; |
@@ -7,22 +7,21 @@ // Type definitions for three.js (RenderPass.js) | ||
declare namespace THREE { | ||
export class RenderPass { | ||
constructor( scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: Color, clearAlpha?: number ); | ||
constructor( scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: string, clearAlpha?: number ); | ||
constructor( scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: number, clearAlpha?: number ); | ||
export class RenderPass { | ||
// constructor(scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: Color, clearAlpha?: number); | ||
constructor(scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: Color | string | number, clearAlpha?: number); | ||
// constructor(scene: Scene, camera: Camera, overrideMaterial?: Material, clearColor?: number, clearAlpha?: number); | ||
scene: Scene; | ||
camera: Camera; | ||
overrideMaterial: Material; | ||
clearColor: any; // Color or string or number | ||
clearAlpha: number; | ||
oldClearColor: Color; | ||
oldClearAlpha: number; | ||
enabled: boolean; | ||
clear: boolean; | ||
needsSwap: boolean; | ||
scene: Scene; | ||
camera: Camera; | ||
overrideMaterial: Material; | ||
clearColor: any; // Color or string or number | ||
clearAlpha: number; | ||
oldClearColor: Color; | ||
oldClearAlpha: number; | ||
enabled: boolean; | ||
clear: boolean; | ||
needsSwap: boolean; | ||
render(renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, delta: number): void; | ||
} | ||
} | ||
} |
@@ -7,20 +7,19 @@ // Type definitions for three.js (ShaderPass.js) | ||
declare namespace THREE { | ||
export class ShaderPass { | ||
constructor( shader: Shader, textureID?: string ); | ||
export class ShaderPass { | ||
constructor(shader: Shader, textureID?: string); | ||
textureID: string; | ||
uniforms: any; | ||
material: ShaderMaterial; | ||
renderToScreen: boolean; | ||
enabled: boolean; | ||
needsSwap: boolean; | ||
clear: boolean; | ||
camera: Camera; | ||
scene: Scene; | ||
quad: Mesh; | ||
textureID: string; | ||
uniforms: any; | ||
material: ShaderMaterial; | ||
renderToScreen: boolean; | ||
enabled: boolean; | ||
needsSwap: boolean; | ||
clear: boolean; | ||
camera: Camera; | ||
scene: Scene; | ||
quad: Mesh; | ||
render(renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, delta: number): void; | ||
} | ||
render(renderer: WebGLRenderer, writeBuffer: WebGLRenderTarget, readBuffer: WebGLRenderTarget, delta: number): void; | ||
} | ||
} |
@@ -7,25 +7,24 @@ // Type definitions for three.js (TrackballControls.js) | ||
declare namespace THREE { | ||
class TrackballControls extends EventDispatcher { | ||
constructor(object:Camera, domElement?:HTMLElement); | ||
constructor(object: Camera, domElement?: HTMLElement); | ||
object:Camera; | ||
domElement:HTMLElement; | ||
object: Camera; | ||
domElement: HTMLElement; | ||
// API | ||
enabled:boolean; | ||
screen:{ left: number; top: number; width: number; height: number }; | ||
rotateSpeed:number; | ||
zoomSpeed:number; | ||
panSpeed:number; | ||
noRotate:boolean; | ||
noZoom:boolean; | ||
noPan:boolean; | ||
noRoll:boolean; | ||
staticMoving:boolean; | ||
dynamicDampingFactor:number; | ||
minDistance:number; | ||
maxDistance:number; | ||
keys:number[]; | ||
enabled: boolean; | ||
screen: {left: number; top: number; width: number; height: number}; | ||
rotateSpeed: number; | ||
zoomSpeed: number; | ||
panSpeed: number; | ||
noRotate: boolean; | ||
noZoom: boolean; | ||
noPan: boolean; | ||
noRoll: boolean; | ||
staticMoving: boolean; | ||
dynamicDampingFactor: number; | ||
minDistance: number; | ||
maxDistance: number; | ||
keys: number[]; | ||
@@ -37,12 +36,18 @@ target: THREE.Vector3; | ||
update():void; | ||
reset():void; | ||
checkDistances():void; | ||
zoomCamera():void; | ||
panCamera():void; | ||
rotateCamera():void; | ||
update(): void; | ||
handleResize():void; | ||
handleEvent(event: any):void; | ||
reset(): void; | ||
checkDistances(): void; | ||
zoomCamera(): void; | ||
panCamera(): void; | ||
rotateCamera(): void; | ||
handleResize(): void; | ||
handleEvent(event: any): void; | ||
} | ||
} |
@@ -7,19 +7,25 @@ // Type definitions for three.js (TransformControls.js) | ||
declare namespace THREE { | ||
class TransformControls extends Object3D { | ||
constructor(object:Camera, domElement?:HTMLElement); | ||
class TransformControls extends Object3D { | ||
constructor(object: Camera, domElement?: HTMLElement); | ||
object: Object3D; | ||
object: Object3D; | ||
update():void; | ||
detach(): void; | ||
attach(object: Object3D): void; | ||
getMode(): string; | ||
setMode(mode: string): void; | ||
setSnap(snap: any): void; | ||
setSize(size:number):void; | ||
setSpace(space:string):void; | ||
update(): void; | ||
} | ||
detach(): void; | ||
attach(object: Object3D): void; | ||
getMode(): string; | ||
setMode(mode: string): void; | ||
setSnap(snap: any): void; | ||
setSize(size: number): void; | ||
setSpace(space: string): void; | ||
} | ||
} |
@@ -11,3 +11,3 @@ // Type definitions for three.js (VRControls.js) | ||
export class VRControls { | ||
constructor(camera: Camera, callback?: (param: string)=>void); | ||
constructor(camera: Camera, callback?: (param: string) => void); | ||
@@ -18,2 +18,3 @@ /** | ||
update(): void; | ||
zeroSensor(): void; | ||
@@ -20,0 +21,0 @@ |
@@ -11,14 +11,22 @@ // Type definitions for three.js (VREffect.js) | ||
export class VREffect { | ||
constructor(renderer: Renderer, callback?: (params: string)=>void); | ||
constructor(renderer: Renderer, callback?: (params: string) => void); | ||
render(scene: Scene, camera: Camera): void; | ||
setSize(width: number, height: number): void; | ||
setFullScreen(flag: boolean): void; | ||
startFullscreen(): void; | ||
FovToNDCScaleOffset(fov: VRFov): VREffectOffset; | ||
FovPortToProjection(fov: VRFov, rightHanded: boolean, zNear: number, zFar: number): Matrix4; | ||
FovToProjection(fov: VRFov, rightHanded: boolean, zNear: number, zFar: number): Matrix4; | ||
setVRDisplay(display: VRDisplay): void; | ||
} | ||
export interface VRFov{ | ||
export interface VRFov { | ||
leftTan: number; | ||
@@ -30,3 +38,3 @@ rightTan: number; | ||
export interface VREffectOffset{ | ||
export interface VREffectOffset { | ||
scale: number; | ||
@@ -33,0 +41,0 @@ offset: number; |
@@ -6,3 +6,3 @@ { | ||
"data": { | ||
"authors": "Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>", | ||
"authors": "Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>", | ||
"dependencies": { | ||
@@ -33,5 +33,7 @@ "webvr-api": "*" | ||
"three-css3drenderer.d.ts", | ||
"three-ctmloader.d.ts", | ||
"three-editorcontrols.d.ts", | ||
"three-effectcomposer.d.ts", | ||
"three-maskpass.d.ts", | ||
"three-octree.d.ts", | ||
"three-orbitcontrols.d.ts", | ||
@@ -48,5 +50,5 @@ "three-orthographictrackballcontrols.d.ts", | ||
"hasPackageJson": false, | ||
"contentHash": "5e2bb86102b6e4251f149241de88fc6bf3cab510aaa4e497c610cfaa2f4352fd" | ||
"contentHash": "e20e2f2451c7e1f50d0129dfa7e8c88878dd891ab667c6cc19358d8a5a8b2e36" | ||
}, | ||
"isLatest": true | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
249097
23
6184