@web-cube/web-cube
TypeScript icon, indicating that this package has built-in type declarations

0.7.0 • Public • Published

Web Cube

Web Cube is a JavaScript package for creating and manipulating cubes in web applications. This package provides a simple and efficient API for working with three-dimensional cubes, allowing rotations, transformations, and rendering in a web environment.

Features

  • Create three-dimensional cubes.
  • Apply rotations and transformations.
  • Efficient rendering in the browser.
  • Simple and easy-to-use API.

Installation

You can install the package using npm:

npm install @web-cube/webcube

or from JSR with Deno:

deno add jsr:@web-cube/webcube

or NPM:

npx jsr add @web-cube/webcube

Quickstart

Here's a simple example to get you started:

Add a JS file with the following

import { define } from "@web-cube/webcube";

define();

and a HTML with:

<web-cube></web-cube>

Also you can specify the size with the size attribute:

<web-cube size="4"></web-cube>

Readme

Keywords

Package Sidebar

Install

npm i @web-cube/web-cube

Weekly Downloads

13

Version

0.7.0

License

MIT

Unpacked Size

53 kB

Total Files

14

Last publish

Collaborators

  • axford