From 6a10692b227991b4bc72974ce1651ac3740ae2e9 Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Tue, 15 Oct 2019 12:48:52 +0000 Subject: [PATCH 1/2] Added 3D preview to Heightmap editor --- index.css | 11 +- index.html | 14 + libs/OrbitControls.js | 1172 + libs/three.js | 49623 +++++++++++++++++++++++++++++++ modules/ui/3dpreview.js | 102 + modules/ui/3dutils.js | 145 + modules/ui/editors.js | 16 +- modules/ui/heightmap-editor.js | 55 + 8 files changed, 51136 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 d2eee5a6..9ab1baa9 100644 --- a/index.css +++ b/index.css @@ -2028,6 +2028,15 @@ svg.button { stroke-width: 1.4; } +#_3dpreview { +} + +#_3dpreviewEditor { + overflow-y: initial; + overflow-x: initial; + padding: 0px; +} + #legend { cursor: move; -moz-user-select: none; @@ -2079,4 +2088,4 @@ svg.button { .drag-trigger { display: none; } -} \ No newline at end of file +} diff --git a/index.html b/index.html index 6dd70661..3efa0df7 100644 --- a/index.html +++ b/index.html @@ -1827,6 +1827,7 @@ +
@@ -2574,6 +2575,13 @@
+ + +