Commit Graph

28 Commits

Author SHA1 Message Date
Michael Lamparski
785ec847ef Make gl-matrix null-aware
Got bitten by nulls arising from matrix inverses.

Pretty much every change in this commit came from a simple textual
search for explicit appearances of "null" and "undefined" in
https://github.com/toji/gl-matrix/blob/master/src/gl-matrix.js.

Additional things I checked: (all of which turned up nothing)

* Checked each null-returning function for others that call it.
* Glanced through for other suspicious places where null/undefined
  might crop up implicitly. However, almost every function in the
  library simply mutates one of its arguments in a manner that should
  respect the type invariants, and returns it. Nothing stuck out to me.
* Double-checked newer files in
  https://github.com/toji/gl-matrix/tree/master/src/gl-matrix
2016-11-14 16:28:59 -05:00
Giff Song
d6b2438fb4 [gl-matrix] Add types for submodules (#12209) 2016-11-02 22:45:11 +09:00
Andy Hanson
fb972b28d2 Fix tests, rename things to index.d.ts, use <reference types="xxx">, and add tsconfig.jsons. 2016-09-21 11:17:26 -07:00
Andy Hanson
91d1d6d60f Merge remote-tracking branch 'origin/master' into merge_21sep 2016-09-21 09:45:05 -07:00
Mattijs Kneppers
3fbffb91e3 rename old implementation to legacy and new to standard 2016-08-15 18:13:26 +02:00
Mattijs Kneppers
568c64aa04 feature: add option of number array input for all vector arguments 2016-08-15 17:47:26 +02:00
Mattijs Kneppers
08f9659a3b clean: remove glMatrix definition (it is only used internally) and add space after every colon 2016-08-15 17:45:45 +02:00
Nathan Shively-Sanders
15c9fdbdf1 Merge branch 'master' into types-2.0 2016-08-09 15:41:20 -07:00
Ryan Cavanaugh
c33a46c3d5 Merge commit 'upstream/master~200' into merge_7_25 2016-07-26 18:25:24 -07:00
Mattijs Kneppers
9d33ed7f26 Add gl-matrix-typed tests and fix gl-matrix-typed 2016-07-18 19:29:05 +02:00
Mattijs Kneppers
8a33d53228 Add stronger typed version of gl-matrix definitions. Also contains all methods of gl-matrix available on 18 july 2016. No tests yet. 2016-07-18 17:17:27 +02:00
Ryan Cavanaugh
a5f4d50ccc Fix tsconfig files for new option name / behavior.
Also fixes some inconsistent whitespace.
2016-07-12 13:54:56 -07:00
Nicolas Kassis
84cfb49207 Add missing fromRotationTranslationScale to gl-matrix (#9828) 2016-07-01 15:07:31 +09:00
Raghav Katyal
395c4e1639 Turning on consistent casing flag and fixing failures 2016-06-30 15:14:49 -07:00
Ryan Cavanaugh
bfd400a8f8 Add noEmit to all config files 2016-05-10 12:24:49 -07:00
Ryan Cavanaugh
e808e8e062 Remove unneeded references 2016-05-10 12:22:25 -07:00
Ryan Cavanaugh
50387d4046 Change relative reference paths to types references. Errors incoming... 2016-05-09 18:06:27 -07:00
Ryan Cavanaugh
49b1ac6a38 Rename all entry points to index.d.ts and explicitify all file lists 2016-05-09 17:29:10 -07:00
Ryan Cavanaugh
ab2b4191c5 Add typesRoot to all config files 2016-05-09 13:52:25 -07:00
Ryan Cavanaugh
ded70421be Turn off strict null checks 2016-05-04 15:08:38 -07:00
Ryan Cavanaugh
69d1929d8a Add tsconfig.json files 2016-05-04 14:14:39 -07:00
Ryan Cavanaugh
e7c111c4b7 Merge remote-tracking branch 'upstream/master' into types2.0
Add tsconfig files everywhere

# Conflicts:
#	azure-mobile-services-client/AzureMobileServicesClient.d.ts
#	bookshelf/bookshelf.d.ts
#	hapi/hapi.d.ts
#	helmet/helmet.d.ts
#	mongodb/mongodb.d.ts
#	nock/nock.d.ts
#	react-bootstrap/react-bootstrap.d.ts
#	react-helmet/react-helmet.d.ts
#	restify/restify.d.ts
#	sequelize/sequelize.d.ts
2016-04-27 20:40:21 -07:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
Tat
1013e42c7a added some missing tests and fixed a couple of mistakes and typos in the function definitions 2015-05-09 19:31:26 +05:30
Tat
aba104feab added jsdoc documentation for the functions 2015-05-08 17:53:04 +05:30
Tat
3a5db1c791 adding the gl-matrix type definitions 2015-05-03 19:11:34 +05:30