Commit Graph

197 Commits

Author SHA1 Message Date
Andrew Musgrave
c65f587f01 Adjust threejs types (#29893) 2018-10-19 17:02:38 -07:00
Nathan Bierema
36aa210efd [three] Update object materials to match documentation (#29518)
* Update accepted material types to match documentation

* Fix aframe-io-tests

* Fix SpriteCanvasMaterial

* Fix MeshFaceMaterial

* Fix SpriteMaterial

* Use tabs?!?

* Allow arrays

* Spaces

* Fix build

* Try again
2018-10-15 09:53:09 -07:00
Will Nayes
049be10668 [three] Make KeyframeTrack interpolation optional (#29692) 2018-10-15 09:38:10 -07:00
Nathan Bierema
3e3b7cf82e Update three-core.d.ts (#29695) 2018-10-15 09:30:35 -07:00
Andy
59dc9899d3
three: Fix lint (#29690) 2018-10-13 10:47:38 -07:00
Andy Hanson
65fcea8f3e three: Fix typo 2018-10-12 16:29:36 -07:00
George Berezhnoy
2ea4a1af58 @types/three: Add setRequestHeader into FileLoader interface (#29684)
* Add setRequestHeader into FileLoader interface

* Update index.d.ts
2018-10-12 09:30:03 -07:00
sverbist
7b98a163a5 Include 'uv' in Intersection interface (#29538)
According to https://threejs.org/docs/#api/en/core/Raycaster, the raycaster returns an object which contains a property called 'uv' which is a Vector2 object. This commit adds this to the typings to reflect this.
2018-10-09 11:30:57 -07:00
Kira McLean
66572a9e43 Update MeshBasicMaterial type definition in @types/three-core (#29338)
* Allow `null` maps for `MeshBasicMaterial`s

A mesh can optionally have a `map` but right now this doesn't allow us to remove a material's map by setting it to `null`, which is the default value for maps.

* All textures are nullable

https://threejs.org/docs/#api/en/materials/MeshStandardMaterial

* Lots of other things are nullable, too

* Fix indentation

My editor changed the indentation of this file.. oops.

* Actually fix indentation
2018-10-03 11:54:02 -07:00
Nithin Chandran
35b5ebacbf Typings_Three_Core_LineDashedMaterial_Update (#29152)
* Typings_Three_Core_LineDashedMaterial_Update

LineDashedMaterial was inheriting from Material but as per three.js it inherits from LineBasicMaterial.

ref: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/29149
https://github.com/mrdoob/three.js/blob/master/src/materials/LineDashedMaterial.js#L32

* implemented review comments

* added isLineDashedMaterial definition
2018-10-03 11:48:00 -07:00
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