three-quick-build

2.3.19 • Public • Published

three-quick-build

for three.js

install

npm i three-quick-build

usage

// all
import * as ThreeQB from "three-quick-build";

// require
import {
    EngineCross,
    EngineCrossSwitch,
    //...
} from "three-quick-build";

//instance
const example = new EngineCross(
    el,
    basic,
    excute,
    reflect={
    template:{
        model1:'model',
        example1:'normal',
        example2:'position',
        example3:'id',
        list:[
            {
                model2:'model',
                example1:'normal',
                example2:'normal',
            }
        ]
    },
    data:{
        //from template
    }
})
//switch use value:label to load labels

params

  • frommain data
  • touchDivideKeytouch divide
  • touchViewGap touch view gap
  • touchSwitchtouch process
  • touchChaintouch chain level
  • touchMainIdtouch object key
  • vertexvertex for object
  • fragmentfragment for object
  • backAreaback area for scene
  • backAreaLightback area light for scene
  • loadStageProcessload process
  • loadEndload ending process
  • mainViewmain view
  • modelRelationthing relation
  • loadStageProcessthing stage load p4
  • touchMainIdmain data
  • isClearingclear mode
  • onRemoveon remove
  • labellabel sign
  • labelBackPictureUrllabel background
  • labelRatelabel size
  • labelHeightlabel origin height
  • labelWidthlabel origin width
  • labelHeightRatelabel origin height rate
  • labelWidthRatelabel origin width rate

methods

  • setLight(direction / ambient / point,params)
  • setThing(url,param)
  • setLoop(fn)
  • addSurface(pictureUrl,key)
  • addBackground(pictureUrl)
  • thingSwitch(modelId,modelName) on switch mode

listener

  • mouldChooseOrigin({
  • type,e,arc,callback,secondCallback,thirdCallBack...
  • })

Readme

Keywords

none

Package Sidebar

Install

npm i three-quick-build

Weekly Downloads

1

Version

2.3.19

License

MPL-2.0

Unpacked Size

665 kB

Total Files

3

Last publish

Collaborators

  • zhuoxingzzz