Skip to content

kontan/three.d.ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 

Repository files navigation

three.d.ts

TypeScript interface for three.js

three.d.ts provides a type-safe and readable interface for three.js.
This porject is currently based on three.js r56. (You can also get earlier three.d.ts versions)

Downloads

You can get three.d.ts in the following ways:

HTML API Reference

HTML API reference is available. (Experimental, based r56)

Usage (for beginners of TypeScript)

  1. Download three.js (latest three.js is recommended).

  2. Download three.d.ts and place it at any directory.

  3. Create your TypeScript source file and write your application. If you want to know how to use classes in three.d.ts, examples in three.js are helpful. Usege of three.d.ts classes is all the same except for type checking.

  4. Launch a shell and compile your source code. Compile your source file with three.d.ts as follows:

    tsc three.d.ts yourcode.ts

  5. Create your html file to invoke the generated JavaScript source code. Don't forget to refer both of three.js and yourcode.js from your html source file.

  6. Open the html file.

Enjoy three.js :)

TODO

  • Prividing a lot more examples written in TypeScript.

About

TypeScript interface for three.js

Resources

Stars

Watchers

Forks

Packages

No packages published