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
-
from
main data -
touchDivideKey
touch divide -
touchViewGap
touch view gap -
touchSwitch
touch process -
touchChain
touch chain level -
touchMainId
touch object key -
vertex
vertex for object -
fragment
fragment for object -
backArea
back area for scene -
backAreaLight
back area light for scene -
loadStageProcess
load process -
loadEnd
load ending process -
mainView
main view -
modelRelation
thing relation -
loadStageProcess
thing stage load p4 -
touchMainId
main data -
isClearing
clear mode -
onRemove
on remove -
label
label sign -
labelBackPictureUrl
label background -
labelRate
label size -
labelHeight
label origin height -
labelWidth
label origin width -
labelHeightRate
label origin height rate -
labelWidthRate
label 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...
- })