Giter Site home page Giter Site logo

three.d.ts's Introduction

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.

three.d.ts's People

Contributors

henkosch avatar kontan avatar tgockel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

three.d.ts's Issues

Minor typo "eallocate"

I've found a minor typo, at "export class BufferGeometry" the "eallocate" method should be "deallocate".

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.