From a676b68f93f339b265dac9f58383a6847695b319 Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 8 Feb 2024 01:14:17 +0000 Subject: [PATCH] web-viewer: factor out a "renderWindow.js" helper --- Makefile | 5 +- build/web-viewer/index.html | 167 +------------------------------ build/web-viewer/renderWindow.js | 159 +++++++++++++++++++++++++++++ doc.in/index.html | 167 +------------------------------ doc.in/renderWindow.js | 159 +++++++++++++++++++++++++++++ 5 files changed, 332 insertions(+), 325 deletions(-) create mode 100644 build/web-viewer/renderWindow.js create mode 100644 doc.in/renderWindow.js diff --git a/Makefile b/Makefile index bd78b29..e85a873 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,10 @@ install: build/web-viewer/vtk.js: doc.in/vtk.js mkdir -p build/web-viewer cp $< $@ -build/web-viewer/index.html: doc.in/index.html build/web-viewer/vtk.js build/web-viewer/pinephone_case.vtk build/web-viewer/pinephone_phone.vtk +build/web-viewer/renderWindow.js: doc.in/renderWindow.js + mkdir -p build/web-viewer + cp $< $@ +build/web-viewer/index.html: doc.in/index.html build/web-viewer/vtk.js build/web-viewer/renderWindow.js build/web-viewer/pinephone_case.vtk build/web-viewer/pinephone_phone.vtk mkdir -p build/web-viewer cp $< $@ diff --git a/build/web-viewer/index.html b/build/web-viewer/index.html index 4b8d3a6..30a2329 100644 --- a/build/web-viewer/index.html +++ b/build/web-viewer/index.html @@ -1,4 +1,3 @@ - @@ -11,166 +10,7 @@ } - + @@ -179,12 +19,14 @@
+
-
+
+ - + @@ -179,12 +19,14 @@
+
-
+
+