23 lines
456 B
JavaScript
23 lines
456 B
JavaScript
import { webgl_original } from './webgl_draw.js';
|
|
|
|
const WGL = new webgl_original();
|
|
|
|
// var options = new Object();
|
|
|
|
let options ={
|
|
dimX : 960,
|
|
dimY: 540,
|
|
fileName: "Cubo.3mf"
|
|
}
|
|
|
|
WGL.initcall(options);
|
|
|
|
document.getElementById("refre_slider").oninput = function() {
|
|
myFunction()
|
|
};
|
|
|
|
function myFunction() {
|
|
var val = document.getElementById("refre_slider").value //gets the oninput value
|
|
console.log(val)
|
|
WGL.refreshcall(1, val)
|
|
} |