diff --git a/tools/config.json b/tools/config.json index 368d2b6..7322743 100644 --- a/tools/config.json +++ b/tools/config.json @@ -60,7 +60,11 @@ "website/o3dv/treeview.js", "website/o3dv/modal.js", "website/o3dv/dialogs.js", + "website/o3dv/openurldialog.js", "website/o3dv/exportdialog.js", + "website/o3dv/sharingdialog.js", + "website/o3dv/settingsdialog.js", + "website/o3dv/quantitiesdialog.js", "website/o3dv/modeldata.js", "website/o3dv/info.js", "website/o3dv/menu.js", diff --git a/website/embed.html b/website/embed.html index 2c2a928..02704e0 100644 --- a/website/embed.html +++ b/website/embed.html @@ -74,7 +74,11 @@ + + + + diff --git a/website/index.html b/website/index.html index ee66f05..00cbde8 100644 --- a/website/index.html +++ b/website/index.html @@ -74,7 +74,11 @@ + + + + diff --git a/website/info/index.html b/website/info/index.html index 6e73074..4ef49a2 100644 --- a/website/info/index.html +++ b/website/info/index.html @@ -35,6 +35,7 @@
  • Loading models hosted on a web server
  • Missing files
  • +
  • Generate sharing link
  • Embedding the viewer
    1. Embedding models hosted on GitHub
    2. @@ -177,6 +178,12 @@ files, or just import the missing files on their own.

      + +

      + You can generate sharing link to make it easy to share your models. It works only if your models are hosted on a web server. + To get the sharing link, click on the share model button () in the toolbar. +

      +

      Embedding the viewer

      The website allows you to embed a 3D model in your page. It works only if your models are hosted on a web server. diff --git a/website/o3dv/dialogs.js b/website/o3dv/dialogs.js index 42310f4..0ef47b5 100644 --- a/website/o3dv/dialogs.js +++ b/website/o3dv/dialogs.js @@ -1,6 +1,7 @@ OV.FeatureSet = { - SetDefaultColor : false + SetDefaultColor : false, + ModelQuantities : false }; OV.ShowMessageDialog = function (title, message, subMessage) @@ -22,244 +23,6 @@ OV.ShowMessageDialog = function (title, message, subMessage) return dialog; }; -OV.ShowOpenUrlDialog = function (onOk) -{ - function CorrectFileHostUrls (urls) - { - for (let i = 0; i < urls.length; i++) { - let url = urls[i]; - if (url.search (/www\.dropbox\.com/u) !== -1) { - url = url.replace ('www.dropbox.com', 'dl.dropbox.com'); - let separatorPos = url.indexOf ('?'); - if (separatorPos !== -1) { - url = url.substr (0, separatorPos); - } - urls[i] = url; - } else if (url.search (/github\.com/u) !== -1) { - url = url.replace ('github.com', 'raw.githubusercontent.com'); - url = url.replace ('/blob', ''); - let separatorPos = url.indexOf ('?'); - if (separatorPos !== -1) { - url = url.substr (0, separatorPos); - } - urls[i] = url; - } - } - } - - let dialog = new OV.ButtonDialog (); - let urlsTextArea = $('