Commit Graph

187 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
1b6989809f Merge pull request #28692 from nakagawa424/three-without-webvr-api
[three] 'webvr-api' is no longer needed.
2018-09-19 08:32:36 -07:00
Nathan Bierema
07efc583a7 Fix ExtrudeGeometry typo and parameter type 2018-09-18 14:29:01 -04:00
Dilip
a9c13cdfe7 [three] Added 'context' to WebGLRendererParameters for using an existing WebGLRenderingContext in new WebGLRenderer as seen in THREE.JS docs (#28856)
* Added 'context' to WebGLRendererParameters in three

* Added WebGLRenderingContext test
2018-09-14 09:06:13 -07:00
Greg Miller
b03b25c223 [three] fix gltf-exporter (#28743)
* fix-gltf-exporter-import

* add test

* remove formatting changes from auto-format
2018-09-13 12:50:10 -07:00
Trevor Behlman
ec674c55ce [three] add newly required argument (#28765)
r92 removed the ability to call Color.getHSL() without passing a target object to copy the results to.  The `three` type package currently targets r92 but is missing a definition for this argument.

- [x] Use a meaningful title for the pull request. Include the name of the package modified.
- [x] Test the change in your own code. (Compile and run.)
- [x] Add or edit tests to reflect the change. (Run with `npm test`.)
- [x] Follow the advice from the [readme](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#make-a-pull-request).
- [x] Avoid [common mistakes](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/README.md#common-mistakes).
- [x] Run `npm run lint package-name` (or `tsc` if no `tslint.json` is present).

- [x] Provide a URL to documentation or source code which provides context for the suggested changes:
    - https://threejs.org/docs/index.html#api/en/math/Color.getHSL
    - https://github.com/mrdoob/three.js/blob/r92/src/math/Color.js#L356
- [ ] Increase the version number in the header if appropriate.
- [ ] If you are making substantial changes, consider adding a `tslint.json` containing `{ "extends": "dtslint/dt.json" }`.
2018-09-13 09:57:40 -07:00
Satoshi Nakagawa
abc7337d28 add '// TypeScript Version: 2.8' 2018-09-07 15:15:02 +09:00
Satoshi Nakagawa
b0bb56a755 [three] 'webvr-api' is no longer needed. 2018-09-07 14:49:19 +09:00
Nathan Bierema
1100551f1b Merge branch 'master' into three-geometries 2018-08-18 15:12:37 -04:00
Ron Buckton
4b83aa919f Merge pull request #27951 from elk941/ThreeJSBufferGeometryUtilsAndDragControls
Three js buffer geometry utils and drag controls
2018-08-09 17:51:50 -07:00
Ethan Kay
f05312d9b3 Merge branch 'ThreeJSBufferGeometryUtilsAndDragControls' of https://github.com/elk941/DefinitelyTyped into ThreeJSBufferGeometryUtilsAndDragControls 2018-08-08 09:00:18 -07:00
Nathan Bierema
0c61f31e93 Fix order of parameters 2018-08-07 21:26:09 -04:00
Ethan Kay
fa61e7956b Merge branch 'ThreeJSBufferGeometryUtilsAndDragControls' of https://github.com/elk941/DefinitelyTyped into ThreeJSBufferGeometryUtilsAndDragControls 2018-08-07 13:13:18 -07:00
Ethan Kay
ea52638967 Merge branch 'ThreeJSBufferGeometryUtilsAndDragControls' of https://github.com/elk941/DefinitelyTyped into ThreeJSBufferGeometryUtilsAndDragControls 2018-08-07 13:12:17 -07:00
Ethan Kay
32110fb5b1 Added basic types for ThreeJS BufferGeometryUtils and DragControls 2018-08-07 13:01:05 -07:00
Nathan Bierema
0d35fd2773 Update authors 2018-08-05 17:26:07 -04:00
Nathan Bierema
07a5759183 Fix issues in geomtries in three.js 2018-08-05 17:22:21 -04:00
Mayfield Reynolds
916f258f96 WebGLRenderer: Rename animate() to setAnimationLoop() 2018-08-03 18:19:31 -04:00
remin
be86ebdb41 update three LoadingManager (#27846)
https://github.com/mrdoob/three.js/pull/11259
2018-08-03 13:59:00 -07:00
Krzysztof Bogdan
e84f8afeef three.js Add depthPacking field to MeshDepthMaterial (#27318)
* Add depthPacking field to MeshDepthMaterial

* Update three-core.d.ts

fix whitepsace
2018-07-23 10:31:15 -07:00
Atrahasis
15d7eb53b3 [@types/three]: Improve material type casting, implementation and doc. (#27413) 2018-07-20 18:04:08 -07:00
Krzysztof Bogdan
097c9e20ad three.js add missing math.lerp and webglrenderer methods (#27317)
* Update three-core.d.ts

Add missing WebGLRenderer methods (getDrawingBufferSize, setDrawingBufferSize, getCurrentViewport)

* Update three-core.d.ts

remove unnecessary whitespace

* Add missing lerp method from Math namespace

* Fixed indentation & order
2018-07-20 17:37:25 -07:00
Krzysztof Bogdan
4b5508062f Add missing generateMipmaps field (#27325)
Add missing generateMipmaps field from WebGLRenderTargetOptions
2018-07-20 17:36:43 -07:00
Atrahasis
96b2b69caa [@types/three]: Fix Object3D#clone. (#27058) 2018-07-05 10:12:41 -07:00
Atrahasis
fce63df114 [@types/three]: Fix property compatibility. 2018-06-29 21:05:20 +02:00
Paul van Brenk
8233b2c3fc Merge pull request #26772 from Astrak/r93-updates-Object3D
[types/three]: Update Object3D based classes.
2018-06-28 13:16:49 -07:00
Paul van Brenk
6dcf5579f3 Merge pull request #26723 from stavenko/dev/fix-geometry-buffer-attributes
[@types/three.core.BufferGeometry] Fix  BufferGeometry 'attributes' field type
2018-06-26 13:24:10 -07:00
Atrahasis
981b19dcd0 Dispatch Object3D updates in physijs and update examples. 2018-06-23 13:22:23 +02:00
Atrahasis
4f1cbed8d7 [types/three]: Update Object3D based classes. 2018-06-23 13:02:39 +02:00
Nathan Shively-Sanders
bb546c8273 Merge pull request #26766 from Astrak/r93-updates-vector
ThreeJS: Update Vector classes to r93.
2018-06-22 16:36:50 -07:00
Atrahasis
763667db9d Typo 2018-06-22 23:56:07 +02:00
Atrahasis
9239573fea Update Vector classes to r93 2018-06-22 23:30:01 +02:00
Adrien Coffre
4130d2dcd6 Update post-processing files to current API. Add SSAA and UnrealBloom passes. 2018-06-22 15:15:31 +02:00
Vasiliy G. Stavenko
5ef58a1652 Fix BufferGeometry field type 2018-06-21 13:41:52 +03:00
Nathan Shively-Sanders
290798c432 Merge pull request #26540 from izmhr/master
three: add .animate() function to WebGLRenderer (for WebVR)
2018-06-20 14:28:54 -07:00
Nathan Shively-Sanders
7361dd9a34 Merge pull request #26485 from kazakami/three-gltfexporter
[@types/three] Add typing for three-gltfexporter.
2018-06-20 12:52:26 -07:00
Nathan Shively-Sanders
7cfaae6be4 Merge pull request #26428 from twastvedt/three-UniformsLib
[three] Update UniformsLibs
2018-06-18 12:54:00 -07:00
Adrien Coffre
419d0ee0ca Add enabled property to viewoffset object. 2018-06-18 14:39:14 +02:00
Atsushi Izumihara
9a7ffe86e5 three: add .animate() function to WebGLRenderer (for WebVR) 2018-06-14 13:36:14 +09:00
Mine Starks
7953982291 Merge pull request #26397 from nebeleh/master
update to three/three-core.d.ts on BufferAttributes typings
2018-06-13 09:23:10 -07:00
kazakami
1af294a268 add typing for three-gltfexporter 2018-06-13 00:41:31 +09:00
pvavrik
d9c5007c85 ThreeJS : Add color param to Light helpers 2018-06-11 15:07:30 +02:00
Trygve Wastvedt
84cb163ba9 Update UniformsLibs, fix typos. 2018-06-09 22:02:23 -05:00
Saman Amraii
4ef4d09eb0 update to three-core.d.ts
BufferAttributes require a 3rd optional normalized arg of type boolean.
2018-06-08 19:37:13 -07:00
Adrien Coffre
ebbf6dd54d ThreeJS : Add null types to scene #fog and #overrideMaterial. 2018-06-05 09:21:42 +02:00
Daniel Rosenwasser
140398df91 Merge pull request #25830 from jcyuan/master
fixed typing error & argument type error for THREE.js.
2018-05-26 22:34:07 -07:00
Daniel Rosenwasser
adcc74691a Merge pull request #25956 from nofree5th/master
[three.js] Fix FontLoader/Font json type declare
2018-05-23 22:49:48 -07:00
nofree
516d4bb607 Fix FontLoader/Font json type declare 2018-05-23 13:29:32 +08:00
Ford Hurley
eb59409935 THREE.BufferGeometry.setFromPoints accepts Vector2s as well
The documentation shows examples of this, e.g.:

https://threejs.org/docs/#api/extras/curves/EllipseCurve

The source code shows how it handles an array of either type:

https://github.com/mrdoob/three.js/blob/2f2e5f731/src/core/BufferGeometry.js#L352
2018-05-20 09:52:28 -04:00
J.C
c91d807e1c fixed typing error & argument type error. 2018-05-17 13:34:54 +08:00
Ron Buckton
7103b727bf Merge pull request #25752 from sethk/threejs-updates
Update some three.js types
2018-05-15 12:50:29 -07:00