From 0e308079aa0b91d3808db4f655e16d6e2e3552d9 Mon Sep 17 00:00:00 2001 From: evolvedexperiment <55178666+evolvedexperiment@users.noreply.github.com> Date: Thu, 17 Oct 2019 22:12:16 +0200 Subject: [PATCH] 3d preview to Heightmap editor (#329) --- index.css | 11 +- index.html | 14 + libs/OrbitControls.js | 1172 + libs/three.js | 49623 +++++++++++++++++++++++++++++++ modules/ui/3dpreview.js | 105 + modules/ui/3dutils.js | 150 + modules/ui/editors.js | 16 +- modules/ui/heightmap-editor.js | 63 + 8 files changed, 51152 insertions(+), 2 deletions(-) create mode 100644 libs/OrbitControls.js create mode 100644 libs/three.js create mode 100644 modules/ui/3dpreview.js create mode 100644 modules/ui/3dutils.js diff --git a/index.css b/index.css index a552c8d4..b4bfcf69 100644 --- a/index.css +++ b/index.css @@ -2011,6 +2011,15 @@ svg.button { stroke-width: 1.4; } +#_3dpreview { +} + +#_3dpreviewEditor { + overflow-y: initial; + overflow-x: initial; + padding: 0px; +} + #legend { cursor: move; -moz-user-select: none; @@ -2062,4 +2071,4 @@ svg.button { .drag-trigger { display: none; } -} \ No newline at end of file +} diff --git a/index.html b/index.html index fc56ddb0..433af0b6 100644 --- a/index.html +++ b/index.html @@ -1838,6 +1838,7 @@ +
@@ -2586,6 +2587,13 @@
+ + +