dorkhub

lunchboxjs

Declarative ThreeJS via web components

breakfast-studio
TypeScript25512 forksMITupdated 5 months ago
git clone https://github.com/breakfast-studio/lunchboxjs.gitbreakfast-studio/lunchboxjs

Lunchbox 2 lets you write ThreeJS scenes using web components. You can use it in any (or no) framework.

<three-lunchbox>
  <three-mesh position-z="-5">
    <torus-knot-geometry></torus-knot-geometry>
    <mesh-normal-material></mesh-normal-material>
  </three-mesh>
</three-lunchbox>

Docs

Install

Full docs

About

Lunchbox started as a Vue + ThreeJS custom renderer, but from version 2 on is focused on web components built into browsers.

Local Dev

npm install, then npm run dev to run dev server. From there, edit source code in the LunchboxJS package's /src/... and examples in /index.html/... to build and test features.

With the dev server still running and accessible via localhost:5173, run npm run test to run headless tests, npm run cy:open to open Cypress test suites.

npm run docs:dev to run docs locally.

Publishing

npm run test to make sure all tests pass, then npm run publish.

more like this

lottery

🎉🌟✨🎈年会抽奖程序,基于 Express + Three.js的 3D 球体抽奖程序,奖品🧧🎁,文字,图片,抽奖规则均可配置,😜抽奖人员信息Excel一键导入😍,抽奖结果Excel导出😎,给你的抽奖活动带来全新酷炫体验🚀🚀🚀

JavaScript4.6k

search

search projects, people, and tags