0.0.14 • Published 4 years ago

@egjs/tiny-3d v0.0.14

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

@egjs/tiny-3d

Yet another 3d model viewer

Getting Started

@egjs/tiny-3d requires one canvas element to be initialized.

<!-- Wrapper element -->
<div id="some-wrapper">
  <!-- Tiny3D needs one canvas element to render a 3d model -->
  <!-- You don't have to set width / height attribute of it, as Tiny3D will manage that for you. -->
  <!-- Just set its size with CSS, then Tiny3D will use it -->
  <canvas id="my-canvas"></canvas>
  <!-- Other UI elements of your choice here -->
</div>

<!-- Here's some sample CSS style for the reference -->
<style>
#some-wrapper {
  width: 100vw;
  height: 100vh;
}
#my-canvas {
  width: 100%;
  height: 100%;
}
</style>

Then you can use it like

import Tiny3D from "@egjs/tiny-3d";

const canvasEl = document.querySelector("#my-canvas");
const tiny3d = new Tiny3D(canvasEl);
// or just
const tiny3d = new Tiny3D("#my-canvas");

See more info at our tutorials / documentations page.

Browser Coverage

IE11+

License

MIT

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago