@types/three 0.93.27 → 0.93.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
three/README.md CHANGED
@@ -8,10 +8,10 @@ This package contains type definitions for three.js ( https://threejs.org ).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three
9
9
 
10
10
  Additional Details
11
- * Last updated: Fri, 15 Mar 2019 17:48:33 GMT
11
+ * Last updated: Wed, 10 Apr 2019 16:24:39 GMT
12
12
  * Dependencies: none
13
13
  * Global values: Detector, THREE
14
14
 
15
15
  # Credits
16
16
  These definitions were written by Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, HouChunlei <https://github.com/omni360>, Ivo <https://github.com/ivoisbelongtous>, David Asmuth <https://github.com/piranha771>, Brandon Roberge,
17
- // Qinsi ZHU <https://github.com/qszhusightp>, Toshiya Nakakura <https://github.com/nakakura>, Stefan Profanter <https://github.com/Pro>, Edmund Fokschaner <https://github.com/efokschaner>, Roelof Jooste <https://github.com/PsychoSTS>, Apurva Ojas <https://github.com/apurvaojas>, Tiger Oakes <https://github.com/NotWoods>, Methuselah96 <https://github.com/Methuselah96>, Dilip Ramirez <https://github.com/Dukuo>, Julian Strecker <https://github.com/JulianSSS>, Zhang Hao <https://github.com/devilsparta>, Konstantin Lukaschenko <https://github.com/KonstantinLukaschenko>, Daniel Yim <https://github.com/danyim>, Saransh Kataria <https://github.com/saranshkataria>, Philippe Suter <https://github.com/psuter>.
17
+ // Qinsi ZHU <https://github.com/qszhusightp>, Toshiya Nakakura <https://github.com/nakakura>, Stefan Profanter <https://github.com/Pro>, Edmund Fokschaner <https://github.com/efokschaner>, Roelof Jooste <https://github.com/PsychoSTS>, Apurva Ojas <https://github.com/apurvaojas>, Tiger Oakes <https://github.com/NotWoods>, Methuselah96 <https://github.com/Methuselah96>, Dilip Ramirez <https://github.com/Dukuo>, Julian Strecker <https://github.com/JulianSSS>, Zhang Hao <https://github.com/devilsparta>, Konstantin Lukaschenko <https://github.com/KonstantinLukaschenko>, Daniel Yim <https://github.com/danyim>, Saransh Kataria <https://github.com/saranshkataria>.
three/index.d.ts CHANGED
@@ -21,7 +21,6 @@
21
21
  // Konstantin Lukaschenko <https://github.com/KonstantinLukaschenko>
22
22
  // Daniel Yim <https://github.com/danyim>
23
23
  // Saransh Kataria <https://github.com/saranshkataria>
24
- // Philippe Suter <https://github.com/psuter>
25
24
  // Definitions: https://github.com//DefinitelyTyped
26
25
  // TypeScript Version: 2.8
27
26
 
@@ -43,6 +42,7 @@ export * from './three-FirstPersonControls';
43
42
  export * from './three-gltfexporter';
44
43
  export * from './three-gltfloader';
45
44
  export * from './three-lensflare';
45
+ export * from './three-lut';
46
46
  export * from './three-mapcontrols';
47
47
  export * from './three-maskpass';
48
48
  export * from './three-mtlloader';
three/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/three",
3
- "version": "0.93.27",
3
+ "version": "0.93.31",
4
4
  "description": "TypeScript definitions for three.js",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -102,11 +102,6 @@
102
102
  "name": "Saransh Kataria",
103
103
  "url": "https://github.com/saranshkataria",
104
104
  "githubUsername": "saranshkataria"
105
- },
106
- {
107
- "name": "Philippe Suter",
108
- "url": "https://github.com/psuter",
109
- "githubUsername": "psuter"
110
105
  }
111
106
  ],
112
107
  "main": "",
@@ -118,6 +113,6 @@
118
113
  },
119
114
  "scripts": {},
120
115
  "dependencies": {},
121
- "typesPublisherContentHash": "b88ace0521f54864be4bf082b64cdb138e0b70ad001916653c664938edbe8a2f",
116
+ "typesPublisherContentHash": "cfc98e77400b8c355106c89a7d2db75bd8d147f96c26fbca2f0260373ba55f9d",
122
117
  "typeScriptVersion": "2.8"
123
118
  }
three/three-core.d.ts CHANGED
@@ -239,6 +239,7 @@ export class AnimationAction {
239
239
  stop(): AnimationAction;
240
240
  reset(): AnimationAction;
241
241
  isRunning(): boolean;
242
+ isScheduled(): boolean;
242
243
  startAt(time: number): AnimationAction;
243
244
  setLoop(mode: AnimationActionLoopStyles, repetitions: number): AnimationAction;
244
245
  setEffectiveWeight(weight: number): AnimationAction;
@@ -1476,7 +1477,7 @@ export namespace GeometryUtils {
1476
1477
  * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/InstancedBufferAttribute.js">src/core/InstancedBufferAttribute.js</a>
1477
1478
  */
1478
1479
  export class InstancedBufferAttribute extends BufferAttribute {
1479
- constructor(data: ArrayLike<number>, itemSize: number, meshPerAttribute?: number);
1480
+ constructor(array: ArrayLike<number>, itemSize: number, normalized?: boolean, meshPerAttribute?: number);
1480
1481
 
1481
1482
  meshPerAttribute: number;
1482
1483
  }
three/three-lut.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ // https://github.com/mrdoob/three.js/blob/master/examples/js/math/Lut.js
2
+
3
+ import { Color, Mesh, Vector3 } from './three-core';
4
+
5
+ export type ColorMapKeyword = 'rainbow'|'cooltowarm'|'blackbody'|'grayscale';
6
+
7
+ export class Lut {
8
+ constructor(colormap: ColorMapKeyword, numberofcolors: number);
9
+
10
+ addColorMap(colormapName: string, arrayOfColors: Array<[number, string]>) : void;
11
+
12
+ changeColorMap(colormap: ColorMapKeyword): Lut;
13
+
14
+ changeNumberOfColors(numberofcolors: number): Lut;
15
+
16
+ copy(lut: Lut): void;
17
+
18
+ getColor(alpha: number): Color;
19
+
20
+ setLegendLayout(layout: 'horizontal'|'vertical'): void;
21
+
22
+ setLegendOff(): void;
23
+
24
+ setLegendOn(): Mesh;
25
+
26
+ setLegendPosition(position: Vector3): void;
27
+
28
+ setMax(max: number): void;
29
+
30
+ setMin(min: number): void;
31
+ }