From e4265b542851c7bde115a9dc53ea61fb87b2d768 Mon Sep 17 00:00:00 2001 From: "zaccaria.majid" Date: Wed, 4 Oct 2023 08:37:17 +0200 Subject: [PATCH] rimesso spinner --- 3MF_test/Web3D-Vue/Web3D_viewer/index.html | 18 +++++++++--------- WebGl/draw/webgl_drawVue.js | 14 +++++++------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/3MF_test/Web3D-Vue/Web3D_viewer/index.html b/3MF_test/Web3D-Vue/Web3D_viewer/index.html index fbc5dee..7bbafc4 100644 --- a/3MF_test/Web3D-Vue/Web3D_viewer/index.html +++ b/3MF_test/Web3D-Vue/Web3D_viewer/index.html @@ -22,20 +22,20 @@ _dimX : X, _dimY: Y, _fileName: "Cubo.3mf", - _showInfiniteGrid: false + _showLimitedGrid: true } WGL.initcall(options); - document.getElementById("refre_slider").oninput = function() { - myFunction() - }; + //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) - } + //function myFunction() { + // var val = document.getElementById("refre_slider").value //gets the oninput value + // console.log(val) + // WGL.refreshcall(1, val) + //} document.getElementById('btnRef').onclick = function() { diff --git a/WebGl/draw/webgl_drawVue.js b/WebGl/draw/webgl_drawVue.js index a7331e2..cb4c84d 100644 --- a/WebGl/draw/webgl_drawVue.js +++ b/WebGl/draw/webgl_drawVue.js @@ -26,11 +26,11 @@ var layer_list = []; const GLBox3D = new THREE.Box3(); // Box3D globale delle geometrie //init(); class webgl_original { - async initcall({ _dimX, _dimY, _fileName, _showInfiniteGrid}) { + async initcall({ _dimX, _dimY, _fileName, _showLimitedGrid}) { m_divStartDimX = _dimX; m_divStartDimY = _dimY; fName = _fileName; - m_bGrid_v1 = _showInfiniteGrid; + m_bGrid_v1 = _showLimitedGrid; //console.log(fName) setLoaders(); await init(); @@ -96,11 +96,11 @@ function setLoaders() { //if (useInSlider) { - mother.appendChild(sliderInput); - sliderInput.setAttribute('id', 'refre_slider'); - sliderInput.setAttribute('hidden', true); - sliderInput.type = 'range'; - sliderInput.min = '0'; + //mother.appendChild(sliderInput); + //sliderInput.setAttribute('id', 'refre_slider'); + //sliderInput.setAttribute('hidden', true); + //sliderInput.type = 'range'; + //sliderInput.min = '0'; //} mother.appendChild(spinContainer); //document.body.appendChild(spinContainer);