@lancercomet/dancefloor
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

DanceFloor

This is a Vue binding for ThreeJS, just like a Vue version of ReactThreeFiber.

Quick start

import { BoxGeometry, BasicMaterial, Mesh, useScene, PerspectiveCamera, OrbitControls } from '@lancercomet/dancefloor'
import { defineComponent } from 'vue'

const MyApp = defineComponent({
  name: 'MyApp',

  setup () {
    const { Scene } = useScene()

    return () => (
      <Scene>
        <PerspectiveCamera position={{ x: 5, y: 5, z: 5 }}>
          <OrbitControls />
        </PerspectiveCamera>

        <Mesh>
          <BoxGeometry width={1} height={1} depth={1} />
          <BasicMaterial params={materialParamsRef.value} />
        </Mesh>
      </Scene>
    )
  }
})

export {
  MyApp
}

Readme

Keywords

none

Package Sidebar

Install

npm i @lancercomet/dancefloor

Weekly Downloads

1

Version

0.9.0

License

Apache-2.0

Unpacked Size

250 kB

Total Files

68

Last publish

Collaborators

  • pwch