Merge branch '3dpreview' into master

This commit is contained in:
evolvedexperiment 2019-10-17 17:40:48 +02:00 committed by GitHub
commit 9de636c722
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 51154 additions and 2 deletions

View file

@ -70,6 +70,20 @@ function removeCircle() {
if (document.getElementById("brushCircle")) document.getElementById("brushCircle").remove();
}
function hideCircle() {
let circle = document.getElementById("brushCircle");
if (circle) {
circle.style.display = "none";
}
}
function showCircle() {
let circle = document.getElementById("brushCircle");
if (circle) {
circle.style.display = "";
}
}
// get browser-defined fit-content
function fitContent() {
return !window.chrome ? "-moz-max-content" : "fit-content";
@ -557,4 +571,4 @@ function uploadFile(el, callback) {
fileReader.readAsText(el.files[0], "UTF-8");
el.value = "";
fileReader.onload = loaded => callback(loaded.target.result);
}
}