web-viewer: remove old console-dumping code

This commit is contained in:
2024-02-08 01:06:43 +00:00
parent 3d5adcebb3
commit e82662bab1
2 changed files with 0 additions and 34 deletions

View File

@@ -175,18 +175,6 @@
<!-- load model data. populates a global variable whose name matches the filename -->
<script src="pinephone_case.vtk.js"></script>
<script src="pinephone_phone.vtk.js"></script>
<script>
function renderToConsole(modelName) {
// turns out there's just one canvas for the whole renderer,
// so this ignores the modelName and exports the whole canvas
// var viewerCanvas = document.querySelector(`#vtk-viewer-${modelName} > canvas`);
var viewerCanvas = document.querySelector("#vtk-viewer-root > canvas");
console.log("logging viewer image to console to allow the Makefile to capture a static image for docs...");
var image = viewerCanvas.toDataURL("image/png")
console.log("vtk-viewer-canvas: pinephone_case: " + image);
}
</script>
</head>
<body>
@@ -231,10 +219,5 @@
render(pinephone_case_with_phone_options, parent_element);
</script>
</div>
<script>
resize();
renderToConsole("pinephone_case");
</script>
</body>
</html>

View File

@@ -175,18 +175,6 @@
<!-- load model data. populates a global variable whose name matches the filename -->
<script src="pinephone_case.vtk.js"></script>
<script src="pinephone_phone.vtk.js"></script>
<script>
function renderToConsole(modelName) {
// turns out there's just one canvas for the whole renderer,
// so this ignores the modelName and exports the whole canvas
// var viewerCanvas = document.querySelector(`#vtk-viewer-${modelName} > canvas`);
var viewerCanvas = document.querySelector("#vtk-viewer-root > canvas");
console.log("logging viewer image to console to allow the Makefile to capture a static image for docs...");
var image = viewerCanvas.toDataURL("image/png")
console.log("vtk-viewer-canvas: pinephone_case: " + image);
}
</script>
</head>
<body>
@@ -231,10 +219,5 @@
render(pinephone_case_with_phone_options, parent_element);
</script>
</div>
<script>
resize();
renderToConsole("pinephone_case");
</script>
</body>
</html>