From f3f9012c5ae8407672d4d5a76e6785b0baebf1e1 Mon Sep 17 00:00:00 2001 From: Peter Klimai Date: Thu, 2 Jan 2020 16:24:52 +0300 Subject: [PATCH] Translate HTML instructions in GDML example, and include example file --- README.md | 4 +- demo/gdml/src/jsMain/resources/cubes.gdml | 254 ++++++++++++++++++++++ demo/gdml/src/jsMain/web/index.html | 6 +- 3 files changed, 260 insertions(+), 4 deletions(-) create mode 100644 demo/gdml/src/jsMain/resources/cubes.gdml diff --git a/README.md b/README.md index ff2820f1..aab72d1b 100644 --- a/README.md +++ b/README.md @@ -70,4 +70,6 @@ To run full-stack app (both server and browser front-end), run ##### gdml -Visualization example for geometry defined as GDML file. +Visualization example for geometry defined as GDML file. Once you open Web application, +drag-and-drop GDML file to the window to see visualization. For example file, use +`demo\gdml\src\jsMain\resources\cubes.gdml`. diff --git a/demo/gdml/src/jsMain/resources/cubes.gdml b/demo/gdml/src/jsMain/resources/cubes.gdml new file mode 100644 index 00000000..4d66c389 --- /dev/null +++ b/demo/gdml/src/jsMain/resources/cubes.gdml @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/demo/gdml/src/jsMain/web/index.html b/demo/gdml/src/jsMain/web/index.html index 3b2a99b2..bad59418 100644 --- a/demo/gdml/src/jsMain/web/index.html +++ b/demo/gdml/src/jsMain/web/index.html @@ -12,10 +12,10 @@
- Загрузить данные + title="To load data in text format, drag-and-drop file here"> + Load data
- (перетащить файл сюда) + (drag file here)

GDML demo