Madeleine.js
Madeleine.js copied to clipboard
stop rotation?
How do I stop the constant rotation? It makes studying the object hard (and I find it annoying).
Also, are there docs for the options? I scoured the source and found these options. Am I missing any?
var madeleine = new Madeleine({
target: 'stlview', // target div id
data: 'http://localhost:3000/static/L4.stl', // data path
path: '/static/src', // path to source directory from current html file
material: 'matt',// matt skin wire
showStatus: false,
backgroundColor : "DADADA",
objectColor: "FF9999",
viewer: {
create: true,
height: 300,
width: window.innerWidth/3,
theme : "light", // default dark lime rose lego toxic cobalt light soft
notappend: false,
},
camera : {
sight: 45, // Vertical Field of View
near: 1, // Near Field Distance
far: 100000, // Far Field Distance
},
rotateSensitivity : 0.005,
scrollFactor : 20,
zoomSensitivity : 100,
});
I stopped it by hacking the code but I don't like to do that.
Another question? How do I replace one url with another in-place?
@mark-hahn did you manage to solve the "replace one URL with another in-place"?
Sorry but I don't remember. I probably would have mentioned it here if I did.