Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (velox3d) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
🚀 velox3d
velox3d is a lightweight Three.js scene initializer with built-in best practices, clean defaults, and extensibility. It gives you a powerful 3D setup with just one function call — ideal for beginners and fast prototyping, but flexible enough for advanced customization.
✨ Features
- 📦 Sensible defaults (camera, lighting, background, renderer)
- 🔧 Fully customizable via options
- 🎮 OrbitControls out of the box
- 📐 Responsive resizing
- 🧩 Modular — bring your own components or use Velox CLI
📦 Installation
npm install threeUsage
npx velox3d add Cube
npx velox3d add initSceneimport { addCube } from "./../components/Cube.js";
import initScene from "./../components/initScene.js";
const { scene } = initScene("#my3d-scene", {
background: "#111",
light: {
type: "directional"
}
});
addCube(scene, { position: [0, 1, 0], color: "orange" });