Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
2,138 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Logs | ||
logs | ||
*.log | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directory | ||
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git | ||
node_modules | ||
|
||
# Remove some common IDE working directories | ||
.idea | ||
.vscode | ||
|
||
.DS_Store | ||
|
||
lib | ||
*.rst.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
threelet | ||
=================== | ||
|
||
A portable standalone viewer for THREE objects. | ||
|
||
Setup | ||
----- | ||
|
||
**Installation** | ||
|
||
.. code:: sh | ||
$ npm install threelet | ||
**Loading** | ||
|
||
.. code:: js | ||
import Threelet from 'dist/threelet.js'; | ||
Usage | ||
----- | ||
|
||
.. code:: html | ||
|
||
<canvas id="canvas" style="width: 100%; height: 100%;"></canvas> | ||
<script src="../deps/three.min.js"></script> | ||
<script src="../deps/OrbitControls.js"></script> | ||
<script src="../deps/stats.min.js"></script> | ||
<script> | ||
import Threelet from '../../dist/threelet.js'; | ||
const threelet = new Threelet({ | ||
canvas: document.getElementById("canvas"), | ||
optClassControls: window.THREE.OrbitControls, | ||
optClassStats: window.Stats, | ||
}); | ||
threelet.updateLoop(0); // 0 fps, i.e. passive rendering with OribitControls | ||
</script> | ||
|
||
.. image:: https://w3reality.github.io/threelet/examples/simple/img/threelet.png |
Oops, something went wrong.